@@ -12,15 +12,14 @@ import { path } from '../../internal/utils/path';
1212
1313/**
1414 * Tasks (Beta)
15+ *
16+ * @deprecated Use GA Task Group instead
1517 */
1618export class TaskGroup extends APIResource {
1719 /**
1820 * Initiates a TaskGroup to group and track multiple runs.
1921 *
20- * @example
21- * ```ts
22- * const taskGroup = await client.beta.taskGroup.create();
23- * ```
22+ * @deprecated Use GA Task Group instead
2423 */
2524 create ( body : TaskGroupCreateParams , options ?: RequestOptions ) : APIPromise < TaskGroupAPI . TaskGroup > {
2625 return this . _client . post ( '/v1beta/tasks/groups' , {
@@ -33,12 +32,7 @@ export class TaskGroup extends APIResource {
3332 /**
3433 * Retrieves aggregated status across runs in a TaskGroup.
3534 *
36- * @example
37- * ```ts
38- * const taskGroup = await client.beta.taskGroup.retrieve(
39- * 'taskgroup_id',
40- * );
41- * ```
35+ * @deprecated Use GA Task Group instead
4236 */
4337 retrieve ( taskGroupID : string , options ?: RequestOptions ) : APIPromise < TaskGroupAPI . TaskGroup > {
4438 return this . _client . get ( path `/v1beta/tasks/groups/${ taskGroupID } ` , {
@@ -50,18 +44,7 @@ export class TaskGroup extends APIResource {
5044 /**
5145 * Initiates multiple task runs within a TaskGroup.
5246 *
53- * @example
54- * ```ts
55- * const taskGroupRunResponse =
56- * await client.beta.taskGroup.addRuns('taskgroup_id', {
57- * inputs: [
58- * {
59- * input: 'What was the GDP of France in 2023?',
60- * processor: 'base',
61- * },
62- * ],
63- * });
64- * ```
47+ * @deprecated Use GA Task Group instead
6548 */
6649 addRuns (
6750 taskGroupID : string ,
@@ -86,12 +69,7 @@ export class TaskGroup extends APIResource {
8669 * The connection will remain open for up to an hour as long as at least one run in
8770 * the group is still active.
8871 *
89- * @example
90- * ```ts
91- * const response = await client.beta.taskGroup.events(
92- * 'taskgroup_id',
93- * );
94- * ```
72+ * @deprecated Use GA Task Group instead
9573 */
9674 events (
9775 taskGroupID : string ,
@@ -121,12 +99,7 @@ export class TaskGroup extends APIResource {
12199 * the stream. The stream will resume from the next event after the
122100 * `last_event_id`.
123101 *
124- * @example
125- * ```ts
126- * const response = await client.beta.taskGroup.getRuns(
127- * 'taskgroup_id',
128- * );
129- * ```
102+ * @deprecated Use GA Task Group instead
130103 */
131104 getRuns (
132105 taskGroupID : string ,
0 commit comments