@nimble-way/nimble-js 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +14 -31
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +14 -31
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +4 -21
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +4 -21
- package/resources/agent.mjs.map +1 -1
- package/resources/batches.d.mts +5 -5
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +5 -5
- package/resources/batches.d.ts.map +1 -1
- package/resources/crawl.d.mts +1 -0
- package/resources/crawl.d.mts.map +1 -1
- package/resources/crawl.d.ts +1 -0
- package/resources/crawl.d.ts.map +1 -1
- package/resources/fast-serp.d.mts +305 -0
- package/resources/fast-serp.d.mts.map +1 -1
- package/resources/fast-serp.d.ts +305 -0
- package/resources/fast-serp.d.ts.map +1 -1
- package/resources/fast-serp.js +13 -0
- package/resources/fast-serp.js.map +1 -1
- package/resources/fast-serp.mjs +13 -0
- package/resources/fast-serp.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/jobs.d.mts +36 -6
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +36 -6
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +12 -0
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +12 -0
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +17 -13
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +17 -13
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/artifacts.js +8 -0
- package/resources/jobs/runs/artifacts.js.map +1 -1
- package/resources/jobs/runs/artifacts.mjs +8 -0
- package/resources/jobs/runs/artifacts.mjs.map +1 -1
- package/resources/jobs/runs/runs.d.mts +12 -6
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +12 -6
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js +6 -0
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs +6 -0
- package/resources/jobs/runs/runs.mjs.map +1 -1
- package/resources/media.d.mts +5 -5
- package/resources/media.d.mts.map +1 -1
- package/resources/media.d.ts +5 -5
- package/resources/media.d.ts.map +1 -1
- package/resources/serp.d.mts +10 -10
- package/resources/serp.d.mts.map +1 -1
- package/resources/serp.d.ts +10 -10
- package/resources/serp.d.ts.map +1 -1
- package/resources/task-agent/index.d.mts +1 -1
- package/resources/task-agent/index.d.mts.map +1 -1
- package/resources/task-agent/index.d.ts +1 -1
- package/resources/task-agent/index.d.ts.map +1 -1
- package/resources/task-agent/index.js.map +1 -1
- package/resources/task-agent/index.mjs.map +1 -1
- package/resources/task-agent/runs.d.mts +440 -81
- package/resources/task-agent/runs.d.mts.map +1 -1
- package/resources/task-agent/runs.d.ts +440 -81
- package/resources/task-agent/runs.d.ts.map +1 -1
- package/resources/task-agent/runs.js +30 -17
- package/resources/task-agent/runs.js.map +1 -1
- package/resources/task-agent/runs.mjs +30 -17
- package/resources/task-agent/runs.mjs.map +1 -1
- package/resources/task-agent/task-agent.d.mts +641 -51
- package/resources/task-agent/task-agent.d.mts.map +1 -1
- package/resources/task-agent/task-agent.d.ts +641 -51
- package/resources/task-agent/task-agent.d.ts.map +1 -1
- package/resources/task-agent/task-agent.js +24 -14
- package/resources/task-agent/task-agent.js.map +1 -1
- package/resources/task-agent/task-agent.mjs +24 -14
- package/resources/task-agent/task-agent.mjs.map +1 -1
- package/resources/task-agent/templates.d.mts +175 -12
- package/resources/task-agent/templates.d.mts.map +1 -1
- package/resources/task-agent/templates.d.ts +175 -12
- package/resources/task-agent/templates.d.ts.map +1 -1
- package/resources/task-agent/templates.js +6 -2
- package/resources/task-agent/templates.js.map +1 -1
- package/resources/task-agent/templates.mjs +6 -2
- package/resources/task-agent/templates.mjs.map +1 -1
- package/resources/tasks.d.mts +10 -10
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +10 -10
- package/resources/tasks.d.ts.map +1 -1
- package/resources/top-level.d.mts +14 -16
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +14 -16
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +6 -2
- package/src/resources/agent.ts +15 -32
- package/src/resources/batches.ts +5 -5
- package/src/resources/crawl.ts +2 -0
- package/src/resources/fast-serp.ts +461 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/jobs/jobs.ts +36 -6
- package/src/resources/jobs/runs/artifacts.ts +17 -13
- package/src/resources/jobs/runs/runs.ts +12 -6
- package/src/resources/media.ts +5 -5
- package/src/resources/serp.ts +10 -10
- package/src/resources/task-agent/index.ts +0 -2
- package/src/resources/task-agent/runs.ts +461 -111
- package/src/resources/task-agent/task-agent.ts +652 -78
- package/src/resources/task-agent/templates.ts +178 -14
- package/src/resources/tasks.ts +10 -10
- package/src/resources/top-level.ts +18 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as RunsAPI from './runs';
|
|
5
5
|
import {
|
|
6
|
-
RunCancelParams,
|
|
7
6
|
RunGetParams,
|
|
8
7
|
RunGetResponse,
|
|
9
8
|
RunGetResultParams,
|
|
@@ -11,7 +10,6 @@ import {
|
|
|
11
10
|
RunListParams,
|
|
12
11
|
RunListResponse,
|
|
13
12
|
RunStreamEventsParams,
|
|
14
|
-
RunStreamEventsResponse,
|
|
15
13
|
Runs,
|
|
16
14
|
} from './runs';
|
|
17
15
|
import * as TemplatesAPI from './templates';
|
|
@@ -26,16 +24,20 @@ export class TaskAgent extends APIResource {
|
|
|
26
24
|
runs: RunsAPI.Runs = new RunsAPI.Runs(this._client);
|
|
27
25
|
|
|
28
26
|
/**
|
|
29
|
-
* Create a
|
|
30
|
-
*
|
|
27
|
+
* Create a Web Search Agent instance.
|
|
28
|
+
*
|
|
29
|
+
* `account_id` is JWT-derived and never read from the request body.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated
|
|
31
32
|
*/
|
|
32
33
|
create(body: TaskAgentCreateParams, options?: RequestOptions): APIPromise<TaskAgentCreateResponse> {
|
|
33
34
|
return this._client.post('/v1/task-agents', { body, ...options });
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
38
|
+
* Update Agent
|
|
39
|
+
*
|
|
40
|
+
* @deprecated
|
|
39
41
|
*/
|
|
40
42
|
update(
|
|
41
43
|
agentID: string,
|
|
@@ -43,16 +45,16 @@ export class TaskAgent extends APIResource {
|
|
|
43
45
|
options?: RequestOptions,
|
|
44
46
|
): APIPromise<TaskAgentUpdateResponse> {
|
|
45
47
|
const { body } = params;
|
|
46
|
-
return this._client.patch(path`/v1/task-agents/${agentID}`, {
|
|
47
|
-
body: body,
|
|
48
|
-
...options,
|
|
49
|
-
headers: buildHeaders([{ 'Content-Type': 'application/json-patch+json' }, options?.headers]),
|
|
50
|
-
});
|
|
48
|
+
return this._client.patch(path`/v1/task-agents/${agentID}`, { body: body, ...options });
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
|
-
* List
|
|
55
|
-
*
|
|
52
|
+
* List Web Search Agent instances.
|
|
53
|
+
*
|
|
54
|
+
* Callers are strictly scoped to their (account, workspace). If `workspace_id` is
|
|
55
|
+
* omitted, the user's default workspace is used.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated
|
|
56
58
|
*/
|
|
57
59
|
list(
|
|
58
60
|
query: TaskAgentListParams | null | undefined = {},
|
|
@@ -62,7 +64,9 @@ export class TaskAgent extends APIResource {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/**
|
|
65
|
-
* Deactivate
|
|
67
|
+
* Deactivate Agent
|
|
68
|
+
*
|
|
69
|
+
* @deprecated
|
|
66
70
|
*/
|
|
67
71
|
deactivate(agentID: string, options?: RequestOptions): APIPromise<void> {
|
|
68
72
|
return this._client.delete(path`/v1/task-agents/${agentID}`, {
|
|
@@ -72,14 +76,18 @@ export class TaskAgent extends APIResource {
|
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
/**
|
|
75
|
-
*
|
|
79
|
+
* Get Agent
|
|
80
|
+
*
|
|
81
|
+
* @deprecated
|
|
76
82
|
*/
|
|
77
83
|
get(agentID: string, options?: RequestOptions): APIPromise<TaskAgentGetResponse> {
|
|
78
84
|
return this._client.get(path`/v1/task-agents/${agentID}`, options);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
/**
|
|
82
|
-
* Create
|
|
88
|
+
* Create a research run for a Web Search Agent instance.
|
|
89
|
+
*
|
|
90
|
+
* @deprecated
|
|
83
91
|
*/
|
|
84
92
|
run(agentID: string, body: TaskAgentRunParams, options?: RequestOptions): APIPromise<TaskAgentRunResponse> {
|
|
85
93
|
return this._client.post(path`/v1/task-agents/${agentID}/runs`, { body, ...options });
|
|
@@ -87,365 +95,783 @@ export class TaskAgent extends APIResource {
|
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
export interface TaskAgentCreateResponse {
|
|
98
|
+
/**
|
|
99
|
+
* Unique web search agent identifier (wsa\_<uuid>).
|
|
100
|
+
*/
|
|
90
101
|
id: string;
|
|
91
102
|
|
|
103
|
+
/**
|
|
104
|
+
* When the agent was created.
|
|
105
|
+
*/
|
|
92
106
|
created_at: string;
|
|
93
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Agent description shown to users.
|
|
110
|
+
*/
|
|
94
111
|
description: string;
|
|
95
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Human-friendly agent name shown to users.
|
|
115
|
+
*/
|
|
96
116
|
display_name: string;
|
|
97
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Domain expertise or operating context for the agent.
|
|
120
|
+
*/
|
|
98
121
|
domain_expertise: string;
|
|
99
122
|
|
|
100
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Default effort level for this agent's runs.
|
|
125
|
+
*/
|
|
126
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
101
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Ordered goals for the agent to follow.
|
|
130
|
+
*/
|
|
102
131
|
goals: Array<TaskAgentCreateResponse.Goal>;
|
|
103
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Icon identifier used when presenting the agent.
|
|
135
|
+
*/
|
|
104
136
|
icon: string;
|
|
105
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Whether the agent can be used to start new runs.
|
|
140
|
+
*/
|
|
106
141
|
is_active: boolean;
|
|
107
142
|
|
|
143
|
+
/**
|
|
144
|
+
* JSON schema describing the structured output the agent should produce.
|
|
145
|
+
*/
|
|
108
146
|
output_schema: { [key: string]: unknown } | null;
|
|
109
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Source guidance for the agent.
|
|
150
|
+
*/
|
|
110
151
|
sources: TaskAgentCreateResponse.Sources;
|
|
111
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Suggested prompts users can run with this agent.
|
|
155
|
+
*/
|
|
112
156
|
suggested_questions: Array<TaskAgentCreateResponse.SuggestedQuestion>;
|
|
113
157
|
|
|
158
|
+
/**
|
|
159
|
+
* When the agent was last updated.
|
|
160
|
+
*/
|
|
114
161
|
updated_at: string;
|
|
115
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Primary use case supported by the agent.
|
|
165
|
+
*/
|
|
116
166
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
117
167
|
|
|
118
|
-
|
|
119
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Stable agent name.
|
|
170
|
+
*/
|
|
120
171
|
agent_name?: string | null;
|
|
121
|
-
|
|
122
|
-
workspace_id?: string | null;
|
|
123
|
-
|
|
124
|
-
workspace_name?: string | null;
|
|
125
172
|
}
|
|
126
173
|
|
|
127
174
|
export namespace TaskAgentCreateResponse {
|
|
128
175
|
export interface Goal {
|
|
176
|
+
/**
|
|
177
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
178
|
+
*/
|
|
129
179
|
id: string;
|
|
130
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Goal text.
|
|
183
|
+
*/
|
|
131
184
|
goal: string;
|
|
132
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Zero-based goal position.
|
|
188
|
+
*/
|
|
133
189
|
order: number;
|
|
134
190
|
}
|
|
135
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Source guidance for the agent.
|
|
194
|
+
*/
|
|
136
195
|
export interface Sources {
|
|
196
|
+
/**
|
|
197
|
+
* Source groups the agent is allowed to use.
|
|
198
|
+
*/
|
|
137
199
|
allow?: Array<Sources.Allow>;
|
|
138
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
203
|
+
*/
|
|
139
204
|
avoid?: string | null;
|
|
140
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Source groups the agent should not use.
|
|
208
|
+
*/
|
|
141
209
|
block?: Array<Sources.Block>;
|
|
142
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
213
|
+
*/
|
|
143
214
|
prioritize?: string | null;
|
|
144
215
|
}
|
|
145
216
|
|
|
146
217
|
export namespace Sources {
|
|
147
218
|
export interface Allow {
|
|
219
|
+
/**
|
|
220
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
221
|
+
*/
|
|
148
222
|
id: string;
|
|
149
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Domains included in this source group.
|
|
226
|
+
*/
|
|
150
227
|
domains: Array<string>;
|
|
151
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Zero-based source group position.
|
|
231
|
+
*/
|
|
152
232
|
order: number;
|
|
153
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Source group title.
|
|
236
|
+
*/
|
|
154
237
|
title: string;
|
|
155
238
|
}
|
|
156
239
|
|
|
157
240
|
export interface Block {
|
|
241
|
+
/**
|
|
242
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
243
|
+
*/
|
|
244
|
+
id: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Domains included in this source group.
|
|
248
|
+
*/
|
|
158
249
|
domains: Array<string>;
|
|
159
250
|
|
|
160
|
-
|
|
251
|
+
/**
|
|
252
|
+
* Zero-based source group position.
|
|
253
|
+
*/
|
|
254
|
+
order: number;
|
|
161
255
|
|
|
162
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Source group title.
|
|
258
|
+
*/
|
|
259
|
+
title: string;
|
|
163
260
|
}
|
|
164
261
|
}
|
|
165
262
|
|
|
166
263
|
export interface SuggestedQuestion {
|
|
264
|
+
/**
|
|
265
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
266
|
+
*/
|
|
167
267
|
id: string;
|
|
168
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Zero-based suggested question position.
|
|
271
|
+
*/
|
|
169
272
|
order: number;
|
|
170
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Suggested prompt text.
|
|
276
|
+
*/
|
|
171
277
|
question: string;
|
|
172
278
|
}
|
|
173
279
|
}
|
|
174
280
|
|
|
175
281
|
export interface TaskAgentUpdateResponse {
|
|
282
|
+
/**
|
|
283
|
+
* Unique web search agent identifier (wsa\_<uuid>).
|
|
284
|
+
*/
|
|
176
285
|
id: string;
|
|
177
286
|
|
|
287
|
+
/**
|
|
288
|
+
* When the agent was created.
|
|
289
|
+
*/
|
|
178
290
|
created_at: string;
|
|
179
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Agent description shown to users.
|
|
294
|
+
*/
|
|
180
295
|
description: string;
|
|
181
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Human-friendly agent name shown to users.
|
|
299
|
+
*/
|
|
182
300
|
display_name: string;
|
|
183
301
|
|
|
302
|
+
/**
|
|
303
|
+
* Domain expertise or operating context for the agent.
|
|
304
|
+
*/
|
|
184
305
|
domain_expertise: string;
|
|
185
306
|
|
|
186
|
-
|
|
307
|
+
/**
|
|
308
|
+
* Default effort level for this agent's runs.
|
|
309
|
+
*/
|
|
310
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
187
311
|
|
|
312
|
+
/**
|
|
313
|
+
* Ordered goals for the agent to follow.
|
|
314
|
+
*/
|
|
188
315
|
goals: Array<TaskAgentUpdateResponse.Goal>;
|
|
189
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Icon identifier used when presenting the agent.
|
|
319
|
+
*/
|
|
190
320
|
icon: string;
|
|
191
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Whether the agent can be used to start new runs.
|
|
324
|
+
*/
|
|
192
325
|
is_active: boolean;
|
|
193
326
|
|
|
327
|
+
/**
|
|
328
|
+
* JSON schema describing the structured output the agent should produce.
|
|
329
|
+
*/
|
|
194
330
|
output_schema: { [key: string]: unknown } | null;
|
|
195
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Source guidance for the agent.
|
|
334
|
+
*/
|
|
196
335
|
sources: TaskAgentUpdateResponse.Sources;
|
|
197
336
|
|
|
337
|
+
/**
|
|
338
|
+
* Suggested prompts users can run with this agent.
|
|
339
|
+
*/
|
|
198
340
|
suggested_questions: Array<TaskAgentUpdateResponse.SuggestedQuestion>;
|
|
199
341
|
|
|
342
|
+
/**
|
|
343
|
+
* When the agent was last updated.
|
|
344
|
+
*/
|
|
200
345
|
updated_at: string;
|
|
201
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Primary use case supported by the agent.
|
|
349
|
+
*/
|
|
202
350
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
203
351
|
|
|
204
|
-
|
|
205
|
-
|
|
352
|
+
/**
|
|
353
|
+
* Stable agent name.
|
|
354
|
+
*/
|
|
206
355
|
agent_name?: string | null;
|
|
207
|
-
|
|
208
|
-
workspace_id?: string | null;
|
|
209
|
-
|
|
210
|
-
workspace_name?: string | null;
|
|
211
356
|
}
|
|
212
357
|
|
|
213
358
|
export namespace TaskAgentUpdateResponse {
|
|
214
359
|
export interface Goal {
|
|
360
|
+
/**
|
|
361
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
362
|
+
*/
|
|
215
363
|
id: string;
|
|
216
364
|
|
|
365
|
+
/**
|
|
366
|
+
* Goal text.
|
|
367
|
+
*/
|
|
217
368
|
goal: string;
|
|
218
369
|
|
|
370
|
+
/**
|
|
371
|
+
* Zero-based goal position.
|
|
372
|
+
*/
|
|
219
373
|
order: number;
|
|
220
374
|
}
|
|
221
375
|
|
|
376
|
+
/**
|
|
377
|
+
* Source guidance for the agent.
|
|
378
|
+
*/
|
|
222
379
|
export interface Sources {
|
|
380
|
+
/**
|
|
381
|
+
* Source groups the agent is allowed to use.
|
|
382
|
+
*/
|
|
223
383
|
allow?: Array<Sources.Allow>;
|
|
224
384
|
|
|
385
|
+
/**
|
|
386
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
387
|
+
*/
|
|
225
388
|
avoid?: string | null;
|
|
226
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Source groups the agent should not use.
|
|
392
|
+
*/
|
|
227
393
|
block?: Array<Sources.Block>;
|
|
228
394
|
|
|
395
|
+
/**
|
|
396
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
397
|
+
*/
|
|
229
398
|
prioritize?: string | null;
|
|
230
399
|
}
|
|
231
400
|
|
|
232
401
|
export namespace Sources {
|
|
233
402
|
export interface Allow {
|
|
403
|
+
/**
|
|
404
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
405
|
+
*/
|
|
234
406
|
id: string;
|
|
235
407
|
|
|
408
|
+
/**
|
|
409
|
+
* Domains included in this source group.
|
|
410
|
+
*/
|
|
236
411
|
domains: Array<string>;
|
|
237
412
|
|
|
413
|
+
/**
|
|
414
|
+
* Zero-based source group position.
|
|
415
|
+
*/
|
|
238
416
|
order: number;
|
|
239
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Source group title.
|
|
420
|
+
*/
|
|
240
421
|
title: string;
|
|
241
422
|
}
|
|
242
423
|
|
|
243
424
|
export interface Block {
|
|
425
|
+
/**
|
|
426
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
427
|
+
*/
|
|
428
|
+
id: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Domains included in this source group.
|
|
432
|
+
*/
|
|
244
433
|
domains: Array<string>;
|
|
245
434
|
|
|
246
|
-
|
|
435
|
+
/**
|
|
436
|
+
* Zero-based source group position.
|
|
437
|
+
*/
|
|
438
|
+
order: number;
|
|
247
439
|
|
|
248
|
-
|
|
440
|
+
/**
|
|
441
|
+
* Source group title.
|
|
442
|
+
*/
|
|
443
|
+
title: string;
|
|
249
444
|
}
|
|
250
445
|
}
|
|
251
446
|
|
|
252
447
|
export interface SuggestedQuestion {
|
|
448
|
+
/**
|
|
449
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
450
|
+
*/
|
|
253
451
|
id: string;
|
|
254
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Zero-based suggested question position.
|
|
455
|
+
*/
|
|
255
456
|
order: number;
|
|
256
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Suggested prompt text.
|
|
460
|
+
*/
|
|
257
461
|
question: string;
|
|
258
462
|
}
|
|
259
463
|
}
|
|
260
464
|
|
|
261
|
-
export
|
|
465
|
+
export interface TaskAgentListResponse {
|
|
466
|
+
/**
|
|
467
|
+
* Items returned in this page.
|
|
468
|
+
*/
|
|
469
|
+
items: Array<TaskAgentListResponse.Item>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Maximum number of items returned.
|
|
473
|
+
*/
|
|
474
|
+
limit: number;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Number of items skipped before this page.
|
|
478
|
+
*/
|
|
479
|
+
offset: number;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Total number of items matching the query.
|
|
483
|
+
*/
|
|
484
|
+
total: number;
|
|
485
|
+
}
|
|
262
486
|
|
|
263
487
|
export namespace TaskAgentListResponse {
|
|
264
|
-
export interface
|
|
488
|
+
export interface Item {
|
|
489
|
+
/**
|
|
490
|
+
* Unique web search agent identifier (wsa\_<uuid>).
|
|
491
|
+
*/
|
|
265
492
|
id: string;
|
|
266
493
|
|
|
494
|
+
/**
|
|
495
|
+
* When the agent was created.
|
|
496
|
+
*/
|
|
267
497
|
created_at: string;
|
|
268
498
|
|
|
499
|
+
/**
|
|
500
|
+
* Agent description shown to users.
|
|
501
|
+
*/
|
|
269
502
|
description: string;
|
|
270
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Human-friendly agent name shown to users.
|
|
506
|
+
*/
|
|
271
507
|
display_name: string;
|
|
272
508
|
|
|
509
|
+
/**
|
|
510
|
+
* Domain expertise or operating context for the agent.
|
|
511
|
+
*/
|
|
273
512
|
domain_expertise: string;
|
|
274
513
|
|
|
275
|
-
|
|
514
|
+
/**
|
|
515
|
+
* Default effort level for this agent's runs.
|
|
516
|
+
*/
|
|
517
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
276
518
|
|
|
277
|
-
|
|
519
|
+
/**
|
|
520
|
+
* Ordered goals for the agent to follow.
|
|
521
|
+
*/
|
|
522
|
+
goals: Array<Item.Goal>;
|
|
278
523
|
|
|
524
|
+
/**
|
|
525
|
+
* Icon identifier used when presenting the agent.
|
|
526
|
+
*/
|
|
279
527
|
icon: string;
|
|
280
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Whether the agent can be used to start new runs.
|
|
531
|
+
*/
|
|
281
532
|
is_active: boolean;
|
|
282
533
|
|
|
534
|
+
/**
|
|
535
|
+
* JSON schema describing the structured output the agent should produce.
|
|
536
|
+
*/
|
|
283
537
|
output_schema: { [key: string]: unknown } | null;
|
|
284
538
|
|
|
285
|
-
|
|
539
|
+
/**
|
|
540
|
+
* Source guidance for the agent.
|
|
541
|
+
*/
|
|
542
|
+
sources: Item.Sources;
|
|
286
543
|
|
|
287
|
-
|
|
544
|
+
/**
|
|
545
|
+
* Suggested prompts users can run with this agent.
|
|
546
|
+
*/
|
|
547
|
+
suggested_questions: Array<Item.SuggestedQuestion>;
|
|
288
548
|
|
|
549
|
+
/**
|
|
550
|
+
* When the agent was last updated.
|
|
551
|
+
*/
|
|
289
552
|
updated_at: string;
|
|
290
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Primary use case supported by the agent.
|
|
556
|
+
*/
|
|
291
557
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
292
558
|
|
|
293
|
-
|
|
294
|
-
|
|
559
|
+
/**
|
|
560
|
+
* Stable agent name.
|
|
561
|
+
*/
|
|
295
562
|
agent_name?: string | null;
|
|
296
|
-
|
|
297
|
-
workspace_id?: string | null;
|
|
298
|
-
|
|
299
|
-
workspace_name?: string | null;
|
|
300
563
|
}
|
|
301
564
|
|
|
302
|
-
export namespace
|
|
565
|
+
export namespace Item {
|
|
303
566
|
export interface Goal {
|
|
567
|
+
/**
|
|
568
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
569
|
+
*/
|
|
304
570
|
id: string;
|
|
305
571
|
|
|
572
|
+
/**
|
|
573
|
+
* Goal text.
|
|
574
|
+
*/
|
|
306
575
|
goal: string;
|
|
307
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Zero-based goal position.
|
|
579
|
+
*/
|
|
308
580
|
order: number;
|
|
309
581
|
}
|
|
310
582
|
|
|
583
|
+
/**
|
|
584
|
+
* Source guidance for the agent.
|
|
585
|
+
*/
|
|
311
586
|
export interface Sources {
|
|
587
|
+
/**
|
|
588
|
+
* Source groups the agent is allowed to use.
|
|
589
|
+
*/
|
|
312
590
|
allow?: Array<Sources.Allow>;
|
|
313
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
594
|
+
*/
|
|
314
595
|
avoid?: string | null;
|
|
315
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Source groups the agent should not use.
|
|
599
|
+
*/
|
|
316
600
|
block?: Array<Sources.Block>;
|
|
317
601
|
|
|
602
|
+
/**
|
|
603
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
604
|
+
*/
|
|
318
605
|
prioritize?: string | null;
|
|
319
606
|
}
|
|
320
607
|
|
|
321
608
|
export namespace Sources {
|
|
322
609
|
export interface Allow {
|
|
610
|
+
/**
|
|
611
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
612
|
+
*/
|
|
323
613
|
id: string;
|
|
324
614
|
|
|
615
|
+
/**
|
|
616
|
+
* Domains included in this source group.
|
|
617
|
+
*/
|
|
325
618
|
domains: Array<string>;
|
|
326
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Zero-based source group position.
|
|
622
|
+
*/
|
|
327
623
|
order: number;
|
|
328
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Source group title.
|
|
627
|
+
*/
|
|
329
628
|
title: string;
|
|
330
629
|
}
|
|
331
630
|
|
|
332
631
|
export interface Block {
|
|
632
|
+
/**
|
|
633
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
634
|
+
*/
|
|
635
|
+
id: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Domains included in this source group.
|
|
639
|
+
*/
|
|
333
640
|
domains: Array<string>;
|
|
334
641
|
|
|
335
|
-
|
|
642
|
+
/**
|
|
643
|
+
* Zero-based source group position.
|
|
644
|
+
*/
|
|
645
|
+
order: number;
|
|
336
646
|
|
|
337
|
-
|
|
647
|
+
/**
|
|
648
|
+
* Source group title.
|
|
649
|
+
*/
|
|
650
|
+
title: string;
|
|
338
651
|
}
|
|
339
652
|
}
|
|
340
653
|
|
|
341
654
|
export interface SuggestedQuestion {
|
|
655
|
+
/**
|
|
656
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
657
|
+
*/
|
|
342
658
|
id: string;
|
|
343
659
|
|
|
660
|
+
/**
|
|
661
|
+
* Zero-based suggested question position.
|
|
662
|
+
*/
|
|
344
663
|
order: number;
|
|
345
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Suggested prompt text.
|
|
667
|
+
*/
|
|
346
668
|
question: string;
|
|
347
669
|
}
|
|
348
670
|
}
|
|
349
671
|
}
|
|
350
672
|
|
|
351
673
|
export interface TaskAgentGetResponse {
|
|
674
|
+
/**
|
|
675
|
+
* Unique web search agent identifier (wsa\_<uuid>).
|
|
676
|
+
*/
|
|
352
677
|
id: string;
|
|
353
678
|
|
|
679
|
+
/**
|
|
680
|
+
* When the agent was created.
|
|
681
|
+
*/
|
|
354
682
|
created_at: string;
|
|
355
683
|
|
|
684
|
+
/**
|
|
685
|
+
* Agent description shown to users.
|
|
686
|
+
*/
|
|
356
687
|
description: string;
|
|
357
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Human-friendly agent name shown to users.
|
|
691
|
+
*/
|
|
358
692
|
display_name: string;
|
|
359
693
|
|
|
694
|
+
/**
|
|
695
|
+
* Domain expertise or operating context for the agent.
|
|
696
|
+
*/
|
|
360
697
|
domain_expertise: string;
|
|
361
698
|
|
|
362
|
-
|
|
699
|
+
/**
|
|
700
|
+
* Default effort level for this agent's runs.
|
|
701
|
+
*/
|
|
702
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
363
703
|
|
|
704
|
+
/**
|
|
705
|
+
* Ordered goals for the agent to follow.
|
|
706
|
+
*/
|
|
364
707
|
goals: Array<TaskAgentGetResponse.Goal>;
|
|
365
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Icon identifier used when presenting the agent.
|
|
711
|
+
*/
|
|
366
712
|
icon: string;
|
|
367
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Whether the agent can be used to start new runs.
|
|
716
|
+
*/
|
|
368
717
|
is_active: boolean;
|
|
369
718
|
|
|
719
|
+
/**
|
|
720
|
+
* JSON schema describing the structured output the agent should produce.
|
|
721
|
+
*/
|
|
370
722
|
output_schema: { [key: string]: unknown } | null;
|
|
371
723
|
|
|
724
|
+
/**
|
|
725
|
+
* Source guidance for the agent.
|
|
726
|
+
*/
|
|
372
727
|
sources: TaskAgentGetResponse.Sources;
|
|
373
728
|
|
|
729
|
+
/**
|
|
730
|
+
* Suggested prompts users can run with this agent.
|
|
731
|
+
*/
|
|
374
732
|
suggested_questions: Array<TaskAgentGetResponse.SuggestedQuestion>;
|
|
375
733
|
|
|
734
|
+
/**
|
|
735
|
+
* When the agent was last updated.
|
|
736
|
+
*/
|
|
376
737
|
updated_at: string;
|
|
377
738
|
|
|
739
|
+
/**
|
|
740
|
+
* Primary use case supported by the agent.
|
|
741
|
+
*/
|
|
378
742
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
379
743
|
|
|
380
|
-
|
|
381
|
-
|
|
744
|
+
/**
|
|
745
|
+
* Stable agent name.
|
|
746
|
+
*/
|
|
382
747
|
agent_name?: string | null;
|
|
383
|
-
|
|
384
|
-
workspace_id?: string | null;
|
|
385
|
-
|
|
386
|
-
workspace_name?: string | null;
|
|
387
748
|
}
|
|
388
749
|
|
|
389
750
|
export namespace TaskAgentGetResponse {
|
|
390
751
|
export interface Goal {
|
|
752
|
+
/**
|
|
753
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
754
|
+
*/
|
|
391
755
|
id: string;
|
|
392
756
|
|
|
757
|
+
/**
|
|
758
|
+
* Goal text.
|
|
759
|
+
*/
|
|
393
760
|
goal: string;
|
|
394
761
|
|
|
762
|
+
/**
|
|
763
|
+
* Zero-based goal position.
|
|
764
|
+
*/
|
|
395
765
|
order: number;
|
|
396
766
|
}
|
|
397
767
|
|
|
768
|
+
/**
|
|
769
|
+
* Source guidance for the agent.
|
|
770
|
+
*/
|
|
398
771
|
export interface Sources {
|
|
772
|
+
/**
|
|
773
|
+
* Source groups the agent is allowed to use.
|
|
774
|
+
*/
|
|
399
775
|
allow?: Array<Sources.Allow>;
|
|
400
776
|
|
|
777
|
+
/**
|
|
778
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
779
|
+
*/
|
|
401
780
|
avoid?: string | null;
|
|
402
781
|
|
|
782
|
+
/**
|
|
783
|
+
* Source groups the agent should not use.
|
|
784
|
+
*/
|
|
403
785
|
block?: Array<Sources.Block>;
|
|
404
786
|
|
|
787
|
+
/**
|
|
788
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
789
|
+
*/
|
|
405
790
|
prioritize?: string | null;
|
|
406
791
|
}
|
|
407
792
|
|
|
408
793
|
export namespace Sources {
|
|
409
794
|
export interface Allow {
|
|
795
|
+
/**
|
|
796
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
797
|
+
*/
|
|
410
798
|
id: string;
|
|
411
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Domains included in this source group.
|
|
802
|
+
*/
|
|
412
803
|
domains: Array<string>;
|
|
413
804
|
|
|
805
|
+
/**
|
|
806
|
+
* Zero-based source group position.
|
|
807
|
+
*/
|
|
414
808
|
order: number;
|
|
415
809
|
|
|
810
|
+
/**
|
|
811
|
+
* Source group title.
|
|
812
|
+
*/
|
|
416
813
|
title: string;
|
|
417
814
|
}
|
|
418
815
|
|
|
419
816
|
export interface Block {
|
|
817
|
+
/**
|
|
818
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
819
|
+
*/
|
|
820
|
+
id: string;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Domains included in this source group.
|
|
824
|
+
*/
|
|
420
825
|
domains: Array<string>;
|
|
421
826
|
|
|
422
|
-
|
|
827
|
+
/**
|
|
828
|
+
* Zero-based source group position.
|
|
829
|
+
*/
|
|
830
|
+
order: number;
|
|
423
831
|
|
|
424
|
-
|
|
832
|
+
/**
|
|
833
|
+
* Source group title.
|
|
834
|
+
*/
|
|
835
|
+
title: string;
|
|
425
836
|
}
|
|
426
837
|
}
|
|
427
838
|
|
|
428
839
|
export interface SuggestedQuestion {
|
|
840
|
+
/**
|
|
841
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
842
|
+
*/
|
|
429
843
|
id: string;
|
|
430
844
|
|
|
845
|
+
/**
|
|
846
|
+
* Zero-based suggested question position.
|
|
847
|
+
*/
|
|
431
848
|
order: number;
|
|
432
849
|
|
|
850
|
+
/**
|
|
851
|
+
* Suggested prompt text.
|
|
852
|
+
*/
|
|
433
853
|
question: string;
|
|
434
854
|
}
|
|
435
855
|
}
|
|
436
856
|
|
|
437
857
|
export interface TaskAgentRunResponse {
|
|
438
858
|
/**
|
|
439
|
-
* Run identifier.
|
|
859
|
+
* Run identifier, format "task*run*{uuid}".
|
|
440
860
|
*/
|
|
441
861
|
id: string;
|
|
442
862
|
|
|
863
|
+
/**
|
|
864
|
+
* When the run was created.
|
|
865
|
+
*/
|
|
443
866
|
created_at: string;
|
|
444
867
|
|
|
445
|
-
|
|
868
|
+
/**
|
|
869
|
+
* Effort level used for the run.
|
|
870
|
+
*/
|
|
871
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
446
872
|
|
|
447
873
|
/**
|
|
448
|
-
* Interaction ID
|
|
874
|
+
* Interaction ID.
|
|
449
875
|
*/
|
|
450
876
|
interaction_id: string;
|
|
451
877
|
|
|
@@ -454,25 +880,41 @@ export interface TaskAgentRunResponse {
|
|
|
454
880
|
*/
|
|
455
881
|
is_active: boolean;
|
|
456
882
|
|
|
883
|
+
/**
|
|
884
|
+
* Current run status.
|
|
885
|
+
*/
|
|
457
886
|
status: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
458
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Web Search Agent instance this run belongs to.
|
|
890
|
+
*/
|
|
891
|
+
web_search_agent_id: string;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* When the run completed.
|
|
895
|
+
*/
|
|
459
896
|
completed_at?: string | null;
|
|
460
897
|
|
|
898
|
+
/**
|
|
899
|
+
* Error details when the run failed.
|
|
900
|
+
*/
|
|
461
901
|
error?: TaskAgentRunResponse.Error | null;
|
|
462
902
|
|
|
903
|
+
/**
|
|
904
|
+
* Prompt submitted for the run.
|
|
905
|
+
*/
|
|
463
906
|
prompt?: string | null;
|
|
464
907
|
|
|
465
|
-
started_at?: string | null;
|
|
466
|
-
|
|
467
908
|
/**
|
|
468
|
-
*
|
|
909
|
+
* When the run started executing.
|
|
469
910
|
*/
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
workspace_id?: string | null;
|
|
911
|
+
started_at?: string | null;
|
|
473
912
|
}
|
|
474
913
|
|
|
475
914
|
export namespace TaskAgentRunResponse {
|
|
915
|
+
/**
|
|
916
|
+
* Error details when the run failed.
|
|
917
|
+
*/
|
|
476
918
|
export interface Error {
|
|
477
919
|
/**
|
|
478
920
|
* Human-readable error description.
|
|
@@ -487,128 +929,262 @@ export namespace TaskAgentRunResponse {
|
|
|
487
929
|
}
|
|
488
930
|
|
|
489
931
|
export interface TaskAgentCreateParams {
|
|
932
|
+
/**
|
|
933
|
+
* Stable agent name.
|
|
934
|
+
*/
|
|
490
935
|
agent_name?: string | null;
|
|
491
936
|
|
|
937
|
+
/**
|
|
938
|
+
* Agent description shown to users.
|
|
939
|
+
*/
|
|
492
940
|
description?: string | null;
|
|
493
941
|
|
|
942
|
+
/**
|
|
943
|
+
* Human-friendly agent name shown to users.
|
|
944
|
+
*/
|
|
494
945
|
display_name?: string | null;
|
|
495
946
|
|
|
947
|
+
/**
|
|
948
|
+
* Domain expertise or operating context for the agent.
|
|
949
|
+
*/
|
|
496
950
|
domain_expertise?: string | null;
|
|
497
951
|
|
|
498
|
-
|
|
952
|
+
/**
|
|
953
|
+
* Default effort level for this agent's runs.
|
|
954
|
+
*/
|
|
955
|
+
effort?: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
499
956
|
|
|
957
|
+
/**
|
|
958
|
+
* Ordered goals for the agent to follow.
|
|
959
|
+
*/
|
|
500
960
|
goals?: Array<string>;
|
|
501
961
|
|
|
962
|
+
/**
|
|
963
|
+
* Icon identifier used when presenting the agent.
|
|
964
|
+
*/
|
|
502
965
|
icon?: string | null;
|
|
503
966
|
|
|
967
|
+
/**
|
|
968
|
+
* Whether the agent can be used to start new runs.
|
|
969
|
+
*/
|
|
504
970
|
is_active?: boolean;
|
|
505
971
|
|
|
972
|
+
/**
|
|
973
|
+
* JSON schema describing the structured output the agent should produce.
|
|
974
|
+
*/
|
|
506
975
|
output_schema?: { [key: string]: unknown } | null;
|
|
507
976
|
|
|
977
|
+
/**
|
|
978
|
+
* Source guidance for the agent.
|
|
979
|
+
*/
|
|
508
980
|
sources?: TaskAgentCreateParams.Sources;
|
|
509
981
|
|
|
982
|
+
/**
|
|
983
|
+
* Suggested prompts users can run with this agent.
|
|
984
|
+
*/
|
|
510
985
|
suggested_questions?: Array<string>;
|
|
511
986
|
|
|
512
987
|
/**
|
|
513
|
-
* Template name to
|
|
988
|
+
* Template name to materialize this instance from. When set, the scalar fields and
|
|
514
989
|
* child rows are copied from the template.
|
|
515
990
|
*/
|
|
516
991
|
template?: string | null;
|
|
517
992
|
|
|
993
|
+
/**
|
|
994
|
+
* Primary use case supported by the agent.
|
|
995
|
+
*/
|
|
518
996
|
use_case?: 'research' | 'enrichment' | 'dataset_building' | null;
|
|
519
|
-
|
|
520
|
-
workspace_id?: string | null;
|
|
521
997
|
}
|
|
522
998
|
|
|
523
999
|
export namespace TaskAgentCreateParams {
|
|
1000
|
+
/**
|
|
1001
|
+
* Source guidance for the agent.
|
|
1002
|
+
*/
|
|
524
1003
|
export interface Sources {
|
|
1004
|
+
/**
|
|
1005
|
+
* Source groups the agent is allowed to use.
|
|
1006
|
+
*/
|
|
525
1007
|
allow?: Array<Sources.Allow>;
|
|
526
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
1011
|
+
*/
|
|
527
1012
|
avoid?: string | null;
|
|
528
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Source groups the agent should not use.
|
|
1016
|
+
*/
|
|
529
1017
|
block?: Array<Sources.Block>;
|
|
530
1018
|
|
|
1019
|
+
/**
|
|
1020
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
1021
|
+
*/
|
|
531
1022
|
prioritize?: string | null;
|
|
532
1023
|
}
|
|
533
1024
|
|
|
534
1025
|
export namespace Sources {
|
|
535
1026
|
export interface Allow {
|
|
1027
|
+
/**
|
|
1028
|
+
* Domains included in this source group.
|
|
1029
|
+
*/
|
|
536
1030
|
domains: Array<string>;
|
|
537
1031
|
|
|
1032
|
+
/**
|
|
1033
|
+
* Source group title.
|
|
1034
|
+
*/
|
|
538
1035
|
title: string;
|
|
539
1036
|
|
|
1037
|
+
/**
|
|
1038
|
+
* Zero-based source group position.
|
|
1039
|
+
*/
|
|
540
1040
|
order?: number;
|
|
541
1041
|
}
|
|
542
1042
|
|
|
543
1043
|
export interface Block {
|
|
1044
|
+
/**
|
|
1045
|
+
* Domains included in this source group.
|
|
1046
|
+
*/
|
|
544
1047
|
domains: Array<string>;
|
|
545
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* Source group title.
|
|
1051
|
+
*/
|
|
546
1052
|
title: string;
|
|
547
1053
|
|
|
1054
|
+
/**
|
|
1055
|
+
* Zero-based source group position.
|
|
1056
|
+
*/
|
|
548
1057
|
order?: number;
|
|
549
1058
|
}
|
|
550
1059
|
}
|
|
551
1060
|
}
|
|
552
1061
|
|
|
553
1062
|
export interface TaskAgentUpdateParams {
|
|
1063
|
+
/**
|
|
1064
|
+
* A JSON Patch document per RFC 6902 — a JSON array of patch operations.
|
|
1065
|
+
*/
|
|
554
1066
|
body: Array<TaskAgentUpdateParams.Body>;
|
|
555
1067
|
}
|
|
556
1068
|
|
|
557
1069
|
export namespace TaskAgentUpdateParams {
|
|
1070
|
+
/**
|
|
1071
|
+
* A single JSON Patch operation per RFC 6902.
|
|
1072
|
+
*/
|
|
558
1073
|
export interface Body {
|
|
559
|
-
op: 'replace';
|
|
1074
|
+
op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
560
1075
|
|
|
561
1076
|
path: string;
|
|
562
1077
|
|
|
563
|
-
|
|
1078
|
+
from?: string | null;
|
|
1079
|
+
|
|
1080
|
+
value?: unknown;
|
|
564
1081
|
}
|
|
565
1082
|
}
|
|
566
1083
|
|
|
567
1084
|
export interface TaskAgentListParams {
|
|
568
|
-
effort?: string | null;
|
|
569
|
-
|
|
570
1085
|
limit?: number;
|
|
571
1086
|
|
|
572
1087
|
offset?: number;
|
|
573
1088
|
|
|
574
|
-
|
|
1089
|
+
workspace_id?: string | null;
|
|
575
1090
|
}
|
|
576
1091
|
|
|
577
1092
|
export interface TaskAgentRunParams {
|
|
1093
|
+
/**
|
|
1094
|
+
* User prompt or task instructions for the run.
|
|
1095
|
+
*/
|
|
578
1096
|
input: string;
|
|
579
1097
|
|
|
1098
|
+
/**
|
|
1099
|
+
* Canonical effort tier names for the research graph.
|
|
1100
|
+
*/
|
|
1101
|
+
effort?: 'low' | 'medium' | 'high' | 'x-high' | 'max' | null;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Whether to stream run events when supported.
|
|
1105
|
+
*/
|
|
580
1106
|
enable_events?: boolean;
|
|
581
1107
|
|
|
1108
|
+
/**
|
|
1109
|
+
* Existing records to ENRICH: a list of partial rows, or a single object,
|
|
1110
|
+
* mirroring output_schema's shape.
|
|
1111
|
+
*/
|
|
1112
|
+
input_data?: Array<{ [key: string]: unknown }> | { [key: string]: unknown } | null;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* JSON schema overriding the agent's default structured output for this run.
|
|
1116
|
+
*/
|
|
582
1117
|
output_schema?: { [key: string]: unknown } | null;
|
|
583
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* Previous interaction identifier used to continue a conversation.
|
|
1121
|
+
*/
|
|
1122
|
+
previous_interaction_id?: string | null;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Source guidance overriding the agent default.
|
|
1126
|
+
*/
|
|
584
1127
|
sources?: TaskAgentRunParams.Sources | null;
|
|
585
1128
|
}
|
|
586
1129
|
|
|
587
1130
|
export namespace TaskAgentRunParams {
|
|
1131
|
+
/**
|
|
1132
|
+
* Source guidance overriding the agent default.
|
|
1133
|
+
*/
|
|
588
1134
|
export interface Sources {
|
|
1135
|
+
/**
|
|
1136
|
+
* Source groups the agent is allowed to use.
|
|
1137
|
+
*/
|
|
589
1138
|
allow?: Array<Sources.Allow>;
|
|
590
1139
|
|
|
1140
|
+
/**
|
|
1141
|
+
* Free-text guidance describing sources or domains to avoid.
|
|
1142
|
+
*/
|
|
591
1143
|
avoid?: string | null;
|
|
592
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* Source groups the agent should not use.
|
|
1147
|
+
*/
|
|
593
1148
|
block?: Array<Sources.Block>;
|
|
594
1149
|
|
|
1150
|
+
/**
|
|
1151
|
+
* Free-text guidance describing sources or domains to prioritize.
|
|
1152
|
+
*/
|
|
595
1153
|
prioritize?: string | null;
|
|
596
1154
|
}
|
|
597
1155
|
|
|
598
1156
|
export namespace Sources {
|
|
599
1157
|
export interface Allow {
|
|
1158
|
+
/**
|
|
1159
|
+
* Domains included in this source group.
|
|
1160
|
+
*/
|
|
600
1161
|
domains: Array<string>;
|
|
601
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* Source group title.
|
|
1165
|
+
*/
|
|
602
1166
|
title: string;
|
|
603
1167
|
|
|
1168
|
+
/**
|
|
1169
|
+
* Zero-based source group position.
|
|
1170
|
+
*/
|
|
604
1171
|
order?: number;
|
|
605
1172
|
}
|
|
606
1173
|
|
|
607
1174
|
export interface Block {
|
|
1175
|
+
/**
|
|
1176
|
+
* Domains included in this source group.
|
|
1177
|
+
*/
|
|
608
1178
|
domains: Array<string>;
|
|
609
1179
|
|
|
1180
|
+
/**
|
|
1181
|
+
* Source group title.
|
|
1182
|
+
*/
|
|
610
1183
|
title: string;
|
|
611
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* Zero-based source group position.
|
|
1187
|
+
*/
|
|
612
1188
|
order?: number;
|
|
613
1189
|
}
|
|
614
1190
|
}
|
|
@@ -642,9 +1218,7 @@ export declare namespace TaskAgent {
|
|
|
642
1218
|
type RunListResponse as RunListResponse,
|
|
643
1219
|
type RunGetResponse as RunGetResponse,
|
|
644
1220
|
type RunGetResultResponse as RunGetResultResponse,
|
|
645
|
-
type RunStreamEventsResponse as RunStreamEventsResponse,
|
|
646
1221
|
type RunListParams as RunListParams,
|
|
647
|
-
type RunCancelParams as RunCancelParams,
|
|
648
1222
|
type RunGetParams as RunGetParams,
|
|
649
1223
|
type RunGetResultParams as RunGetResultParams,
|
|
650
1224
|
type RunStreamEventsParams as RunStreamEventsParams,
|