@@ -40,19 +40,16 @@ import {
4040import { CursorPage , type CursorPageParams } from '../../../../pagination' ;
4141import { Stream } from '../../../../streaming' ;
4242
43+ /**
44+ * @deprecated The Assistants API is deprecated in favor of the Responses API
45+ */
4346export class Runs extends APIResource {
4447 steps : StepsAPI . Steps = new StepsAPI . Steps ( this . _client ) ;
4548
4649 /**
4750 * Create a run.
4851 *
49- * @example
50- * ```ts
51- * const run = await client.beta.threads.runs.create(
52- * 'thread_id',
53- * { assistant_id: 'assistant_id' },
54- * );
55- * ```
52+ * @deprecated The Assistants API is deprecated in favor of the Responses API
5653 */
5754 create (
5855 threadId : string ,
@@ -87,13 +84,7 @@ export class Runs extends APIResource {
8784 /**
8885 * Retrieves a run.
8986 *
90- * @example
91- * ```ts
92- * const run = await client.beta.threads.runs.retrieve(
93- * 'thread_id',
94- * 'run_id',
95- * );
96- * ```
87+ * @deprecated The Assistants API is deprecated in favor of the Responses API
9788 */
9889 retrieve ( threadId : string , runId : string , options ?: Core . RequestOptions ) : Core . APIPromise < Run > {
9990 return this . _client . get ( `/threads/${ threadId } /runs/${ runId } ` , {
@@ -105,13 +96,7 @@ export class Runs extends APIResource {
10596 /**
10697 * Modifies a run.
10798 *
108- * @example
109- * ```ts
110- * const run = await client.beta.threads.runs.update(
111- * 'thread_id',
112- * 'run_id',
113- * );
114- * ```
99+ * @deprecated The Assistants API is deprecated in favor of the Responses API
115100 */
116101 update (
117102 threadId : string ,
@@ -129,15 +114,7 @@ export class Runs extends APIResource {
129114 /**
130115 * Returns a list of runs belonging to a thread.
131116 *
132- * @example
133- * ```ts
134- * // Automatically fetches more pages as needed.
135- * for await (const run of client.beta.threads.runs.list(
136- * 'thread_id',
137- * )) {
138- * // ...
139- * }
140- * ```
117+ * @deprecated The Assistants API is deprecated in favor of the Responses API
141118 */
142119 list (
143120 threadId : string ,
@@ -163,13 +140,7 @@ export class Runs extends APIResource {
163140 /**
164141 * Cancels a run that is `in_progress`.
165142 *
166- * @example
167- * ```ts
168- * const run = await client.beta.threads.runs.cancel(
169- * 'thread_id',
170- * 'run_id',
171- * );
172- * ```
143+ * @deprecated The Assistants API is deprecated in favor of the Responses API
173144 */
174145 cancel ( threadId : string , runId : string , options ?: Core . RequestOptions ) : Core . APIPromise < Run > {
175146 return this . _client . post ( `/threads/${ threadId } /runs/${ runId } /cancel` , {
@@ -272,15 +243,7 @@ export class Runs extends APIResource {
272243 * tool calls once they're all completed. All outputs must be submitted in a single
273244 * request.
274245 *
275- * @example
276- * ```ts
277- * const run =
278- * await client.beta.threads.runs.submitToolOutputs(
279- * 'thread_id',
280- * 'run_id',
281- * { tool_outputs: [{}] },
282- * );
283- * ```
246+ * @deprecated The Assistants API is deprecated in favor of the Responses API
284247 */
285248 submitToolOutputs (
286249 threadId : string ,
0 commit comments