@orq-ai/node 4.0.0-rc.51 → 4.0.0-rc.53
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/README.md +3 -4
- package/bin/mcp-server.js +6167 -1952
- package/bin/mcp-server.js.map +55 -56
- package/docs/sdks/agents/README.md +120 -82
- package/examples/package-lock.json +1 -1
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +1 -1
- package/funcs/agentsListTasks.d.ts.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieveTask.d.ts +1 -1
- package/funcs/agentsRetrieveTask.d.ts.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStream.js +2 -0
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +2 -0
- package/funcs/agentsStreamRun.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagent.d.ts +17 -7
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +12 -4
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +70 -70
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +162 -169
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.d.ts +25 -25
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +41 -41
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +6 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -9
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +5 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +4 -0
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +682 -108
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +635 -155
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.d.ts +34 -34
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +74 -79
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/invokeagent.d.ts +143 -123
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -146
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +5 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +680 -118
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +612 -144
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +6 -6
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +9 -9
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +6 -6
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +12 -11
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +112 -98
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +120 -121
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +2725 -167
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +2948 -17
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +3274 -722
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +2948 -24
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +28 -15
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +25 -15
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +10 -10
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +4 -4
- package/src/funcs/agentsListTasks.ts +4 -4
- package/src/funcs/agentsRetrieveTask.ts +8 -8
- package/src/funcs/agentsRun.ts +4 -4
- package/src/funcs/agentsStream.ts +1 -0
- package/src/funcs/agentsStreamRun.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createagent.ts +31 -13
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +368 -294
- package/src/models/operations/createtool.ts +76 -76
- package/src/models/operations/deploymentinvoke.ts +17 -24
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +9 -0
- package/src/models/operations/getagenttask.ts +1873 -428
- package/src/models/operations/getalltools.ts +277 -231
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/invokeagent.ts +319 -299
- package/src/models/operations/listagents.ts +9 -0
- package/src/models/operations/listagenttasks.ts +2029 -540
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +14 -14
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +15 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +264 -220
- package/src/models/operations/streamagent.ts +7635 -414
- package/src/models/operations/streamrunagent.ts +10745 -3582
- package/src/models/operations/updateagent.ts +56 -31
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +20 -20
- package/models/errors/getagenttask.d.ts +0 -29
- package/models/errors/getagenttask.d.ts.map +0 -1
- package/models/errors/getagenttask.js +0 -74
- package/models/errors/getagenttask.js.map +0 -1
- package/src/models/errors/getagenttask.ts +0 -67
|
@@ -3,23 +3,23 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Message containing tool execution results
|
|
7
7
|
*/
|
|
8
8
|
export declare const StreamAgentRoleToolMessage: {
|
|
9
9
|
readonly Tool: "tool";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Message containing tool execution results
|
|
13
13
|
*/
|
|
14
14
|
export type StreamAgentRoleToolMessage = ClosedEnum<typeof StreamAgentRoleToolMessage>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Message from the end user
|
|
17
17
|
*/
|
|
18
18
|
export declare const StreamAgentRoleUserMessage: {
|
|
19
19
|
readonly User: "user";
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Message from the end user
|
|
23
23
|
*/
|
|
24
24
|
export type StreamAgentRoleUserMessage = ClosedEnum<typeof StreamAgentRoleUserMessage>;
|
|
25
25
|
/**
|
|
@@ -105,7 +105,10 @@ export type StreamAgentPublicMessagePartTextPart = {
|
|
|
105
105
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
106
106
|
*/
|
|
107
107
|
export type StreamAgentPublicMessagePart = StreamAgentPublicMessagePartTextPart | StreamAgentPublicMessagePartFilePart | StreamAgentPublicMessagePartToolResultPart;
|
|
108
|
-
|
|
108
|
+
/**
|
|
109
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
110
|
+
*/
|
|
111
|
+
export type StreamAgentA2AMessage = {
|
|
109
112
|
/**
|
|
110
113
|
* Optional A2A message ID in ULID format
|
|
111
114
|
*/
|
|
@@ -177,7 +180,10 @@ export type StreamAgentRequestBody = {
|
|
|
177
180
|
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
178
181
|
*/
|
|
179
182
|
taskId?: string | undefined;
|
|
180
|
-
|
|
183
|
+
/**
|
|
184
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
185
|
+
*/
|
|
186
|
+
message: StreamAgentA2AMessage;
|
|
181
187
|
/**
|
|
182
188
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
183
189
|
*/
|
|
@@ -214,210 +220,2762 @@ export type StreamAgentRequest = {
|
|
|
214
220
|
key: string;
|
|
215
221
|
requestBody?: StreamAgentRequestBody | undefined;
|
|
216
222
|
};
|
|
223
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type: {
|
|
224
|
+
readonly AgentsError: "agents.error";
|
|
225
|
+
};
|
|
226
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type>;
|
|
227
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data = {
|
|
228
|
+
error: string;
|
|
229
|
+
code: string;
|
|
230
|
+
};
|
|
231
|
+
export type Data17 = {
|
|
232
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type;
|
|
233
|
+
/**
|
|
234
|
+
* ISO timestamp of the event
|
|
235
|
+
*/
|
|
236
|
+
timestamp: string;
|
|
237
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data;
|
|
238
|
+
};
|
|
239
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type: {
|
|
240
|
+
readonly AgentsTimeout: "agents.timeout";
|
|
241
|
+
};
|
|
242
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type>;
|
|
243
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data = {
|
|
244
|
+
message: string;
|
|
245
|
+
};
|
|
246
|
+
export type Data16 = {
|
|
247
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type;
|
|
248
|
+
/**
|
|
249
|
+
* ISO timestamp of the event
|
|
250
|
+
*/
|
|
251
|
+
timestamp: string;
|
|
252
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data;
|
|
253
|
+
};
|
|
254
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type: {
|
|
255
|
+
readonly EventWorkflowEventsToolExecutionFailed: "event.workflow_events.tool_execution_failed";
|
|
256
|
+
};
|
|
257
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type>;
|
|
258
|
+
export type DataError = {
|
|
259
|
+
message: string;
|
|
260
|
+
stack?: string | undefined;
|
|
261
|
+
};
|
|
217
262
|
/**
|
|
218
|
-
*
|
|
263
|
+
* Orquesta product
|
|
219
264
|
*/
|
|
220
|
-
export
|
|
265
|
+
export declare const StreamAgentDataAgentsResponseProduct: {
|
|
266
|
+
readonly Remoteconfigs: "remoteconfigs";
|
|
267
|
+
readonly Deployments: "deployments";
|
|
268
|
+
readonly Experiments: "experiments";
|
|
269
|
+
readonly Playgrounds: "playgrounds";
|
|
270
|
+
readonly Spreadsheets: "spreadsheets";
|
|
271
|
+
readonly SpreadsheetRun: "spreadsheet_run";
|
|
272
|
+
readonly LlmEvaluator: "llm_evaluator";
|
|
273
|
+
readonly Knowledge: "knowledge";
|
|
274
|
+
readonly Router: "router";
|
|
275
|
+
readonly Workflows: "workflows";
|
|
276
|
+
readonly ExternalEvents: "external_events";
|
|
277
|
+
readonly Agents: "agents";
|
|
278
|
+
readonly MemoryStores: "memory-stores";
|
|
279
|
+
readonly Generic: "generic";
|
|
280
|
+
readonly Evaluators: "evaluators";
|
|
281
|
+
readonly Otel: "otel";
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Orquesta product
|
|
285
|
+
*/
|
|
286
|
+
export type StreamAgentDataAgentsResponseProduct = ClosedEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
287
|
+
export type StreamAgentDataAgentsResponseMemory = {
|
|
288
|
+
entityId: string;
|
|
289
|
+
};
|
|
290
|
+
export type StreamAgentDataAgentsResponseToolExecutionContext = {
|
|
291
|
+
actionId: string;
|
|
292
|
+
agentToolCallId: string;
|
|
293
|
+
workspaceId: string;
|
|
294
|
+
agentManifestId: string;
|
|
295
|
+
agentExecutionId: string;
|
|
221
296
|
/**
|
|
222
|
-
*
|
|
297
|
+
* Orquesta product
|
|
223
298
|
*/
|
|
224
|
-
|
|
299
|
+
product: StreamAgentDataAgentsResponseProduct;
|
|
300
|
+
memory?: StreamAgentDataAgentsResponseMemory | undefined;
|
|
301
|
+
parentId?: string | undefined;
|
|
225
302
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
export declare const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
303
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data = {
|
|
304
|
+
error: DataError;
|
|
305
|
+
actionType: string;
|
|
306
|
+
toolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext;
|
|
307
|
+
};
|
|
308
|
+
export type Data15 = {
|
|
309
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type;
|
|
310
|
+
/**
|
|
311
|
+
* ISO timestamp of the event
|
|
312
|
+
*/
|
|
313
|
+
timestamp: string;
|
|
314
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data;
|
|
315
|
+
};
|
|
316
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type: {
|
|
317
|
+
readonly EventWorkflowEventsToolExecutionFinished: "event.workflow_events.tool_execution_finished";
|
|
318
|
+
};
|
|
319
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
320
|
+
/**
|
|
321
|
+
* Orquesta product
|
|
322
|
+
*/
|
|
323
|
+
export declare const StreamAgentDataAgentsProduct: {
|
|
324
|
+
readonly Remoteconfigs: "remoteconfigs";
|
|
325
|
+
readonly Deployments: "deployments";
|
|
326
|
+
readonly Experiments: "experiments";
|
|
327
|
+
readonly Playgrounds: "playgrounds";
|
|
328
|
+
readonly Spreadsheets: "spreadsheets";
|
|
329
|
+
readonly SpreadsheetRun: "spreadsheet_run";
|
|
330
|
+
readonly LlmEvaluator: "llm_evaluator";
|
|
331
|
+
readonly Knowledge: "knowledge";
|
|
332
|
+
readonly Router: "router";
|
|
333
|
+
readonly Workflows: "workflows";
|
|
334
|
+
readonly ExternalEvents: "external_events";
|
|
335
|
+
readonly Agents: "agents";
|
|
336
|
+
readonly MemoryStores: "memory-stores";
|
|
337
|
+
readonly Generic: "generic";
|
|
338
|
+
readonly Evaluators: "evaluators";
|
|
339
|
+
readonly Otel: "otel";
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Orquesta product
|
|
343
|
+
*/
|
|
344
|
+
export type StreamAgentDataAgentsProduct = ClosedEnum<typeof StreamAgentDataAgentsProduct>;
|
|
345
|
+
export type StreamAgentDataAgentsMemory = {
|
|
346
|
+
entityId: string;
|
|
347
|
+
};
|
|
348
|
+
export type StreamAgentDataAgentsToolExecutionContext = {
|
|
349
|
+
actionId: string;
|
|
350
|
+
agentToolCallId: string;
|
|
351
|
+
workspaceId: string;
|
|
352
|
+
agentManifestId: string;
|
|
353
|
+
agentExecutionId: string;
|
|
354
|
+
/**
|
|
355
|
+
* Orquesta product
|
|
356
|
+
*/
|
|
357
|
+
product: StreamAgentDataAgentsProduct;
|
|
358
|
+
memory?: StreamAgentDataAgentsMemory | undefined;
|
|
359
|
+
parentId?: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data = {
|
|
362
|
+
result?: any | undefined;
|
|
363
|
+
actionType: string;
|
|
364
|
+
toolExecutionContext: StreamAgentDataAgentsToolExecutionContext;
|
|
365
|
+
};
|
|
366
|
+
export type Data14 = {
|
|
367
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type;
|
|
368
|
+
/**
|
|
369
|
+
* ISO timestamp of the event
|
|
370
|
+
*/
|
|
371
|
+
timestamp: string;
|
|
372
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data;
|
|
373
|
+
};
|
|
374
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type: {
|
|
375
|
+
readonly EventWorkflowEventsToolExecutionStarted: "event.workflow_events.tool_execution_started";
|
|
376
|
+
};
|
|
377
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
378
|
+
/**
|
|
379
|
+
* Orquesta product
|
|
380
|
+
*/
|
|
381
|
+
export declare const StreamAgentDataProduct: {
|
|
382
|
+
readonly Remoteconfigs: "remoteconfigs";
|
|
383
|
+
readonly Deployments: "deployments";
|
|
384
|
+
readonly Experiments: "experiments";
|
|
385
|
+
readonly Playgrounds: "playgrounds";
|
|
386
|
+
readonly Spreadsheets: "spreadsheets";
|
|
387
|
+
readonly SpreadsheetRun: "spreadsheet_run";
|
|
388
|
+
readonly LlmEvaluator: "llm_evaluator";
|
|
389
|
+
readonly Knowledge: "knowledge";
|
|
390
|
+
readonly Router: "router";
|
|
391
|
+
readonly Workflows: "workflows";
|
|
392
|
+
readonly ExternalEvents: "external_events";
|
|
393
|
+
readonly Agents: "agents";
|
|
394
|
+
readonly MemoryStores: "memory-stores";
|
|
395
|
+
readonly Generic: "generic";
|
|
396
|
+
readonly Evaluators: "evaluators";
|
|
397
|
+
readonly Otel: "otel";
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Orquesta product
|
|
401
|
+
*/
|
|
402
|
+
export type StreamAgentDataProduct = ClosedEnum<typeof StreamAgentDataProduct>;
|
|
403
|
+
export type StreamAgentDataMemory = {
|
|
404
|
+
entityId: string;
|
|
405
|
+
};
|
|
406
|
+
export type StreamAgentDataToolExecutionContext = {
|
|
407
|
+
actionId: string;
|
|
408
|
+
agentToolCallId: string;
|
|
409
|
+
workspaceId: string;
|
|
410
|
+
agentManifestId: string;
|
|
411
|
+
agentExecutionId: string;
|
|
412
|
+
/**
|
|
413
|
+
* Orquesta product
|
|
414
|
+
*/
|
|
415
|
+
product: StreamAgentDataProduct;
|
|
416
|
+
memory?: StreamAgentDataMemory | undefined;
|
|
417
|
+
parentId?: string | undefined;
|
|
418
|
+
};
|
|
419
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data = {
|
|
420
|
+
toolId: string;
|
|
421
|
+
toolKey?: string | undefined;
|
|
422
|
+
toolDisplayName?: string | undefined;
|
|
423
|
+
actionType: string;
|
|
424
|
+
toolArguments: {
|
|
425
|
+
[k: string]: any;
|
|
426
|
+
};
|
|
427
|
+
toolExecutionContext: StreamAgentDataToolExecutionContext;
|
|
428
|
+
};
|
|
429
|
+
export type Data13 = {
|
|
430
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type;
|
|
431
|
+
/**
|
|
432
|
+
* ISO timestamp of the event
|
|
433
|
+
*/
|
|
434
|
+
timestamp: string;
|
|
435
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data;
|
|
436
|
+
};
|
|
437
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type: {
|
|
438
|
+
readonly EventAgentsMessageCreated: "event.agents.message-created";
|
|
439
|
+
};
|
|
440
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
441
|
+
export declare const StreamAgentDataAgentsResponseRole: {
|
|
442
|
+
readonly User: "user";
|
|
443
|
+
readonly Tool: "tool";
|
|
444
|
+
};
|
|
445
|
+
export type StreamAgentDataAgentsResponseRole = ClosedEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
446
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind: {
|
|
447
|
+
readonly ToolResult: "tool_result";
|
|
448
|
+
};
|
|
449
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
450
|
+
/**
|
|
451
|
+
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
452
|
+
*/
|
|
453
|
+
export type StreamAgentPartsAgentsResponseToolResultPart = {
|
|
454
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind;
|
|
455
|
+
toolCallId: string;
|
|
252
456
|
result?: any | undefined;
|
|
253
457
|
metadata?: {
|
|
254
458
|
[k: string]: any;
|
|
255
459
|
} | undefined;
|
|
256
460
|
};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
export
|
|
261
|
-
/**
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
export
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
461
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind: {
|
|
462
|
+
readonly ToolCall: "tool_call";
|
|
463
|
+
};
|
|
464
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
465
|
+
/**
|
|
466
|
+
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
467
|
+
*/
|
|
468
|
+
export type StreamAgentPartsAgentsResponseToolCallPart = {
|
|
469
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind;
|
|
470
|
+
toolName: string;
|
|
471
|
+
toolCallId: string;
|
|
472
|
+
arguments: {
|
|
473
|
+
[k: string]: any;
|
|
474
|
+
};
|
|
475
|
+
metadata?: {
|
|
476
|
+
[k: string]: any;
|
|
477
|
+
} | undefined;
|
|
478
|
+
};
|
|
479
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind: {
|
|
480
|
+
readonly File: "file";
|
|
481
|
+
};
|
|
482
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
483
|
+
/**
|
|
484
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
485
|
+
*/
|
|
486
|
+
export type StreamAgentFileAgentsResponse200FileInURIFormat = {
|
|
487
|
+
/**
|
|
488
|
+
* URL for the File content
|
|
489
|
+
*/
|
|
269
490
|
uri: string;
|
|
491
|
+
/**
|
|
492
|
+
* Optional mimeType for the file
|
|
493
|
+
*/
|
|
270
494
|
mimeType?: string | undefined;
|
|
495
|
+
/**
|
|
496
|
+
* Optional name for the file
|
|
497
|
+
*/
|
|
271
498
|
name?: string | undefined;
|
|
272
499
|
};
|
|
273
|
-
/**
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
export
|
|
277
|
-
/**
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
export type StreamAgentFileBinaryFormat$Outbound = {
|
|
500
|
+
/**
|
|
501
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
502
|
+
*/
|
|
503
|
+
export type StreamAgentFileAgentsResponse200BinaryFormat = {
|
|
504
|
+
/**
|
|
505
|
+
* base64 encoded content of the file
|
|
506
|
+
*/
|
|
281
507
|
bytes: string;
|
|
508
|
+
/**
|
|
509
|
+
* Optional mimeType for the file
|
|
510
|
+
*/
|
|
282
511
|
mimeType?: string | undefined;
|
|
512
|
+
/**
|
|
513
|
+
* Optional name for the file
|
|
514
|
+
*/
|
|
283
515
|
name?: string | undefined;
|
|
284
516
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
export type StreamAgentPublicMessagePartFile$Outbound = StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
293
|
-
/** @internal */
|
|
294
|
-
export declare const StreamAgentPublicMessagePartFile$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFile>;
|
|
295
|
-
export declare function streamAgentPublicMessagePartFileToJSON(streamAgentPublicMessagePartFile: StreamAgentPublicMessagePartFile): string;
|
|
296
|
-
export declare function streamAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFile, SDKValidationError>;
|
|
297
|
-
/** @internal */
|
|
298
|
-
export declare const StreamAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
299
|
-
/** @internal */
|
|
300
|
-
export type StreamAgentPublicMessagePartFilePart$Outbound = {
|
|
301
|
-
kind: string;
|
|
302
|
-
file: StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
517
|
+
export type StreamAgentPartsAgentsResponseFile = StreamAgentFileAgentsResponse200BinaryFormat | StreamAgentFileAgentsResponse200FileInURIFormat;
|
|
518
|
+
/**
|
|
519
|
+
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
520
|
+
*/
|
|
521
|
+
export type StreamAgentPartsAgentsResponseFilePart = {
|
|
522
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind;
|
|
523
|
+
file: StreamAgentFileAgentsResponse200BinaryFormat | StreamAgentFileAgentsResponse200FileInURIFormat;
|
|
303
524
|
metadata?: {
|
|
304
525
|
[k: string]: any;
|
|
305
526
|
} | undefined;
|
|
306
527
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
export declare function streamAgentPublicMessagePartFilePartToJSON(streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart): string;
|
|
310
|
-
export declare function streamAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
311
|
-
/** @internal */
|
|
312
|
-
export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
313
|
-
/** @internal */
|
|
314
|
-
export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
315
|
-
/** @internal */
|
|
316
|
-
export declare const StreamAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
317
|
-
/** @internal */
|
|
318
|
-
export type StreamAgentPublicMessagePartTextPart$Outbound = {
|
|
319
|
-
kind: string;
|
|
320
|
-
text: string;
|
|
321
|
-
};
|
|
322
|
-
/** @internal */
|
|
323
|
-
export declare const StreamAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartTextPart>;
|
|
324
|
-
export declare function streamAgentPublicMessagePartTextPartToJSON(streamAgentPublicMessagePartTextPart: StreamAgentPublicMessagePartTextPart): string;
|
|
325
|
-
export declare function streamAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
326
|
-
/** @internal */
|
|
327
|
-
export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
328
|
-
/** @internal */
|
|
329
|
-
export type StreamAgentPublicMessagePart$Outbound = StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
330
|
-
/** @internal */
|
|
331
|
-
export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
|
|
332
|
-
export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
|
|
333
|
-
export declare function streamAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError>;
|
|
334
|
-
/** @internal */
|
|
335
|
-
export declare const StreamAgentMessage$inboundSchema: z.ZodType<StreamAgentMessage, z.ZodTypeDef, unknown>;
|
|
336
|
-
/** @internal */
|
|
337
|
-
export type StreamAgentMessage$Outbound = {
|
|
338
|
-
messageId?: string | undefined;
|
|
339
|
-
role: string | string;
|
|
340
|
-
parts: Array<StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound>;
|
|
528
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind: {
|
|
529
|
+
readonly Data: "data";
|
|
341
530
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
export type StreamAgentContact$Outbound = {
|
|
350
|
-
id: string;
|
|
351
|
-
display_name?: string | undefined;
|
|
352
|
-
email?: string | undefined;
|
|
353
|
-
metadata?: Array<{
|
|
531
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
532
|
+
/**
|
|
533
|
+
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
534
|
+
*/
|
|
535
|
+
export type StreamAgentPartsAgentsResponseDataPart = {
|
|
536
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind;
|
|
537
|
+
data: {
|
|
354
538
|
[k: string]: any;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
539
|
+
};
|
|
540
|
+
metadata?: {
|
|
541
|
+
[k: string]: any;
|
|
542
|
+
} | undefined;
|
|
358
543
|
};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
export declare function streamAgentContactToJSON(streamAgentContact: StreamAgentContact): string;
|
|
362
|
-
export declare function streamAgentContactFromJSON(jsonString: string): SafeParseResult<StreamAgentContact, SDKValidationError>;
|
|
363
|
-
/** @internal */
|
|
364
|
-
export declare const StreamAgentThread$inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
|
|
365
|
-
/** @internal */
|
|
366
|
-
export type StreamAgentThread$Outbound = {
|
|
367
|
-
id: string;
|
|
368
|
-
tags?: Array<string> | undefined;
|
|
544
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind: {
|
|
545
|
+
readonly Text: "text";
|
|
369
546
|
};
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
export type StreamAgentMemory$Outbound = {
|
|
378
|
-
entity_id: string;
|
|
547
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
548
|
+
/**
|
|
549
|
+
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
550
|
+
*/
|
|
551
|
+
export type StreamAgentPartsAgentsResponseTextPart = {
|
|
552
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind;
|
|
553
|
+
text: string;
|
|
379
554
|
};
|
|
380
|
-
|
|
381
|
-
export
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
/** @internal */
|
|
387
|
-
export type StreamAgentRequestBody$Outbound = {
|
|
388
|
-
task_id?: string | undefined;
|
|
389
|
-
message: StreamAgentMessage$Outbound;
|
|
390
|
-
variables?: {
|
|
555
|
+
export type StreamAgentDataAgentsResponseParts = StreamAgentPartsAgentsResponseToolCallPart | StreamAgentPartsAgentsResponseTextPart | StreamAgentPartsAgentsResponseDataPart | StreamAgentPartsAgentsResponseFilePart | StreamAgentPartsAgentsResponseToolResultPart;
|
|
556
|
+
export type StreamAgentDataMessage = {
|
|
557
|
+
messageId?: string | undefined;
|
|
558
|
+
role: StreamAgentDataAgentsResponseRole;
|
|
559
|
+
parts: Array<StreamAgentPartsAgentsResponseToolCallPart | StreamAgentPartsAgentsResponseTextPart | StreamAgentPartsAgentsResponseDataPart | StreamAgentPartsAgentsResponseFilePart | StreamAgentPartsAgentsResponseToolResultPart>;
|
|
560
|
+
metadata?: {
|
|
391
561
|
[k: string]: any;
|
|
392
562
|
} | undefined;
|
|
393
|
-
|
|
394
|
-
|
|
563
|
+
};
|
|
564
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data = {
|
|
565
|
+
workflowRunId: string;
|
|
566
|
+
spanId: string;
|
|
567
|
+
parentId: string;
|
|
568
|
+
message: Array<StreamAgentDataMessage>;
|
|
569
|
+
};
|
|
570
|
+
export type Data12 = {
|
|
571
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type;
|
|
572
|
+
/**
|
|
573
|
+
* ISO timestamp of the event
|
|
574
|
+
*/
|
|
575
|
+
timestamp: string;
|
|
576
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data;
|
|
577
|
+
};
|
|
578
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type: {
|
|
579
|
+
readonly EventAgentsHandedOff: "event.agents.handed_off";
|
|
580
|
+
};
|
|
581
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
582
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data = {
|
|
583
|
+
agentId: string;
|
|
584
|
+
input: string;
|
|
585
|
+
};
|
|
586
|
+
export type Data11 = {
|
|
587
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type;
|
|
588
|
+
/**
|
|
589
|
+
* ISO timestamp of the event
|
|
590
|
+
*/
|
|
591
|
+
timestamp: string;
|
|
592
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data;
|
|
593
|
+
};
|
|
594
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type: {
|
|
595
|
+
readonly EventAgentsExecutionNamed: "event.agents.execution_named";
|
|
596
|
+
};
|
|
597
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
598
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data = {
|
|
599
|
+
name: string;
|
|
600
|
+
agentManifestId: string;
|
|
601
|
+
};
|
|
602
|
+
export type Data10 = {
|
|
603
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type;
|
|
604
|
+
/**
|
|
605
|
+
* ISO timestamp of the event
|
|
606
|
+
*/
|
|
607
|
+
timestamp: string;
|
|
608
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data;
|
|
609
|
+
};
|
|
610
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type: {
|
|
611
|
+
readonly EventAgentsExecutionReviewed: "event.agents.execution_reviewed";
|
|
612
|
+
};
|
|
613
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
614
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data = {};
|
|
615
|
+
export type Data9 = {
|
|
616
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type;
|
|
617
|
+
/**
|
|
618
|
+
* ISO timestamp of the event
|
|
619
|
+
*/
|
|
620
|
+
timestamp: string;
|
|
621
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data;
|
|
622
|
+
};
|
|
623
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type: {
|
|
624
|
+
readonly EventAgentsExecutionReviewRequired: "event.agents.execution_review_required";
|
|
625
|
+
};
|
|
626
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
627
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data = {};
|
|
628
|
+
export type Data8 = {
|
|
629
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type;
|
|
630
|
+
/**
|
|
631
|
+
* ISO timestamp of the event
|
|
632
|
+
*/
|
|
633
|
+
timestamp: string;
|
|
634
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data;
|
|
635
|
+
};
|
|
636
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type: {
|
|
637
|
+
readonly EventAgentsActionReviewed: "event.agents.action_reviewed";
|
|
638
|
+
};
|
|
639
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
640
|
+
export declare const DataReview: {
|
|
641
|
+
readonly Approved: "approved";
|
|
642
|
+
readonly Rejected: "rejected";
|
|
643
|
+
};
|
|
644
|
+
export type DataReview = ClosedEnum<typeof DataReview>;
|
|
645
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data = {
|
|
646
|
+
agentId: string;
|
|
647
|
+
actionId: string;
|
|
648
|
+
agentToolCallId: string;
|
|
649
|
+
review: DataReview;
|
|
650
|
+
mockOutput?: {
|
|
651
|
+
[k: string]: any;
|
|
652
|
+
} | undefined;
|
|
653
|
+
reviewSource?: string | undefined;
|
|
654
|
+
reviewedById?: string | undefined;
|
|
655
|
+
};
|
|
656
|
+
export type Data7 = {
|
|
657
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type;
|
|
658
|
+
/**
|
|
659
|
+
* ISO timestamp of the event
|
|
660
|
+
*/
|
|
661
|
+
timestamp: string;
|
|
662
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data;
|
|
663
|
+
};
|
|
664
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType: {
|
|
665
|
+
readonly EventAgentsActionReviewRequested: "event.agents.action_review_requested";
|
|
666
|
+
};
|
|
667
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
668
|
+
export type StreamAgentDataConditions = {
|
|
669
|
+
/**
|
|
670
|
+
* The argument of the tool call to evaluate
|
|
671
|
+
*/
|
|
672
|
+
condition: string;
|
|
673
|
+
/**
|
|
674
|
+
* The operator to use
|
|
675
|
+
*/
|
|
676
|
+
operator: string;
|
|
677
|
+
/**
|
|
678
|
+
* The value to compare against
|
|
679
|
+
*/
|
|
680
|
+
value: string;
|
|
681
|
+
};
|
|
682
|
+
export type DataTool = {
|
|
683
|
+
/**
|
|
684
|
+
* The id of the resource
|
|
685
|
+
*/
|
|
686
|
+
id: string;
|
|
687
|
+
/**
|
|
688
|
+
* Optional tool key for custom tools
|
|
689
|
+
*/
|
|
690
|
+
key?: string | undefined;
|
|
691
|
+
actionType: string;
|
|
692
|
+
displayName?: string | undefined;
|
|
693
|
+
/**
|
|
694
|
+
* Optional tool description
|
|
695
|
+
*/
|
|
696
|
+
description?: string | undefined;
|
|
697
|
+
requiresApproval?: boolean | undefined;
|
|
698
|
+
/**
|
|
699
|
+
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
700
|
+
*/
|
|
701
|
+
toolId?: string | undefined;
|
|
702
|
+
conditions?: Array<StreamAgentDataConditions> | undefined;
|
|
703
|
+
/**
|
|
704
|
+
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
705
|
+
*/
|
|
706
|
+
timeout?: number | undefined;
|
|
707
|
+
};
|
|
708
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData = {
|
|
709
|
+
agentId: string;
|
|
710
|
+
actionId: string;
|
|
711
|
+
requiresApproval: boolean;
|
|
712
|
+
tool: DataTool;
|
|
713
|
+
input: {
|
|
714
|
+
[k: string]: any;
|
|
715
|
+
};
|
|
716
|
+
agentToolCallId: string;
|
|
717
|
+
};
|
|
718
|
+
export type Data6 = {
|
|
719
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType;
|
|
720
|
+
/**
|
|
721
|
+
* ISO timestamp of the event
|
|
722
|
+
*/
|
|
723
|
+
timestamp: string;
|
|
724
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData;
|
|
725
|
+
};
|
|
726
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamType: {
|
|
727
|
+
readonly EventAgentsErrored: "event.agents.errored";
|
|
728
|
+
};
|
|
729
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamType = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
730
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamData = {
|
|
731
|
+
error: string;
|
|
732
|
+
code: number;
|
|
733
|
+
};
|
|
734
|
+
export type Data5 = {
|
|
735
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamType;
|
|
736
|
+
/**
|
|
737
|
+
* ISO timestamp of the event
|
|
738
|
+
*/
|
|
739
|
+
timestamp: string;
|
|
740
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamData;
|
|
741
|
+
};
|
|
742
|
+
export declare const StreamAgentDataAgentsResponse200Type: {
|
|
743
|
+
readonly EventAgentsInactive: "event.agents.inactive";
|
|
744
|
+
};
|
|
745
|
+
export type StreamAgentDataAgentsResponse200Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
746
|
+
/**
|
|
747
|
+
* The reason why the agent execution became inactive
|
|
748
|
+
*/
|
|
749
|
+
export declare const DataFinishReason: {
|
|
750
|
+
readonly Stop: "stop";
|
|
751
|
+
readonly Length: "length";
|
|
752
|
+
readonly ToolCalls: "tool_calls";
|
|
753
|
+
readonly ContentFilter: "content_filter";
|
|
754
|
+
readonly FunctionCall: "function_call";
|
|
755
|
+
readonly MaxIterations: "max_iterations";
|
|
756
|
+
readonly MaxTime: "max_time";
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* The reason why the agent execution became inactive
|
|
760
|
+
*/
|
|
761
|
+
export type DataFinishReason = ClosedEnum<typeof DataFinishReason>;
|
|
762
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type: {
|
|
763
|
+
readonly Function: "function";
|
|
764
|
+
};
|
|
765
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
766
|
+
export type StreamAgentDataFunction = {
|
|
767
|
+
name?: string | undefined;
|
|
768
|
+
arguments?: string | undefined;
|
|
769
|
+
};
|
|
770
|
+
export type DataPendingToolCalls = {
|
|
771
|
+
id: string;
|
|
772
|
+
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type;
|
|
773
|
+
function: StreamAgentDataFunction;
|
|
774
|
+
};
|
|
775
|
+
export type StreamAgentDataAgentsResponse200Data = {
|
|
776
|
+
lastMessage: string;
|
|
777
|
+
/**
|
|
778
|
+
* The reason why the agent execution became inactive
|
|
779
|
+
*/
|
|
780
|
+
finishReason: DataFinishReason;
|
|
781
|
+
/**
|
|
782
|
+
* Tool calls that are pending user response (for function_call finish reason)
|
|
783
|
+
*/
|
|
784
|
+
pendingToolCalls?: Array<DataPendingToolCalls> | undefined;
|
|
785
|
+
};
|
|
786
|
+
export type StreamAgentData4 = {
|
|
787
|
+
type: StreamAgentDataAgentsResponse200Type;
|
|
788
|
+
/**
|
|
789
|
+
* ISO timestamp of the event
|
|
790
|
+
*/
|
|
791
|
+
timestamp: string;
|
|
792
|
+
data: StreamAgentDataAgentsResponse200Data;
|
|
793
|
+
};
|
|
794
|
+
export declare const StreamAgentDataAgentsResponseType: {
|
|
795
|
+
readonly EventAgentsThought: "event.agents.thought";
|
|
796
|
+
};
|
|
797
|
+
export type StreamAgentDataAgentsResponseType = ClosedEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
798
|
+
export declare const StreamAgentDataAgentsRole: {
|
|
799
|
+
readonly User: "user";
|
|
800
|
+
readonly Agent: "agent";
|
|
801
|
+
readonly Tool: "tool";
|
|
802
|
+
readonly System: "system";
|
|
803
|
+
};
|
|
804
|
+
export type StreamAgentDataAgentsRole = ClosedEnum<typeof StreamAgentDataAgentsRole>;
|
|
805
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind: {
|
|
806
|
+
readonly ToolResult: "tool_result";
|
|
807
|
+
};
|
|
808
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
809
|
+
/**
|
|
810
|
+
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
811
|
+
*/
|
|
812
|
+
export type StreamAgentPartsAgentsToolResultPart = {
|
|
813
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind;
|
|
814
|
+
toolCallId: string;
|
|
815
|
+
result?: any | undefined;
|
|
816
|
+
metadata?: {
|
|
817
|
+
[k: string]: any;
|
|
818
|
+
} | undefined;
|
|
819
|
+
};
|
|
820
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind: {
|
|
821
|
+
readonly ToolCall: "tool_call";
|
|
822
|
+
};
|
|
823
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
824
|
+
/**
|
|
825
|
+
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
826
|
+
*/
|
|
827
|
+
export type StreamAgentPartsAgentsToolCallPart = {
|
|
828
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind;
|
|
829
|
+
toolName: string;
|
|
830
|
+
toolCallId: string;
|
|
831
|
+
arguments: {
|
|
832
|
+
[k: string]: any;
|
|
833
|
+
};
|
|
834
|
+
metadata?: {
|
|
835
|
+
[k: string]: any;
|
|
836
|
+
} | undefined;
|
|
837
|
+
};
|
|
838
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind: {
|
|
839
|
+
readonly File: "file";
|
|
840
|
+
};
|
|
841
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
842
|
+
/**
|
|
843
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
844
|
+
*/
|
|
845
|
+
export type StreamAgentFileAgentsResponseFileInURIFormat = {
|
|
846
|
+
/**
|
|
847
|
+
* URL for the File content
|
|
848
|
+
*/
|
|
849
|
+
uri: string;
|
|
850
|
+
/**
|
|
851
|
+
* Optional mimeType for the file
|
|
852
|
+
*/
|
|
853
|
+
mimeType?: string | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* Optional name for the file
|
|
856
|
+
*/
|
|
857
|
+
name?: string | undefined;
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
861
|
+
*/
|
|
862
|
+
export type StreamAgentFileAgentsResponseBinaryFormat = {
|
|
863
|
+
/**
|
|
864
|
+
* base64 encoded content of the file
|
|
865
|
+
*/
|
|
866
|
+
bytes: string;
|
|
867
|
+
/**
|
|
868
|
+
* Optional mimeType for the file
|
|
869
|
+
*/
|
|
870
|
+
mimeType?: string | undefined;
|
|
871
|
+
/**
|
|
872
|
+
* Optional name for the file
|
|
873
|
+
*/
|
|
874
|
+
name?: string | undefined;
|
|
875
|
+
};
|
|
876
|
+
export type StreamAgentPartsAgentsFile = StreamAgentFileAgentsResponseBinaryFormat | StreamAgentFileAgentsResponseFileInURIFormat;
|
|
877
|
+
/**
|
|
878
|
+
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
879
|
+
*/
|
|
880
|
+
export type StreamAgentPartsAgentsFilePart = {
|
|
881
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind;
|
|
882
|
+
file: StreamAgentFileAgentsResponseBinaryFormat | StreamAgentFileAgentsResponseFileInURIFormat;
|
|
883
|
+
metadata?: {
|
|
884
|
+
[k: string]: any;
|
|
885
|
+
} | undefined;
|
|
886
|
+
};
|
|
887
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind: {
|
|
888
|
+
readonly Data: "data";
|
|
889
|
+
};
|
|
890
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
891
|
+
/**
|
|
892
|
+
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
893
|
+
*/
|
|
894
|
+
export type StreamAgentPartsAgentsDataPart = {
|
|
895
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind;
|
|
896
|
+
data: {
|
|
897
|
+
[k: string]: any;
|
|
898
|
+
};
|
|
899
|
+
metadata?: {
|
|
900
|
+
[k: string]: any;
|
|
901
|
+
} | undefined;
|
|
902
|
+
};
|
|
903
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind: {
|
|
904
|
+
readonly Text: "text";
|
|
905
|
+
};
|
|
906
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
907
|
+
/**
|
|
908
|
+
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
909
|
+
*/
|
|
910
|
+
export type StreamAgentPartsAgentsTextPart = {
|
|
911
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind;
|
|
912
|
+
text: string;
|
|
913
|
+
};
|
|
914
|
+
export type StreamAgentDataAgentsParts = StreamAgentPartsAgentsToolCallPart | StreamAgentPartsAgentsTextPart | StreamAgentPartsAgentsDataPart | StreamAgentPartsAgentsFilePart | StreamAgentPartsAgentsToolResultPart;
|
|
915
|
+
export type DataMessageDifference = {
|
|
916
|
+
messageId: string;
|
|
917
|
+
role: StreamAgentDataAgentsRole;
|
|
918
|
+
parts: Array<StreamAgentPartsAgentsToolCallPart | StreamAgentPartsAgentsTextPart | StreamAgentPartsAgentsDataPart | StreamAgentPartsAgentsFilePart | StreamAgentPartsAgentsToolResultPart>;
|
|
919
|
+
metadata?: {
|
|
920
|
+
[k: string]: any;
|
|
921
|
+
} | undefined;
|
|
922
|
+
agentId: string;
|
|
923
|
+
agentExecutionId: string;
|
|
924
|
+
workspaceId: string;
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* The reason the model stopped generating tokens.
|
|
928
|
+
*/
|
|
929
|
+
export declare const StreamAgentDataFinishReason: {
|
|
930
|
+
readonly Stop: "stop";
|
|
931
|
+
readonly Length: "length";
|
|
932
|
+
readonly ToolCalls: "tool_calls";
|
|
933
|
+
readonly ContentFilter: "content_filter";
|
|
934
|
+
readonly FunctionCall: "function_call";
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* The reason the model stopped generating tokens.
|
|
938
|
+
*/
|
|
939
|
+
export type StreamAgentDataFinishReason = ClosedEnum<typeof StreamAgentDataFinishReason>;
|
|
940
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type: {
|
|
941
|
+
readonly Function: "function";
|
|
942
|
+
};
|
|
943
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
944
|
+
export type StreamAgentDataAgentsFunction = {
|
|
945
|
+
/**
|
|
946
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
947
|
+
*/
|
|
948
|
+
name?: string | undefined;
|
|
949
|
+
/**
|
|
950
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
951
|
+
*/
|
|
952
|
+
arguments?: string | undefined;
|
|
953
|
+
};
|
|
954
|
+
export type StreamAgentDataToolCalls = {
|
|
955
|
+
id?: string | undefined;
|
|
956
|
+
type?: StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type | undefined;
|
|
957
|
+
function?: StreamAgentDataAgentsFunction | undefined;
|
|
958
|
+
};
|
|
959
|
+
export declare const StreamAgentDataAgentsResponse200Role: {
|
|
960
|
+
readonly Assistant: "assistant";
|
|
961
|
+
};
|
|
962
|
+
export type StreamAgentDataAgentsResponse200Role = ClosedEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
963
|
+
/**
|
|
964
|
+
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
965
|
+
*/
|
|
966
|
+
export type StreamAgentDataAudio = {
|
|
967
|
+
id: string;
|
|
968
|
+
expiresAt: number;
|
|
969
|
+
data: string;
|
|
970
|
+
transcript: string;
|
|
971
|
+
};
|
|
972
|
+
/**
|
|
973
|
+
* A chat completion message generated by the model.
|
|
974
|
+
*/
|
|
975
|
+
export type StreamAgentDataAgentsMessage = {
|
|
976
|
+
content?: string | null | undefined;
|
|
977
|
+
refusal?: string | null | undefined;
|
|
978
|
+
toolCalls?: Array<StreamAgentDataToolCalls> | undefined;
|
|
979
|
+
role?: StreamAgentDataAgentsResponse200Role | undefined;
|
|
980
|
+
/**
|
|
981
|
+
* Internal thought process of the model
|
|
982
|
+
*/
|
|
983
|
+
reasoning?: string | null | undefined;
|
|
984
|
+
/**
|
|
985
|
+
* The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
|
|
986
|
+
*/
|
|
987
|
+
reasoningSignature?: string | null | undefined;
|
|
988
|
+
/**
|
|
989
|
+
* Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
|
|
990
|
+
*/
|
|
991
|
+
redactedReasoning?: string | undefined;
|
|
992
|
+
/**
|
|
993
|
+
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
994
|
+
*/
|
|
995
|
+
audio?: StreamAgentDataAudio | null | undefined;
|
|
996
|
+
};
|
|
997
|
+
export type StreamAgentDataTopLogprobs = {
|
|
998
|
+
/**
|
|
999
|
+
* The token.
|
|
1000
|
+
*/
|
|
1001
|
+
token: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
|
|
1004
|
+
*/
|
|
1005
|
+
logprob: number;
|
|
1006
|
+
/**
|
|
1007
|
+
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1008
|
+
*/
|
|
1009
|
+
bytes: Array<number> | null;
|
|
1010
|
+
};
|
|
1011
|
+
export type StreamAgentDataContent = {
|
|
1012
|
+
/**
|
|
1013
|
+
* The token.
|
|
1014
|
+
*/
|
|
1015
|
+
token: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
|
|
1018
|
+
*/
|
|
1019
|
+
logprob: number;
|
|
1020
|
+
/**
|
|
1021
|
+
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1022
|
+
*/
|
|
1023
|
+
bytes: Array<number> | null;
|
|
1024
|
+
/**
|
|
1025
|
+
* List of the most likely tokens and their log probability, at this token position.
|
|
1026
|
+
*/
|
|
1027
|
+
topLogprobs: Array<StreamAgentDataTopLogprobs>;
|
|
1028
|
+
};
|
|
1029
|
+
export type StreamAgentDataAgentsTopLogprobs = {
|
|
1030
|
+
/**
|
|
1031
|
+
* The token.
|
|
1032
|
+
*/
|
|
1033
|
+
token: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
|
|
1036
|
+
*/
|
|
1037
|
+
logprob: number;
|
|
1038
|
+
/**
|
|
1039
|
+
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1040
|
+
*/
|
|
1041
|
+
bytes: Array<number> | null;
|
|
1042
|
+
};
|
|
1043
|
+
export type DataRefusal = {
|
|
1044
|
+
/**
|
|
1045
|
+
* The token.
|
|
1046
|
+
*/
|
|
1047
|
+
token: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
|
|
1050
|
+
*/
|
|
1051
|
+
logprob: number;
|
|
1052
|
+
/**
|
|
1053
|
+
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1054
|
+
*/
|
|
1055
|
+
bytes: Array<number> | null;
|
|
1056
|
+
/**
|
|
1057
|
+
* List of the most likely tokens and their log probability, at this token position.
|
|
1058
|
+
*/
|
|
1059
|
+
topLogprobs: Array<StreamAgentDataAgentsTopLogprobs>;
|
|
1060
|
+
};
|
|
1061
|
+
/**
|
|
1062
|
+
* Log probability information for the choice.
|
|
1063
|
+
*/
|
|
1064
|
+
export type DataLogprobs = {
|
|
1065
|
+
/**
|
|
1066
|
+
* A list of message content tokens with log probability information.
|
|
1067
|
+
*/
|
|
1068
|
+
content: Array<StreamAgentDataContent> | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* A list of message refusal tokens with log probability information.
|
|
1071
|
+
*/
|
|
1072
|
+
refusal: Array<DataRefusal> | null;
|
|
1073
|
+
};
|
|
1074
|
+
export type DataChoice = {
|
|
1075
|
+
/**
|
|
1076
|
+
* The reason the model stopped generating tokens.
|
|
1077
|
+
*/
|
|
1078
|
+
finishReason: StreamAgentDataFinishReason | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* The index of the choice in the list of choices.
|
|
1081
|
+
*/
|
|
1082
|
+
index?: number | undefined;
|
|
1083
|
+
/**
|
|
1084
|
+
* A chat completion message generated by the model.
|
|
1085
|
+
*/
|
|
1086
|
+
message: StreamAgentDataAgentsMessage;
|
|
1087
|
+
/**
|
|
1088
|
+
* Log probability information for the choice.
|
|
1089
|
+
*/
|
|
1090
|
+
logprobs?: DataLogprobs | null | undefined;
|
|
1091
|
+
};
|
|
1092
|
+
export type StreamAgentDataAgentsResponseData = {
|
|
1093
|
+
agentId: string;
|
|
1094
|
+
messageDifference: {
|
|
1095
|
+
[k: string]: DataMessageDifference;
|
|
1096
|
+
};
|
|
1097
|
+
choice?: DataChoice | undefined;
|
|
1098
|
+
choiceIndex?: number | undefined;
|
|
1099
|
+
iteration: number;
|
|
1100
|
+
accumulatedExecutionTime: number;
|
|
1101
|
+
};
|
|
1102
|
+
export type StreamAgentData3 = {
|
|
1103
|
+
type: StreamAgentDataAgentsResponseType;
|
|
1104
|
+
/**
|
|
1105
|
+
* ISO timestamp of the event
|
|
1106
|
+
*/
|
|
1107
|
+
timestamp: string;
|
|
1108
|
+
data: StreamAgentDataAgentsResponseData;
|
|
1109
|
+
};
|
|
1110
|
+
export declare const StreamAgentDataAgentsType: {
|
|
1111
|
+
readonly EventAgentsStarted: "event.agents.started";
|
|
1112
|
+
};
|
|
1113
|
+
export type StreamAgentDataAgentsType = ClosedEnum<typeof StreamAgentDataAgentsType>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Extended A2A message role
|
|
1116
|
+
*/
|
|
1117
|
+
export declare const StreamAgentDataRole: {
|
|
1118
|
+
readonly User: "user";
|
|
1119
|
+
readonly Agent: "agent";
|
|
1120
|
+
readonly Tool: "tool";
|
|
1121
|
+
readonly System: "system";
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* Extended A2A message role
|
|
1125
|
+
*/
|
|
1126
|
+
export type StreamAgentDataRole = ClosedEnum<typeof StreamAgentDataRole>;
|
|
1127
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamKind: {
|
|
1128
|
+
readonly ToolResult: "tool_result";
|
|
1129
|
+
};
|
|
1130
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
1131
|
+
/**
|
|
1132
|
+
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
1133
|
+
*/
|
|
1134
|
+
export type StreamAgentPartsToolResultPart = {
|
|
1135
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamKind;
|
|
1136
|
+
toolCallId: string;
|
|
1137
|
+
result?: any | undefined;
|
|
1138
|
+
metadata?: {
|
|
1139
|
+
[k: string]: any;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
export declare const StreamAgentPartsAgentsResponse200Kind: {
|
|
1143
|
+
readonly ToolCall: "tool_call";
|
|
1144
|
+
};
|
|
1145
|
+
export type StreamAgentPartsAgentsResponse200Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
1146
|
+
/**
|
|
1147
|
+
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1148
|
+
*/
|
|
1149
|
+
export type StreamAgentPartsToolCallPart = {
|
|
1150
|
+
kind: StreamAgentPartsAgentsResponse200Kind;
|
|
1151
|
+
toolName: string;
|
|
1152
|
+
toolCallId: string;
|
|
1153
|
+
arguments: {
|
|
1154
|
+
[k: string]: any;
|
|
1155
|
+
};
|
|
1156
|
+
metadata?: {
|
|
1157
|
+
[k: string]: any;
|
|
1158
|
+
} | undefined;
|
|
1159
|
+
};
|
|
1160
|
+
export declare const StreamAgentPartsAgentsResponseKind: {
|
|
1161
|
+
readonly File: "file";
|
|
1162
|
+
};
|
|
1163
|
+
export type StreamAgentPartsAgentsResponseKind = ClosedEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
1164
|
+
/**
|
|
1165
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1166
|
+
*/
|
|
1167
|
+
export type StreamAgentFileAgentsFileInURIFormat = {
|
|
1168
|
+
/**
|
|
1169
|
+
* URL for the File content
|
|
1170
|
+
*/
|
|
1171
|
+
uri: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* Optional mimeType for the file
|
|
1174
|
+
*/
|
|
1175
|
+
mimeType?: string | undefined;
|
|
1176
|
+
/**
|
|
1177
|
+
* Optional name for the file
|
|
1178
|
+
*/
|
|
1179
|
+
name?: string | undefined;
|
|
1180
|
+
};
|
|
1181
|
+
/**
|
|
1182
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1183
|
+
*/
|
|
1184
|
+
export type StreamAgentFileAgentsBinaryFormat = {
|
|
1185
|
+
/**
|
|
1186
|
+
* base64 encoded content of the file
|
|
1187
|
+
*/
|
|
1188
|
+
bytes: string;
|
|
1189
|
+
/**
|
|
1190
|
+
* Optional mimeType for the file
|
|
1191
|
+
*/
|
|
1192
|
+
mimeType?: string | undefined;
|
|
1193
|
+
/**
|
|
1194
|
+
* Optional name for the file
|
|
1195
|
+
*/
|
|
1196
|
+
name?: string | undefined;
|
|
1197
|
+
};
|
|
1198
|
+
export type StreamAgentPartsFile = StreamAgentFileAgentsBinaryFormat | StreamAgentFileAgentsFileInURIFormat;
|
|
1199
|
+
/**
|
|
1200
|
+
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
1201
|
+
*/
|
|
1202
|
+
export type StreamAgentPartsFilePart = {
|
|
1203
|
+
kind: StreamAgentPartsAgentsResponseKind;
|
|
1204
|
+
file: StreamAgentFileAgentsBinaryFormat | StreamAgentFileAgentsFileInURIFormat;
|
|
1205
|
+
metadata?: {
|
|
1206
|
+
[k: string]: any;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
export declare const StreamAgentPartsAgentsKind: {
|
|
1210
|
+
readonly Data: "data";
|
|
1211
|
+
};
|
|
1212
|
+
export type StreamAgentPartsAgentsKind = ClosedEnum<typeof StreamAgentPartsAgentsKind>;
|
|
1213
|
+
/**
|
|
1214
|
+
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1215
|
+
*/
|
|
1216
|
+
export type StreamAgentPartsDataPart = {
|
|
1217
|
+
kind: StreamAgentPartsAgentsKind;
|
|
1218
|
+
data: {
|
|
1219
|
+
[k: string]: any;
|
|
1220
|
+
};
|
|
1221
|
+
metadata?: {
|
|
1222
|
+
[k: string]: any;
|
|
1223
|
+
} | undefined;
|
|
1224
|
+
};
|
|
1225
|
+
export declare const StreamAgentPartsKind: {
|
|
1226
|
+
readonly Text: "text";
|
|
1227
|
+
};
|
|
1228
|
+
export type StreamAgentPartsKind = ClosedEnum<typeof StreamAgentPartsKind>;
|
|
1229
|
+
/**
|
|
1230
|
+
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1231
|
+
*/
|
|
1232
|
+
export type StreamAgentPartsTextPart = {
|
|
1233
|
+
kind: StreamAgentPartsKind;
|
|
1234
|
+
text: string;
|
|
1235
|
+
};
|
|
1236
|
+
export type StreamAgentDataParts = StreamAgentPartsToolCallPart | StreamAgentPartsTextPart | StreamAgentPartsDataPart | StreamAgentPartsFilePart | StreamAgentPartsToolResultPart;
|
|
1237
|
+
export type DataInputMessage = {
|
|
1238
|
+
messageId?: string | undefined;
|
|
1239
|
+
/**
|
|
1240
|
+
* Extended A2A message role
|
|
1241
|
+
*/
|
|
1242
|
+
role: StreamAgentDataRole;
|
|
1243
|
+
parts: Array<StreamAgentPartsToolCallPart | StreamAgentPartsTextPart | StreamAgentPartsDataPart | StreamAgentPartsFilePart | StreamAgentPartsToolResultPart>;
|
|
1244
|
+
metadata?: {
|
|
1245
|
+
[k: string]: any;
|
|
1246
|
+
} | undefined;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1250
|
+
*/
|
|
1251
|
+
export declare const StreamAgentDataToolApprovalRequired: {
|
|
1252
|
+
readonly All: "all";
|
|
1253
|
+
readonly RespectTool: "respect_tool";
|
|
1254
|
+
readonly None: "none";
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1258
|
+
*/
|
|
1259
|
+
export type StreamAgentDataToolApprovalRequired = ClosedEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
1260
|
+
export type StreamAgentDataAgentsConditions = {
|
|
1261
|
+
/**
|
|
1262
|
+
* The argument of the tool call to evaluate
|
|
1263
|
+
*/
|
|
1264
|
+
condition: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* The operator to use
|
|
1267
|
+
*/
|
|
1268
|
+
operator: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* The value to compare against
|
|
1271
|
+
*/
|
|
1272
|
+
value: string;
|
|
1273
|
+
};
|
|
1274
|
+
export type StreamAgentDataTools = {
|
|
1275
|
+
/**
|
|
1276
|
+
* The id of the resource
|
|
1277
|
+
*/
|
|
1278
|
+
id: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* Optional tool key for custom tools
|
|
1281
|
+
*/
|
|
1282
|
+
key?: string | undefined;
|
|
1283
|
+
actionType: string;
|
|
1284
|
+
displayName?: string | undefined;
|
|
1285
|
+
/**
|
|
1286
|
+
* Optional tool description
|
|
1287
|
+
*/
|
|
1288
|
+
description?: string | undefined;
|
|
1289
|
+
requiresApproval?: boolean | undefined;
|
|
1290
|
+
/**
|
|
1291
|
+
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1292
|
+
*/
|
|
1293
|
+
toolId?: string | undefined;
|
|
1294
|
+
conditions?: Array<StreamAgentDataAgentsConditions> | undefined;
|
|
1295
|
+
/**
|
|
1296
|
+
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1297
|
+
*/
|
|
1298
|
+
timeout?: number | undefined;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1302
|
+
*/
|
|
1303
|
+
export declare const StreamAgentDataExecuteOn: {
|
|
1304
|
+
readonly Input: "input";
|
|
1305
|
+
readonly Output: "output";
|
|
1306
|
+
};
|
|
1307
|
+
/**
|
|
1308
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1309
|
+
*/
|
|
1310
|
+
export type StreamAgentDataExecuteOn = ClosedEnum<typeof StreamAgentDataExecuteOn>;
|
|
1311
|
+
export type StreamAgentDataEvaluators = {
|
|
1312
|
+
/**
|
|
1313
|
+
* Unique key or identifier of the evaluator
|
|
1314
|
+
*/
|
|
1315
|
+
id: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1318
|
+
*/
|
|
1319
|
+
sampleRate?: number | undefined;
|
|
1320
|
+
/**
|
|
1321
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1322
|
+
*/
|
|
1323
|
+
executeOn: StreamAgentDataExecuteOn;
|
|
1324
|
+
};
|
|
1325
|
+
/**
|
|
1326
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1327
|
+
*/
|
|
1328
|
+
export declare const StreamAgentDataAgentsExecuteOn: {
|
|
1329
|
+
readonly Input: "input";
|
|
1330
|
+
readonly Output: "output";
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1334
|
+
*/
|
|
1335
|
+
export type StreamAgentDataAgentsExecuteOn = ClosedEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
1336
|
+
export type StreamAgentDataGuardrails = {
|
|
1337
|
+
/**
|
|
1338
|
+
* Unique key or identifier of the evaluator
|
|
1339
|
+
*/
|
|
1340
|
+
id: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1343
|
+
*/
|
|
1344
|
+
sampleRate?: number | undefined;
|
|
1345
|
+
/**
|
|
1346
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1347
|
+
*/
|
|
1348
|
+
executeOn: StreamAgentDataAgentsExecuteOn;
|
|
1349
|
+
};
|
|
1350
|
+
export type StreamAgentDataSettings = {
|
|
1351
|
+
/**
|
|
1352
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1353
|
+
*/
|
|
1354
|
+
maxIterations?: number | undefined;
|
|
1355
|
+
/**
|
|
1356
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1357
|
+
*/
|
|
1358
|
+
maxExecutionTime?: number | undefined;
|
|
1359
|
+
/**
|
|
1360
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1361
|
+
*/
|
|
1362
|
+
toolApprovalRequired?: StreamAgentDataToolApprovalRequired | undefined;
|
|
1363
|
+
tools?: Array<StreamAgentDataTools> | undefined;
|
|
1364
|
+
/**
|
|
1365
|
+
* Configuration for an evaluator applied to the agent
|
|
1366
|
+
*/
|
|
1367
|
+
evaluators?: Array<StreamAgentDataEvaluators> | undefined;
|
|
1368
|
+
/**
|
|
1369
|
+
* Configuration for a guardrail applied to the agent
|
|
1370
|
+
*/
|
|
1371
|
+
guardrails?: Array<StreamAgentDataGuardrails> | undefined;
|
|
1372
|
+
};
|
|
1373
|
+
export type StreamAgentDataAgentsData = {
|
|
1374
|
+
integrationId?: string | undefined;
|
|
1375
|
+
inputMessage: DataInputMessage;
|
|
1376
|
+
modelId: string;
|
|
1377
|
+
instructions: string;
|
|
1378
|
+
systemPrompt: string;
|
|
1379
|
+
settings?: StreamAgentDataSettings | undefined;
|
|
1380
|
+
agentManifestId: string;
|
|
1381
|
+
agentKey: string;
|
|
1382
|
+
variables?: {
|
|
1383
|
+
[k: string]: any;
|
|
1384
|
+
} | undefined;
|
|
1385
|
+
toolExecutionId?: string | undefined;
|
|
1386
|
+
isContinuation?: boolean | undefined;
|
|
1387
|
+
stream?: boolean | undefined;
|
|
1388
|
+
};
|
|
1389
|
+
export type StreamAgentData2 = {
|
|
1390
|
+
type: StreamAgentDataAgentsType;
|
|
1391
|
+
/**
|
|
1392
|
+
* ISO timestamp of the event
|
|
1393
|
+
*/
|
|
1394
|
+
timestamp: string;
|
|
1395
|
+
data: StreamAgentDataAgentsData;
|
|
1396
|
+
};
|
|
1397
|
+
export declare const StreamAgentDataType: {
|
|
1398
|
+
readonly AgentsExecutionStarted: "agents.execution_started";
|
|
1399
|
+
};
|
|
1400
|
+
export type StreamAgentDataType = ClosedEnum<typeof StreamAgentDataType>;
|
|
1401
|
+
export type StreamAgentDataData = {
|
|
1402
|
+
/**
|
|
1403
|
+
* Agent execution task ID (ULID)
|
|
1404
|
+
*/
|
|
1405
|
+
agentTaskId: string;
|
|
1406
|
+
/**
|
|
1407
|
+
* Workspace ID
|
|
1408
|
+
*/
|
|
1409
|
+
workspaceId: string;
|
|
1410
|
+
/**
|
|
1411
|
+
* Trace ID for the workflow run
|
|
1412
|
+
*/
|
|
1413
|
+
traceId: string;
|
|
1414
|
+
};
|
|
1415
|
+
export type StreamAgentData1 = {
|
|
1416
|
+
type: StreamAgentDataType;
|
|
1417
|
+
/**
|
|
1418
|
+
* ISO timestamp of the event
|
|
1419
|
+
*/
|
|
1420
|
+
timestamp: string;
|
|
1421
|
+
data: StreamAgentDataData;
|
|
1422
|
+
};
|
|
1423
|
+
export type StreamAgentData = StreamAgentData1 | StreamAgentData2 | StreamAgentData3 | StreamAgentData4 | Data5 | Data6 | Data7 | Data8 | Data9 | Data10 | Data11 | Data12 | Data13 | Data14 | Data15 | Data16 | Data17;
|
|
1424
|
+
/**
|
|
1425
|
+
* SSE stream of agent events
|
|
1426
|
+
*/
|
|
1427
|
+
export type StreamAgentResponseBody = {
|
|
1428
|
+
data: StreamAgentData1 | StreamAgentData2 | StreamAgentData3 | StreamAgentData4 | Data5 | Data6 | Data7 | Data8 | Data9 | Data10 | Data11 | Data12 | Data13 | Data14 | Data15 | Data16 | Data17;
|
|
1429
|
+
};
|
|
1430
|
+
/** @internal */
|
|
1431
|
+
export declare const StreamAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
1432
|
+
/** @internal */
|
|
1433
|
+
export declare const StreamAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
1434
|
+
/** @internal */
|
|
1435
|
+
export declare const StreamAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export declare const StreamAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
1438
|
+
/** @internal */
|
|
1439
|
+
export declare const StreamAgentRole$inboundSchema: z.ZodType<StreamAgentRole, z.ZodTypeDef, unknown>;
|
|
1440
|
+
/** @internal */
|
|
1441
|
+
export type StreamAgentRole$Outbound = string | string;
|
|
1442
|
+
/** @internal */
|
|
1443
|
+
export declare const StreamAgentRole$outboundSchema: z.ZodType<StreamAgentRole$Outbound, z.ZodTypeDef, StreamAgentRole>;
|
|
1444
|
+
export declare function streamAgentRoleToJSON(streamAgentRole: StreamAgentRole): string;
|
|
1445
|
+
export declare function streamAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamAgentRole, SDKValidationError>;
|
|
1446
|
+
/** @internal */
|
|
1447
|
+
export declare const StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind>;
|
|
1448
|
+
/** @internal */
|
|
1449
|
+
export declare const StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind>;
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export declare const StreamAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export type StreamAgentPublicMessagePartToolResultPart$Outbound = {
|
|
1454
|
+
kind: string;
|
|
1455
|
+
tool_call_id: string;
|
|
1456
|
+
result?: any | undefined;
|
|
1457
|
+
metadata?: {
|
|
1458
|
+
[k: string]: any;
|
|
1459
|
+
} | undefined;
|
|
1460
|
+
};
|
|
1461
|
+
/** @internal */
|
|
1462
|
+
export declare const StreamAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartToolResultPart>;
|
|
1463
|
+
export declare function streamAgentPublicMessagePartToolResultPartToJSON(streamAgentPublicMessagePartToolResultPart: StreamAgentPublicMessagePartToolResultPart): string;
|
|
1464
|
+
export declare function streamAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
1465
|
+
/** @internal */
|
|
1466
|
+
export declare const StreamAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1467
|
+
/** @internal */
|
|
1468
|
+
export declare const StreamAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1469
|
+
/** @internal */
|
|
1470
|
+
export declare const StreamAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
1471
|
+
/** @internal */
|
|
1472
|
+
export type StreamAgentFileFileInURIFormat$Outbound = {
|
|
1473
|
+
uri: string;
|
|
1474
|
+
mimeType?: string | undefined;
|
|
1475
|
+
name?: string | undefined;
|
|
1476
|
+
};
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export declare const StreamAgentFileFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileFileInURIFormat>;
|
|
1479
|
+
export declare function streamAgentFileFileInURIFormatToJSON(streamAgentFileFileInURIFormat: StreamAgentFileFileInURIFormat): string;
|
|
1480
|
+
export declare function streamAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileFileInURIFormat, SDKValidationError>;
|
|
1481
|
+
/** @internal */
|
|
1482
|
+
export declare const StreamAgentFileBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
1483
|
+
/** @internal */
|
|
1484
|
+
export type StreamAgentFileBinaryFormat$Outbound = {
|
|
1485
|
+
bytes: string;
|
|
1486
|
+
mimeType?: string | undefined;
|
|
1487
|
+
name?: string | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
/** @internal */
|
|
1490
|
+
export declare const StreamAgentFileBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileBinaryFormat>;
|
|
1491
|
+
export declare function streamAgentFileBinaryFormatToJSON(streamAgentFileBinaryFormat: StreamAgentFileBinaryFormat): string;
|
|
1492
|
+
export declare function streamAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileBinaryFormat, SDKValidationError>;
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export declare const StreamAgentPublicMessagePartFile$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export type StreamAgentPublicMessagePartFile$Outbound = StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
1497
|
+
/** @internal */
|
|
1498
|
+
export declare const StreamAgentPublicMessagePartFile$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFile>;
|
|
1499
|
+
export declare function streamAgentPublicMessagePartFileToJSON(streamAgentPublicMessagePartFile: StreamAgentPublicMessagePartFile): string;
|
|
1500
|
+
export declare function streamAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFile, SDKValidationError>;
|
|
1501
|
+
/** @internal */
|
|
1502
|
+
export declare const StreamAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
1503
|
+
/** @internal */
|
|
1504
|
+
export type StreamAgentPublicMessagePartFilePart$Outbound = {
|
|
1505
|
+
kind: string;
|
|
1506
|
+
file: StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
1507
|
+
metadata?: {
|
|
1508
|
+
[k: string]: any;
|
|
1509
|
+
} | undefined;
|
|
1510
|
+
};
|
|
1511
|
+
/** @internal */
|
|
1512
|
+
export declare const StreamAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFilePart>;
|
|
1513
|
+
export declare function streamAgentPublicMessagePartFilePartToJSON(streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart): string;
|
|
1514
|
+
export declare function streamAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1519
|
+
/** @internal */
|
|
1520
|
+
export declare const StreamAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
1521
|
+
/** @internal */
|
|
1522
|
+
export type StreamAgentPublicMessagePartTextPart$Outbound = {
|
|
1523
|
+
kind: string;
|
|
1524
|
+
text: string;
|
|
1525
|
+
};
|
|
1526
|
+
/** @internal */
|
|
1527
|
+
export declare const StreamAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartTextPart>;
|
|
1528
|
+
export declare function streamAgentPublicMessagePartTextPartToJSON(streamAgentPublicMessagePartTextPart: StreamAgentPublicMessagePartTextPart): string;
|
|
1529
|
+
export declare function streamAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
1530
|
+
/** @internal */
|
|
1531
|
+
export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
1532
|
+
/** @internal */
|
|
1533
|
+
export type StreamAgentPublicMessagePart$Outbound = StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
1534
|
+
/** @internal */
|
|
1535
|
+
export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
|
|
1536
|
+
export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
|
|
1537
|
+
export declare function streamAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError>;
|
|
1538
|
+
/** @internal */
|
|
1539
|
+
export declare const StreamAgentA2AMessage$inboundSchema: z.ZodType<StreamAgentA2AMessage, z.ZodTypeDef, unknown>;
|
|
1540
|
+
/** @internal */
|
|
1541
|
+
export type StreamAgentA2AMessage$Outbound = {
|
|
1542
|
+
messageId?: string | undefined;
|
|
1543
|
+
role: string | string;
|
|
1544
|
+
parts: Array<StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound>;
|
|
1545
|
+
};
|
|
1546
|
+
/** @internal */
|
|
1547
|
+
export declare const StreamAgentA2AMessage$outboundSchema: z.ZodType<StreamAgentA2AMessage$Outbound, z.ZodTypeDef, StreamAgentA2AMessage>;
|
|
1548
|
+
export declare function streamAgentA2AMessageToJSON(streamAgentA2AMessage: StreamAgentA2AMessage): string;
|
|
1549
|
+
export declare function streamAgentA2AMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentA2AMessage, SDKValidationError>;
|
|
1550
|
+
/** @internal */
|
|
1551
|
+
export declare const StreamAgentContact$inboundSchema: z.ZodType<StreamAgentContact, z.ZodTypeDef, unknown>;
|
|
1552
|
+
/** @internal */
|
|
1553
|
+
export type StreamAgentContact$Outbound = {
|
|
1554
|
+
id: string;
|
|
1555
|
+
display_name?: string | undefined;
|
|
1556
|
+
email?: string | undefined;
|
|
1557
|
+
metadata?: Array<{
|
|
1558
|
+
[k: string]: any;
|
|
1559
|
+
}> | undefined;
|
|
1560
|
+
logo_url?: string | undefined;
|
|
1561
|
+
tags?: Array<string> | undefined;
|
|
1562
|
+
};
|
|
1563
|
+
/** @internal */
|
|
1564
|
+
export declare const StreamAgentContact$outboundSchema: z.ZodType<StreamAgentContact$Outbound, z.ZodTypeDef, StreamAgentContact>;
|
|
1565
|
+
export declare function streamAgentContactToJSON(streamAgentContact: StreamAgentContact): string;
|
|
1566
|
+
export declare function streamAgentContactFromJSON(jsonString: string): SafeParseResult<StreamAgentContact, SDKValidationError>;
|
|
1567
|
+
/** @internal */
|
|
1568
|
+
export declare const StreamAgentThread$inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
|
|
1569
|
+
/** @internal */
|
|
1570
|
+
export type StreamAgentThread$Outbound = {
|
|
1571
|
+
id: string;
|
|
1572
|
+
tags?: Array<string> | undefined;
|
|
1573
|
+
};
|
|
1574
|
+
/** @internal */
|
|
1575
|
+
export declare const StreamAgentThread$outboundSchema: z.ZodType<StreamAgentThread$Outbound, z.ZodTypeDef, StreamAgentThread>;
|
|
1576
|
+
export declare function streamAgentThreadToJSON(streamAgentThread: StreamAgentThread): string;
|
|
1577
|
+
export declare function streamAgentThreadFromJSON(jsonString: string): SafeParseResult<StreamAgentThread, SDKValidationError>;
|
|
1578
|
+
/** @internal */
|
|
1579
|
+
export declare const StreamAgentMemory$inboundSchema: z.ZodType<StreamAgentMemory, z.ZodTypeDef, unknown>;
|
|
1580
|
+
/** @internal */
|
|
1581
|
+
export type StreamAgentMemory$Outbound = {
|
|
1582
|
+
entity_id: string;
|
|
1583
|
+
};
|
|
1584
|
+
/** @internal */
|
|
1585
|
+
export declare const StreamAgentMemory$outboundSchema: z.ZodType<StreamAgentMemory$Outbound, z.ZodTypeDef, StreamAgentMemory>;
|
|
1586
|
+
export declare function streamAgentMemoryToJSON(streamAgentMemory: StreamAgentMemory): string;
|
|
1587
|
+
export declare function streamAgentMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentMemory, SDKValidationError>;
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export declare const StreamAgentRequestBody$inboundSchema: z.ZodType<StreamAgentRequestBody, z.ZodTypeDef, unknown>;
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export type StreamAgentRequestBody$Outbound = {
|
|
1592
|
+
task_id?: string | undefined;
|
|
1593
|
+
message: StreamAgentA2AMessage$Outbound;
|
|
1594
|
+
variables?: {
|
|
1595
|
+
[k: string]: any;
|
|
1596
|
+
} | undefined;
|
|
1597
|
+
contact?: StreamAgentContact$Outbound | undefined;
|
|
1598
|
+
thread?: StreamAgentThread$Outbound | undefined;
|
|
395
1599
|
memory?: StreamAgentMemory$Outbound | undefined;
|
|
396
1600
|
metadata?: {
|
|
397
1601
|
[k: string]: any;
|
|
398
1602
|
} | undefined;
|
|
399
|
-
stream_timeout_seconds?: number | undefined;
|
|
1603
|
+
stream_timeout_seconds?: number | undefined;
|
|
1604
|
+
};
|
|
1605
|
+
/** @internal */
|
|
1606
|
+
export declare const StreamAgentRequestBody$outboundSchema: z.ZodType<StreamAgentRequestBody$Outbound, z.ZodTypeDef, StreamAgentRequestBody>;
|
|
1607
|
+
export declare function streamAgentRequestBodyToJSON(streamAgentRequestBody: StreamAgentRequestBody): string;
|
|
1608
|
+
export declare function streamAgentRequestBodyFromJSON(jsonString: string): SafeParseResult<StreamAgentRequestBody, SDKValidationError>;
|
|
1609
|
+
/** @internal */
|
|
1610
|
+
export declare const StreamAgentRequest$inboundSchema: z.ZodType<StreamAgentRequest, z.ZodTypeDef, unknown>;
|
|
1611
|
+
/** @internal */
|
|
1612
|
+
export type StreamAgentRequest$Outbound = {
|
|
1613
|
+
key: string;
|
|
1614
|
+
RequestBody?: StreamAgentRequestBody$Outbound | undefined;
|
|
1615
|
+
};
|
|
1616
|
+
/** @internal */
|
|
1617
|
+
export declare const StreamAgentRequest$outboundSchema: z.ZodType<StreamAgentRequest$Outbound, z.ZodTypeDef, StreamAgentRequest>;
|
|
1618
|
+
export declare function streamAgentRequestToJSON(streamAgentRequest: StreamAgentRequest): string;
|
|
1619
|
+
export declare function streamAgentRequestFromJSON(jsonString: string): SafeParseResult<StreamAgentRequest, SDKValidationError>;
|
|
1620
|
+
/** @internal */
|
|
1621
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type>;
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type>;
|
|
1624
|
+
/** @internal */
|
|
1625
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data, z.ZodTypeDef, unknown>;
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound = {
|
|
1628
|
+
error: string;
|
|
1629
|
+
code: string;
|
|
1630
|
+
};
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data>;
|
|
1633
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody17DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody17Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data): string;
|
|
1634
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody17DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data, SDKValidationError>;
|
|
1635
|
+
/** @internal */
|
|
1636
|
+
export declare const Data17$inboundSchema: z.ZodType<Data17, z.ZodTypeDef, unknown>;
|
|
1637
|
+
/** @internal */
|
|
1638
|
+
export type Data17$Outbound = {
|
|
1639
|
+
type: string;
|
|
1640
|
+
timestamp: string;
|
|
1641
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound;
|
|
1642
|
+
};
|
|
1643
|
+
/** @internal */
|
|
1644
|
+
export declare const Data17$outboundSchema: z.ZodType<Data17$Outbound, z.ZodTypeDef, Data17>;
|
|
1645
|
+
export declare function data17ToJSON(data17: Data17): string;
|
|
1646
|
+
export declare function data17FromJSON(jsonString: string): SafeParseResult<Data17, SDKValidationError>;
|
|
1647
|
+
/** @internal */
|
|
1648
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type>;
|
|
1649
|
+
/** @internal */
|
|
1650
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type>;
|
|
1651
|
+
/** @internal */
|
|
1652
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data, z.ZodTypeDef, unknown>;
|
|
1653
|
+
/** @internal */
|
|
1654
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound = {
|
|
1655
|
+
message: string;
|
|
1656
|
+
};
|
|
1657
|
+
/** @internal */
|
|
1658
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data>;
|
|
1659
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody16DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody16Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data): string;
|
|
1660
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody16DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data, SDKValidationError>;
|
|
1661
|
+
/** @internal */
|
|
1662
|
+
export declare const Data16$inboundSchema: z.ZodType<Data16, z.ZodTypeDef, unknown>;
|
|
1663
|
+
/** @internal */
|
|
1664
|
+
export type Data16$Outbound = {
|
|
1665
|
+
type: string;
|
|
1666
|
+
timestamp: string;
|
|
1667
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound;
|
|
1668
|
+
};
|
|
1669
|
+
/** @internal */
|
|
1670
|
+
export declare const Data16$outboundSchema: z.ZodType<Data16$Outbound, z.ZodTypeDef, Data16>;
|
|
1671
|
+
export declare function data16ToJSON(data16: Data16): string;
|
|
1672
|
+
export declare function data16FromJSON(jsonString: string): SafeParseResult<Data16, SDKValidationError>;
|
|
1673
|
+
/** @internal */
|
|
1674
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type>;
|
|
1675
|
+
/** @internal */
|
|
1676
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type>;
|
|
1677
|
+
/** @internal */
|
|
1678
|
+
export declare const DataError$inboundSchema: z.ZodType<DataError, z.ZodTypeDef, unknown>;
|
|
1679
|
+
/** @internal */
|
|
1680
|
+
export type DataError$Outbound = {
|
|
1681
|
+
message: string;
|
|
1682
|
+
stack?: string | undefined;
|
|
1683
|
+
};
|
|
1684
|
+
/** @internal */
|
|
1685
|
+
export declare const DataError$outboundSchema: z.ZodType<DataError$Outbound, z.ZodTypeDef, DataError>;
|
|
1686
|
+
export declare function dataErrorToJSON(dataError: DataError): string;
|
|
1687
|
+
export declare function dataErrorFromJSON(jsonString: string): SafeParseResult<DataError, SDKValidationError>;
|
|
1688
|
+
/** @internal */
|
|
1689
|
+
export declare const StreamAgentDataAgentsResponseProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
1690
|
+
/** @internal */
|
|
1691
|
+
export declare const StreamAgentDataAgentsResponseProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
1692
|
+
/** @internal */
|
|
1693
|
+
export declare const StreamAgentDataAgentsResponseMemory$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseMemory, z.ZodTypeDef, unknown>;
|
|
1694
|
+
/** @internal */
|
|
1695
|
+
export type StreamAgentDataAgentsResponseMemory$Outbound = {
|
|
1696
|
+
entity_id: string;
|
|
1697
|
+
};
|
|
1698
|
+
/** @internal */
|
|
1699
|
+
export declare const StreamAgentDataAgentsResponseMemory$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseMemory$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseMemory>;
|
|
1700
|
+
export declare function streamAgentDataAgentsResponseMemoryToJSON(streamAgentDataAgentsResponseMemory: StreamAgentDataAgentsResponseMemory): string;
|
|
1701
|
+
export declare function streamAgentDataAgentsResponseMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseMemory, SDKValidationError>;
|
|
1702
|
+
/** @internal */
|
|
1703
|
+
export declare const StreamAgentDataAgentsResponseToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1704
|
+
/** @internal */
|
|
1705
|
+
export type StreamAgentDataAgentsResponseToolExecutionContext$Outbound = {
|
|
1706
|
+
action_id: string;
|
|
1707
|
+
agent_tool_call_id: string;
|
|
1708
|
+
workspace_id: string;
|
|
1709
|
+
agent_manifest_id: string;
|
|
1710
|
+
agent_execution_id: string;
|
|
1711
|
+
product: string;
|
|
1712
|
+
memory?: StreamAgentDataAgentsResponseMemory$Outbound | undefined;
|
|
1713
|
+
parent_id?: string | undefined;
|
|
1714
|
+
};
|
|
1715
|
+
/** @internal */
|
|
1716
|
+
export declare const StreamAgentDataAgentsResponseToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseToolExecutionContext>;
|
|
1717
|
+
export declare function streamAgentDataAgentsResponseToolExecutionContextToJSON(streamAgentDataAgentsResponseToolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext): string;
|
|
1718
|
+
export declare function streamAgentDataAgentsResponseToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseToolExecutionContext, SDKValidationError>;
|
|
1719
|
+
/** @internal */
|
|
1720
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data, z.ZodTypeDef, unknown>;
|
|
1721
|
+
/** @internal */
|
|
1722
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound = {
|
|
1723
|
+
error: DataError$Outbound;
|
|
1724
|
+
action_type: string;
|
|
1725
|
+
tool_execution_context: StreamAgentDataAgentsResponseToolExecutionContext$Outbound;
|
|
1726
|
+
};
|
|
1727
|
+
/** @internal */
|
|
1728
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data>;
|
|
1729
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody15DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody15Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data): string;
|
|
1730
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody15DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data, SDKValidationError>;
|
|
1731
|
+
/** @internal */
|
|
1732
|
+
export declare const Data15$inboundSchema: z.ZodType<Data15, z.ZodTypeDef, unknown>;
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
export type Data15$Outbound = {
|
|
1735
|
+
type: string;
|
|
1736
|
+
timestamp: string;
|
|
1737
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound;
|
|
1738
|
+
};
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export declare const Data15$outboundSchema: z.ZodType<Data15$Outbound, z.ZodTypeDef, Data15>;
|
|
1741
|
+
export declare function data15ToJSON(data15: Data15): string;
|
|
1742
|
+
export declare function data15FromJSON(jsonString: string): SafeParseResult<Data15, SDKValidationError>;
|
|
1743
|
+
/** @internal */
|
|
1744
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
1745
|
+
/** @internal */
|
|
1746
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
1747
|
+
/** @internal */
|
|
1748
|
+
export declare const StreamAgentDataAgentsProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsProduct>;
|
|
1749
|
+
/** @internal */
|
|
1750
|
+
export declare const StreamAgentDataAgentsProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsProduct>;
|
|
1751
|
+
/** @internal */
|
|
1752
|
+
export declare const StreamAgentDataAgentsMemory$inboundSchema: z.ZodType<StreamAgentDataAgentsMemory, z.ZodTypeDef, unknown>;
|
|
1753
|
+
/** @internal */
|
|
1754
|
+
export type StreamAgentDataAgentsMemory$Outbound = {
|
|
1755
|
+
entity_id: string;
|
|
1756
|
+
};
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export declare const StreamAgentDataAgentsMemory$outboundSchema: z.ZodType<StreamAgentDataAgentsMemory$Outbound, z.ZodTypeDef, StreamAgentDataAgentsMemory>;
|
|
1759
|
+
export declare function streamAgentDataAgentsMemoryToJSON(streamAgentDataAgentsMemory: StreamAgentDataAgentsMemory): string;
|
|
1760
|
+
export declare function streamAgentDataAgentsMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsMemory, SDKValidationError>;
|
|
1761
|
+
/** @internal */
|
|
1762
|
+
export declare const StreamAgentDataAgentsToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataAgentsToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1763
|
+
/** @internal */
|
|
1764
|
+
export type StreamAgentDataAgentsToolExecutionContext$Outbound = {
|
|
1765
|
+
action_id: string;
|
|
1766
|
+
agent_tool_call_id: string;
|
|
1767
|
+
workspace_id: string;
|
|
1768
|
+
agent_manifest_id: string;
|
|
1769
|
+
agent_execution_id: string;
|
|
1770
|
+
product: string;
|
|
1771
|
+
memory?: StreamAgentDataAgentsMemory$Outbound | undefined;
|
|
1772
|
+
parent_id?: string | undefined;
|
|
1773
|
+
};
|
|
1774
|
+
/** @internal */
|
|
1775
|
+
export declare const StreamAgentDataAgentsToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataAgentsToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataAgentsToolExecutionContext>;
|
|
1776
|
+
export declare function streamAgentDataAgentsToolExecutionContextToJSON(streamAgentDataAgentsToolExecutionContext: StreamAgentDataAgentsToolExecutionContext): string;
|
|
1777
|
+
export declare function streamAgentDataAgentsToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsToolExecutionContext, SDKValidationError>;
|
|
1778
|
+
/** @internal */
|
|
1779
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data, z.ZodTypeDef, unknown>;
|
|
1780
|
+
/** @internal */
|
|
1781
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound = {
|
|
1782
|
+
result?: any | undefined;
|
|
1783
|
+
action_type: string;
|
|
1784
|
+
tool_execution_context: StreamAgentDataAgentsToolExecutionContext$Outbound;
|
|
1785
|
+
};
|
|
1786
|
+
/** @internal */
|
|
1787
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data>;
|
|
1788
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody14DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody14Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data): string;
|
|
1789
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody14DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data, SDKValidationError>;
|
|
1790
|
+
/** @internal */
|
|
1791
|
+
export declare const Data14$inboundSchema: z.ZodType<Data14, z.ZodTypeDef, unknown>;
|
|
1792
|
+
/** @internal */
|
|
1793
|
+
export type Data14$Outbound = {
|
|
1794
|
+
type: string;
|
|
1795
|
+
timestamp: string;
|
|
1796
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound;
|
|
1797
|
+
};
|
|
1798
|
+
/** @internal */
|
|
1799
|
+
export declare const Data14$outboundSchema: z.ZodType<Data14$Outbound, z.ZodTypeDef, Data14>;
|
|
1800
|
+
export declare function data14ToJSON(data14: Data14): string;
|
|
1801
|
+
export declare function data14FromJSON(jsonString: string): SafeParseResult<Data14, SDKValidationError>;
|
|
1802
|
+
/** @internal */
|
|
1803
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
1804
|
+
/** @internal */
|
|
1805
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
1806
|
+
/** @internal */
|
|
1807
|
+
export declare const StreamAgentDataProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataProduct>;
|
|
1808
|
+
/** @internal */
|
|
1809
|
+
export declare const StreamAgentDataProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataProduct>;
|
|
1810
|
+
/** @internal */
|
|
1811
|
+
export declare const StreamAgentDataMemory$inboundSchema: z.ZodType<StreamAgentDataMemory, z.ZodTypeDef, unknown>;
|
|
1812
|
+
/** @internal */
|
|
1813
|
+
export type StreamAgentDataMemory$Outbound = {
|
|
1814
|
+
entity_id: string;
|
|
1815
|
+
};
|
|
1816
|
+
/** @internal */
|
|
1817
|
+
export declare const StreamAgentDataMemory$outboundSchema: z.ZodType<StreamAgentDataMemory$Outbound, z.ZodTypeDef, StreamAgentDataMemory>;
|
|
1818
|
+
export declare function streamAgentDataMemoryToJSON(streamAgentDataMemory: StreamAgentDataMemory): string;
|
|
1819
|
+
export declare function streamAgentDataMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataMemory, SDKValidationError>;
|
|
1820
|
+
/** @internal */
|
|
1821
|
+
export declare const StreamAgentDataToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1822
|
+
/** @internal */
|
|
1823
|
+
export type StreamAgentDataToolExecutionContext$Outbound = {
|
|
1824
|
+
action_id: string;
|
|
1825
|
+
agent_tool_call_id: string;
|
|
1826
|
+
workspace_id: string;
|
|
1827
|
+
agent_manifest_id: string;
|
|
1828
|
+
agent_execution_id: string;
|
|
1829
|
+
product: string;
|
|
1830
|
+
memory?: StreamAgentDataMemory$Outbound | undefined;
|
|
1831
|
+
parent_id?: string | undefined;
|
|
1832
|
+
};
|
|
1833
|
+
/** @internal */
|
|
1834
|
+
export declare const StreamAgentDataToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataToolExecutionContext>;
|
|
1835
|
+
export declare function streamAgentDataToolExecutionContextToJSON(streamAgentDataToolExecutionContext: StreamAgentDataToolExecutionContext): string;
|
|
1836
|
+
export declare function streamAgentDataToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataToolExecutionContext, SDKValidationError>;
|
|
1837
|
+
/** @internal */
|
|
1838
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data, z.ZodTypeDef, unknown>;
|
|
1839
|
+
/** @internal */
|
|
1840
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound = {
|
|
1841
|
+
tool_id: string;
|
|
1842
|
+
tool_key?: string | undefined;
|
|
1843
|
+
tool_display_name?: string | undefined;
|
|
1844
|
+
action_type: string;
|
|
1845
|
+
tool_arguments: {
|
|
1846
|
+
[k: string]: any;
|
|
1847
|
+
};
|
|
1848
|
+
tool_execution_context: StreamAgentDataToolExecutionContext$Outbound;
|
|
1849
|
+
};
|
|
1850
|
+
/** @internal */
|
|
1851
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data>;
|
|
1852
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody13DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody13Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data): string;
|
|
1853
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody13DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data, SDKValidationError>;
|
|
1854
|
+
/** @internal */
|
|
1855
|
+
export declare const Data13$inboundSchema: z.ZodType<Data13, z.ZodTypeDef, unknown>;
|
|
1856
|
+
/** @internal */
|
|
1857
|
+
export type Data13$Outbound = {
|
|
1858
|
+
type: string;
|
|
1859
|
+
timestamp: string;
|
|
1860
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound;
|
|
1861
|
+
};
|
|
1862
|
+
/** @internal */
|
|
1863
|
+
export declare const Data13$outboundSchema: z.ZodType<Data13$Outbound, z.ZodTypeDef, Data13>;
|
|
1864
|
+
export declare function data13ToJSON(data13: Data13): string;
|
|
1865
|
+
export declare function data13FromJSON(jsonString: string): SafeParseResult<Data13, SDKValidationError>;
|
|
1866
|
+
/** @internal */
|
|
1867
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
1868
|
+
/** @internal */
|
|
1869
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
1870
|
+
/** @internal */
|
|
1871
|
+
export declare const StreamAgentDataAgentsResponseRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
1872
|
+
/** @internal */
|
|
1873
|
+
export declare const StreamAgentDataAgentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
1874
|
+
/** @internal */
|
|
1875
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
1876
|
+
/** @internal */
|
|
1877
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
1878
|
+
/** @internal */
|
|
1879
|
+
export declare const StreamAgentPartsAgentsResponseToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolResultPart, z.ZodTypeDef, unknown>;
|
|
1880
|
+
/** @internal */
|
|
1881
|
+
export type StreamAgentPartsAgentsResponseToolResultPart$Outbound = {
|
|
1882
|
+
kind: string;
|
|
1883
|
+
tool_call_id: string;
|
|
1884
|
+
result?: any | undefined;
|
|
1885
|
+
metadata?: {
|
|
1886
|
+
[k: string]: any;
|
|
1887
|
+
} | undefined;
|
|
1888
|
+
};
|
|
1889
|
+
/** @internal */
|
|
1890
|
+
export declare const StreamAgentPartsAgentsResponseToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseToolResultPart>;
|
|
1891
|
+
export declare function streamAgentPartsAgentsResponseToolResultPartToJSON(streamAgentPartsAgentsResponseToolResultPart: StreamAgentPartsAgentsResponseToolResultPart): string;
|
|
1892
|
+
export declare function streamAgentPartsAgentsResponseToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseToolResultPart, SDKValidationError>;
|
|
1893
|
+
/** @internal */
|
|
1894
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
1895
|
+
/** @internal */
|
|
1896
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
1897
|
+
/** @internal */
|
|
1898
|
+
export declare const StreamAgentPartsAgentsResponseToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolCallPart, z.ZodTypeDef, unknown>;
|
|
1899
|
+
/** @internal */
|
|
1900
|
+
export type StreamAgentPartsAgentsResponseToolCallPart$Outbound = {
|
|
1901
|
+
kind: string;
|
|
1902
|
+
tool_name: string;
|
|
1903
|
+
tool_call_id: string;
|
|
1904
|
+
arguments: {
|
|
1905
|
+
[k: string]: any;
|
|
1906
|
+
};
|
|
1907
|
+
metadata?: {
|
|
1908
|
+
[k: string]: any;
|
|
1909
|
+
} | undefined;
|
|
1910
|
+
};
|
|
1911
|
+
/** @internal */
|
|
1912
|
+
export declare const StreamAgentPartsAgentsResponseToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseToolCallPart>;
|
|
1913
|
+
export declare function streamAgentPartsAgentsResponseToolCallPartToJSON(streamAgentPartsAgentsResponseToolCallPart: StreamAgentPartsAgentsResponseToolCallPart): string;
|
|
1914
|
+
export declare function streamAgentPartsAgentsResponseToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseToolCallPart, SDKValidationError>;
|
|
1915
|
+
/** @internal */
|
|
1916
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
1917
|
+
/** @internal */
|
|
1918
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
1919
|
+
/** @internal */
|
|
1920
|
+
export declare const StreamAgentFileAgentsResponse200FileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200FileInURIFormat, z.ZodTypeDef, unknown>;
|
|
1921
|
+
/** @internal */
|
|
1922
|
+
export type StreamAgentFileAgentsResponse200FileInURIFormat$Outbound = {
|
|
1923
|
+
uri: string;
|
|
1924
|
+
mimeType?: string | undefined;
|
|
1925
|
+
name?: string | undefined;
|
|
1926
|
+
};
|
|
1927
|
+
/** @internal */
|
|
1928
|
+
export declare const StreamAgentFileAgentsResponse200FileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200FileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200FileInURIFormat>;
|
|
1929
|
+
export declare function streamAgentFileAgentsResponse200FileInURIFormatToJSON(streamAgentFileAgentsResponse200FileInURIFormat: StreamAgentFileAgentsResponse200FileInURIFormat): string;
|
|
1930
|
+
export declare function streamAgentFileAgentsResponse200FileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200FileInURIFormat, SDKValidationError>;
|
|
1931
|
+
/** @internal */
|
|
1932
|
+
export declare const StreamAgentFileAgentsResponse200BinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200BinaryFormat, z.ZodTypeDef, unknown>;
|
|
1933
|
+
/** @internal */
|
|
1934
|
+
export type StreamAgentFileAgentsResponse200BinaryFormat$Outbound = {
|
|
1935
|
+
bytes: string;
|
|
1936
|
+
mimeType?: string | undefined;
|
|
1937
|
+
name?: string | undefined;
|
|
1938
|
+
};
|
|
1939
|
+
/** @internal */
|
|
1940
|
+
export declare const StreamAgentFileAgentsResponse200BinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200BinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200BinaryFormat>;
|
|
1941
|
+
export declare function streamAgentFileAgentsResponse200BinaryFormatToJSON(streamAgentFileAgentsResponse200BinaryFormat: StreamAgentFileAgentsResponse200BinaryFormat): string;
|
|
1942
|
+
export declare function streamAgentFileAgentsResponse200BinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200BinaryFormat, SDKValidationError>;
|
|
1943
|
+
/** @internal */
|
|
1944
|
+
export declare const StreamAgentPartsAgentsResponseFile$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFile, z.ZodTypeDef, unknown>;
|
|
1945
|
+
/** @internal */
|
|
1946
|
+
export type StreamAgentPartsAgentsResponseFile$Outbound = StreamAgentFileAgentsResponse200BinaryFormat$Outbound | StreamAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
1947
|
+
/** @internal */
|
|
1948
|
+
export declare const StreamAgentPartsAgentsResponseFile$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFile$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseFile>;
|
|
1949
|
+
export declare function streamAgentPartsAgentsResponseFileToJSON(streamAgentPartsAgentsResponseFile: StreamAgentPartsAgentsResponseFile): string;
|
|
1950
|
+
export declare function streamAgentPartsAgentsResponseFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseFile, SDKValidationError>;
|
|
1951
|
+
/** @internal */
|
|
1952
|
+
export declare const StreamAgentPartsAgentsResponseFilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFilePart, z.ZodTypeDef, unknown>;
|
|
1953
|
+
/** @internal */
|
|
1954
|
+
export type StreamAgentPartsAgentsResponseFilePart$Outbound = {
|
|
1955
|
+
kind: string;
|
|
1956
|
+
file: StreamAgentFileAgentsResponse200BinaryFormat$Outbound | StreamAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
1957
|
+
metadata?: {
|
|
1958
|
+
[k: string]: any;
|
|
1959
|
+
} | undefined;
|
|
1960
|
+
};
|
|
1961
|
+
/** @internal */
|
|
1962
|
+
export declare const StreamAgentPartsAgentsResponseFilePart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseFilePart>;
|
|
1963
|
+
export declare function streamAgentPartsAgentsResponseFilePartToJSON(streamAgentPartsAgentsResponseFilePart: StreamAgentPartsAgentsResponseFilePart): string;
|
|
1964
|
+
export declare function streamAgentPartsAgentsResponseFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseFilePart, SDKValidationError>;
|
|
1965
|
+
/** @internal */
|
|
1966
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
1967
|
+
/** @internal */
|
|
1968
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
1969
|
+
/** @internal */
|
|
1970
|
+
export declare const StreamAgentPartsAgentsResponseDataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseDataPart, z.ZodTypeDef, unknown>;
|
|
1971
|
+
/** @internal */
|
|
1972
|
+
export type StreamAgentPartsAgentsResponseDataPart$Outbound = {
|
|
1973
|
+
kind: string;
|
|
1974
|
+
data: {
|
|
1975
|
+
[k: string]: any;
|
|
1976
|
+
};
|
|
1977
|
+
metadata?: {
|
|
1978
|
+
[k: string]: any;
|
|
1979
|
+
} | undefined;
|
|
1980
|
+
};
|
|
1981
|
+
/** @internal */
|
|
1982
|
+
export declare const StreamAgentPartsAgentsResponseDataPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseDataPart>;
|
|
1983
|
+
export declare function streamAgentPartsAgentsResponseDataPartToJSON(streamAgentPartsAgentsResponseDataPart: StreamAgentPartsAgentsResponseDataPart): string;
|
|
1984
|
+
export declare function streamAgentPartsAgentsResponseDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseDataPart, SDKValidationError>;
|
|
1985
|
+
/** @internal */
|
|
1986
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
1987
|
+
/** @internal */
|
|
1988
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
1989
|
+
/** @internal */
|
|
1990
|
+
export declare const StreamAgentPartsAgentsResponseTextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseTextPart, z.ZodTypeDef, unknown>;
|
|
1991
|
+
/** @internal */
|
|
1992
|
+
export type StreamAgentPartsAgentsResponseTextPart$Outbound = {
|
|
1993
|
+
kind: string;
|
|
1994
|
+
text: string;
|
|
1995
|
+
};
|
|
1996
|
+
/** @internal */
|
|
1997
|
+
export declare const StreamAgentPartsAgentsResponseTextPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseTextPart>;
|
|
1998
|
+
export declare function streamAgentPartsAgentsResponseTextPartToJSON(streamAgentPartsAgentsResponseTextPart: StreamAgentPartsAgentsResponseTextPart): string;
|
|
1999
|
+
export declare function streamAgentPartsAgentsResponseTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseTextPart, SDKValidationError>;
|
|
2000
|
+
/** @internal */
|
|
2001
|
+
export declare const StreamAgentDataAgentsResponseParts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts, z.ZodTypeDef, unknown>;
|
|
2002
|
+
/** @internal */
|
|
2003
|
+
export type StreamAgentDataAgentsResponseParts$Outbound = StreamAgentPartsAgentsResponseToolCallPart$Outbound | StreamAgentPartsAgentsResponseTextPart$Outbound | StreamAgentPartsAgentsResponseDataPart$Outbound | StreamAgentPartsAgentsResponseFilePart$Outbound | StreamAgentPartsAgentsResponseToolResultPart$Outbound;
|
|
2004
|
+
/** @internal */
|
|
2005
|
+
export declare const StreamAgentDataAgentsResponseParts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseParts>;
|
|
2006
|
+
export declare function streamAgentDataAgentsResponsePartsToJSON(streamAgentDataAgentsResponseParts: StreamAgentDataAgentsResponseParts): string;
|
|
2007
|
+
export declare function streamAgentDataAgentsResponsePartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseParts, SDKValidationError>;
|
|
2008
|
+
/** @internal */
|
|
2009
|
+
export declare const StreamAgentDataMessage$inboundSchema: z.ZodType<StreamAgentDataMessage, z.ZodTypeDef, unknown>;
|
|
2010
|
+
/** @internal */
|
|
2011
|
+
export type StreamAgentDataMessage$Outbound = {
|
|
2012
|
+
messageId?: string | undefined;
|
|
2013
|
+
role: string;
|
|
2014
|
+
parts: Array<StreamAgentPartsAgentsResponseToolCallPart$Outbound | StreamAgentPartsAgentsResponseTextPart$Outbound | StreamAgentPartsAgentsResponseDataPart$Outbound | StreamAgentPartsAgentsResponseFilePart$Outbound | StreamAgentPartsAgentsResponseToolResultPart$Outbound>;
|
|
2015
|
+
metadata?: {
|
|
2016
|
+
[k: string]: any;
|
|
2017
|
+
} | undefined;
|
|
2018
|
+
};
|
|
2019
|
+
/** @internal */
|
|
2020
|
+
export declare const StreamAgentDataMessage$outboundSchema: z.ZodType<StreamAgentDataMessage$Outbound, z.ZodTypeDef, StreamAgentDataMessage>;
|
|
2021
|
+
export declare function streamAgentDataMessageToJSON(streamAgentDataMessage: StreamAgentDataMessage): string;
|
|
2022
|
+
export declare function streamAgentDataMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataMessage, SDKValidationError>;
|
|
2023
|
+
/** @internal */
|
|
2024
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data, z.ZodTypeDef, unknown>;
|
|
2025
|
+
/** @internal */
|
|
2026
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound = {
|
|
2027
|
+
workflowRunId: string;
|
|
2028
|
+
spanId: string;
|
|
2029
|
+
parentId: string;
|
|
2030
|
+
message: Array<StreamAgentDataMessage$Outbound>;
|
|
2031
|
+
};
|
|
2032
|
+
/** @internal */
|
|
2033
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data>;
|
|
2034
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody12DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody12Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data): string;
|
|
2035
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody12DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data, SDKValidationError>;
|
|
2036
|
+
/** @internal */
|
|
2037
|
+
export declare const Data12$inboundSchema: z.ZodType<Data12, z.ZodTypeDef, unknown>;
|
|
2038
|
+
/** @internal */
|
|
2039
|
+
export type Data12$Outbound = {
|
|
2040
|
+
type: string;
|
|
2041
|
+
timestamp: string;
|
|
2042
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound;
|
|
2043
|
+
};
|
|
2044
|
+
/** @internal */
|
|
2045
|
+
export declare const Data12$outboundSchema: z.ZodType<Data12$Outbound, z.ZodTypeDef, Data12>;
|
|
2046
|
+
export declare function data12ToJSON(data12: Data12): string;
|
|
2047
|
+
export declare function data12FromJSON(jsonString: string): SafeParseResult<Data12, SDKValidationError>;
|
|
2048
|
+
/** @internal */
|
|
2049
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
2050
|
+
/** @internal */
|
|
2051
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
2052
|
+
/** @internal */
|
|
2053
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data, z.ZodTypeDef, unknown>;
|
|
2054
|
+
/** @internal */
|
|
2055
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound = {
|
|
2056
|
+
agent_id: string;
|
|
2057
|
+
input: string;
|
|
2058
|
+
};
|
|
2059
|
+
/** @internal */
|
|
2060
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data>;
|
|
2061
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody11DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody11Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data): string;
|
|
2062
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody11DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data, SDKValidationError>;
|
|
2063
|
+
/** @internal */
|
|
2064
|
+
export declare const Data11$inboundSchema: z.ZodType<Data11, z.ZodTypeDef, unknown>;
|
|
2065
|
+
/** @internal */
|
|
2066
|
+
export type Data11$Outbound = {
|
|
2067
|
+
type: string;
|
|
2068
|
+
timestamp: string;
|
|
2069
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound;
|
|
2070
|
+
};
|
|
2071
|
+
/** @internal */
|
|
2072
|
+
export declare const Data11$outboundSchema: z.ZodType<Data11$Outbound, z.ZodTypeDef, Data11>;
|
|
2073
|
+
export declare function data11ToJSON(data11: Data11): string;
|
|
2074
|
+
export declare function data11FromJSON(jsonString: string): SafeParseResult<Data11, SDKValidationError>;
|
|
2075
|
+
/** @internal */
|
|
2076
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
2077
|
+
/** @internal */
|
|
2078
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
2079
|
+
/** @internal */
|
|
2080
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data, z.ZodTypeDef, unknown>;
|
|
2081
|
+
/** @internal */
|
|
2082
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound = {
|
|
2083
|
+
name: string;
|
|
2084
|
+
agent_manifest_id: string;
|
|
2085
|
+
};
|
|
2086
|
+
/** @internal */
|
|
2087
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data>;
|
|
2088
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody10DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody10Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data): string;
|
|
2089
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody10DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data, SDKValidationError>;
|
|
2090
|
+
/** @internal */
|
|
2091
|
+
export declare const Data10$inboundSchema: z.ZodType<Data10, z.ZodTypeDef, unknown>;
|
|
2092
|
+
/** @internal */
|
|
2093
|
+
export type Data10$Outbound = {
|
|
2094
|
+
type: string;
|
|
2095
|
+
timestamp: string;
|
|
2096
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound;
|
|
2097
|
+
};
|
|
2098
|
+
/** @internal */
|
|
2099
|
+
export declare const Data10$outboundSchema: z.ZodType<Data10$Outbound, z.ZodTypeDef, Data10>;
|
|
2100
|
+
export declare function data10ToJSON(data10: Data10): string;
|
|
2101
|
+
export declare function data10FromJSON(jsonString: string): SafeParseResult<Data10, SDKValidationError>;
|
|
2102
|
+
/** @internal */
|
|
2103
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
2104
|
+
/** @internal */
|
|
2105
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
2106
|
+
/** @internal */
|
|
2107
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data, z.ZodTypeDef, unknown>;
|
|
2108
|
+
/** @internal */
|
|
2109
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound = {};
|
|
2110
|
+
/** @internal */
|
|
2111
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data>;
|
|
2112
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody9DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody9Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data): string;
|
|
2113
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody9DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data, SDKValidationError>;
|
|
2114
|
+
/** @internal */
|
|
2115
|
+
export declare const Data9$inboundSchema: z.ZodType<Data9, z.ZodTypeDef, unknown>;
|
|
2116
|
+
/** @internal */
|
|
2117
|
+
export type Data9$Outbound = {
|
|
2118
|
+
type: string;
|
|
2119
|
+
timestamp: string;
|
|
2120
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound;
|
|
2121
|
+
};
|
|
2122
|
+
/** @internal */
|
|
2123
|
+
export declare const Data9$outboundSchema: z.ZodType<Data9$Outbound, z.ZodTypeDef, Data9>;
|
|
2124
|
+
export declare function data9ToJSON(data9: Data9): string;
|
|
2125
|
+
export declare function data9FromJSON(jsonString: string): SafeParseResult<Data9, SDKValidationError>;
|
|
2126
|
+
/** @internal */
|
|
2127
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
2128
|
+
/** @internal */
|
|
2129
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
2130
|
+
/** @internal */
|
|
2131
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data, z.ZodTypeDef, unknown>;
|
|
2132
|
+
/** @internal */
|
|
2133
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound = {};
|
|
2134
|
+
/** @internal */
|
|
2135
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data>;
|
|
2136
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody8DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody8Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data): string;
|
|
2137
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody8DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data, SDKValidationError>;
|
|
2138
|
+
/** @internal */
|
|
2139
|
+
export declare const Data8$inboundSchema: z.ZodType<Data8, z.ZodTypeDef, unknown>;
|
|
2140
|
+
/** @internal */
|
|
2141
|
+
export type Data8$Outbound = {
|
|
2142
|
+
type: string;
|
|
2143
|
+
timestamp: string;
|
|
2144
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound;
|
|
2145
|
+
};
|
|
2146
|
+
/** @internal */
|
|
2147
|
+
export declare const Data8$outboundSchema: z.ZodType<Data8$Outbound, z.ZodTypeDef, Data8>;
|
|
2148
|
+
export declare function data8ToJSON(data8: Data8): string;
|
|
2149
|
+
export declare function data8FromJSON(jsonString: string): SafeParseResult<Data8, SDKValidationError>;
|
|
2150
|
+
/** @internal */
|
|
2151
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
2152
|
+
/** @internal */
|
|
2153
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
2154
|
+
/** @internal */
|
|
2155
|
+
export declare const DataReview$inboundSchema: z.ZodNativeEnum<typeof DataReview>;
|
|
2156
|
+
/** @internal */
|
|
2157
|
+
export declare const DataReview$outboundSchema: z.ZodNativeEnum<typeof DataReview>;
|
|
2158
|
+
/** @internal */
|
|
2159
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data, z.ZodTypeDef, unknown>;
|
|
2160
|
+
/** @internal */
|
|
2161
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound = {
|
|
2162
|
+
agent_id: string;
|
|
2163
|
+
action_id: string;
|
|
2164
|
+
agent_tool_call_id: string;
|
|
2165
|
+
review: string;
|
|
2166
|
+
mock_output?: {
|
|
2167
|
+
[k: string]: any;
|
|
2168
|
+
} | undefined;
|
|
2169
|
+
review_source?: string | undefined;
|
|
2170
|
+
reviewed_by_id?: string | undefined;
|
|
2171
|
+
};
|
|
2172
|
+
/** @internal */
|
|
2173
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data>;
|
|
2174
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody7DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody7Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data): string;
|
|
2175
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody7DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data, SDKValidationError>;
|
|
2176
|
+
/** @internal */
|
|
2177
|
+
export declare const Data7$inboundSchema: z.ZodType<Data7, z.ZodTypeDef, unknown>;
|
|
2178
|
+
/** @internal */
|
|
2179
|
+
export type Data7$Outbound = {
|
|
2180
|
+
type: string;
|
|
2181
|
+
timestamp: string;
|
|
2182
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound;
|
|
2183
|
+
};
|
|
2184
|
+
/** @internal */
|
|
2185
|
+
export declare const Data7$outboundSchema: z.ZodType<Data7$Outbound, z.ZodTypeDef, Data7>;
|
|
2186
|
+
export declare function data7ToJSON(data7: Data7): string;
|
|
2187
|
+
export declare function data7FromJSON(jsonString: string): SafeParseResult<Data7, SDKValidationError>;
|
|
2188
|
+
/** @internal */
|
|
2189
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
2190
|
+
/** @internal */
|
|
2191
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
2192
|
+
/** @internal */
|
|
2193
|
+
export declare const StreamAgentDataConditions$inboundSchema: z.ZodType<StreamAgentDataConditions, z.ZodTypeDef, unknown>;
|
|
2194
|
+
/** @internal */
|
|
2195
|
+
export type StreamAgentDataConditions$Outbound = {
|
|
2196
|
+
condition: string;
|
|
2197
|
+
operator: string;
|
|
2198
|
+
value: string;
|
|
2199
|
+
};
|
|
2200
|
+
/** @internal */
|
|
2201
|
+
export declare const StreamAgentDataConditions$outboundSchema: z.ZodType<StreamAgentDataConditions$Outbound, z.ZodTypeDef, StreamAgentDataConditions>;
|
|
2202
|
+
export declare function streamAgentDataConditionsToJSON(streamAgentDataConditions: StreamAgentDataConditions): string;
|
|
2203
|
+
export declare function streamAgentDataConditionsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataConditions, SDKValidationError>;
|
|
2204
|
+
/** @internal */
|
|
2205
|
+
export declare const DataTool$inboundSchema: z.ZodType<DataTool, z.ZodTypeDef, unknown>;
|
|
2206
|
+
/** @internal */
|
|
2207
|
+
export type DataTool$Outbound = {
|
|
2208
|
+
id: string;
|
|
2209
|
+
key?: string | undefined;
|
|
2210
|
+
action_type: string;
|
|
2211
|
+
display_name?: string | undefined;
|
|
2212
|
+
description?: string | undefined;
|
|
2213
|
+
requires_approval: boolean;
|
|
2214
|
+
tool_id?: string | undefined;
|
|
2215
|
+
conditions?: Array<StreamAgentDataConditions$Outbound> | undefined;
|
|
2216
|
+
timeout: number;
|
|
2217
|
+
};
|
|
2218
|
+
/** @internal */
|
|
2219
|
+
export declare const DataTool$outboundSchema: z.ZodType<DataTool$Outbound, z.ZodTypeDef, DataTool>;
|
|
2220
|
+
export declare function dataToolToJSON(dataTool: DataTool): string;
|
|
2221
|
+
export declare function dataToolFromJSON(jsonString: string): SafeParseResult<DataTool, SDKValidationError>;
|
|
2222
|
+
/** @internal */
|
|
2223
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData, z.ZodTypeDef, unknown>;
|
|
2224
|
+
/** @internal */
|
|
2225
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound = {
|
|
2226
|
+
agent_id: string;
|
|
2227
|
+
action_id: string;
|
|
2228
|
+
requires_approval: boolean;
|
|
2229
|
+
tool: DataTool$Outbound;
|
|
2230
|
+
input: {
|
|
2231
|
+
[k: string]: any;
|
|
2232
|
+
};
|
|
2233
|
+
agent_tool_call_id: string;
|
|
2234
|
+
};
|
|
2235
|
+
/** @internal */
|
|
2236
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData>;
|
|
2237
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBodyDataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBodyData: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData): string;
|
|
2238
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBodyDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData, SDKValidationError>;
|
|
2239
|
+
/** @internal */
|
|
2240
|
+
export declare const Data6$inboundSchema: z.ZodType<Data6, z.ZodTypeDef, unknown>;
|
|
2241
|
+
/** @internal */
|
|
2242
|
+
export type Data6$Outbound = {
|
|
2243
|
+
type: string;
|
|
2244
|
+
timestamp: string;
|
|
2245
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound;
|
|
2246
|
+
};
|
|
2247
|
+
/** @internal */
|
|
2248
|
+
export declare const Data6$outboundSchema: z.ZodType<Data6$Outbound, z.ZodTypeDef, Data6>;
|
|
2249
|
+
export declare function data6ToJSON(data6: Data6): string;
|
|
2250
|
+
export declare function data6FromJSON(jsonString: string): SafeParseResult<Data6, SDKValidationError>;
|
|
2251
|
+
/** @internal */
|
|
2252
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
2253
|
+
/** @internal */
|
|
2254
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
2255
|
+
/** @internal */
|
|
2256
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData, z.ZodTypeDef, unknown>;
|
|
2257
|
+
/** @internal */
|
|
2258
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamData$Outbound = {
|
|
2259
|
+
error: string;
|
|
2260
|
+
code: number;
|
|
2261
|
+
};
|
|
2262
|
+
/** @internal */
|
|
2263
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamData>;
|
|
2264
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamDataToJSON(streamAgentDataAgentsResponse200TextEventStreamData: StreamAgentDataAgentsResponse200TextEventStreamData): string;
|
|
2265
|
+
export declare function streamAgentDataAgentsResponse200TextEventStreamDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamData, SDKValidationError>;
|
|
2266
|
+
/** @internal */
|
|
2267
|
+
export declare const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown>;
|
|
2268
|
+
/** @internal */
|
|
2269
|
+
export type Data5$Outbound = {
|
|
2270
|
+
type: string;
|
|
2271
|
+
timestamp: string;
|
|
2272
|
+
data: StreamAgentDataAgentsResponse200TextEventStreamData$Outbound;
|
|
2273
|
+
};
|
|
2274
|
+
/** @internal */
|
|
2275
|
+
export declare const Data5$outboundSchema: z.ZodType<Data5$Outbound, z.ZodTypeDef, Data5>;
|
|
2276
|
+
export declare function data5ToJSON(data5: Data5): string;
|
|
2277
|
+
export declare function data5FromJSON(jsonString: string): SafeParseResult<Data5, SDKValidationError>;
|
|
2278
|
+
/** @internal */
|
|
2279
|
+
export declare const StreamAgentDataAgentsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
2280
|
+
/** @internal */
|
|
2281
|
+
export declare const StreamAgentDataAgentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
2282
|
+
/** @internal */
|
|
2283
|
+
export declare const DataFinishReason$inboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
2284
|
+
/** @internal */
|
|
2285
|
+
export declare const DataFinishReason$outboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
2286
|
+
/** @internal */
|
|
2287
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
2288
|
+
/** @internal */
|
|
2289
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
2290
|
+
/** @internal */
|
|
2291
|
+
export declare const StreamAgentDataFunction$inboundSchema: z.ZodType<StreamAgentDataFunction, z.ZodTypeDef, unknown>;
|
|
2292
|
+
/** @internal */
|
|
2293
|
+
export type StreamAgentDataFunction$Outbound = {
|
|
2294
|
+
name?: string | undefined;
|
|
2295
|
+
arguments?: string | undefined;
|
|
2296
|
+
};
|
|
2297
|
+
/** @internal */
|
|
2298
|
+
export declare const StreamAgentDataFunction$outboundSchema: z.ZodType<StreamAgentDataFunction$Outbound, z.ZodTypeDef, StreamAgentDataFunction>;
|
|
2299
|
+
export declare function streamAgentDataFunctionToJSON(streamAgentDataFunction: StreamAgentDataFunction): string;
|
|
2300
|
+
export declare function streamAgentDataFunctionFromJSON(jsonString: string): SafeParseResult<StreamAgentDataFunction, SDKValidationError>;
|
|
2301
|
+
/** @internal */
|
|
2302
|
+
export declare const DataPendingToolCalls$inboundSchema: z.ZodType<DataPendingToolCalls, z.ZodTypeDef, unknown>;
|
|
2303
|
+
/** @internal */
|
|
2304
|
+
export type DataPendingToolCalls$Outbound = {
|
|
2305
|
+
id: string;
|
|
2306
|
+
type: string;
|
|
2307
|
+
function: StreamAgentDataFunction$Outbound;
|
|
2308
|
+
};
|
|
2309
|
+
/** @internal */
|
|
2310
|
+
export declare const DataPendingToolCalls$outboundSchema: z.ZodType<DataPendingToolCalls$Outbound, z.ZodTypeDef, DataPendingToolCalls>;
|
|
2311
|
+
export declare function dataPendingToolCallsToJSON(dataPendingToolCalls: DataPendingToolCalls): string;
|
|
2312
|
+
export declare function dataPendingToolCallsFromJSON(jsonString: string): SafeParseResult<DataPendingToolCalls, SDKValidationError>;
|
|
2313
|
+
/** @internal */
|
|
2314
|
+
export declare const StreamAgentDataAgentsResponse200Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data, z.ZodTypeDef, unknown>;
|
|
2315
|
+
/** @internal */
|
|
2316
|
+
export type StreamAgentDataAgentsResponse200Data$Outbound = {
|
|
2317
|
+
last_message: string;
|
|
2318
|
+
finish_reason: string;
|
|
2319
|
+
pending_tool_calls?: Array<DataPendingToolCalls$Outbound> | undefined;
|
|
2320
|
+
};
|
|
2321
|
+
/** @internal */
|
|
2322
|
+
export declare const StreamAgentDataAgentsResponse200Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Data>;
|
|
2323
|
+
export declare function streamAgentDataAgentsResponse200DataToJSON(streamAgentDataAgentsResponse200Data: StreamAgentDataAgentsResponse200Data): string;
|
|
2324
|
+
export declare function streamAgentDataAgentsResponse200DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200Data, SDKValidationError>;
|
|
2325
|
+
/** @internal */
|
|
2326
|
+
export declare const StreamAgentData4$inboundSchema: z.ZodType<StreamAgentData4, z.ZodTypeDef, unknown>;
|
|
2327
|
+
/** @internal */
|
|
2328
|
+
export type StreamAgentData4$Outbound = {
|
|
2329
|
+
type: string;
|
|
2330
|
+
timestamp: string;
|
|
2331
|
+
data: StreamAgentDataAgentsResponse200Data$Outbound;
|
|
2332
|
+
};
|
|
2333
|
+
/** @internal */
|
|
2334
|
+
export declare const StreamAgentData4$outboundSchema: z.ZodType<StreamAgentData4$Outbound, z.ZodTypeDef, StreamAgentData4>;
|
|
2335
|
+
export declare function streamAgentData4ToJSON(streamAgentData4: StreamAgentData4): string;
|
|
2336
|
+
export declare function streamAgentData4FromJSON(jsonString: string): SafeParseResult<StreamAgentData4, SDKValidationError>;
|
|
2337
|
+
/** @internal */
|
|
2338
|
+
export declare const StreamAgentDataAgentsResponseType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
2339
|
+
/** @internal */
|
|
2340
|
+
export declare const StreamAgentDataAgentsResponseType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
2341
|
+
/** @internal */
|
|
2342
|
+
export declare const StreamAgentDataAgentsRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsRole>;
|
|
2343
|
+
/** @internal */
|
|
2344
|
+
export declare const StreamAgentDataAgentsRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsRole>;
|
|
2345
|
+
/** @internal */
|
|
2346
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
2347
|
+
/** @internal */
|
|
2348
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
2349
|
+
/** @internal */
|
|
2350
|
+
export declare const StreamAgentPartsAgentsToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsToolResultPart, z.ZodTypeDef, unknown>;
|
|
2351
|
+
/** @internal */
|
|
2352
|
+
export type StreamAgentPartsAgentsToolResultPart$Outbound = {
|
|
2353
|
+
kind: string;
|
|
2354
|
+
tool_call_id: string;
|
|
2355
|
+
result?: any | undefined;
|
|
2356
|
+
metadata?: {
|
|
2357
|
+
[k: string]: any;
|
|
2358
|
+
} | undefined;
|
|
2359
|
+
};
|
|
2360
|
+
/** @internal */
|
|
2361
|
+
export declare const StreamAgentPartsAgentsToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsToolResultPart>;
|
|
2362
|
+
export declare function streamAgentPartsAgentsToolResultPartToJSON(streamAgentPartsAgentsToolResultPart: StreamAgentPartsAgentsToolResultPart): string;
|
|
2363
|
+
export declare function streamAgentPartsAgentsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsToolResultPart, SDKValidationError>;
|
|
2364
|
+
/** @internal */
|
|
2365
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
2366
|
+
/** @internal */
|
|
2367
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
2368
|
+
/** @internal */
|
|
2369
|
+
export declare const StreamAgentPartsAgentsToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsToolCallPart, z.ZodTypeDef, unknown>;
|
|
2370
|
+
/** @internal */
|
|
2371
|
+
export type StreamAgentPartsAgentsToolCallPart$Outbound = {
|
|
2372
|
+
kind: string;
|
|
2373
|
+
tool_name: string;
|
|
2374
|
+
tool_call_id: string;
|
|
2375
|
+
arguments: {
|
|
2376
|
+
[k: string]: any;
|
|
2377
|
+
};
|
|
2378
|
+
metadata?: {
|
|
2379
|
+
[k: string]: any;
|
|
2380
|
+
} | undefined;
|
|
2381
|
+
};
|
|
2382
|
+
/** @internal */
|
|
2383
|
+
export declare const StreamAgentPartsAgentsToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsToolCallPart>;
|
|
2384
|
+
export declare function streamAgentPartsAgentsToolCallPartToJSON(streamAgentPartsAgentsToolCallPart: StreamAgentPartsAgentsToolCallPart): string;
|
|
2385
|
+
export declare function streamAgentPartsAgentsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsToolCallPart, SDKValidationError>;
|
|
2386
|
+
/** @internal */
|
|
2387
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
2388
|
+
/** @internal */
|
|
2389
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
2390
|
+
/** @internal */
|
|
2391
|
+
export declare const StreamAgentFileAgentsResponseFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponseFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2392
|
+
/** @internal */
|
|
2393
|
+
export type StreamAgentFileAgentsResponseFileInURIFormat$Outbound = {
|
|
2394
|
+
uri: string;
|
|
2395
|
+
mimeType?: string | undefined;
|
|
2396
|
+
name?: string | undefined;
|
|
2397
|
+
};
|
|
2398
|
+
/** @internal */
|
|
2399
|
+
export declare const StreamAgentFileAgentsResponseFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponseFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponseFileInURIFormat>;
|
|
2400
|
+
export declare function streamAgentFileAgentsResponseFileInURIFormatToJSON(streamAgentFileAgentsResponseFileInURIFormat: StreamAgentFileAgentsResponseFileInURIFormat): string;
|
|
2401
|
+
export declare function streamAgentFileAgentsResponseFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponseFileInURIFormat, SDKValidationError>;
|
|
2402
|
+
/** @internal */
|
|
2403
|
+
export declare const StreamAgentFileAgentsResponseBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponseBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2404
|
+
/** @internal */
|
|
2405
|
+
export type StreamAgentFileAgentsResponseBinaryFormat$Outbound = {
|
|
2406
|
+
bytes: string;
|
|
2407
|
+
mimeType?: string | undefined;
|
|
2408
|
+
name?: string | undefined;
|
|
2409
|
+
};
|
|
2410
|
+
/** @internal */
|
|
2411
|
+
export declare const StreamAgentFileAgentsResponseBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponseBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponseBinaryFormat>;
|
|
2412
|
+
export declare function streamAgentFileAgentsResponseBinaryFormatToJSON(streamAgentFileAgentsResponseBinaryFormat: StreamAgentFileAgentsResponseBinaryFormat): string;
|
|
2413
|
+
export declare function streamAgentFileAgentsResponseBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponseBinaryFormat, SDKValidationError>;
|
|
2414
|
+
/** @internal */
|
|
2415
|
+
export declare const StreamAgentPartsAgentsFile$inboundSchema: z.ZodType<StreamAgentPartsAgentsFile, z.ZodTypeDef, unknown>;
|
|
2416
|
+
/** @internal */
|
|
2417
|
+
export type StreamAgentPartsAgentsFile$Outbound = StreamAgentFileAgentsResponseBinaryFormat$Outbound | StreamAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
2418
|
+
/** @internal */
|
|
2419
|
+
export declare const StreamAgentPartsAgentsFile$outboundSchema: z.ZodType<StreamAgentPartsAgentsFile$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsFile>;
|
|
2420
|
+
export declare function streamAgentPartsAgentsFileToJSON(streamAgentPartsAgentsFile: StreamAgentPartsAgentsFile): string;
|
|
2421
|
+
export declare function streamAgentPartsAgentsFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsFile, SDKValidationError>;
|
|
2422
|
+
/** @internal */
|
|
2423
|
+
export declare const StreamAgentPartsAgentsFilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsFilePart, z.ZodTypeDef, unknown>;
|
|
2424
|
+
/** @internal */
|
|
2425
|
+
export type StreamAgentPartsAgentsFilePart$Outbound = {
|
|
2426
|
+
kind: string;
|
|
2427
|
+
file: StreamAgentFileAgentsResponseBinaryFormat$Outbound | StreamAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
2428
|
+
metadata?: {
|
|
2429
|
+
[k: string]: any;
|
|
2430
|
+
} | undefined;
|
|
400
2431
|
};
|
|
401
2432
|
/** @internal */
|
|
402
|
-
export declare const
|
|
403
|
-
export declare function
|
|
404
|
-
export declare function
|
|
2433
|
+
export declare const StreamAgentPartsAgentsFilePart$outboundSchema: z.ZodType<StreamAgentPartsAgentsFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsFilePart>;
|
|
2434
|
+
export declare function streamAgentPartsAgentsFilePartToJSON(streamAgentPartsAgentsFilePart: StreamAgentPartsAgentsFilePart): string;
|
|
2435
|
+
export declare function streamAgentPartsAgentsFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsFilePart, SDKValidationError>;
|
|
405
2436
|
/** @internal */
|
|
406
|
-
export declare const
|
|
2437
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
407
2438
|
/** @internal */
|
|
408
|
-
export
|
|
409
|
-
|
|
410
|
-
|
|
2439
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
2440
|
+
/** @internal */
|
|
2441
|
+
export declare const StreamAgentPartsAgentsDataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsDataPart, z.ZodTypeDef, unknown>;
|
|
2442
|
+
/** @internal */
|
|
2443
|
+
export type StreamAgentPartsAgentsDataPart$Outbound = {
|
|
2444
|
+
kind: string;
|
|
2445
|
+
data: {
|
|
2446
|
+
[k: string]: any;
|
|
2447
|
+
};
|
|
2448
|
+
metadata?: {
|
|
2449
|
+
[k: string]: any;
|
|
2450
|
+
} | undefined;
|
|
411
2451
|
};
|
|
412
2452
|
/** @internal */
|
|
413
|
-
export declare const
|
|
414
|
-
export declare function
|
|
415
|
-
export declare function
|
|
2453
|
+
export declare const StreamAgentPartsAgentsDataPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsDataPart>;
|
|
2454
|
+
export declare function streamAgentPartsAgentsDataPartToJSON(streamAgentPartsAgentsDataPart: StreamAgentPartsAgentsDataPart): string;
|
|
2455
|
+
export declare function streamAgentPartsAgentsDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsDataPart, SDKValidationError>;
|
|
2456
|
+
/** @internal */
|
|
2457
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
2458
|
+
/** @internal */
|
|
2459
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
2460
|
+
/** @internal */
|
|
2461
|
+
export declare const StreamAgentPartsAgentsTextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsTextPart, z.ZodTypeDef, unknown>;
|
|
2462
|
+
/** @internal */
|
|
2463
|
+
export type StreamAgentPartsAgentsTextPart$Outbound = {
|
|
2464
|
+
kind: string;
|
|
2465
|
+
text: string;
|
|
2466
|
+
};
|
|
2467
|
+
/** @internal */
|
|
2468
|
+
export declare const StreamAgentPartsAgentsTextPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsTextPart>;
|
|
2469
|
+
export declare function streamAgentPartsAgentsTextPartToJSON(streamAgentPartsAgentsTextPart: StreamAgentPartsAgentsTextPart): string;
|
|
2470
|
+
export declare function streamAgentPartsAgentsTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsTextPart, SDKValidationError>;
|
|
2471
|
+
/** @internal */
|
|
2472
|
+
export declare const StreamAgentDataAgentsParts$inboundSchema: z.ZodType<StreamAgentDataAgentsParts, z.ZodTypeDef, unknown>;
|
|
2473
|
+
/** @internal */
|
|
2474
|
+
export type StreamAgentDataAgentsParts$Outbound = StreamAgentPartsAgentsToolCallPart$Outbound | StreamAgentPartsAgentsTextPart$Outbound | StreamAgentPartsAgentsDataPart$Outbound | StreamAgentPartsAgentsFilePart$Outbound | StreamAgentPartsAgentsToolResultPart$Outbound;
|
|
2475
|
+
/** @internal */
|
|
2476
|
+
export declare const StreamAgentDataAgentsParts$outboundSchema: z.ZodType<StreamAgentDataAgentsParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsParts>;
|
|
2477
|
+
export declare function streamAgentDataAgentsPartsToJSON(streamAgentDataAgentsParts: StreamAgentDataAgentsParts): string;
|
|
2478
|
+
export declare function streamAgentDataAgentsPartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsParts, SDKValidationError>;
|
|
2479
|
+
/** @internal */
|
|
2480
|
+
export declare const DataMessageDifference$inboundSchema: z.ZodType<DataMessageDifference, z.ZodTypeDef, unknown>;
|
|
2481
|
+
/** @internal */
|
|
2482
|
+
export type DataMessageDifference$Outbound = {
|
|
2483
|
+
messageId: string;
|
|
2484
|
+
role: string;
|
|
2485
|
+
parts: Array<StreamAgentPartsAgentsToolCallPart$Outbound | StreamAgentPartsAgentsTextPart$Outbound | StreamAgentPartsAgentsDataPart$Outbound | StreamAgentPartsAgentsFilePart$Outbound | StreamAgentPartsAgentsToolResultPart$Outbound>;
|
|
2486
|
+
metadata?: {
|
|
2487
|
+
[k: string]: any;
|
|
2488
|
+
} | undefined;
|
|
2489
|
+
agent_id: string;
|
|
2490
|
+
agent_execution_id: string;
|
|
2491
|
+
workspace_id: string;
|
|
2492
|
+
};
|
|
2493
|
+
/** @internal */
|
|
2494
|
+
export declare const DataMessageDifference$outboundSchema: z.ZodType<DataMessageDifference$Outbound, z.ZodTypeDef, DataMessageDifference>;
|
|
2495
|
+
export declare function dataMessageDifferenceToJSON(dataMessageDifference: DataMessageDifference): string;
|
|
2496
|
+
export declare function dataMessageDifferenceFromJSON(jsonString: string): SafeParseResult<DataMessageDifference, SDKValidationError>;
|
|
2497
|
+
/** @internal */
|
|
2498
|
+
export declare const StreamAgentDataFinishReason$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataFinishReason>;
|
|
2499
|
+
/** @internal */
|
|
2500
|
+
export declare const StreamAgentDataFinishReason$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataFinishReason>;
|
|
2501
|
+
/** @internal */
|
|
2502
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
2503
|
+
/** @internal */
|
|
2504
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
2505
|
+
/** @internal */
|
|
2506
|
+
export declare const StreamAgentDataAgentsFunction$inboundSchema: z.ZodType<StreamAgentDataAgentsFunction, z.ZodTypeDef, unknown>;
|
|
2507
|
+
/** @internal */
|
|
2508
|
+
export type StreamAgentDataAgentsFunction$Outbound = {
|
|
2509
|
+
name?: string | undefined;
|
|
2510
|
+
arguments?: string | undefined;
|
|
2511
|
+
};
|
|
2512
|
+
/** @internal */
|
|
2513
|
+
export declare const StreamAgentDataAgentsFunction$outboundSchema: z.ZodType<StreamAgentDataAgentsFunction$Outbound, z.ZodTypeDef, StreamAgentDataAgentsFunction>;
|
|
2514
|
+
export declare function streamAgentDataAgentsFunctionToJSON(streamAgentDataAgentsFunction: StreamAgentDataAgentsFunction): string;
|
|
2515
|
+
export declare function streamAgentDataAgentsFunctionFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsFunction, SDKValidationError>;
|
|
2516
|
+
/** @internal */
|
|
2517
|
+
export declare const StreamAgentDataToolCalls$inboundSchema: z.ZodType<StreamAgentDataToolCalls, z.ZodTypeDef, unknown>;
|
|
2518
|
+
/** @internal */
|
|
2519
|
+
export type StreamAgentDataToolCalls$Outbound = {
|
|
2520
|
+
id?: string | undefined;
|
|
2521
|
+
type?: string | undefined;
|
|
2522
|
+
function?: StreamAgentDataAgentsFunction$Outbound | undefined;
|
|
2523
|
+
};
|
|
2524
|
+
/** @internal */
|
|
2525
|
+
export declare const StreamAgentDataToolCalls$outboundSchema: z.ZodType<StreamAgentDataToolCalls$Outbound, z.ZodTypeDef, StreamAgentDataToolCalls>;
|
|
2526
|
+
export declare function streamAgentDataToolCallsToJSON(streamAgentDataToolCalls: StreamAgentDataToolCalls): string;
|
|
2527
|
+
export declare function streamAgentDataToolCallsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataToolCalls, SDKValidationError>;
|
|
2528
|
+
/** @internal */
|
|
2529
|
+
export declare const StreamAgentDataAgentsResponse200Role$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
2530
|
+
/** @internal */
|
|
2531
|
+
export declare const StreamAgentDataAgentsResponse200Role$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
2532
|
+
/** @internal */
|
|
2533
|
+
export declare const StreamAgentDataAudio$inboundSchema: z.ZodType<StreamAgentDataAudio, z.ZodTypeDef, unknown>;
|
|
2534
|
+
/** @internal */
|
|
2535
|
+
export type StreamAgentDataAudio$Outbound = {
|
|
2536
|
+
id: string;
|
|
2537
|
+
expires_at: number;
|
|
2538
|
+
data: string;
|
|
2539
|
+
transcript: string;
|
|
2540
|
+
};
|
|
2541
|
+
/** @internal */
|
|
2542
|
+
export declare const StreamAgentDataAudio$outboundSchema: z.ZodType<StreamAgentDataAudio$Outbound, z.ZodTypeDef, StreamAgentDataAudio>;
|
|
2543
|
+
export declare function streamAgentDataAudioToJSON(streamAgentDataAudio: StreamAgentDataAudio): string;
|
|
2544
|
+
export declare function streamAgentDataAudioFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAudio, SDKValidationError>;
|
|
2545
|
+
/** @internal */
|
|
2546
|
+
export declare const StreamAgentDataAgentsMessage$inboundSchema: z.ZodType<StreamAgentDataAgentsMessage, z.ZodTypeDef, unknown>;
|
|
2547
|
+
/** @internal */
|
|
2548
|
+
export type StreamAgentDataAgentsMessage$Outbound = {
|
|
2549
|
+
content?: string | null | undefined;
|
|
2550
|
+
refusal?: string | null | undefined;
|
|
2551
|
+
tool_calls?: Array<StreamAgentDataToolCalls$Outbound> | undefined;
|
|
2552
|
+
role?: string | undefined;
|
|
2553
|
+
reasoning?: string | null | undefined;
|
|
2554
|
+
reasoning_signature?: string | null | undefined;
|
|
2555
|
+
redacted_reasoning?: string | undefined;
|
|
2556
|
+
audio?: StreamAgentDataAudio$Outbound | null | undefined;
|
|
2557
|
+
};
|
|
2558
|
+
/** @internal */
|
|
2559
|
+
export declare const StreamAgentDataAgentsMessage$outboundSchema: z.ZodType<StreamAgentDataAgentsMessage$Outbound, z.ZodTypeDef, StreamAgentDataAgentsMessage>;
|
|
2560
|
+
export declare function streamAgentDataAgentsMessageToJSON(streamAgentDataAgentsMessage: StreamAgentDataAgentsMessage): string;
|
|
2561
|
+
export declare function streamAgentDataAgentsMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsMessage, SDKValidationError>;
|
|
2562
|
+
/** @internal */
|
|
2563
|
+
export declare const StreamAgentDataTopLogprobs$inboundSchema: z.ZodType<StreamAgentDataTopLogprobs, z.ZodTypeDef, unknown>;
|
|
2564
|
+
/** @internal */
|
|
2565
|
+
export type StreamAgentDataTopLogprobs$Outbound = {
|
|
2566
|
+
token: string;
|
|
2567
|
+
logprob: number;
|
|
2568
|
+
bytes: Array<number> | null;
|
|
2569
|
+
};
|
|
2570
|
+
/** @internal */
|
|
2571
|
+
export declare const StreamAgentDataTopLogprobs$outboundSchema: z.ZodType<StreamAgentDataTopLogprobs$Outbound, z.ZodTypeDef, StreamAgentDataTopLogprobs>;
|
|
2572
|
+
export declare function streamAgentDataTopLogprobsToJSON(streamAgentDataTopLogprobs: StreamAgentDataTopLogprobs): string;
|
|
2573
|
+
export declare function streamAgentDataTopLogprobsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataTopLogprobs, SDKValidationError>;
|
|
2574
|
+
/** @internal */
|
|
2575
|
+
export declare const StreamAgentDataContent$inboundSchema: z.ZodType<StreamAgentDataContent, z.ZodTypeDef, unknown>;
|
|
2576
|
+
/** @internal */
|
|
2577
|
+
export type StreamAgentDataContent$Outbound = {
|
|
2578
|
+
token: string;
|
|
2579
|
+
logprob: number;
|
|
2580
|
+
bytes: Array<number> | null;
|
|
2581
|
+
top_logprobs: Array<StreamAgentDataTopLogprobs$Outbound>;
|
|
2582
|
+
};
|
|
2583
|
+
/** @internal */
|
|
2584
|
+
export declare const StreamAgentDataContent$outboundSchema: z.ZodType<StreamAgentDataContent$Outbound, z.ZodTypeDef, StreamAgentDataContent>;
|
|
2585
|
+
export declare function streamAgentDataContentToJSON(streamAgentDataContent: StreamAgentDataContent): string;
|
|
2586
|
+
export declare function streamAgentDataContentFromJSON(jsonString: string): SafeParseResult<StreamAgentDataContent, SDKValidationError>;
|
|
2587
|
+
/** @internal */
|
|
2588
|
+
export declare const StreamAgentDataAgentsTopLogprobs$inboundSchema: z.ZodType<StreamAgentDataAgentsTopLogprobs, z.ZodTypeDef, unknown>;
|
|
2589
|
+
/** @internal */
|
|
2590
|
+
export type StreamAgentDataAgentsTopLogprobs$Outbound = {
|
|
2591
|
+
token: string;
|
|
2592
|
+
logprob: number;
|
|
2593
|
+
bytes: Array<number> | null;
|
|
2594
|
+
};
|
|
2595
|
+
/** @internal */
|
|
2596
|
+
export declare const StreamAgentDataAgentsTopLogprobs$outboundSchema: z.ZodType<StreamAgentDataAgentsTopLogprobs$Outbound, z.ZodTypeDef, StreamAgentDataAgentsTopLogprobs>;
|
|
2597
|
+
export declare function streamAgentDataAgentsTopLogprobsToJSON(streamAgentDataAgentsTopLogprobs: StreamAgentDataAgentsTopLogprobs): string;
|
|
2598
|
+
export declare function streamAgentDataAgentsTopLogprobsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsTopLogprobs, SDKValidationError>;
|
|
2599
|
+
/** @internal */
|
|
2600
|
+
export declare const DataRefusal$inboundSchema: z.ZodType<DataRefusal, z.ZodTypeDef, unknown>;
|
|
2601
|
+
/** @internal */
|
|
2602
|
+
export type DataRefusal$Outbound = {
|
|
2603
|
+
token: string;
|
|
2604
|
+
logprob: number;
|
|
2605
|
+
bytes: Array<number> | null;
|
|
2606
|
+
top_logprobs: Array<StreamAgentDataAgentsTopLogprobs$Outbound>;
|
|
2607
|
+
};
|
|
2608
|
+
/** @internal */
|
|
2609
|
+
export declare const DataRefusal$outboundSchema: z.ZodType<DataRefusal$Outbound, z.ZodTypeDef, DataRefusal>;
|
|
2610
|
+
export declare function dataRefusalToJSON(dataRefusal: DataRefusal): string;
|
|
2611
|
+
export declare function dataRefusalFromJSON(jsonString: string): SafeParseResult<DataRefusal, SDKValidationError>;
|
|
2612
|
+
/** @internal */
|
|
2613
|
+
export declare const DataLogprobs$inboundSchema: z.ZodType<DataLogprobs, z.ZodTypeDef, unknown>;
|
|
2614
|
+
/** @internal */
|
|
2615
|
+
export type DataLogprobs$Outbound = {
|
|
2616
|
+
content: Array<StreamAgentDataContent$Outbound> | null;
|
|
2617
|
+
refusal: Array<DataRefusal$Outbound> | null;
|
|
2618
|
+
};
|
|
2619
|
+
/** @internal */
|
|
2620
|
+
export declare const DataLogprobs$outboundSchema: z.ZodType<DataLogprobs$Outbound, z.ZodTypeDef, DataLogprobs>;
|
|
2621
|
+
export declare function dataLogprobsToJSON(dataLogprobs: DataLogprobs): string;
|
|
2622
|
+
export declare function dataLogprobsFromJSON(jsonString: string): SafeParseResult<DataLogprobs, SDKValidationError>;
|
|
2623
|
+
/** @internal */
|
|
2624
|
+
export declare const DataChoice$inboundSchema: z.ZodType<DataChoice, z.ZodTypeDef, unknown>;
|
|
2625
|
+
/** @internal */
|
|
2626
|
+
export type DataChoice$Outbound = {
|
|
2627
|
+
finish_reason: string | null;
|
|
2628
|
+
index: number;
|
|
2629
|
+
message: StreamAgentDataAgentsMessage$Outbound;
|
|
2630
|
+
logprobs?: DataLogprobs$Outbound | null | undefined;
|
|
2631
|
+
};
|
|
2632
|
+
/** @internal */
|
|
2633
|
+
export declare const DataChoice$outboundSchema: z.ZodType<DataChoice$Outbound, z.ZodTypeDef, DataChoice>;
|
|
2634
|
+
export declare function dataChoiceToJSON(dataChoice: DataChoice): string;
|
|
2635
|
+
export declare function dataChoiceFromJSON(jsonString: string): SafeParseResult<DataChoice, SDKValidationError>;
|
|
2636
|
+
/** @internal */
|
|
2637
|
+
export declare const StreamAgentDataAgentsResponseData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseData, z.ZodTypeDef, unknown>;
|
|
2638
|
+
/** @internal */
|
|
2639
|
+
export type StreamAgentDataAgentsResponseData$Outbound = {
|
|
2640
|
+
agent_id: string;
|
|
2641
|
+
message_difference: {
|
|
2642
|
+
[k: string]: DataMessageDifference$Outbound;
|
|
2643
|
+
};
|
|
2644
|
+
choice?: DataChoice$Outbound | undefined;
|
|
2645
|
+
choiceIndex?: number | undefined;
|
|
2646
|
+
iteration: number;
|
|
2647
|
+
accumulated_execution_time: number;
|
|
2648
|
+
};
|
|
2649
|
+
/** @internal */
|
|
2650
|
+
export declare const StreamAgentDataAgentsResponseData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseData>;
|
|
2651
|
+
export declare function streamAgentDataAgentsResponseDataToJSON(streamAgentDataAgentsResponseData: StreamAgentDataAgentsResponseData): string;
|
|
2652
|
+
export declare function streamAgentDataAgentsResponseDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseData, SDKValidationError>;
|
|
2653
|
+
/** @internal */
|
|
2654
|
+
export declare const StreamAgentData3$inboundSchema: z.ZodType<StreamAgentData3, z.ZodTypeDef, unknown>;
|
|
2655
|
+
/** @internal */
|
|
2656
|
+
export type StreamAgentData3$Outbound = {
|
|
2657
|
+
type: string;
|
|
2658
|
+
timestamp: string;
|
|
2659
|
+
data: StreamAgentDataAgentsResponseData$Outbound;
|
|
2660
|
+
};
|
|
2661
|
+
/** @internal */
|
|
2662
|
+
export declare const StreamAgentData3$outboundSchema: z.ZodType<StreamAgentData3$Outbound, z.ZodTypeDef, StreamAgentData3>;
|
|
2663
|
+
export declare function streamAgentData3ToJSON(streamAgentData3: StreamAgentData3): string;
|
|
2664
|
+
export declare function streamAgentData3FromJSON(jsonString: string): SafeParseResult<StreamAgentData3, SDKValidationError>;
|
|
2665
|
+
/** @internal */
|
|
2666
|
+
export declare const StreamAgentDataAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsType>;
|
|
2667
|
+
/** @internal */
|
|
2668
|
+
export declare const StreamAgentDataAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsType>;
|
|
2669
|
+
/** @internal */
|
|
2670
|
+
export declare const StreamAgentDataRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataRole>;
|
|
2671
|
+
/** @internal */
|
|
2672
|
+
export declare const StreamAgentDataRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataRole>;
|
|
2673
|
+
/** @internal */
|
|
2674
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
2675
|
+
/** @internal */
|
|
2676
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
2677
|
+
/** @internal */
|
|
2678
|
+
export declare const StreamAgentPartsToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
2679
|
+
/** @internal */
|
|
2680
|
+
export type StreamAgentPartsToolResultPart$Outbound = {
|
|
2681
|
+
kind: string;
|
|
2682
|
+
tool_call_id: string;
|
|
2683
|
+
result?: any | undefined;
|
|
2684
|
+
metadata?: {
|
|
2685
|
+
[k: string]: any;
|
|
2686
|
+
} | undefined;
|
|
2687
|
+
};
|
|
2688
|
+
/** @internal */
|
|
2689
|
+
export declare const StreamAgentPartsToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsToolResultPart>;
|
|
2690
|
+
export declare function streamAgentPartsToolResultPartToJSON(streamAgentPartsToolResultPart: StreamAgentPartsToolResultPart): string;
|
|
2691
|
+
export declare function streamAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsToolResultPart, SDKValidationError>;
|
|
2692
|
+
/** @internal */
|
|
2693
|
+
export declare const StreamAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
2694
|
+
/** @internal */
|
|
2695
|
+
export declare const StreamAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
2696
|
+
/** @internal */
|
|
2697
|
+
export declare const StreamAgentPartsToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
2698
|
+
/** @internal */
|
|
2699
|
+
export type StreamAgentPartsToolCallPart$Outbound = {
|
|
2700
|
+
kind: string;
|
|
2701
|
+
tool_name: string;
|
|
2702
|
+
tool_call_id: string;
|
|
2703
|
+
arguments: {
|
|
2704
|
+
[k: string]: any;
|
|
2705
|
+
};
|
|
2706
|
+
metadata?: {
|
|
2707
|
+
[k: string]: any;
|
|
2708
|
+
} | undefined;
|
|
2709
|
+
};
|
|
2710
|
+
/** @internal */
|
|
2711
|
+
export declare const StreamAgentPartsToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsToolCallPart>;
|
|
2712
|
+
export declare function streamAgentPartsToolCallPartToJSON(streamAgentPartsToolCallPart: StreamAgentPartsToolCallPart): string;
|
|
2713
|
+
export declare function streamAgentPartsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsToolCallPart, SDKValidationError>;
|
|
2714
|
+
/** @internal */
|
|
2715
|
+
export declare const StreamAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
2716
|
+
/** @internal */
|
|
2717
|
+
export declare const StreamAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
2718
|
+
/** @internal */
|
|
2719
|
+
export declare const StreamAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2720
|
+
/** @internal */
|
|
2721
|
+
export type StreamAgentFileAgentsFileInURIFormat$Outbound = {
|
|
2722
|
+
uri: string;
|
|
2723
|
+
mimeType?: string | undefined;
|
|
2724
|
+
name?: string | undefined;
|
|
2725
|
+
};
|
|
2726
|
+
/** @internal */
|
|
2727
|
+
export declare const StreamAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsFileInURIFormat>;
|
|
2728
|
+
export declare function streamAgentFileAgentsFileInURIFormatToJSON(streamAgentFileAgentsFileInURIFormat: StreamAgentFileAgentsFileInURIFormat): string;
|
|
2729
|
+
export declare function streamAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsFileInURIFormat, SDKValidationError>;
|
|
2730
|
+
/** @internal */
|
|
2731
|
+
export declare const StreamAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2732
|
+
/** @internal */
|
|
2733
|
+
export type StreamAgentFileAgentsBinaryFormat$Outbound = {
|
|
2734
|
+
bytes: string;
|
|
2735
|
+
mimeType?: string | undefined;
|
|
2736
|
+
name?: string | undefined;
|
|
2737
|
+
};
|
|
2738
|
+
/** @internal */
|
|
2739
|
+
export declare const StreamAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsBinaryFormat>;
|
|
2740
|
+
export declare function streamAgentFileAgentsBinaryFormatToJSON(streamAgentFileAgentsBinaryFormat: StreamAgentFileAgentsBinaryFormat): string;
|
|
2741
|
+
export declare function streamAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsBinaryFormat, SDKValidationError>;
|
|
2742
|
+
/** @internal */
|
|
2743
|
+
export declare const StreamAgentPartsFile$inboundSchema: z.ZodType<StreamAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
2744
|
+
/** @internal */
|
|
2745
|
+
export type StreamAgentPartsFile$Outbound = StreamAgentFileAgentsBinaryFormat$Outbound | StreamAgentFileAgentsFileInURIFormat$Outbound;
|
|
2746
|
+
/** @internal */
|
|
2747
|
+
export declare const StreamAgentPartsFile$outboundSchema: z.ZodType<StreamAgentPartsFile$Outbound, z.ZodTypeDef, StreamAgentPartsFile>;
|
|
2748
|
+
export declare function streamAgentPartsFileToJSON(streamAgentPartsFile: StreamAgentPartsFile): string;
|
|
2749
|
+
export declare function streamAgentPartsFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsFile, SDKValidationError>;
|
|
2750
|
+
/** @internal */
|
|
2751
|
+
export declare const StreamAgentPartsFilePart$inboundSchema: z.ZodType<StreamAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
2752
|
+
/** @internal */
|
|
2753
|
+
export type StreamAgentPartsFilePart$Outbound = {
|
|
2754
|
+
kind: string;
|
|
2755
|
+
file: StreamAgentFileAgentsBinaryFormat$Outbound | StreamAgentFileAgentsFileInURIFormat$Outbound;
|
|
2756
|
+
metadata?: {
|
|
2757
|
+
[k: string]: any;
|
|
2758
|
+
} | undefined;
|
|
2759
|
+
};
|
|
2760
|
+
/** @internal */
|
|
2761
|
+
export declare const StreamAgentPartsFilePart$outboundSchema: z.ZodType<StreamAgentPartsFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsFilePart>;
|
|
2762
|
+
export declare function streamAgentPartsFilePartToJSON(streamAgentPartsFilePart: StreamAgentPartsFilePart): string;
|
|
2763
|
+
export declare function streamAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsFilePart, SDKValidationError>;
|
|
2764
|
+
/** @internal */
|
|
2765
|
+
export declare const StreamAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsKind>;
|
|
2766
|
+
/** @internal */
|
|
2767
|
+
export declare const StreamAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsKind>;
|
|
2768
|
+
/** @internal */
|
|
2769
|
+
export declare const StreamAgentPartsDataPart$inboundSchema: z.ZodType<StreamAgentPartsDataPart, z.ZodTypeDef, unknown>;
|
|
2770
|
+
/** @internal */
|
|
2771
|
+
export type StreamAgentPartsDataPart$Outbound = {
|
|
2772
|
+
kind: string;
|
|
2773
|
+
data: {
|
|
2774
|
+
[k: string]: any;
|
|
2775
|
+
};
|
|
2776
|
+
metadata?: {
|
|
2777
|
+
[k: string]: any;
|
|
2778
|
+
} | undefined;
|
|
2779
|
+
};
|
|
2780
|
+
/** @internal */
|
|
2781
|
+
export declare const StreamAgentPartsDataPart$outboundSchema: z.ZodType<StreamAgentPartsDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsDataPart>;
|
|
2782
|
+
export declare function streamAgentPartsDataPartToJSON(streamAgentPartsDataPart: StreamAgentPartsDataPart): string;
|
|
2783
|
+
export declare function streamAgentPartsDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsDataPart, SDKValidationError>;
|
|
2784
|
+
/** @internal */
|
|
2785
|
+
export declare const StreamAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsKind>;
|
|
2786
|
+
/** @internal */
|
|
2787
|
+
export declare const StreamAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsKind>;
|
|
2788
|
+
/** @internal */
|
|
2789
|
+
export declare const StreamAgentPartsTextPart$inboundSchema: z.ZodType<StreamAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
2790
|
+
/** @internal */
|
|
2791
|
+
export type StreamAgentPartsTextPart$Outbound = {
|
|
2792
|
+
kind: string;
|
|
2793
|
+
text: string;
|
|
2794
|
+
};
|
|
2795
|
+
/** @internal */
|
|
2796
|
+
export declare const StreamAgentPartsTextPart$outboundSchema: z.ZodType<StreamAgentPartsTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsTextPart>;
|
|
2797
|
+
export declare function streamAgentPartsTextPartToJSON(streamAgentPartsTextPart: StreamAgentPartsTextPart): string;
|
|
2798
|
+
export declare function streamAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsTextPart, SDKValidationError>;
|
|
2799
|
+
/** @internal */
|
|
2800
|
+
export declare const StreamAgentDataParts$inboundSchema: z.ZodType<StreamAgentDataParts, z.ZodTypeDef, unknown>;
|
|
2801
|
+
/** @internal */
|
|
2802
|
+
export type StreamAgentDataParts$Outbound = StreamAgentPartsToolCallPart$Outbound | StreamAgentPartsTextPart$Outbound | StreamAgentPartsDataPart$Outbound | StreamAgentPartsFilePart$Outbound | StreamAgentPartsToolResultPart$Outbound;
|
|
2803
|
+
/** @internal */
|
|
2804
|
+
export declare const StreamAgentDataParts$outboundSchema: z.ZodType<StreamAgentDataParts$Outbound, z.ZodTypeDef, StreamAgentDataParts>;
|
|
2805
|
+
export declare function streamAgentDataPartsToJSON(streamAgentDataParts: StreamAgentDataParts): string;
|
|
2806
|
+
export declare function streamAgentDataPartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataParts, SDKValidationError>;
|
|
2807
|
+
/** @internal */
|
|
2808
|
+
export declare const DataInputMessage$inboundSchema: z.ZodType<DataInputMessage, z.ZodTypeDef, unknown>;
|
|
2809
|
+
/** @internal */
|
|
2810
|
+
export type DataInputMessage$Outbound = {
|
|
2811
|
+
messageId?: string | undefined;
|
|
2812
|
+
role: string;
|
|
2813
|
+
parts: Array<StreamAgentPartsToolCallPart$Outbound | StreamAgentPartsTextPart$Outbound | StreamAgentPartsDataPart$Outbound | StreamAgentPartsFilePart$Outbound | StreamAgentPartsToolResultPart$Outbound>;
|
|
2814
|
+
metadata?: {
|
|
2815
|
+
[k: string]: any;
|
|
2816
|
+
} | undefined;
|
|
2817
|
+
};
|
|
2818
|
+
/** @internal */
|
|
2819
|
+
export declare const DataInputMessage$outboundSchema: z.ZodType<DataInputMessage$Outbound, z.ZodTypeDef, DataInputMessage>;
|
|
2820
|
+
export declare function dataInputMessageToJSON(dataInputMessage: DataInputMessage): string;
|
|
2821
|
+
export declare function dataInputMessageFromJSON(jsonString: string): SafeParseResult<DataInputMessage, SDKValidationError>;
|
|
2822
|
+
/** @internal */
|
|
2823
|
+
export declare const StreamAgentDataToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
2824
|
+
/** @internal */
|
|
2825
|
+
export declare const StreamAgentDataToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
2826
|
+
/** @internal */
|
|
2827
|
+
export declare const StreamAgentDataAgentsConditions$inboundSchema: z.ZodType<StreamAgentDataAgentsConditions, z.ZodTypeDef, unknown>;
|
|
2828
|
+
/** @internal */
|
|
2829
|
+
export type StreamAgentDataAgentsConditions$Outbound = {
|
|
2830
|
+
condition: string;
|
|
2831
|
+
operator: string;
|
|
2832
|
+
value: string;
|
|
2833
|
+
};
|
|
2834
|
+
/** @internal */
|
|
2835
|
+
export declare const StreamAgentDataAgentsConditions$outboundSchema: z.ZodType<StreamAgentDataAgentsConditions$Outbound, z.ZodTypeDef, StreamAgentDataAgentsConditions>;
|
|
2836
|
+
export declare function streamAgentDataAgentsConditionsToJSON(streamAgentDataAgentsConditions: StreamAgentDataAgentsConditions): string;
|
|
2837
|
+
export declare function streamAgentDataAgentsConditionsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsConditions, SDKValidationError>;
|
|
2838
|
+
/** @internal */
|
|
2839
|
+
export declare const StreamAgentDataTools$inboundSchema: z.ZodType<StreamAgentDataTools, z.ZodTypeDef, unknown>;
|
|
2840
|
+
/** @internal */
|
|
2841
|
+
export type StreamAgentDataTools$Outbound = {
|
|
2842
|
+
id: string;
|
|
2843
|
+
key?: string | undefined;
|
|
2844
|
+
action_type: string;
|
|
2845
|
+
display_name?: string | undefined;
|
|
2846
|
+
description?: string | undefined;
|
|
2847
|
+
requires_approval: boolean;
|
|
2848
|
+
tool_id?: string | undefined;
|
|
2849
|
+
conditions?: Array<StreamAgentDataAgentsConditions$Outbound> | undefined;
|
|
2850
|
+
timeout: number;
|
|
2851
|
+
};
|
|
2852
|
+
/** @internal */
|
|
2853
|
+
export declare const StreamAgentDataTools$outboundSchema: z.ZodType<StreamAgentDataTools$Outbound, z.ZodTypeDef, StreamAgentDataTools>;
|
|
2854
|
+
export declare function streamAgentDataToolsToJSON(streamAgentDataTools: StreamAgentDataTools): string;
|
|
2855
|
+
export declare function streamAgentDataToolsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataTools, SDKValidationError>;
|
|
2856
|
+
/** @internal */
|
|
2857
|
+
export declare const StreamAgentDataExecuteOn$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataExecuteOn>;
|
|
2858
|
+
/** @internal */
|
|
2859
|
+
export declare const StreamAgentDataExecuteOn$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataExecuteOn>;
|
|
2860
|
+
/** @internal */
|
|
2861
|
+
export declare const StreamAgentDataEvaluators$inboundSchema: z.ZodType<StreamAgentDataEvaluators, z.ZodTypeDef, unknown>;
|
|
2862
|
+
/** @internal */
|
|
2863
|
+
export type StreamAgentDataEvaluators$Outbound = {
|
|
2864
|
+
id: string;
|
|
2865
|
+
sample_rate: number;
|
|
2866
|
+
execute_on: string;
|
|
2867
|
+
};
|
|
2868
|
+
/** @internal */
|
|
2869
|
+
export declare const StreamAgentDataEvaluators$outboundSchema: z.ZodType<StreamAgentDataEvaluators$Outbound, z.ZodTypeDef, StreamAgentDataEvaluators>;
|
|
2870
|
+
export declare function streamAgentDataEvaluatorsToJSON(streamAgentDataEvaluators: StreamAgentDataEvaluators): string;
|
|
2871
|
+
export declare function streamAgentDataEvaluatorsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataEvaluators, SDKValidationError>;
|
|
2872
|
+
/** @internal */
|
|
2873
|
+
export declare const StreamAgentDataAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
2874
|
+
/** @internal */
|
|
2875
|
+
export declare const StreamAgentDataAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
2876
|
+
/** @internal */
|
|
2877
|
+
export declare const StreamAgentDataGuardrails$inboundSchema: z.ZodType<StreamAgentDataGuardrails, z.ZodTypeDef, unknown>;
|
|
2878
|
+
/** @internal */
|
|
2879
|
+
export type StreamAgentDataGuardrails$Outbound = {
|
|
2880
|
+
id: string;
|
|
2881
|
+
sample_rate: number;
|
|
2882
|
+
execute_on: string;
|
|
2883
|
+
};
|
|
2884
|
+
/** @internal */
|
|
2885
|
+
export declare const StreamAgentDataGuardrails$outboundSchema: z.ZodType<StreamAgentDataGuardrails$Outbound, z.ZodTypeDef, StreamAgentDataGuardrails>;
|
|
2886
|
+
export declare function streamAgentDataGuardrailsToJSON(streamAgentDataGuardrails: StreamAgentDataGuardrails): string;
|
|
2887
|
+
export declare function streamAgentDataGuardrailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataGuardrails, SDKValidationError>;
|
|
2888
|
+
/** @internal */
|
|
2889
|
+
export declare const StreamAgentDataSettings$inboundSchema: z.ZodType<StreamAgentDataSettings, z.ZodTypeDef, unknown>;
|
|
2890
|
+
/** @internal */
|
|
2891
|
+
export type StreamAgentDataSettings$Outbound = {
|
|
2892
|
+
max_iterations: number;
|
|
2893
|
+
max_execution_time: number;
|
|
2894
|
+
tool_approval_required: string;
|
|
2895
|
+
tools?: Array<StreamAgentDataTools$Outbound> | undefined;
|
|
2896
|
+
evaluators?: Array<StreamAgentDataEvaluators$Outbound> | undefined;
|
|
2897
|
+
guardrails?: Array<StreamAgentDataGuardrails$Outbound> | undefined;
|
|
2898
|
+
};
|
|
2899
|
+
/** @internal */
|
|
2900
|
+
export declare const StreamAgentDataSettings$outboundSchema: z.ZodType<StreamAgentDataSettings$Outbound, z.ZodTypeDef, StreamAgentDataSettings>;
|
|
2901
|
+
export declare function streamAgentDataSettingsToJSON(streamAgentDataSettings: StreamAgentDataSettings): string;
|
|
2902
|
+
export declare function streamAgentDataSettingsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataSettings, SDKValidationError>;
|
|
2903
|
+
/** @internal */
|
|
2904
|
+
export declare const StreamAgentDataAgentsData$inboundSchema: z.ZodType<StreamAgentDataAgentsData, z.ZodTypeDef, unknown>;
|
|
2905
|
+
/** @internal */
|
|
2906
|
+
export type StreamAgentDataAgentsData$Outbound = {
|
|
2907
|
+
integration_id?: string | undefined;
|
|
2908
|
+
inputMessage: DataInputMessage$Outbound;
|
|
2909
|
+
modelId: string;
|
|
2910
|
+
instructions: string;
|
|
2911
|
+
system_prompt: string;
|
|
2912
|
+
settings?: StreamAgentDataSettings$Outbound | undefined;
|
|
2913
|
+
agent_manifest_id: string;
|
|
2914
|
+
agent_key: string;
|
|
2915
|
+
variables?: {
|
|
2916
|
+
[k: string]: any;
|
|
2917
|
+
} | undefined;
|
|
2918
|
+
tool_execution_id?: string | undefined;
|
|
2919
|
+
is_continuation?: boolean | undefined;
|
|
2920
|
+
stream?: boolean | undefined;
|
|
2921
|
+
};
|
|
2922
|
+
/** @internal */
|
|
2923
|
+
export declare const StreamAgentDataAgentsData$outboundSchema: z.ZodType<StreamAgentDataAgentsData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsData>;
|
|
2924
|
+
export declare function streamAgentDataAgentsDataToJSON(streamAgentDataAgentsData: StreamAgentDataAgentsData): string;
|
|
2925
|
+
export declare function streamAgentDataAgentsDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsData, SDKValidationError>;
|
|
2926
|
+
/** @internal */
|
|
2927
|
+
export declare const StreamAgentData2$inboundSchema: z.ZodType<StreamAgentData2, z.ZodTypeDef, unknown>;
|
|
2928
|
+
/** @internal */
|
|
2929
|
+
export type StreamAgentData2$Outbound = {
|
|
2930
|
+
type: string;
|
|
2931
|
+
timestamp: string;
|
|
2932
|
+
data: StreamAgentDataAgentsData$Outbound;
|
|
2933
|
+
};
|
|
2934
|
+
/** @internal */
|
|
2935
|
+
export declare const StreamAgentData2$outboundSchema: z.ZodType<StreamAgentData2$Outbound, z.ZodTypeDef, StreamAgentData2>;
|
|
2936
|
+
export declare function streamAgentData2ToJSON(streamAgentData2: StreamAgentData2): string;
|
|
2937
|
+
export declare function streamAgentData2FromJSON(jsonString: string): SafeParseResult<StreamAgentData2, SDKValidationError>;
|
|
2938
|
+
/** @internal */
|
|
2939
|
+
export declare const StreamAgentDataType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataType>;
|
|
2940
|
+
/** @internal */
|
|
2941
|
+
export declare const StreamAgentDataType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataType>;
|
|
2942
|
+
/** @internal */
|
|
2943
|
+
export declare const StreamAgentDataData$inboundSchema: z.ZodType<StreamAgentDataData, z.ZodTypeDef, unknown>;
|
|
2944
|
+
/** @internal */
|
|
2945
|
+
export type StreamAgentDataData$Outbound = {
|
|
2946
|
+
agent_task_id: string;
|
|
2947
|
+
workspace_id: string;
|
|
2948
|
+
trace_id: string;
|
|
2949
|
+
};
|
|
2950
|
+
/** @internal */
|
|
2951
|
+
export declare const StreamAgentDataData$outboundSchema: z.ZodType<StreamAgentDataData$Outbound, z.ZodTypeDef, StreamAgentDataData>;
|
|
2952
|
+
export declare function streamAgentDataDataToJSON(streamAgentDataData: StreamAgentDataData): string;
|
|
2953
|
+
export declare function streamAgentDataDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataData, SDKValidationError>;
|
|
2954
|
+
/** @internal */
|
|
2955
|
+
export declare const StreamAgentData1$inboundSchema: z.ZodType<StreamAgentData1, z.ZodTypeDef, unknown>;
|
|
2956
|
+
/** @internal */
|
|
2957
|
+
export type StreamAgentData1$Outbound = {
|
|
2958
|
+
type: string;
|
|
2959
|
+
timestamp: string;
|
|
2960
|
+
data: StreamAgentDataData$Outbound;
|
|
2961
|
+
};
|
|
2962
|
+
/** @internal */
|
|
2963
|
+
export declare const StreamAgentData1$outboundSchema: z.ZodType<StreamAgentData1$Outbound, z.ZodTypeDef, StreamAgentData1>;
|
|
2964
|
+
export declare function streamAgentData1ToJSON(streamAgentData1: StreamAgentData1): string;
|
|
2965
|
+
export declare function streamAgentData1FromJSON(jsonString: string): SafeParseResult<StreamAgentData1, SDKValidationError>;
|
|
2966
|
+
/** @internal */
|
|
2967
|
+
export declare const StreamAgentData$inboundSchema: z.ZodType<StreamAgentData, z.ZodTypeDef, unknown>;
|
|
2968
|
+
/** @internal */
|
|
2969
|
+
export type StreamAgentData$Outbound = StreamAgentData1$Outbound | StreamAgentData2$Outbound | StreamAgentData3$Outbound | StreamAgentData4$Outbound | Data5$Outbound | Data6$Outbound | Data7$Outbound | Data8$Outbound | Data9$Outbound | Data10$Outbound | Data11$Outbound | Data12$Outbound | Data13$Outbound | Data14$Outbound | Data15$Outbound | Data16$Outbound | Data17$Outbound;
|
|
2970
|
+
/** @internal */
|
|
2971
|
+
export declare const StreamAgentData$outboundSchema: z.ZodType<StreamAgentData$Outbound, z.ZodTypeDef, StreamAgentData>;
|
|
2972
|
+
export declare function streamAgentDataToJSON(streamAgentData: StreamAgentData): string;
|
|
2973
|
+
export declare function streamAgentDataFromJSON(jsonString: string): SafeParseResult<StreamAgentData, SDKValidationError>;
|
|
416
2974
|
/** @internal */
|
|
417
2975
|
export declare const StreamAgentResponseBody$inboundSchema: z.ZodType<StreamAgentResponseBody, z.ZodTypeDef, unknown>;
|
|
418
2976
|
/** @internal */
|
|
419
2977
|
export type StreamAgentResponseBody$Outbound = {
|
|
420
|
-
data:
|
|
2978
|
+
data: StreamAgentData1$Outbound | StreamAgentData2$Outbound | StreamAgentData3$Outbound | StreamAgentData4$Outbound | Data5$Outbound | Data6$Outbound | Data7$Outbound | Data8$Outbound | Data9$Outbound | Data10$Outbound | Data11$Outbound | Data12$Outbound | Data13$Outbound | Data14$Outbound | Data15$Outbound | Data16$Outbound | Data17$Outbound;
|
|
421
2979
|
};
|
|
422
2980
|
/** @internal */
|
|
423
2981
|
export declare const StreamAgentResponseBody$outboundSchema: z.ZodType<StreamAgentResponseBody$Outbound, z.ZodTypeDef, StreamAgentResponseBody>;
|