@orq-ai/node 4.1.0-rc.4 → 4.1.0-rc.5
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/bin/mcp-server.js +25494 -27422
- package/bin/mcp-server.js.map +64 -47
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/actionreviewedstreamingevent.d.ts +76 -0
- package/models/components/actionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewedstreamingevent.js +127 -0
- package/models/components/actionreviewedstreamingevent.js.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts +135 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.js +180 -0
- package/models/components/actionreviewrequestedstreamingevent.js.map +1 -0
- package/models/components/agenterroredstreamingevent.d.ts +58 -0
- package/models/components/agenterroredstreamingevent.d.ts.map +1 -0
- package/models/components/agenterroredstreamingevent.js +91 -0
- package/models/components/agenterroredstreamingevent.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +62 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.js +103 -0
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -0
- package/models/components/agenthandedoffstreamingevent.d.ts +51 -0
- package/models/components/agenthandedoffstreamingevent.d.ts.map +1 -0
- package/models/components/agenthandedoffstreamingevent.js +96 -0
- package/models/components/agenthandedoffstreamingevent.js.map +1 -0
- package/models/components/agentinactivestreamingevent.d.ts +309 -0
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -0
- package/models/components/agentinactivestreamingevent.js +385 -0
- package/models/components/agentinactivestreamingevent.js.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts +141 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.js +190 -0
- package/models/components/agentmessagecreatedstreamingevent.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +382 -0
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentstartedstreamingevent.js +441 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +542 -0
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -0
- package/models/components/agentthoughtstreamingevent.js +626 -0
- package/models/components/agentthoughtstreamingevent.js.map +1 -0
- package/models/components/errorstreamingevent.d.ts +51 -0
- package/models/components/errorstreamingevent.d.ts.map +1 -0
- package/models/components/errorstreamingevent.js +87 -0
- package/models/components/errorstreamingevent.js.map +1 -0
- package/models/components/executionnamedstreamingevent.d.ts +51 -0
- package/models/components/executionnamedstreamingevent.d.ts.map +1 -0
- package/models/components/executionnamedstreamingevent.js +96 -0
- package/models/components/executionnamedstreamingevent.js.map +1 -0
- package/models/components/executionreviewedstreamingevent.d.ts +45 -0
- package/models/components/executionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewedstreamingevent.js +81 -0
- package/models/components/executionreviewedstreamingevent.js.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts +45 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.js +82 -0
- package/models/components/executionreviewrequiredstreamingevent.js.map +1 -0
- package/models/components/filepart.d.ts +1 -1
- package/models/components/index.d.ts +17 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +13 -13
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +17 -17
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/timeoutstreamingevent.d.ts +49 -0
- package/models/components/timeoutstreamingevent.d.ts.map +1 -0
- package/models/components/timeoutstreamingevent.js +85 -0
- package/models/components/timeoutstreamingevent.js.map +1 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts +144 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfailedstreamingevent.js +223 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +129 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.js +205 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts +139 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.js +217 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -0
- package/models/components/toolresultpart.d.ts +1 -1
- package/models/operations/createagentresponserequest.d.ts +4 -137
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +9 -138
- package/models/operations/createagentresponserequest.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 +80 -145
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +190 -266
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.d.ts +14 -79
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +49 -132
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/invokeagent.d.ts +14 -147
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +19 -148
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- 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.js +2 -2
- package/models/operations/listknowledgebases.d.ts +16 -16
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +27 -25
- package/models/operations/listknowledgebases.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 +4 -137
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +17 -145
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +241 -2491
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +172 -2826
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +889 -3139
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +175 -2825
- package/models/operations/streamrunagent.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.d.ts +14 -79
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +51 -134
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/actionreviewedstreamingevent.ts +189 -0
- package/src/models/components/actionreviewrequestedstreamingevent.ts +326 -0
- package/src/models/components/agenterroredstreamingevent.ts +142 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +145 -0
- package/src/models/components/agenthandedoffstreamingevent.ts +142 -0
- package/src/models/components/agentinactivestreamingevent.ts +857 -0
- package/src/models/components/agentmessagecreatedstreamingevent.ts +396 -0
- package/src/models/components/agentstartedstreamingevent.ts +909 -0
- package/src/models/components/agentthoughtstreamingevent.ts +1419 -0
- package/src/models/components/errorstreamingevent.ts +129 -0
- package/src/models/components/executionnamedstreamingevent.ts +142 -0
- package/src/models/components/executionreviewedstreamingevent.ts +122 -0
- package/src/models/components/executionreviewrequiredstreamingevent.ts +130 -0
- package/src/models/components/filepart.ts +1 -1
- package/src/models/components/index.ts +17 -0
- package/src/models/components/invokedeploymentrequest.ts +32 -27
- package/src/models/components/timeoutstreamingevent.ts +125 -0
- package/src/models/components/toolexecutionfailedstreamingevent.ts +406 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +373 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +350 -0
- package/src/models/components/toolresultpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +20 -321
- 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 +318 -615
- package/src/models/operations/createtool.ts +12 -12
- 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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +52 -287
- package/src/models/operations/invokeagent.ts +36 -373
- package/src/models/operations/listbudgets.ts +2 -2
- 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 +2 -2
- package/src/models/operations/listknowledgebases.ts +82 -102
- 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 +17 -365
- package/src/models/operations/streamagent.ts +794 -6985
- package/src/models/operations/streamrunagent.ts +3939 -9983
- 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 +52 -287
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -27,74 +27,10 @@ export type StreamAgentRoleUserMessage = ClosedEnum<typeof StreamAgentRoleUserMe
|
|
|
27
27
|
* Message role (user or tool for continuing executions)
|
|
28
28
|
*/
|
|
29
29
|
export type StreamAgentRole = StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
|
|
30
|
-
export declare const StreamAgentPublicMessagePartAgentsKind: {
|
|
31
|
-
readonly ToolResult: "tool_result";
|
|
32
|
-
};
|
|
33
|
-
export type StreamAgentPublicMessagePartAgentsKind = ClosedEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
34
|
-
/**
|
|
35
|
-
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
36
|
-
*/
|
|
37
|
-
export type StreamAgentPublicMessagePartToolResultPart = {
|
|
38
|
-
kind: StreamAgentPublicMessagePartAgentsKind;
|
|
39
|
-
toolCallId: string;
|
|
40
|
-
result?: any | undefined;
|
|
41
|
-
metadata?: {
|
|
42
|
-
[k: string]: any;
|
|
43
|
-
} | undefined;
|
|
44
|
-
};
|
|
45
|
-
export declare const StreamAgentPublicMessagePartKind: {
|
|
46
|
-
readonly File: "file";
|
|
47
|
-
};
|
|
48
|
-
export type StreamAgentPublicMessagePartKind = ClosedEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
49
|
-
/**
|
|
50
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
51
|
-
*/
|
|
52
|
-
export type StreamAgentFileFileInURIFormat = {
|
|
53
|
-
/**
|
|
54
|
-
* URL for the File content
|
|
55
|
-
*/
|
|
56
|
-
uri: string;
|
|
57
|
-
/**
|
|
58
|
-
* Optional mimeType for the file
|
|
59
|
-
*/
|
|
60
|
-
mimeType?: string | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Optional name for the file
|
|
63
|
-
*/
|
|
64
|
-
name?: string | undefined;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
68
|
-
*/
|
|
69
|
-
export type StreamAgentFileBinaryFormat = {
|
|
70
|
-
/**
|
|
71
|
-
* base64 encoded content of the file
|
|
72
|
-
*/
|
|
73
|
-
bytes: string;
|
|
74
|
-
/**
|
|
75
|
-
* Optional mimeType for the file
|
|
76
|
-
*/
|
|
77
|
-
mimeType?: string | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Optional name for the file
|
|
80
|
-
*/
|
|
81
|
-
name?: string | undefined;
|
|
82
|
-
};
|
|
83
|
-
export type StreamAgentPublicMessagePartFile = StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
|
|
84
|
-
/**
|
|
85
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
86
|
-
*/
|
|
87
|
-
export type StreamAgentPublicMessagePartFilePart = {
|
|
88
|
-
kind: StreamAgentPublicMessagePartKind;
|
|
89
|
-
file: StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
|
|
90
|
-
metadata?: {
|
|
91
|
-
[k: string]: any;
|
|
92
|
-
} | undefined;
|
|
93
|
-
};
|
|
94
30
|
/**
|
|
95
31
|
* 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.
|
|
96
32
|
*/
|
|
97
|
-
export type StreamAgentPublicMessagePart = components.TextPart |
|
|
33
|
+
export type StreamAgentPublicMessagePart = components.TextPart | components.FilePart | components.ToolResultPart;
|
|
98
34
|
/**
|
|
99
35
|
* The A2A message to send to the agent (user input or tool results)
|
|
100
36
|
*/
|
|
@@ -110,7 +46,7 @@ export type StreamAgentA2AMessage = {
|
|
|
110
46
|
/**
|
|
111
47
|
* A2A message parts (text, file, or tool_result only)
|
|
112
48
|
*/
|
|
113
|
-
parts: Array<components.TextPart |
|
|
49
|
+
parts: Array<components.TextPart | components.FilePart | components.ToolResultPart>;
|
|
114
50
|
};
|
|
115
51
|
/**
|
|
116
52
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -210,2445 +146,225 @@ export type StreamAgentRequest = {
|
|
|
210
146
|
key: string;
|
|
211
147
|
requestBody: StreamAgentRequestBody;
|
|
212
148
|
};
|
|
213
|
-
export
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
type:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
export type DataError = {
|
|
249
|
-
message: string;
|
|
250
|
-
stack?: string | undefined;
|
|
251
|
-
};
|
|
252
|
-
/**
|
|
253
|
-
* Orquesta product
|
|
254
|
-
*/
|
|
255
|
-
export declare const StreamAgentDataAgentsResponseProduct: {
|
|
256
|
-
readonly Remoteconfigs: "remoteconfigs";
|
|
257
|
-
readonly Deployments: "deployments";
|
|
258
|
-
readonly Experiments: "experiments";
|
|
259
|
-
readonly Playgrounds: "playgrounds";
|
|
260
|
-
readonly Spreadsheets: "spreadsheets";
|
|
261
|
-
readonly SpreadsheetRun: "spreadsheet_run";
|
|
262
|
-
readonly LlmEvaluator: "llm_evaluator";
|
|
263
|
-
readonly Knowledge: "knowledge";
|
|
264
|
-
readonly Router: "router";
|
|
265
|
-
readonly Workflows: "workflows";
|
|
266
|
-
readonly ExternalEvents: "external_events";
|
|
267
|
-
readonly Agents: "agents";
|
|
268
|
-
readonly MemoryStores: "memory-stores";
|
|
269
|
-
readonly Generic: "generic";
|
|
270
|
-
readonly Evaluators: "evaluators";
|
|
271
|
-
readonly Otel: "otel";
|
|
272
|
-
};
|
|
273
|
-
/**
|
|
274
|
-
* Orquesta product
|
|
275
|
-
*/
|
|
276
|
-
export type StreamAgentDataAgentsResponseProduct = ClosedEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
277
|
-
export type StreamAgentDataAgentsResponseMemory = {
|
|
278
|
-
entityId: string;
|
|
279
|
-
};
|
|
280
|
-
export type StreamAgentDataAgentsResponseToolExecutionContext = {
|
|
281
|
-
actionId: string;
|
|
282
|
-
agentToolCallId: string;
|
|
283
|
-
workspaceId: string;
|
|
284
|
-
agentManifestId: string;
|
|
285
|
-
agentExecutionId: string;
|
|
286
|
-
/**
|
|
287
|
-
* Orquesta product
|
|
288
|
-
*/
|
|
289
|
-
product: StreamAgentDataAgentsResponseProduct;
|
|
290
|
-
memory?: StreamAgentDataAgentsResponseMemory | undefined;
|
|
291
|
-
parentId?: string | undefined;
|
|
292
|
-
};
|
|
293
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data = {
|
|
294
|
-
error: DataError;
|
|
295
|
-
actionType: string;
|
|
296
|
-
toolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext;
|
|
297
|
-
responseId?: string | undefined;
|
|
298
|
-
workflowRunId: string;
|
|
299
|
-
};
|
|
300
|
-
export type Data15 = {
|
|
301
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type;
|
|
302
|
-
/**
|
|
303
|
-
* ISO timestamp of the event
|
|
304
|
-
*/
|
|
305
|
-
timestamp: string;
|
|
306
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data;
|
|
307
|
-
};
|
|
308
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type: {
|
|
309
|
-
readonly EventWorkflowEventsToolExecutionFinished: "event.workflow_events.tool_execution_finished";
|
|
310
|
-
};
|
|
311
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
312
|
-
/**
|
|
313
|
-
* Orquesta product
|
|
314
|
-
*/
|
|
315
|
-
export declare const StreamAgentDataAgentsProduct: {
|
|
316
|
-
readonly Remoteconfigs: "remoteconfigs";
|
|
317
|
-
readonly Deployments: "deployments";
|
|
318
|
-
readonly Experiments: "experiments";
|
|
319
|
-
readonly Playgrounds: "playgrounds";
|
|
320
|
-
readonly Spreadsheets: "spreadsheets";
|
|
321
|
-
readonly SpreadsheetRun: "spreadsheet_run";
|
|
322
|
-
readonly LlmEvaluator: "llm_evaluator";
|
|
323
|
-
readonly Knowledge: "knowledge";
|
|
324
|
-
readonly Router: "router";
|
|
325
|
-
readonly Workflows: "workflows";
|
|
326
|
-
readonly ExternalEvents: "external_events";
|
|
327
|
-
readonly Agents: "agents";
|
|
328
|
-
readonly MemoryStores: "memory-stores";
|
|
329
|
-
readonly Generic: "generic";
|
|
330
|
-
readonly Evaluators: "evaluators";
|
|
331
|
-
readonly Otel: "otel";
|
|
332
|
-
};
|
|
333
|
-
/**
|
|
334
|
-
* Orquesta product
|
|
335
|
-
*/
|
|
336
|
-
export type StreamAgentDataAgentsProduct = ClosedEnum<typeof StreamAgentDataAgentsProduct>;
|
|
337
|
-
export type StreamAgentDataAgentsMemory = {
|
|
338
|
-
entityId: string;
|
|
339
|
-
};
|
|
340
|
-
export type StreamAgentDataAgentsToolExecutionContext = {
|
|
341
|
-
actionId: string;
|
|
342
|
-
agentToolCallId: string;
|
|
343
|
-
workspaceId: string;
|
|
344
|
-
agentManifestId: string;
|
|
345
|
-
agentExecutionId: string;
|
|
346
|
-
/**
|
|
347
|
-
* Orquesta product
|
|
348
|
-
*/
|
|
349
|
-
product: StreamAgentDataAgentsProduct;
|
|
350
|
-
memory?: StreamAgentDataAgentsMemory | undefined;
|
|
351
|
-
parentId?: string | undefined;
|
|
352
|
-
};
|
|
353
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data = {
|
|
354
|
-
result?: any | undefined;
|
|
355
|
-
actionType: string;
|
|
356
|
-
toolExecutionContext: StreamAgentDataAgentsToolExecutionContext;
|
|
357
|
-
responseId?: string | undefined;
|
|
358
|
-
workflowRunId: string;
|
|
359
|
-
};
|
|
360
|
-
export type Data14 = {
|
|
361
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type;
|
|
362
|
-
/**
|
|
363
|
-
* ISO timestamp of the event
|
|
364
|
-
*/
|
|
365
|
-
timestamp: string;
|
|
366
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data;
|
|
367
|
-
};
|
|
368
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type: {
|
|
369
|
-
readonly EventWorkflowEventsToolExecutionStarted: "event.workflow_events.tool_execution_started";
|
|
370
|
-
};
|
|
371
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
372
|
-
/**
|
|
373
|
-
* Orquesta product
|
|
374
|
-
*/
|
|
375
|
-
export declare const StreamAgentDataProduct: {
|
|
376
|
-
readonly Remoteconfigs: "remoteconfigs";
|
|
377
|
-
readonly Deployments: "deployments";
|
|
378
|
-
readonly Experiments: "experiments";
|
|
379
|
-
readonly Playgrounds: "playgrounds";
|
|
380
|
-
readonly Spreadsheets: "spreadsheets";
|
|
381
|
-
readonly SpreadsheetRun: "spreadsheet_run";
|
|
382
|
-
readonly LlmEvaluator: "llm_evaluator";
|
|
383
|
-
readonly Knowledge: "knowledge";
|
|
384
|
-
readonly Router: "router";
|
|
385
|
-
readonly Workflows: "workflows";
|
|
386
|
-
readonly ExternalEvents: "external_events";
|
|
387
|
-
readonly Agents: "agents";
|
|
388
|
-
readonly MemoryStores: "memory-stores";
|
|
389
|
-
readonly Generic: "generic";
|
|
390
|
-
readonly Evaluators: "evaluators";
|
|
391
|
-
readonly Otel: "otel";
|
|
392
|
-
};
|
|
149
|
+
export type StreamAgentData = (components.AgentExecutionStartedStreamingEvent & {
|
|
150
|
+
type: "agents.execution_started";
|
|
151
|
+
}) | (components.AgentStartedStreamingEvent & {
|
|
152
|
+
type: "event.agents.started";
|
|
153
|
+
}) | (components.AgentThoughtStreamingEvent & {
|
|
154
|
+
type: "event.agents.thought";
|
|
155
|
+
}) | (components.AgentInactiveStreamingEvent & {
|
|
156
|
+
type: "event.agents.inactive";
|
|
157
|
+
}) | (components.AgentErroredStreamingEvent & {
|
|
158
|
+
type: "event.agents.errored";
|
|
159
|
+
}) | (components.ActionReviewRequestedStreamingEvent & {
|
|
160
|
+
type: "event.agents.action_review_requested";
|
|
161
|
+
}) | (components.ActionReviewedStreamingEvent & {
|
|
162
|
+
type: "event.agents.action_reviewed";
|
|
163
|
+
}) | (components.ExecutionReviewRequiredStreamingEvent & {
|
|
164
|
+
type: "event.agents.execution_review_required";
|
|
165
|
+
}) | (components.ExecutionReviewedStreamingEvent & {
|
|
166
|
+
type: "event.agents.execution_reviewed";
|
|
167
|
+
}) | (components.ExecutionNamedStreamingEvent & {
|
|
168
|
+
type: "event.agents.execution_named";
|
|
169
|
+
}) | (components.AgentHandedOffStreamingEvent & {
|
|
170
|
+
type: "event.agents.handed_off";
|
|
171
|
+
}) | (components.AgentMessageCreatedStreamingEvent & {
|
|
172
|
+
type: "event.agents.message-created";
|
|
173
|
+
}) | (components.ToolExecutionStartedStreamingEvent & {
|
|
174
|
+
type: "event.workflow_events.tool_execution_started";
|
|
175
|
+
}) | (components.ToolExecutionFinishedStreamingEvent & {
|
|
176
|
+
type: "event.workflow_events.tool_execution_finished";
|
|
177
|
+
}) | (components.ToolExecutionFailedStreamingEvent & {
|
|
178
|
+
type: "event.workflow_events.tool_execution_failed";
|
|
179
|
+
}) | (components.TimeoutStreamingEvent & {
|
|
180
|
+
type: "agents.timeout";
|
|
181
|
+
}) | (components.ErrorStreamingEvent & {
|
|
182
|
+
type: "agents.error";
|
|
183
|
+
});
|
|
393
184
|
/**
|
|
394
|
-
*
|
|
185
|
+
* Server-Sent Event stream successfully established. Returns real-time events including agent messages, tool calls, status updates, and completion signals. The stream ends with a [DONE] sentinel value.
|
|
395
186
|
*/
|
|
396
|
-
export type
|
|
397
|
-
|
|
398
|
-
|
|
187
|
+
export type StreamAgentResponseBody = {
|
|
188
|
+
data: (components.AgentExecutionStartedStreamingEvent & {
|
|
189
|
+
type: "agents.execution_started";
|
|
190
|
+
}) | (components.AgentStartedStreamingEvent & {
|
|
191
|
+
type: "event.agents.started";
|
|
192
|
+
}) | (components.AgentThoughtStreamingEvent & {
|
|
193
|
+
type: "event.agents.thought";
|
|
194
|
+
}) | (components.AgentInactiveStreamingEvent & {
|
|
195
|
+
type: "event.agents.inactive";
|
|
196
|
+
}) | (components.AgentErroredStreamingEvent & {
|
|
197
|
+
type: "event.agents.errored";
|
|
198
|
+
}) | (components.ActionReviewRequestedStreamingEvent & {
|
|
199
|
+
type: "event.agents.action_review_requested";
|
|
200
|
+
}) | (components.ActionReviewedStreamingEvent & {
|
|
201
|
+
type: "event.agents.action_reviewed";
|
|
202
|
+
}) | (components.ExecutionReviewRequiredStreamingEvent & {
|
|
203
|
+
type: "event.agents.execution_review_required";
|
|
204
|
+
}) | (components.ExecutionReviewedStreamingEvent & {
|
|
205
|
+
type: "event.agents.execution_reviewed";
|
|
206
|
+
}) | (components.ExecutionNamedStreamingEvent & {
|
|
207
|
+
type: "event.agents.execution_named";
|
|
208
|
+
}) | (components.AgentHandedOffStreamingEvent & {
|
|
209
|
+
type: "event.agents.handed_off";
|
|
210
|
+
}) | (components.AgentMessageCreatedStreamingEvent & {
|
|
211
|
+
type: "event.agents.message-created";
|
|
212
|
+
}) | (components.ToolExecutionStartedStreamingEvent & {
|
|
213
|
+
type: "event.workflow_events.tool_execution_started";
|
|
214
|
+
}) | (components.ToolExecutionFinishedStreamingEvent & {
|
|
215
|
+
type: "event.workflow_events.tool_execution_finished";
|
|
216
|
+
}) | (components.ToolExecutionFailedStreamingEvent & {
|
|
217
|
+
type: "event.workflow_events.tool_execution_failed";
|
|
218
|
+
}) | (components.TimeoutStreamingEvent & {
|
|
219
|
+
type: "agents.timeout";
|
|
220
|
+
}) | (components.ErrorStreamingEvent & {
|
|
221
|
+
type: "agents.error";
|
|
222
|
+
});
|
|
399
223
|
};
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
224
|
+
/** @internal */
|
|
225
|
+
export declare const StreamAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
226
|
+
/** @internal */
|
|
227
|
+
export declare const StreamAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
228
|
+
/** @internal */
|
|
229
|
+
export declare const StreamAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
230
|
+
/** @internal */
|
|
231
|
+
export declare const StreamAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
232
|
+
/** @internal */
|
|
233
|
+
export declare const StreamAgentRole$inboundSchema: z.ZodType<StreamAgentRole, z.ZodTypeDef, unknown>;
|
|
234
|
+
/** @internal */
|
|
235
|
+
export type StreamAgentRole$Outbound = string | string;
|
|
236
|
+
/** @internal */
|
|
237
|
+
export declare const StreamAgentRole$outboundSchema: z.ZodType<StreamAgentRole$Outbound, z.ZodTypeDef, StreamAgentRole>;
|
|
238
|
+
export declare function streamAgentRoleToJSON(streamAgentRole: StreamAgentRole): string;
|
|
239
|
+
export declare function streamAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamAgentRole, SDKValidationError>;
|
|
240
|
+
/** @internal */
|
|
241
|
+
export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
242
|
+
/** @internal */
|
|
243
|
+
export type StreamAgentPublicMessagePart$Outbound = components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound;
|
|
244
|
+
/** @internal */
|
|
245
|
+
export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
|
|
246
|
+
export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
|
|
247
|
+
export declare function streamAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError>;
|
|
248
|
+
/** @internal */
|
|
249
|
+
export declare const StreamAgentA2AMessage$inboundSchema: z.ZodType<StreamAgentA2AMessage, z.ZodTypeDef, unknown>;
|
|
250
|
+
/** @internal */
|
|
251
|
+
export type StreamAgentA2AMessage$Outbound = {
|
|
252
|
+
messageId?: string | undefined;
|
|
253
|
+
role: string | string;
|
|
254
|
+
parts: Array<components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound>;
|
|
412
255
|
};
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
256
|
+
/** @internal */
|
|
257
|
+
export declare const StreamAgentA2AMessage$outboundSchema: z.ZodType<StreamAgentA2AMessage$Outbound, z.ZodTypeDef, StreamAgentA2AMessage>;
|
|
258
|
+
export declare function streamAgentA2AMessageToJSON(streamAgentA2AMessage: StreamAgentA2AMessage): string;
|
|
259
|
+
export declare function streamAgentA2AMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentA2AMessage, SDKValidationError>;
|
|
260
|
+
/** @internal */
|
|
261
|
+
export declare const StreamAgentContact$inboundSchema: z.ZodType<StreamAgentContact, z.ZodTypeDef, unknown>;
|
|
262
|
+
/** @internal */
|
|
263
|
+
export type StreamAgentContact$Outbound = {
|
|
264
|
+
id: string;
|
|
265
|
+
display_name?: string | undefined;
|
|
266
|
+
email?: string | undefined;
|
|
267
|
+
metadata?: Array<{
|
|
419
268
|
[k: string]: any;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
workflowRunId: string;
|
|
424
|
-
};
|
|
425
|
-
export type Data13 = {
|
|
426
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type;
|
|
427
|
-
/**
|
|
428
|
-
* ISO timestamp of the event
|
|
429
|
-
*/
|
|
430
|
-
timestamp: string;
|
|
431
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data;
|
|
269
|
+
}> | undefined;
|
|
270
|
+
logo_url?: string | undefined;
|
|
271
|
+
tags?: Array<string> | undefined;
|
|
432
272
|
};
|
|
433
|
-
|
|
434
|
-
|
|
273
|
+
/** @internal */
|
|
274
|
+
export declare const StreamAgentContact$outboundSchema: z.ZodType<StreamAgentContact$Outbound, z.ZodTypeDef, StreamAgentContact>;
|
|
275
|
+
export declare function streamAgentContactToJSON(streamAgentContact: StreamAgentContact): string;
|
|
276
|
+
export declare function streamAgentContactFromJSON(jsonString: string): SafeParseResult<StreamAgentContact, SDKValidationError>;
|
|
277
|
+
/** @internal */
|
|
278
|
+
export declare const StreamAgentThread$inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
|
|
279
|
+
/** @internal */
|
|
280
|
+
export type StreamAgentThread$Outbound = {
|
|
281
|
+
id: string;
|
|
282
|
+
tags?: Array<string> | undefined;
|
|
435
283
|
};
|
|
436
|
-
|
|
437
|
-
export declare const
|
|
438
|
-
|
|
439
|
-
|
|
284
|
+
/** @internal */
|
|
285
|
+
export declare const StreamAgentThread$outboundSchema: z.ZodType<StreamAgentThread$Outbound, z.ZodTypeDef, StreamAgentThread>;
|
|
286
|
+
export declare function streamAgentThreadToJSON(streamAgentThread: StreamAgentThread): string;
|
|
287
|
+
export declare function streamAgentThreadFromJSON(jsonString: string): SafeParseResult<StreamAgentThread, SDKValidationError>;
|
|
288
|
+
/** @internal */
|
|
289
|
+
export declare const StreamAgentMemory$inboundSchema: z.ZodType<StreamAgentMemory, z.ZodTypeDef, unknown>;
|
|
290
|
+
/** @internal */
|
|
291
|
+
export type StreamAgentMemory$Outbound = {
|
|
292
|
+
entity_id: string;
|
|
440
293
|
};
|
|
441
|
-
|
|
442
|
-
export
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
});
|
|
453
|
-
export type StreamAgentDataMessage = {
|
|
454
|
-
messageId?: string | undefined;
|
|
455
|
-
role: StreamAgentDataAgentsResponse200Role;
|
|
456
|
-
parts: Array<(components.ToolCallPart & {
|
|
457
|
-
kind: "tool_call";
|
|
458
|
-
}) | (components.TextPart & {
|
|
459
|
-
kind: "text";
|
|
460
|
-
}) | (components.DataPart & {
|
|
461
|
-
kind: "data";
|
|
462
|
-
}) | (components.FilePart & {
|
|
463
|
-
kind: "file";
|
|
464
|
-
}) | (components.ToolResultPart & {
|
|
465
|
-
kind: "tool_result";
|
|
466
|
-
})>;
|
|
467
|
-
metadata?: {
|
|
294
|
+
/** @internal */
|
|
295
|
+
export declare const StreamAgentMemory$outboundSchema: z.ZodType<StreamAgentMemory$Outbound, z.ZodTypeDef, StreamAgentMemory>;
|
|
296
|
+
export declare function streamAgentMemoryToJSON(streamAgentMemory: StreamAgentMemory): string;
|
|
297
|
+
export declare function streamAgentMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentMemory, SDKValidationError>;
|
|
298
|
+
/** @internal */
|
|
299
|
+
export declare const StreamAgentRequestBody$inboundSchema: z.ZodType<StreamAgentRequestBody, z.ZodTypeDef, unknown>;
|
|
300
|
+
/** @internal */
|
|
301
|
+
export type StreamAgentRequestBody$Outbound = {
|
|
302
|
+
task_id?: string | undefined;
|
|
303
|
+
message: StreamAgentA2AMessage$Outbound;
|
|
304
|
+
variables?: {
|
|
468
305
|
[k: string]: any;
|
|
469
306
|
} | undefined;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
parentId: string;
|
|
475
|
-
message: Array<StreamAgentDataMessage>;
|
|
476
|
-
};
|
|
477
|
-
export type Data12 = {
|
|
478
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type;
|
|
479
|
-
/**
|
|
480
|
-
* ISO timestamp of the event
|
|
481
|
-
*/
|
|
482
|
-
timestamp: string;
|
|
483
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data;
|
|
484
|
-
};
|
|
485
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type: {
|
|
486
|
-
readonly EventAgentsHandedOff: "event.agents.handed_off";
|
|
487
|
-
};
|
|
488
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
489
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data = {
|
|
490
|
-
agentId: string;
|
|
491
|
-
input: string;
|
|
492
|
-
};
|
|
493
|
-
export type Data11 = {
|
|
494
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type;
|
|
495
|
-
/**
|
|
496
|
-
* ISO timestamp of the event
|
|
497
|
-
*/
|
|
498
|
-
timestamp: string;
|
|
499
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data;
|
|
500
|
-
};
|
|
501
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type: {
|
|
502
|
-
readonly EventAgentsExecutionNamed: "event.agents.execution_named";
|
|
503
|
-
};
|
|
504
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
505
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data = {
|
|
506
|
-
name: string;
|
|
507
|
-
agentManifestId: string;
|
|
508
|
-
};
|
|
509
|
-
export type Data10 = {
|
|
510
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type;
|
|
511
|
-
/**
|
|
512
|
-
* ISO timestamp of the event
|
|
513
|
-
*/
|
|
514
|
-
timestamp: string;
|
|
515
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data;
|
|
516
|
-
};
|
|
517
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type: {
|
|
518
|
-
readonly EventAgentsExecutionReviewed: "event.agents.execution_reviewed";
|
|
519
|
-
};
|
|
520
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
521
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data = {};
|
|
522
|
-
export type Data9 = {
|
|
523
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type;
|
|
524
|
-
/**
|
|
525
|
-
* ISO timestamp of the event
|
|
526
|
-
*/
|
|
527
|
-
timestamp: string;
|
|
528
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data;
|
|
529
|
-
};
|
|
530
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type: {
|
|
531
|
-
readonly EventAgentsExecutionReviewRequired: "event.agents.execution_review_required";
|
|
532
|
-
};
|
|
533
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
534
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data = {};
|
|
535
|
-
export type Data8 = {
|
|
536
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type;
|
|
537
|
-
/**
|
|
538
|
-
* ISO timestamp of the event
|
|
539
|
-
*/
|
|
540
|
-
timestamp: string;
|
|
541
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data;
|
|
542
|
-
};
|
|
543
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type: {
|
|
544
|
-
readonly EventAgentsActionReviewed: "event.agents.action_reviewed";
|
|
545
|
-
};
|
|
546
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
547
|
-
export declare const DataReview: {
|
|
548
|
-
readonly Approved: "approved";
|
|
549
|
-
readonly Rejected: "rejected";
|
|
550
|
-
};
|
|
551
|
-
export type DataReview = ClosedEnum<typeof DataReview>;
|
|
552
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data = {
|
|
553
|
-
agentId: string;
|
|
554
|
-
actionId: string;
|
|
555
|
-
agentToolCallId: string;
|
|
556
|
-
review: DataReview;
|
|
557
|
-
mockOutput?: {
|
|
307
|
+
contact?: StreamAgentContact$Outbound | undefined;
|
|
308
|
+
thread?: StreamAgentThread$Outbound | undefined;
|
|
309
|
+
memory?: StreamAgentMemory$Outbound | undefined;
|
|
310
|
+
metadata?: {
|
|
558
311
|
[k: string]: any;
|
|
559
312
|
} | undefined;
|
|
560
|
-
|
|
561
|
-
reviewedById?: string | undefined;
|
|
562
|
-
workflowRunId: string;
|
|
563
|
-
};
|
|
564
|
-
export type Data7 = {
|
|
565
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type;
|
|
566
|
-
/**
|
|
567
|
-
* ISO timestamp of the event
|
|
568
|
-
*/
|
|
569
|
-
timestamp: string;
|
|
570
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data;
|
|
571
|
-
};
|
|
572
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType: {
|
|
573
|
-
readonly EventAgentsActionReviewRequested: "event.agents.action_review_requested";
|
|
574
|
-
};
|
|
575
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
576
|
-
export type StreamAgentDataConditions = {
|
|
577
|
-
/**
|
|
578
|
-
* The argument of the tool call to evaluate
|
|
579
|
-
*/
|
|
580
|
-
condition: string;
|
|
581
|
-
/**
|
|
582
|
-
* The operator to use
|
|
583
|
-
*/
|
|
584
|
-
operator: string;
|
|
585
|
-
/**
|
|
586
|
-
* The value to compare against
|
|
587
|
-
*/
|
|
588
|
-
value: string;
|
|
589
|
-
};
|
|
590
|
-
export type DataTool = {
|
|
591
|
-
/**
|
|
592
|
-
* The id of the resource
|
|
593
|
-
*/
|
|
594
|
-
id: string;
|
|
595
|
-
/**
|
|
596
|
-
* Optional tool key for custom tools
|
|
597
|
-
*/
|
|
598
|
-
key?: string | undefined;
|
|
599
|
-
actionType: string;
|
|
600
|
-
displayName?: string | undefined;
|
|
601
|
-
/**
|
|
602
|
-
* Optional tool description
|
|
603
|
-
*/
|
|
604
|
-
description?: string | undefined;
|
|
605
|
-
requiresApproval?: boolean | undefined;
|
|
606
|
-
/**
|
|
607
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
608
|
-
*/
|
|
609
|
-
toolId?: string | undefined;
|
|
610
|
-
conditions?: Array<StreamAgentDataConditions> | undefined;
|
|
611
|
-
/**
|
|
612
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
613
|
-
*/
|
|
614
|
-
timeout?: number | undefined;
|
|
615
|
-
};
|
|
616
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData = {
|
|
617
|
-
agentId: string;
|
|
618
|
-
actionId: string;
|
|
619
|
-
requiresApproval: boolean;
|
|
620
|
-
tool: DataTool;
|
|
621
|
-
input: {
|
|
622
|
-
[k: string]: any;
|
|
623
|
-
};
|
|
624
|
-
agentToolCallId: string;
|
|
625
|
-
responseId?: string | undefined;
|
|
626
|
-
};
|
|
627
|
-
export type Data6 = {
|
|
628
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType;
|
|
629
|
-
/**
|
|
630
|
-
* ISO timestamp of the event
|
|
631
|
-
*/
|
|
632
|
-
timestamp: string;
|
|
633
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData;
|
|
634
|
-
};
|
|
635
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamType: {
|
|
636
|
-
readonly EventAgentsErrored: "event.agents.errored";
|
|
637
|
-
};
|
|
638
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamType = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
639
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamData = {
|
|
640
|
-
error: string;
|
|
641
|
-
code: number;
|
|
642
|
-
/**
|
|
643
|
-
* ID of the response tracking this execution
|
|
644
|
-
*/
|
|
645
|
-
responseId?: string | undefined;
|
|
646
|
-
workflowRunId: string;
|
|
647
|
-
};
|
|
648
|
-
export type Data5 = {
|
|
649
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamType;
|
|
650
|
-
/**
|
|
651
|
-
* ISO timestamp of the event
|
|
652
|
-
*/
|
|
653
|
-
timestamp: string;
|
|
654
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamData;
|
|
655
|
-
};
|
|
656
|
-
export declare const StreamAgentDataAgentsResponse200Type: {
|
|
657
|
-
readonly EventAgentsInactive: "event.agents.inactive";
|
|
313
|
+
stream_timeout_seconds?: number | undefined;
|
|
658
314
|
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
315
|
+
/** @internal */
|
|
316
|
+
export declare const StreamAgentRequestBody$outboundSchema: z.ZodType<StreamAgentRequestBody$Outbound, z.ZodTypeDef, StreamAgentRequestBody>;
|
|
317
|
+
export declare function streamAgentRequestBodyToJSON(streamAgentRequestBody: StreamAgentRequestBody): string;
|
|
318
|
+
export declare function streamAgentRequestBodyFromJSON(jsonString: string): SafeParseResult<StreamAgentRequestBody, SDKValidationError>;
|
|
319
|
+
/** @internal */
|
|
320
|
+
export declare const StreamAgentRequest$inboundSchema: z.ZodType<StreamAgentRequest, z.ZodTypeDef, unknown>;
|
|
321
|
+
/** @internal */
|
|
322
|
+
export type StreamAgentRequest$Outbound = {
|
|
323
|
+
key: string;
|
|
324
|
+
RequestBody: StreamAgentRequestBody$Outbound;
|
|
668
325
|
};
|
|
669
|
-
/**
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
export
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
326
|
+
/** @internal */
|
|
327
|
+
export declare const StreamAgentRequest$outboundSchema: z.ZodType<StreamAgentRequest$Outbound, z.ZodTypeDef, StreamAgentRequest>;
|
|
328
|
+
export declare function streamAgentRequestToJSON(streamAgentRequest: StreamAgentRequest): string;
|
|
329
|
+
export declare function streamAgentRequestFromJSON(jsonString: string): SafeParseResult<StreamAgentRequest, SDKValidationError>;
|
|
330
|
+
/** @internal */
|
|
331
|
+
export declare const StreamAgentData$inboundSchema: z.ZodType<StreamAgentData, z.ZodTypeDef, unknown>;
|
|
332
|
+
/** @internal */
|
|
333
|
+
export type StreamAgentData$Outbound = (components.AgentExecutionStartedStreamingEvent$Outbound & {
|
|
334
|
+
type: "agents.execution_started";
|
|
335
|
+
}) | (components.AgentStartedStreamingEvent$Outbound & {
|
|
336
|
+
type: "event.agents.started";
|
|
337
|
+
}) | (components.AgentThoughtStreamingEvent$Outbound & {
|
|
338
|
+
type: "event.agents.thought";
|
|
339
|
+
}) | (components.AgentInactiveStreamingEvent$Outbound & {
|
|
340
|
+
type: "event.agents.inactive";
|
|
341
|
+
}) | (components.AgentErroredStreamingEvent$Outbound & {
|
|
342
|
+
type: "event.agents.errored";
|
|
343
|
+
}) | (components.ActionReviewRequestedStreamingEvent$Outbound & {
|
|
344
|
+
type: "event.agents.action_review_requested";
|
|
345
|
+
}) | (components.ActionReviewedStreamingEvent$Outbound & {
|
|
346
|
+
type: "event.agents.action_reviewed";
|
|
347
|
+
}) | (components.ExecutionReviewRequiredStreamingEvent$Outbound & {
|
|
348
|
+
type: "event.agents.execution_review_required";
|
|
349
|
+
}) | (components.ExecutionReviewedStreamingEvent$Outbound & {
|
|
350
|
+
type: "event.agents.execution_reviewed";
|
|
351
|
+
}) | (components.ExecutionNamedStreamingEvent$Outbound & {
|
|
352
|
+
type: "event.agents.execution_named";
|
|
353
|
+
}) | (components.AgentHandedOffStreamingEvent$Outbound & {
|
|
354
|
+
type: "event.agents.handed_off";
|
|
355
|
+
}) | (components.AgentMessageCreatedStreamingEvent$Outbound & {
|
|
356
|
+
type: "event.agents.message-created";
|
|
357
|
+
}) | (components.ToolExecutionStartedStreamingEvent$Outbound & {
|
|
358
|
+
type: "event.workflow_events.tool_execution_started";
|
|
359
|
+
}) | (components.ToolExecutionFinishedStreamingEvent$Outbound & {
|
|
360
|
+
type: "event.workflow_events.tool_execution_finished";
|
|
361
|
+
}) | (components.ToolExecutionFailedStreamingEvent$Outbound & {
|
|
362
|
+
type: "event.workflow_events.tool_execution_failed";
|
|
363
|
+
}) | (components.TimeoutStreamingEvent$Outbound & {
|
|
364
|
+
type: "agents.timeout";
|
|
365
|
+
}) | (components.ErrorStreamingEvent$Outbound & {
|
|
366
|
+
type: "agents.error";
|
|
683
367
|
});
|
|
684
|
-
/**
|
|
685
|
-
* Full last message in A2A format (for backwards compatibility)
|
|
686
|
-
*/
|
|
687
|
-
export type DataLastMessageFull = {
|
|
688
|
-
messageId?: string | undefined;
|
|
689
|
-
/**
|
|
690
|
-
* Extended A2A message role
|
|
691
|
-
*/
|
|
692
|
-
role: StreamAgentDataAgentsResponseRole;
|
|
693
|
-
parts: Array<(components.ToolCallPart & {
|
|
694
|
-
kind: "tool_call";
|
|
695
|
-
}) | (components.TextPart & {
|
|
696
|
-
kind: "text";
|
|
697
|
-
}) | (components.DataPart & {
|
|
698
|
-
kind: "data";
|
|
699
|
-
}) | (components.FilePart & {
|
|
700
|
-
kind: "file";
|
|
701
|
-
}) | (components.ToolResultPart & {
|
|
702
|
-
kind: "tool_result";
|
|
703
|
-
})>;
|
|
704
|
-
metadata?: {
|
|
705
|
-
[k: string]: any;
|
|
706
|
-
} | undefined;
|
|
707
|
-
};
|
|
708
|
-
/**
|
|
709
|
-
* The reason why the agent execution became inactive
|
|
710
|
-
*/
|
|
711
|
-
export declare const DataFinishReason: {
|
|
712
|
-
readonly Stop: "stop";
|
|
713
|
-
readonly Length: "length";
|
|
714
|
-
readonly ToolCalls: "tool_calls";
|
|
715
|
-
readonly ContentFilter: "content_filter";
|
|
716
|
-
readonly FunctionCall: "function_call";
|
|
717
|
-
readonly MaxIterations: "max_iterations";
|
|
718
|
-
readonly MaxTime: "max_time";
|
|
719
|
-
};
|
|
720
|
-
/**
|
|
721
|
-
* The reason why the agent execution became inactive
|
|
722
|
-
*/
|
|
723
|
-
export type DataFinishReason = ClosedEnum<typeof DataFinishReason>;
|
|
724
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type: {
|
|
725
|
-
readonly Function: "function";
|
|
726
|
-
};
|
|
727
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
728
|
-
export type StreamAgentDataFunction = {
|
|
729
|
-
name?: string | undefined;
|
|
730
|
-
arguments?: string | undefined;
|
|
731
|
-
};
|
|
732
|
-
export type DataPendingToolCalls = {
|
|
733
|
-
id: string;
|
|
734
|
-
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type;
|
|
735
|
-
function: StreamAgentDataFunction;
|
|
736
|
-
};
|
|
737
|
-
export type StreamAgentDataAgentsPromptTokensDetails = {
|
|
738
|
-
cachedTokens?: number | null | undefined;
|
|
739
|
-
/**
|
|
740
|
-
* The number of audio input tokens consumed by the request.
|
|
741
|
-
*/
|
|
742
|
-
audioTokens?: number | null | undefined;
|
|
743
|
-
};
|
|
744
|
-
export type StreamAgentDataAgentsCompletionTokensDetails = {
|
|
745
|
-
reasoningTokens?: number | null | undefined;
|
|
746
|
-
acceptedPredictionTokens?: number | null | undefined;
|
|
747
|
-
rejectedPredictionTokens?: number | null | undefined;
|
|
748
|
-
/**
|
|
749
|
-
* The number of audio output tokens produced by the response.
|
|
750
|
-
*/
|
|
751
|
-
audioTokens?: number | null | undefined;
|
|
752
|
-
};
|
|
753
|
-
/**
|
|
754
|
-
* Token usage from the last agent message
|
|
755
|
-
*/
|
|
756
|
-
export type StreamAgentDataAgentsUsage = {
|
|
757
|
-
/**
|
|
758
|
-
* Number of tokens in the generated completion.
|
|
759
|
-
*/
|
|
760
|
-
completionTokens?: number | undefined;
|
|
761
|
-
/**
|
|
762
|
-
* Number of tokens in the prompt.
|
|
763
|
-
*/
|
|
764
|
-
promptTokens?: number | undefined;
|
|
765
|
-
/**
|
|
766
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
767
|
-
*/
|
|
768
|
-
totalTokens?: number | undefined;
|
|
769
|
-
promptTokensDetails?: StreamAgentDataAgentsPromptTokensDetails | null | undefined;
|
|
770
|
-
completionTokensDetails?: StreamAgentDataAgentsCompletionTokensDetails | null | undefined;
|
|
771
|
-
};
|
|
772
|
-
export type StreamAgentDataAgentsResponse200Data = {
|
|
773
|
-
lastMessage: string;
|
|
774
|
-
/**
|
|
775
|
-
* Full last message in A2A format (for backwards compatibility)
|
|
776
|
-
*/
|
|
777
|
-
lastMessageFull?: DataLastMessageFull | undefined;
|
|
778
|
-
/**
|
|
779
|
-
* The reason why the agent execution became inactive
|
|
780
|
-
*/
|
|
781
|
-
finishReason: DataFinishReason;
|
|
782
|
-
/**
|
|
783
|
-
* Tool calls that are pending user response (for function_call finish reason)
|
|
784
|
-
*/
|
|
785
|
-
pendingToolCalls?: Array<DataPendingToolCalls> | undefined;
|
|
786
|
-
/**
|
|
787
|
-
* Token usage from the last agent message
|
|
788
|
-
*/
|
|
789
|
-
usage?: StreamAgentDataAgentsUsage | undefined;
|
|
790
|
-
workflowRunId: string;
|
|
791
|
-
/**
|
|
792
|
-
* ID of the response tracking this execution
|
|
793
|
-
*/
|
|
794
|
-
responseId?: string | undefined;
|
|
795
|
-
};
|
|
796
|
-
export type StreamAgentData4 = {
|
|
797
|
-
type: StreamAgentDataAgentsResponse200Type;
|
|
798
|
-
/**
|
|
799
|
-
* ISO timestamp of the event
|
|
800
|
-
*/
|
|
801
|
-
timestamp: string;
|
|
802
|
-
data: StreamAgentDataAgentsResponse200Data;
|
|
803
|
-
};
|
|
804
|
-
export declare const StreamAgentDataAgentsResponseType: {
|
|
805
|
-
readonly EventAgentsThought: "event.agents.thought";
|
|
806
|
-
};
|
|
807
|
-
export type StreamAgentDataAgentsResponseType = ClosedEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
808
|
-
export declare const StreamAgentDataAgentsRole: {
|
|
809
|
-
readonly User: "user";
|
|
810
|
-
readonly Agent: "agent";
|
|
811
|
-
readonly Tool: "tool";
|
|
812
|
-
readonly System: "system";
|
|
813
|
-
};
|
|
814
|
-
export type StreamAgentDataAgentsRole = ClosedEnum<typeof StreamAgentDataAgentsRole>;
|
|
815
|
-
export type StreamAgentDataAgentsParts = (components.ToolCallPart & {
|
|
816
|
-
kind: "tool_call";
|
|
817
|
-
}) | (components.TextPart & {
|
|
818
|
-
kind: "text";
|
|
819
|
-
}) | (components.DataPart & {
|
|
820
|
-
kind: "data";
|
|
821
|
-
}) | (components.FilePart & {
|
|
822
|
-
kind: "file";
|
|
823
|
-
}) | (components.ToolResultPart & {
|
|
824
|
-
kind: "tool_result";
|
|
825
|
-
});
|
|
826
|
-
export type DataMessageDifference = {
|
|
827
|
-
messageId: string;
|
|
828
|
-
role: StreamAgentDataAgentsRole;
|
|
829
|
-
parts: Array<(components.ToolCallPart & {
|
|
830
|
-
kind: "tool_call";
|
|
831
|
-
}) | (components.TextPart & {
|
|
832
|
-
kind: "text";
|
|
833
|
-
}) | (components.DataPart & {
|
|
834
|
-
kind: "data";
|
|
835
|
-
}) | (components.FilePart & {
|
|
836
|
-
kind: "file";
|
|
837
|
-
}) | (components.ToolResultPart & {
|
|
838
|
-
kind: "tool_result";
|
|
839
|
-
})>;
|
|
840
|
-
metadata?: {
|
|
841
|
-
[k: string]: any;
|
|
842
|
-
} | undefined;
|
|
843
|
-
agentId: string;
|
|
844
|
-
agentExecutionId: string;
|
|
845
|
-
workspaceId: string;
|
|
846
|
-
};
|
|
847
|
-
/**
|
|
848
|
-
* The reason the model stopped generating tokens.
|
|
849
|
-
*/
|
|
850
|
-
export declare const StreamAgentDataFinishReason: {
|
|
851
|
-
readonly Stop: "stop";
|
|
852
|
-
readonly Length: "length";
|
|
853
|
-
readonly ToolCalls: "tool_calls";
|
|
854
|
-
readonly ContentFilter: "content_filter";
|
|
855
|
-
readonly FunctionCall: "function_call";
|
|
856
|
-
};
|
|
857
|
-
/**
|
|
858
|
-
* The reason the model stopped generating tokens.
|
|
859
|
-
*/
|
|
860
|
-
export type StreamAgentDataFinishReason = ClosedEnum<typeof StreamAgentDataFinishReason>;
|
|
861
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type: {
|
|
862
|
-
readonly Function: "function";
|
|
863
|
-
};
|
|
864
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
865
|
-
export type StreamAgentDataAgentsFunction = {
|
|
866
|
-
/**
|
|
867
|
-
* 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.
|
|
868
|
-
*/
|
|
869
|
-
name?: string | undefined;
|
|
870
|
-
/**
|
|
871
|
-
* 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.
|
|
872
|
-
*/
|
|
873
|
-
arguments?: string | undefined;
|
|
874
|
-
};
|
|
875
|
-
export type StreamAgentDataToolCalls = {
|
|
876
|
-
id?: string | undefined;
|
|
877
|
-
type?: StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type | undefined;
|
|
878
|
-
function?: StreamAgentDataAgentsFunction | undefined;
|
|
879
|
-
};
|
|
880
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole: {
|
|
881
|
-
readonly Assistant: "assistant";
|
|
882
|
-
};
|
|
883
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamRole = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
884
|
-
/**
|
|
885
|
-
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
886
|
-
*/
|
|
887
|
-
export type StreamAgentDataAudio = {
|
|
888
|
-
id: string;
|
|
889
|
-
expiresAt: number;
|
|
890
|
-
data: string;
|
|
891
|
-
transcript: string;
|
|
892
|
-
};
|
|
893
|
-
/**
|
|
894
|
-
* A chat completion message generated by the model.
|
|
895
|
-
*/
|
|
896
|
-
export type StreamAgentDataAgentsMessage = {
|
|
897
|
-
content?: string | null | undefined;
|
|
898
|
-
refusal?: string | null | undefined;
|
|
899
|
-
toolCalls?: Array<StreamAgentDataToolCalls> | undefined;
|
|
900
|
-
role?: StreamAgentDataAgentsResponse200TextEventStreamRole | undefined;
|
|
901
|
-
/**
|
|
902
|
-
* Internal thought process of the model
|
|
903
|
-
*/
|
|
904
|
-
reasoning?: string | null | undefined;
|
|
905
|
-
/**
|
|
906
|
-
* 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`.
|
|
907
|
-
*/
|
|
908
|
-
reasoningSignature?: string | null | undefined;
|
|
909
|
-
/**
|
|
910
|
-
* 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.
|
|
911
|
-
*/
|
|
912
|
-
redactedReasoning?: string | undefined;
|
|
913
|
-
/**
|
|
914
|
-
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
915
|
-
*/
|
|
916
|
-
audio?: StreamAgentDataAudio | null | undefined;
|
|
917
|
-
};
|
|
918
|
-
export type StreamAgentDataTopLogprobs = {
|
|
919
|
-
/**
|
|
920
|
-
* The token.
|
|
921
|
-
*/
|
|
922
|
-
token: string;
|
|
923
|
-
/**
|
|
924
|
-
* 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.
|
|
925
|
-
*/
|
|
926
|
-
logprob: number;
|
|
927
|
-
/**
|
|
928
|
-
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
929
|
-
*/
|
|
930
|
-
bytes: Array<number> | null;
|
|
931
|
-
};
|
|
932
|
-
export type StreamAgentDataContent = {
|
|
933
|
-
/**
|
|
934
|
-
* The token.
|
|
935
|
-
*/
|
|
936
|
-
token: string;
|
|
937
|
-
/**
|
|
938
|
-
* 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.
|
|
939
|
-
*/
|
|
940
|
-
logprob: number;
|
|
941
|
-
/**
|
|
942
|
-
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
943
|
-
*/
|
|
944
|
-
bytes: Array<number> | null;
|
|
945
|
-
/**
|
|
946
|
-
* List of the most likely tokens and their log probability, at this token position.
|
|
947
|
-
*/
|
|
948
|
-
topLogprobs: Array<StreamAgentDataTopLogprobs>;
|
|
949
|
-
};
|
|
950
|
-
export type StreamAgentDataAgentsTopLogprobs = {
|
|
951
|
-
/**
|
|
952
|
-
* The token.
|
|
953
|
-
*/
|
|
954
|
-
token: string;
|
|
955
|
-
/**
|
|
956
|
-
* 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.
|
|
957
|
-
*/
|
|
958
|
-
logprob: number;
|
|
959
|
-
/**
|
|
960
|
-
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
961
|
-
*/
|
|
962
|
-
bytes: Array<number> | null;
|
|
963
|
-
};
|
|
964
|
-
export type DataRefusal = {
|
|
965
|
-
/**
|
|
966
|
-
* The token.
|
|
967
|
-
*/
|
|
968
|
-
token: string;
|
|
969
|
-
/**
|
|
970
|
-
* 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.
|
|
971
|
-
*/
|
|
972
|
-
logprob: number;
|
|
973
|
-
/**
|
|
974
|
-
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
975
|
-
*/
|
|
976
|
-
bytes: Array<number> | null;
|
|
977
|
-
/**
|
|
978
|
-
* List of the most likely tokens and their log probability, at this token position.
|
|
979
|
-
*/
|
|
980
|
-
topLogprobs: Array<StreamAgentDataAgentsTopLogprobs>;
|
|
981
|
-
};
|
|
982
|
-
/**
|
|
983
|
-
* Log probability information for the choice.
|
|
984
|
-
*/
|
|
985
|
-
export type DataLogprobs = {
|
|
986
|
-
/**
|
|
987
|
-
* A list of message content tokens with log probability information.
|
|
988
|
-
*/
|
|
989
|
-
content: Array<StreamAgentDataContent> | null;
|
|
990
|
-
/**
|
|
991
|
-
* A list of message refusal tokens with log probability information.
|
|
992
|
-
*/
|
|
993
|
-
refusal: Array<DataRefusal> | null;
|
|
994
|
-
};
|
|
995
|
-
export type DataChoice = {
|
|
996
|
-
/**
|
|
997
|
-
* The reason the model stopped generating tokens.
|
|
998
|
-
*/
|
|
999
|
-
finishReason: StreamAgentDataFinishReason | null;
|
|
1000
|
-
/**
|
|
1001
|
-
* The index of the choice in the list of choices.
|
|
1002
|
-
*/
|
|
1003
|
-
index?: number | undefined;
|
|
1004
|
-
/**
|
|
1005
|
-
* A chat completion message generated by the model.
|
|
1006
|
-
*/
|
|
1007
|
-
message: StreamAgentDataAgentsMessage;
|
|
1008
|
-
/**
|
|
1009
|
-
* Log probability information for the choice.
|
|
1010
|
-
*/
|
|
1011
|
-
logprobs?: DataLogprobs | null | undefined;
|
|
1012
|
-
};
|
|
1013
|
-
export type StreamAgentDataPromptTokensDetails = {
|
|
1014
|
-
cachedTokens?: number | null | undefined;
|
|
1015
|
-
/**
|
|
1016
|
-
* The number of audio input tokens consumed by the request.
|
|
1017
|
-
*/
|
|
1018
|
-
audioTokens?: number | null | undefined;
|
|
1019
|
-
};
|
|
1020
|
-
export type StreamAgentDataCompletionTokensDetails = {
|
|
1021
|
-
reasoningTokens?: number | null | undefined;
|
|
1022
|
-
acceptedPredictionTokens?: number | null | undefined;
|
|
1023
|
-
rejectedPredictionTokens?: number | null | undefined;
|
|
1024
|
-
/**
|
|
1025
|
-
* The number of audio output tokens produced by the response.
|
|
1026
|
-
*/
|
|
1027
|
-
audioTokens?: number | null | undefined;
|
|
1028
|
-
};
|
|
1029
|
-
/**
|
|
1030
|
-
* Usage statistics for the completion request.
|
|
1031
|
-
*/
|
|
1032
|
-
export type StreamAgentDataUsage = {
|
|
1033
|
-
/**
|
|
1034
|
-
* Number of tokens in the generated completion.
|
|
1035
|
-
*/
|
|
1036
|
-
completionTokens?: number | undefined;
|
|
1037
|
-
/**
|
|
1038
|
-
* Number of tokens in the prompt.
|
|
1039
|
-
*/
|
|
1040
|
-
promptTokens?: number | undefined;
|
|
1041
|
-
/**
|
|
1042
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
1043
|
-
*/
|
|
1044
|
-
totalTokens?: number | undefined;
|
|
1045
|
-
promptTokensDetails?: StreamAgentDataPromptTokensDetails | null | undefined;
|
|
1046
|
-
completionTokensDetails?: StreamAgentDataCompletionTokensDetails | null | undefined;
|
|
1047
|
-
};
|
|
1048
|
-
export type StreamAgentDataAgentsResponseData = {
|
|
1049
|
-
agentId: string;
|
|
1050
|
-
messageDifference: {
|
|
1051
|
-
[k: string]: DataMessageDifference;
|
|
1052
|
-
};
|
|
1053
|
-
choice?: DataChoice | undefined;
|
|
1054
|
-
choiceIndex?: number | undefined;
|
|
1055
|
-
iteration: number;
|
|
1056
|
-
accumulatedExecutionTime: number;
|
|
1057
|
-
responseId?: string | undefined;
|
|
1058
|
-
/**
|
|
1059
|
-
* Usage statistics for the completion request.
|
|
1060
|
-
*/
|
|
1061
|
-
usage?: StreamAgentDataUsage | undefined;
|
|
1062
|
-
};
|
|
1063
|
-
export type StreamAgentData3 = {
|
|
1064
|
-
type: StreamAgentDataAgentsResponseType;
|
|
1065
|
-
/**
|
|
1066
|
-
* ISO timestamp of the event
|
|
1067
|
-
*/
|
|
1068
|
-
timestamp: string;
|
|
1069
|
-
data: StreamAgentDataAgentsResponseData;
|
|
1070
|
-
};
|
|
1071
|
-
export declare const StreamAgentDataAgentsType: {
|
|
1072
|
-
readonly EventAgentsStarted: "event.agents.started";
|
|
1073
|
-
};
|
|
1074
|
-
export type StreamAgentDataAgentsType = ClosedEnum<typeof StreamAgentDataAgentsType>;
|
|
1075
|
-
/**
|
|
1076
|
-
* Extended A2A message role
|
|
1077
|
-
*/
|
|
1078
|
-
export declare const StreamAgentDataRole: {
|
|
1079
|
-
readonly User: "user";
|
|
1080
|
-
readonly Agent: "agent";
|
|
1081
|
-
readonly Tool: "tool";
|
|
1082
|
-
readonly System: "system";
|
|
1083
|
-
};
|
|
1084
|
-
/**
|
|
1085
|
-
* Extended A2A message role
|
|
1086
|
-
*/
|
|
1087
|
-
export type StreamAgentDataRole = ClosedEnum<typeof StreamAgentDataRole>;
|
|
1088
|
-
export type StreamAgentDataParts = (components.ToolCallPart & {
|
|
1089
|
-
kind: "tool_call";
|
|
1090
|
-
}) | (components.TextPart & {
|
|
1091
|
-
kind: "text";
|
|
1092
|
-
}) | (components.DataPart & {
|
|
1093
|
-
kind: "data";
|
|
1094
|
-
}) | (components.FilePart & {
|
|
1095
|
-
kind: "file";
|
|
1096
|
-
}) | (components.ToolResultPart & {
|
|
1097
|
-
kind: "tool_result";
|
|
1098
|
-
});
|
|
1099
|
-
export type DataInputMessage = {
|
|
1100
|
-
messageId?: string | undefined;
|
|
1101
|
-
/**
|
|
1102
|
-
* Extended A2A message role
|
|
1103
|
-
*/
|
|
1104
|
-
role: StreamAgentDataRole;
|
|
1105
|
-
parts: Array<(components.ToolCallPart & {
|
|
1106
|
-
kind: "tool_call";
|
|
1107
|
-
}) | (components.TextPart & {
|
|
1108
|
-
kind: "text";
|
|
1109
|
-
}) | (components.DataPart & {
|
|
1110
|
-
kind: "data";
|
|
1111
|
-
}) | (components.FilePart & {
|
|
1112
|
-
kind: "file";
|
|
1113
|
-
}) | (components.ToolResultPart & {
|
|
1114
|
-
kind: "tool_result";
|
|
1115
|
-
})>;
|
|
1116
|
-
metadata?: {
|
|
1117
|
-
[k: string]: any;
|
|
1118
|
-
} | undefined;
|
|
1119
|
-
};
|
|
1120
|
-
/**
|
|
1121
|
-
* 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.
|
|
1122
|
-
*/
|
|
1123
|
-
export declare const StreamAgentDataToolApprovalRequired: {
|
|
1124
|
-
readonly All: "all";
|
|
1125
|
-
readonly RespectTool: "respect_tool";
|
|
1126
|
-
readonly None: "none";
|
|
1127
|
-
};
|
|
1128
|
-
/**
|
|
1129
|
-
* 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.
|
|
1130
|
-
*/
|
|
1131
|
-
export type StreamAgentDataToolApprovalRequired = ClosedEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
1132
|
-
export type StreamAgentDataAgentsConditions = {
|
|
1133
|
-
/**
|
|
1134
|
-
* The argument of the tool call to evaluate
|
|
1135
|
-
*/
|
|
1136
|
-
condition: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* The operator to use
|
|
1139
|
-
*/
|
|
1140
|
-
operator: string;
|
|
1141
|
-
/**
|
|
1142
|
-
* The value to compare against
|
|
1143
|
-
*/
|
|
1144
|
-
value: string;
|
|
1145
|
-
};
|
|
1146
|
-
export type StreamAgentDataTools = {
|
|
1147
|
-
/**
|
|
1148
|
-
* The id of the resource
|
|
1149
|
-
*/
|
|
1150
|
-
id: string;
|
|
1151
|
-
/**
|
|
1152
|
-
* Optional tool key for custom tools
|
|
1153
|
-
*/
|
|
1154
|
-
key?: string | undefined;
|
|
1155
|
-
actionType: string;
|
|
1156
|
-
displayName?: string | undefined;
|
|
1157
|
-
/**
|
|
1158
|
-
* Optional tool description
|
|
1159
|
-
*/
|
|
1160
|
-
description?: string | undefined;
|
|
1161
|
-
requiresApproval?: boolean | undefined;
|
|
1162
|
-
/**
|
|
1163
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1164
|
-
*/
|
|
1165
|
-
toolId?: string | undefined;
|
|
1166
|
-
conditions?: Array<StreamAgentDataAgentsConditions> | undefined;
|
|
1167
|
-
/**
|
|
1168
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1169
|
-
*/
|
|
1170
|
-
timeout?: number | undefined;
|
|
1171
|
-
};
|
|
1172
|
-
/**
|
|
1173
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1174
|
-
*/
|
|
1175
|
-
export declare const StreamAgentDataExecuteOn: {
|
|
1176
|
-
readonly Input: "input";
|
|
1177
|
-
readonly Output: "output";
|
|
1178
|
-
};
|
|
1179
|
-
/**
|
|
1180
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1181
|
-
*/
|
|
1182
|
-
export type StreamAgentDataExecuteOn = ClosedEnum<typeof StreamAgentDataExecuteOn>;
|
|
1183
|
-
export type StreamAgentDataEvaluators = {
|
|
1184
|
-
/**
|
|
1185
|
-
* Unique key or identifier of the evaluator
|
|
1186
|
-
*/
|
|
1187
|
-
id: string;
|
|
1188
|
-
/**
|
|
1189
|
-
* 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.
|
|
1190
|
-
*/
|
|
1191
|
-
sampleRate?: number | undefined;
|
|
1192
|
-
/**
|
|
1193
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1194
|
-
*/
|
|
1195
|
-
executeOn: StreamAgentDataExecuteOn;
|
|
1196
|
-
};
|
|
1197
|
-
/**
|
|
1198
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1199
|
-
*/
|
|
1200
|
-
export declare const StreamAgentDataAgentsExecuteOn: {
|
|
1201
|
-
readonly Input: "input";
|
|
1202
|
-
readonly Output: "output";
|
|
1203
|
-
};
|
|
1204
|
-
/**
|
|
1205
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1206
|
-
*/
|
|
1207
|
-
export type StreamAgentDataAgentsExecuteOn = ClosedEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
1208
|
-
export type StreamAgentDataGuardrails = {
|
|
1209
|
-
/**
|
|
1210
|
-
* Unique key or identifier of the evaluator
|
|
1211
|
-
*/
|
|
1212
|
-
id: string;
|
|
1213
|
-
/**
|
|
1214
|
-
* 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.
|
|
1215
|
-
*/
|
|
1216
|
-
sampleRate?: number | undefined;
|
|
1217
|
-
/**
|
|
1218
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1219
|
-
*/
|
|
1220
|
-
executeOn: StreamAgentDataAgentsExecuteOn;
|
|
1221
|
-
};
|
|
1222
|
-
export type StreamAgentDataSettings = {
|
|
1223
|
-
/**
|
|
1224
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1225
|
-
*/
|
|
1226
|
-
maxIterations?: number | undefined;
|
|
1227
|
-
/**
|
|
1228
|
-
* 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.
|
|
1229
|
-
*/
|
|
1230
|
-
maxExecutionTime?: number | undefined;
|
|
1231
|
-
/**
|
|
1232
|
-
* 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.
|
|
1233
|
-
*/
|
|
1234
|
-
toolApprovalRequired?: StreamAgentDataToolApprovalRequired | undefined;
|
|
1235
|
-
tools?: Array<StreamAgentDataTools> | undefined;
|
|
1236
|
-
/**
|
|
1237
|
-
* Configuration for an evaluator applied to the agent
|
|
1238
|
-
*/
|
|
1239
|
-
evaluators?: Array<StreamAgentDataEvaluators> | undefined;
|
|
1240
|
-
/**
|
|
1241
|
-
* Configuration for a guardrail applied to the agent
|
|
1242
|
-
*/
|
|
1243
|
-
guardrails?: Array<StreamAgentDataGuardrails> | undefined;
|
|
1244
|
-
};
|
|
1245
|
-
export type StreamAgentDataAgentsData = {
|
|
1246
|
-
workflowRunId: string;
|
|
1247
|
-
integrationId?: string | undefined;
|
|
1248
|
-
inputMessage: DataInputMessage;
|
|
1249
|
-
modelId: string;
|
|
1250
|
-
instructions: string;
|
|
1251
|
-
systemPrompt: string;
|
|
1252
|
-
settings?: StreamAgentDataSettings | undefined;
|
|
1253
|
-
agentManifestId: string;
|
|
1254
|
-
agentKey: string;
|
|
1255
|
-
variables?: {
|
|
1256
|
-
[k: string]: any;
|
|
1257
|
-
} | undefined;
|
|
1258
|
-
toolExecutionId?: string | undefined;
|
|
1259
|
-
isContinuation?: boolean | undefined;
|
|
1260
|
-
stream?: boolean | undefined;
|
|
1261
|
-
responseId?: string | undefined;
|
|
1262
|
-
};
|
|
1263
|
-
export type StreamAgentData2 = {
|
|
1264
|
-
type: StreamAgentDataAgentsType;
|
|
1265
|
-
/**
|
|
1266
|
-
* ISO timestamp of the event
|
|
1267
|
-
*/
|
|
1268
|
-
timestamp: string;
|
|
1269
|
-
data: StreamAgentDataAgentsData;
|
|
1270
|
-
};
|
|
1271
|
-
export declare const StreamAgentDataType: {
|
|
1272
|
-
readonly AgentsExecutionStarted: "agents.execution_started";
|
|
1273
|
-
};
|
|
1274
|
-
export type StreamAgentDataType = ClosedEnum<typeof StreamAgentDataType>;
|
|
1275
|
-
export type StreamAgentDataData = {
|
|
1276
|
-
/**
|
|
1277
|
-
* Agent execution task ID (ULID)
|
|
1278
|
-
*/
|
|
1279
|
-
agentTaskId: string;
|
|
1280
|
-
/**
|
|
1281
|
-
* Workspace ID
|
|
1282
|
-
*/
|
|
1283
|
-
workspaceId: string;
|
|
1284
|
-
/**
|
|
1285
|
-
* Trace ID for the workflow run
|
|
1286
|
-
*/
|
|
1287
|
-
traceId: string;
|
|
1288
|
-
};
|
|
1289
|
-
export type StreamAgentData1 = {
|
|
1290
|
-
type: StreamAgentDataType;
|
|
1291
|
-
/**
|
|
1292
|
-
* ISO timestamp of the event
|
|
1293
|
-
*/
|
|
1294
|
-
timestamp: string;
|
|
1295
|
-
data: StreamAgentDataData;
|
|
1296
|
-
};
|
|
1297
|
-
export type StreamAgentData = StreamAgentData1 | StreamAgentData2 | StreamAgentData3 | StreamAgentData4 | Data5 | Data6 | Data7 | Data8 | Data9 | Data10 | Data11 | Data12 | Data13 | Data14 | Data15 | Data16 | Data17;
|
|
1298
|
-
/**
|
|
1299
|
-
* Server-Sent Event stream successfully established. Returns real-time events including agent messages, tool calls, status updates, and completion signals. The stream ends with a [DONE] sentinel value.
|
|
1300
|
-
*/
|
|
1301
|
-
export type StreamAgentResponseBody = {
|
|
1302
|
-
data: StreamAgentData1 | StreamAgentData2 | StreamAgentData3 | StreamAgentData4 | Data5 | Data6 | Data7 | Data8 | Data9 | Data10 | Data11 | Data12 | Data13 | Data14 | Data15 | Data16 | Data17;
|
|
1303
|
-
};
|
|
1304
|
-
/** @internal */
|
|
1305
|
-
export declare const StreamAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
1306
|
-
/** @internal */
|
|
1307
|
-
export declare const StreamAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
|
|
1308
|
-
/** @internal */
|
|
1309
|
-
export declare const StreamAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
1310
|
-
/** @internal */
|
|
1311
|
-
export declare const StreamAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
|
|
1312
|
-
/** @internal */
|
|
1313
|
-
export declare const StreamAgentRole$inboundSchema: z.ZodType<StreamAgentRole, z.ZodTypeDef, unknown>;
|
|
1314
|
-
/** @internal */
|
|
1315
|
-
export type StreamAgentRole$Outbound = string | string;
|
|
1316
|
-
/** @internal */
|
|
1317
|
-
export declare const StreamAgentRole$outboundSchema: z.ZodType<StreamAgentRole$Outbound, z.ZodTypeDef, StreamAgentRole>;
|
|
1318
|
-
export declare function streamAgentRoleToJSON(streamAgentRole: StreamAgentRole): string;
|
|
1319
|
-
export declare function streamAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamAgentRole, SDKValidationError>;
|
|
1320
|
-
/** @internal */
|
|
1321
|
-
export declare const StreamAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1322
|
-
/** @internal */
|
|
1323
|
-
export declare const StreamAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
export declare const StreamAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
export type StreamAgentPublicMessagePartToolResultPart$Outbound = {
|
|
1328
|
-
kind: string;
|
|
1329
|
-
tool_call_id: string;
|
|
1330
|
-
result?: any | undefined;
|
|
1331
|
-
metadata?: {
|
|
1332
|
-
[k: string]: any;
|
|
1333
|
-
} | undefined;
|
|
1334
|
-
};
|
|
1335
|
-
/** @internal */
|
|
1336
|
-
export declare const StreamAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartToolResultPart>;
|
|
1337
|
-
export declare function streamAgentPublicMessagePartToolResultPartToJSON(streamAgentPublicMessagePartToolResultPart: StreamAgentPublicMessagePartToolResultPart): string;
|
|
1338
|
-
export declare function streamAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
1339
|
-
/** @internal */
|
|
1340
|
-
export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1341
|
-
/** @internal */
|
|
1342
|
-
export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1343
|
-
/** @internal */
|
|
1344
|
-
export declare const StreamAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export type StreamAgentFileFileInURIFormat$Outbound = {
|
|
1347
|
-
uri: string;
|
|
1348
|
-
mimeType?: string | undefined;
|
|
1349
|
-
name?: string | undefined;
|
|
1350
|
-
};
|
|
1351
|
-
/** @internal */
|
|
1352
|
-
export declare const StreamAgentFileFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileFileInURIFormat>;
|
|
1353
|
-
export declare function streamAgentFileFileInURIFormatToJSON(streamAgentFileFileInURIFormat: StreamAgentFileFileInURIFormat): string;
|
|
1354
|
-
export declare function streamAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileFileInURIFormat, SDKValidationError>;
|
|
1355
|
-
/** @internal */
|
|
1356
|
-
export declare const StreamAgentFileBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
1357
|
-
/** @internal */
|
|
1358
|
-
export type StreamAgentFileBinaryFormat$Outbound = {
|
|
1359
|
-
bytes: string;
|
|
1360
|
-
mimeType?: string | undefined;
|
|
1361
|
-
name?: string | undefined;
|
|
1362
|
-
};
|
|
1363
|
-
/** @internal */
|
|
1364
|
-
export declare const StreamAgentFileBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileBinaryFormat>;
|
|
1365
|
-
export declare function streamAgentFileBinaryFormatToJSON(streamAgentFileBinaryFormat: StreamAgentFileBinaryFormat): string;
|
|
1366
|
-
export declare function streamAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileBinaryFormat, SDKValidationError>;
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
export declare const StreamAgentPublicMessagePartFile$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
|
|
1369
|
-
/** @internal */
|
|
1370
|
-
export type StreamAgentPublicMessagePartFile$Outbound = StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export declare const StreamAgentPublicMessagePartFile$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFile>;
|
|
1373
|
-
export declare function streamAgentPublicMessagePartFileToJSON(streamAgentPublicMessagePartFile: StreamAgentPublicMessagePartFile): string;
|
|
1374
|
-
export declare function streamAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFile, SDKValidationError>;
|
|
1375
|
-
/** @internal */
|
|
1376
|
-
export declare const StreamAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
1377
|
-
/** @internal */
|
|
1378
|
-
export type StreamAgentPublicMessagePartFilePart$Outbound = {
|
|
1379
|
-
kind: string;
|
|
1380
|
-
file: StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
|
|
1381
|
-
metadata?: {
|
|
1382
|
-
[k: string]: any;
|
|
1383
|
-
} | undefined;
|
|
1384
|
-
};
|
|
1385
|
-
/** @internal */
|
|
1386
|
-
export declare const StreamAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFilePart>;
|
|
1387
|
-
export declare function streamAgentPublicMessagePartFilePartToJSON(streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart): string;
|
|
1388
|
-
export declare function streamAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
1389
|
-
/** @internal */
|
|
1390
|
-
export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
1391
|
-
/** @internal */
|
|
1392
|
-
export type StreamAgentPublicMessagePart$Outbound = components.TextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
1393
|
-
/** @internal */
|
|
1394
|
-
export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
|
|
1395
|
-
export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
|
|
1396
|
-
export declare function streamAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError>;
|
|
1397
|
-
/** @internal */
|
|
1398
|
-
export declare const StreamAgentA2AMessage$inboundSchema: z.ZodType<StreamAgentA2AMessage, z.ZodTypeDef, unknown>;
|
|
1399
|
-
/** @internal */
|
|
1400
|
-
export type StreamAgentA2AMessage$Outbound = {
|
|
1401
|
-
messageId?: string | undefined;
|
|
1402
|
-
role: string | string;
|
|
1403
|
-
parts: Array<components.TextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound>;
|
|
1404
|
-
};
|
|
1405
|
-
/** @internal */
|
|
1406
|
-
export declare const StreamAgentA2AMessage$outboundSchema: z.ZodType<StreamAgentA2AMessage$Outbound, z.ZodTypeDef, StreamAgentA2AMessage>;
|
|
1407
|
-
export declare function streamAgentA2AMessageToJSON(streamAgentA2AMessage: StreamAgentA2AMessage): string;
|
|
1408
|
-
export declare function streamAgentA2AMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentA2AMessage, SDKValidationError>;
|
|
1409
|
-
/** @internal */
|
|
1410
|
-
export declare const StreamAgentContact$inboundSchema: z.ZodType<StreamAgentContact, z.ZodTypeDef, unknown>;
|
|
1411
|
-
/** @internal */
|
|
1412
|
-
export type StreamAgentContact$Outbound = {
|
|
1413
|
-
id: string;
|
|
1414
|
-
display_name?: string | undefined;
|
|
1415
|
-
email?: string | undefined;
|
|
1416
|
-
metadata?: Array<{
|
|
1417
|
-
[k: string]: any;
|
|
1418
|
-
}> | undefined;
|
|
1419
|
-
logo_url?: string | undefined;
|
|
1420
|
-
tags?: Array<string> | undefined;
|
|
1421
|
-
};
|
|
1422
|
-
/** @internal */
|
|
1423
|
-
export declare const StreamAgentContact$outboundSchema: z.ZodType<StreamAgentContact$Outbound, z.ZodTypeDef, StreamAgentContact>;
|
|
1424
|
-
export declare function streamAgentContactToJSON(streamAgentContact: StreamAgentContact): string;
|
|
1425
|
-
export declare function streamAgentContactFromJSON(jsonString: string): SafeParseResult<StreamAgentContact, SDKValidationError>;
|
|
1426
|
-
/** @internal */
|
|
1427
|
-
export declare const StreamAgentThread$inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
|
|
1428
|
-
/** @internal */
|
|
1429
|
-
export type StreamAgentThread$Outbound = {
|
|
1430
|
-
id: string;
|
|
1431
|
-
tags?: Array<string> | undefined;
|
|
1432
|
-
};
|
|
1433
|
-
/** @internal */
|
|
1434
|
-
export declare const StreamAgentThread$outboundSchema: z.ZodType<StreamAgentThread$Outbound, z.ZodTypeDef, StreamAgentThread>;
|
|
1435
|
-
export declare function streamAgentThreadToJSON(streamAgentThread: StreamAgentThread): string;
|
|
1436
|
-
export declare function streamAgentThreadFromJSON(jsonString: string): SafeParseResult<StreamAgentThread, SDKValidationError>;
|
|
1437
|
-
/** @internal */
|
|
1438
|
-
export declare const StreamAgentMemory$inboundSchema: z.ZodType<StreamAgentMemory, z.ZodTypeDef, unknown>;
|
|
1439
|
-
/** @internal */
|
|
1440
|
-
export type StreamAgentMemory$Outbound = {
|
|
1441
|
-
entity_id: string;
|
|
1442
|
-
};
|
|
1443
|
-
/** @internal */
|
|
1444
|
-
export declare const StreamAgentMemory$outboundSchema: z.ZodType<StreamAgentMemory$Outbound, z.ZodTypeDef, StreamAgentMemory>;
|
|
1445
|
-
export declare function streamAgentMemoryToJSON(streamAgentMemory: StreamAgentMemory): string;
|
|
1446
|
-
export declare function streamAgentMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentMemory, SDKValidationError>;
|
|
1447
|
-
/** @internal */
|
|
1448
|
-
export declare const StreamAgentRequestBody$inboundSchema: z.ZodType<StreamAgentRequestBody, z.ZodTypeDef, unknown>;
|
|
1449
|
-
/** @internal */
|
|
1450
|
-
export type StreamAgentRequestBody$Outbound = {
|
|
1451
|
-
task_id?: string | undefined;
|
|
1452
|
-
message: StreamAgentA2AMessage$Outbound;
|
|
1453
|
-
variables?: {
|
|
1454
|
-
[k: string]: any;
|
|
1455
|
-
} | undefined;
|
|
1456
|
-
contact?: StreamAgentContact$Outbound | undefined;
|
|
1457
|
-
thread?: StreamAgentThread$Outbound | undefined;
|
|
1458
|
-
memory?: StreamAgentMemory$Outbound | undefined;
|
|
1459
|
-
metadata?: {
|
|
1460
|
-
[k: string]: any;
|
|
1461
|
-
} | undefined;
|
|
1462
|
-
stream_timeout_seconds?: number | undefined;
|
|
1463
|
-
};
|
|
1464
|
-
/** @internal */
|
|
1465
|
-
export declare const StreamAgentRequestBody$outboundSchema: z.ZodType<StreamAgentRequestBody$Outbound, z.ZodTypeDef, StreamAgentRequestBody>;
|
|
1466
|
-
export declare function streamAgentRequestBodyToJSON(streamAgentRequestBody: StreamAgentRequestBody): string;
|
|
1467
|
-
export declare function streamAgentRequestBodyFromJSON(jsonString: string): SafeParseResult<StreamAgentRequestBody, SDKValidationError>;
|
|
1468
|
-
/** @internal */
|
|
1469
|
-
export declare const StreamAgentRequest$inboundSchema: z.ZodType<StreamAgentRequest, z.ZodTypeDef, unknown>;
|
|
1470
|
-
/** @internal */
|
|
1471
|
-
export type StreamAgentRequest$Outbound = {
|
|
1472
|
-
key: string;
|
|
1473
|
-
RequestBody: StreamAgentRequestBody$Outbound;
|
|
1474
|
-
};
|
|
1475
|
-
/** @internal */
|
|
1476
|
-
export declare const StreamAgentRequest$outboundSchema: z.ZodType<StreamAgentRequest$Outbound, z.ZodTypeDef, StreamAgentRequest>;
|
|
1477
|
-
export declare function streamAgentRequestToJSON(streamAgentRequest: StreamAgentRequest): string;
|
|
1478
|
-
export declare function streamAgentRequestFromJSON(jsonString: string): SafeParseResult<StreamAgentRequest, SDKValidationError>;
|
|
1479
|
-
/** @internal */
|
|
1480
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type>;
|
|
1481
|
-
/** @internal */
|
|
1482
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Type>;
|
|
1483
|
-
/** @internal */
|
|
1484
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data, z.ZodTypeDef, unknown>;
|
|
1485
|
-
/** @internal */
|
|
1486
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound = {
|
|
1487
|
-
error: string;
|
|
1488
|
-
code: string;
|
|
1489
|
-
};
|
|
1490
|
-
/** @internal */
|
|
1491
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data>;
|
|
1492
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody17DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody17Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data): string;
|
|
1493
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody17DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data, SDKValidationError>;
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export declare const Data17$inboundSchema: z.ZodType<Data17, z.ZodTypeDef, unknown>;
|
|
1496
|
-
/** @internal */
|
|
1497
|
-
export type Data17$Outbound = {
|
|
1498
|
-
type: string;
|
|
1499
|
-
timestamp: string;
|
|
1500
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody17Data$Outbound;
|
|
1501
|
-
};
|
|
1502
|
-
/** @internal */
|
|
1503
|
-
export declare const Data17$outboundSchema: z.ZodType<Data17$Outbound, z.ZodTypeDef, Data17>;
|
|
1504
|
-
export declare function data17ToJSON(data17: Data17): string;
|
|
1505
|
-
export declare function data17FromJSON(jsonString: string): SafeParseResult<Data17, SDKValidationError>;
|
|
1506
|
-
/** @internal */
|
|
1507
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type>;
|
|
1508
|
-
/** @internal */
|
|
1509
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Type>;
|
|
1510
|
-
/** @internal */
|
|
1511
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data, z.ZodTypeDef, unknown>;
|
|
1512
|
-
/** @internal */
|
|
1513
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound = {
|
|
1514
|
-
message: string;
|
|
1515
|
-
};
|
|
1516
|
-
/** @internal */
|
|
1517
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data>;
|
|
1518
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody16DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody16Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data): string;
|
|
1519
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody16DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data, SDKValidationError>;
|
|
1520
|
-
/** @internal */
|
|
1521
|
-
export declare const Data16$inboundSchema: z.ZodType<Data16, z.ZodTypeDef, unknown>;
|
|
1522
|
-
/** @internal */
|
|
1523
|
-
export type Data16$Outbound = {
|
|
1524
|
-
type: string;
|
|
1525
|
-
timestamp: string;
|
|
1526
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody16Data$Outbound;
|
|
1527
|
-
};
|
|
1528
|
-
/** @internal */
|
|
1529
|
-
export declare const Data16$outboundSchema: z.ZodType<Data16$Outbound, z.ZodTypeDef, Data16>;
|
|
1530
|
-
export declare function data16ToJSON(data16: Data16): string;
|
|
1531
|
-
export declare function data16FromJSON(jsonString: string): SafeParseResult<Data16, SDKValidationError>;
|
|
1532
|
-
/** @internal */
|
|
1533
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type>;
|
|
1534
|
-
/** @internal */
|
|
1535
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type>;
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export declare const DataError$inboundSchema: z.ZodType<DataError, z.ZodTypeDef, unknown>;
|
|
1538
|
-
/** @internal */
|
|
1539
|
-
export type DataError$Outbound = {
|
|
1540
|
-
message: string;
|
|
1541
|
-
stack?: string | undefined;
|
|
1542
|
-
};
|
|
1543
|
-
/** @internal */
|
|
1544
|
-
export declare const DataError$outboundSchema: z.ZodType<DataError$Outbound, z.ZodTypeDef, DataError>;
|
|
1545
|
-
export declare function dataErrorToJSON(dataError: DataError): string;
|
|
1546
|
-
export declare function dataErrorFromJSON(jsonString: string): SafeParseResult<DataError, SDKValidationError>;
|
|
1547
|
-
/** @internal */
|
|
1548
|
-
export declare const StreamAgentDataAgentsResponseProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
1549
|
-
/** @internal */
|
|
1550
|
-
export declare const StreamAgentDataAgentsResponseProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseProduct>;
|
|
1551
|
-
/** @internal */
|
|
1552
|
-
export declare const StreamAgentDataAgentsResponseMemory$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseMemory, z.ZodTypeDef, unknown>;
|
|
1553
|
-
/** @internal */
|
|
1554
|
-
export type StreamAgentDataAgentsResponseMemory$Outbound = {
|
|
1555
|
-
entity_id: string;
|
|
1556
|
-
};
|
|
1557
|
-
/** @internal */
|
|
1558
|
-
export declare const StreamAgentDataAgentsResponseMemory$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseMemory$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseMemory>;
|
|
1559
|
-
export declare function streamAgentDataAgentsResponseMemoryToJSON(streamAgentDataAgentsResponseMemory: StreamAgentDataAgentsResponseMemory): string;
|
|
1560
|
-
export declare function streamAgentDataAgentsResponseMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseMemory, SDKValidationError>;
|
|
1561
|
-
/** @internal */
|
|
1562
|
-
export declare const StreamAgentDataAgentsResponseToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1563
|
-
/** @internal */
|
|
1564
|
-
export type StreamAgentDataAgentsResponseToolExecutionContext$Outbound = {
|
|
1565
|
-
action_id: string;
|
|
1566
|
-
agent_tool_call_id: string;
|
|
1567
|
-
workspace_id: string;
|
|
1568
|
-
agent_manifest_id: string;
|
|
1569
|
-
agent_execution_id: string;
|
|
1570
|
-
product: string;
|
|
1571
|
-
memory?: StreamAgentDataAgentsResponseMemory$Outbound | undefined;
|
|
1572
|
-
parent_id?: string | undefined;
|
|
1573
|
-
};
|
|
1574
|
-
/** @internal */
|
|
1575
|
-
export declare const StreamAgentDataAgentsResponseToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseToolExecutionContext>;
|
|
1576
|
-
export declare function streamAgentDataAgentsResponseToolExecutionContextToJSON(streamAgentDataAgentsResponseToolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext): string;
|
|
1577
|
-
export declare function streamAgentDataAgentsResponseToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseToolExecutionContext, SDKValidationError>;
|
|
1578
|
-
/** @internal */
|
|
1579
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data, z.ZodTypeDef, unknown>;
|
|
1580
|
-
/** @internal */
|
|
1581
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound = {
|
|
1582
|
-
error: DataError$Outbound;
|
|
1583
|
-
action_type: string;
|
|
1584
|
-
tool_execution_context: StreamAgentDataAgentsResponseToolExecutionContext$Outbound;
|
|
1585
|
-
responseId?: string | undefined;
|
|
1586
|
-
workflowRunId: string;
|
|
1587
|
-
};
|
|
1588
|
-
/** @internal */
|
|
1589
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data>;
|
|
1590
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody15DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody15Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data): string;
|
|
1591
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody15DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data, SDKValidationError>;
|
|
1592
|
-
/** @internal */
|
|
1593
|
-
export declare const Data15$inboundSchema: z.ZodType<Data15, z.ZodTypeDef, unknown>;
|
|
1594
|
-
/** @internal */
|
|
1595
|
-
export type Data15$Outbound = {
|
|
1596
|
-
type: string;
|
|
1597
|
-
timestamp: string;
|
|
1598
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound;
|
|
1599
|
-
};
|
|
1600
|
-
/** @internal */
|
|
1601
|
-
export declare const Data15$outboundSchema: z.ZodType<Data15$Outbound, z.ZodTypeDef, Data15>;
|
|
1602
|
-
export declare function data15ToJSON(data15: Data15): string;
|
|
1603
|
-
export declare function data15FromJSON(jsonString: string): SafeParseResult<Data15, SDKValidationError>;
|
|
1604
|
-
/** @internal */
|
|
1605
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
1606
|
-
/** @internal */
|
|
1607
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type>;
|
|
1608
|
-
/** @internal */
|
|
1609
|
-
export declare const StreamAgentDataAgentsProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsProduct>;
|
|
1610
|
-
/** @internal */
|
|
1611
|
-
export declare const StreamAgentDataAgentsProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsProduct>;
|
|
1612
|
-
/** @internal */
|
|
1613
|
-
export declare const StreamAgentDataAgentsMemory$inboundSchema: z.ZodType<StreamAgentDataAgentsMemory, z.ZodTypeDef, unknown>;
|
|
1614
|
-
/** @internal */
|
|
1615
|
-
export type StreamAgentDataAgentsMemory$Outbound = {
|
|
1616
|
-
entity_id: string;
|
|
1617
|
-
};
|
|
1618
|
-
/** @internal */
|
|
1619
|
-
export declare const StreamAgentDataAgentsMemory$outboundSchema: z.ZodType<StreamAgentDataAgentsMemory$Outbound, z.ZodTypeDef, StreamAgentDataAgentsMemory>;
|
|
1620
|
-
export declare function streamAgentDataAgentsMemoryToJSON(streamAgentDataAgentsMemory: StreamAgentDataAgentsMemory): string;
|
|
1621
|
-
export declare function streamAgentDataAgentsMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsMemory, SDKValidationError>;
|
|
1622
|
-
/** @internal */
|
|
1623
|
-
export declare const StreamAgentDataAgentsToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataAgentsToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1624
|
-
/** @internal */
|
|
1625
|
-
export type StreamAgentDataAgentsToolExecutionContext$Outbound = {
|
|
1626
|
-
action_id: string;
|
|
1627
|
-
agent_tool_call_id: string;
|
|
1628
|
-
workspace_id: string;
|
|
1629
|
-
agent_manifest_id: string;
|
|
1630
|
-
agent_execution_id: string;
|
|
1631
|
-
product: string;
|
|
1632
|
-
memory?: StreamAgentDataAgentsMemory$Outbound | undefined;
|
|
1633
|
-
parent_id?: string | undefined;
|
|
1634
|
-
};
|
|
1635
|
-
/** @internal */
|
|
1636
|
-
export declare const StreamAgentDataAgentsToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataAgentsToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataAgentsToolExecutionContext>;
|
|
1637
|
-
export declare function streamAgentDataAgentsToolExecutionContextToJSON(streamAgentDataAgentsToolExecutionContext: StreamAgentDataAgentsToolExecutionContext): string;
|
|
1638
|
-
export declare function streamAgentDataAgentsToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsToolExecutionContext, SDKValidationError>;
|
|
1639
|
-
/** @internal */
|
|
1640
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data, z.ZodTypeDef, unknown>;
|
|
1641
|
-
/** @internal */
|
|
1642
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound = {
|
|
1643
|
-
result?: any | undefined;
|
|
1644
|
-
action_type: string;
|
|
1645
|
-
tool_execution_context: StreamAgentDataAgentsToolExecutionContext$Outbound;
|
|
1646
|
-
responseId?: string | undefined;
|
|
1647
|
-
workflowRunId: string;
|
|
1648
|
-
};
|
|
1649
|
-
/** @internal */
|
|
1650
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data>;
|
|
1651
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody14DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody14Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data): string;
|
|
1652
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody14DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data, SDKValidationError>;
|
|
1653
|
-
/** @internal */
|
|
1654
|
-
export declare const Data14$inboundSchema: z.ZodType<Data14, z.ZodTypeDef, unknown>;
|
|
1655
|
-
/** @internal */
|
|
1656
|
-
export type Data14$Outbound = {
|
|
1657
|
-
type: string;
|
|
1658
|
-
timestamp: string;
|
|
1659
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound;
|
|
1660
|
-
};
|
|
1661
|
-
/** @internal */
|
|
1662
|
-
export declare const Data14$outboundSchema: z.ZodType<Data14$Outbound, z.ZodTypeDef, Data14>;
|
|
1663
|
-
export declare function data14ToJSON(data14: Data14): string;
|
|
1664
|
-
export declare function data14FromJSON(jsonString: string): SafeParseResult<Data14, SDKValidationError>;
|
|
1665
|
-
/** @internal */
|
|
1666
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
1667
|
-
/** @internal */
|
|
1668
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type>;
|
|
1669
|
-
/** @internal */
|
|
1670
|
-
export declare const StreamAgentDataProduct$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataProduct>;
|
|
1671
|
-
/** @internal */
|
|
1672
|
-
export declare const StreamAgentDataProduct$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataProduct>;
|
|
1673
|
-
/** @internal */
|
|
1674
|
-
export declare const StreamAgentDataMemory$inboundSchema: z.ZodType<StreamAgentDataMemory, z.ZodTypeDef, unknown>;
|
|
1675
|
-
/** @internal */
|
|
1676
|
-
export type StreamAgentDataMemory$Outbound = {
|
|
1677
|
-
entity_id: string;
|
|
1678
|
-
};
|
|
1679
|
-
/** @internal */
|
|
1680
|
-
export declare const StreamAgentDataMemory$outboundSchema: z.ZodType<StreamAgentDataMemory$Outbound, z.ZodTypeDef, StreamAgentDataMemory>;
|
|
1681
|
-
export declare function streamAgentDataMemoryToJSON(streamAgentDataMemory: StreamAgentDataMemory): string;
|
|
1682
|
-
export declare function streamAgentDataMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentDataMemory, SDKValidationError>;
|
|
1683
|
-
/** @internal */
|
|
1684
|
-
export declare const StreamAgentDataToolExecutionContext$inboundSchema: z.ZodType<StreamAgentDataToolExecutionContext, z.ZodTypeDef, unknown>;
|
|
1685
|
-
/** @internal */
|
|
1686
|
-
export type StreamAgentDataToolExecutionContext$Outbound = {
|
|
1687
|
-
action_id: string;
|
|
1688
|
-
agent_tool_call_id: string;
|
|
1689
|
-
workspace_id: string;
|
|
1690
|
-
agent_manifest_id: string;
|
|
1691
|
-
agent_execution_id: string;
|
|
1692
|
-
product: string;
|
|
1693
|
-
memory?: StreamAgentDataMemory$Outbound | undefined;
|
|
1694
|
-
parent_id?: string | undefined;
|
|
1695
|
-
};
|
|
1696
|
-
/** @internal */
|
|
1697
|
-
export declare const StreamAgentDataToolExecutionContext$outboundSchema: z.ZodType<StreamAgentDataToolExecutionContext$Outbound, z.ZodTypeDef, StreamAgentDataToolExecutionContext>;
|
|
1698
|
-
export declare function streamAgentDataToolExecutionContextToJSON(streamAgentDataToolExecutionContext: StreamAgentDataToolExecutionContext): string;
|
|
1699
|
-
export declare function streamAgentDataToolExecutionContextFromJSON(jsonString: string): SafeParseResult<StreamAgentDataToolExecutionContext, SDKValidationError>;
|
|
1700
|
-
/** @internal */
|
|
1701
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data, z.ZodTypeDef, unknown>;
|
|
1702
|
-
/** @internal */
|
|
1703
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound = {
|
|
1704
|
-
tool_id: string;
|
|
1705
|
-
tool_key?: string | undefined;
|
|
1706
|
-
tool_display_name?: string | undefined;
|
|
1707
|
-
action_type: string;
|
|
1708
|
-
tool_arguments: {
|
|
1709
|
-
[k: string]: any;
|
|
1710
|
-
};
|
|
1711
|
-
tool_execution_context: StreamAgentDataToolExecutionContext$Outbound;
|
|
1712
|
-
responseId?: string | undefined;
|
|
1713
|
-
workflowRunId: string;
|
|
1714
|
-
};
|
|
1715
|
-
/** @internal */
|
|
1716
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data>;
|
|
1717
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody13DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody13Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data): string;
|
|
1718
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody13DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data, SDKValidationError>;
|
|
1719
|
-
/** @internal */
|
|
1720
|
-
export declare const Data13$inboundSchema: z.ZodType<Data13, z.ZodTypeDef, unknown>;
|
|
1721
|
-
/** @internal */
|
|
1722
|
-
export type Data13$Outbound = {
|
|
1723
|
-
type: string;
|
|
1724
|
-
timestamp: string;
|
|
1725
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound;
|
|
1726
|
-
};
|
|
1727
|
-
/** @internal */
|
|
1728
|
-
export declare const Data13$outboundSchema: z.ZodType<Data13$Outbound, z.ZodTypeDef, Data13>;
|
|
1729
|
-
export declare function data13ToJSON(data13: Data13): string;
|
|
1730
|
-
export declare function data13FromJSON(jsonString: string): SafeParseResult<Data13, SDKValidationError>;
|
|
1731
|
-
/** @internal */
|
|
1732
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
1733
|
-
/** @internal */
|
|
1734
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
1735
|
-
/** @internal */
|
|
1736
|
-
export declare const StreamAgentDataAgentsResponse200Role$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
1737
|
-
/** @internal */
|
|
1738
|
-
export declare const StreamAgentDataAgentsResponse200Role$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
1739
|
-
/** @internal */
|
|
1740
|
-
export declare const StreamAgentDataAgentsResponse200Parts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts, z.ZodTypeDef, unknown>;
|
|
1741
|
-
/** @internal */
|
|
1742
|
-
export type StreamAgentDataAgentsResponse200Parts$Outbound = (components.ToolCallPart$Outbound & {
|
|
1743
|
-
kind: "tool_call";
|
|
1744
|
-
}) | (components.TextPart$Outbound & {
|
|
1745
|
-
kind: "text";
|
|
1746
|
-
}) | (components.DataPart$Outbound & {
|
|
1747
|
-
kind: "data";
|
|
1748
|
-
}) | (components.FilePart$Outbound & {
|
|
1749
|
-
kind: "file";
|
|
1750
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
1751
|
-
kind: "tool_result";
|
|
1752
|
-
});
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export declare const StreamAgentDataAgentsResponse200Parts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Parts>;
|
|
1755
|
-
export declare function streamAgentDataAgentsResponse200PartsToJSON(streamAgentDataAgentsResponse200Parts: StreamAgentDataAgentsResponse200Parts): string;
|
|
1756
|
-
export declare function streamAgentDataAgentsResponse200PartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200Parts, SDKValidationError>;
|
|
1757
|
-
/** @internal */
|
|
1758
|
-
export declare const StreamAgentDataMessage$inboundSchema: z.ZodType<StreamAgentDataMessage, z.ZodTypeDef, unknown>;
|
|
1759
|
-
/** @internal */
|
|
1760
|
-
export type StreamAgentDataMessage$Outbound = {
|
|
1761
|
-
messageId?: string | undefined;
|
|
1762
|
-
role: string;
|
|
1763
|
-
parts: Array<(components.ToolCallPart$Outbound & {
|
|
1764
|
-
kind: "tool_call";
|
|
1765
|
-
}) | (components.TextPart$Outbound & {
|
|
1766
|
-
kind: "text";
|
|
1767
|
-
}) | (components.DataPart$Outbound & {
|
|
1768
|
-
kind: "data";
|
|
1769
|
-
}) | (components.FilePart$Outbound & {
|
|
1770
|
-
kind: "file";
|
|
1771
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
1772
|
-
kind: "tool_result";
|
|
1773
|
-
})>;
|
|
1774
|
-
metadata?: {
|
|
1775
|
-
[k: string]: any;
|
|
1776
|
-
} | undefined;
|
|
1777
|
-
};
|
|
1778
|
-
/** @internal */
|
|
1779
|
-
export declare const StreamAgentDataMessage$outboundSchema: z.ZodType<StreamAgentDataMessage$Outbound, z.ZodTypeDef, StreamAgentDataMessage>;
|
|
1780
|
-
export declare function streamAgentDataMessageToJSON(streamAgentDataMessage: StreamAgentDataMessage): string;
|
|
1781
|
-
export declare function streamAgentDataMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataMessage, SDKValidationError>;
|
|
1782
|
-
/** @internal */
|
|
1783
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data, z.ZodTypeDef, unknown>;
|
|
1784
|
-
/** @internal */
|
|
1785
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound = {
|
|
1786
|
-
workflowRunId: string;
|
|
1787
|
-
spanId: string;
|
|
1788
|
-
parentId: string;
|
|
1789
|
-
message: Array<StreamAgentDataMessage$Outbound>;
|
|
1790
|
-
};
|
|
1791
|
-
/** @internal */
|
|
1792
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data>;
|
|
1793
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody12DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody12Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data): string;
|
|
1794
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody12DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data, SDKValidationError>;
|
|
1795
|
-
/** @internal */
|
|
1796
|
-
export declare const Data12$inboundSchema: z.ZodType<Data12, z.ZodTypeDef, unknown>;
|
|
1797
|
-
/** @internal */
|
|
1798
|
-
export type Data12$Outbound = {
|
|
1799
|
-
type: string;
|
|
1800
|
-
timestamp: string;
|
|
1801
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Data$Outbound;
|
|
1802
|
-
};
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export declare const Data12$outboundSchema: z.ZodType<Data12$Outbound, z.ZodTypeDef, Data12>;
|
|
1805
|
-
export declare function data12ToJSON(data12: Data12): string;
|
|
1806
|
-
export declare function data12FromJSON(jsonString: string): SafeParseResult<Data12, SDKValidationError>;
|
|
1807
|
-
/** @internal */
|
|
1808
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
1809
|
-
/** @internal */
|
|
1810
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Type>;
|
|
1811
|
-
/** @internal */
|
|
1812
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data, z.ZodTypeDef, unknown>;
|
|
1813
|
-
/** @internal */
|
|
1814
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound = {
|
|
1815
|
-
agent_id: string;
|
|
1816
|
-
input: string;
|
|
1817
|
-
};
|
|
1818
|
-
/** @internal */
|
|
1819
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data>;
|
|
1820
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody11DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody11Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data): string;
|
|
1821
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody11DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data, SDKValidationError>;
|
|
1822
|
-
/** @internal */
|
|
1823
|
-
export declare const Data11$inboundSchema: z.ZodType<Data11, z.ZodTypeDef, unknown>;
|
|
1824
|
-
/** @internal */
|
|
1825
|
-
export type Data11$Outbound = {
|
|
1826
|
-
type: string;
|
|
1827
|
-
timestamp: string;
|
|
1828
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody11Data$Outbound;
|
|
1829
|
-
};
|
|
1830
|
-
/** @internal */
|
|
1831
|
-
export declare const Data11$outboundSchema: z.ZodType<Data11$Outbound, z.ZodTypeDef, Data11>;
|
|
1832
|
-
export declare function data11ToJSON(data11: Data11): string;
|
|
1833
|
-
export declare function data11FromJSON(jsonString: string): SafeParseResult<Data11, SDKValidationError>;
|
|
1834
|
-
/** @internal */
|
|
1835
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
1836
|
-
/** @internal */
|
|
1837
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Type>;
|
|
1838
|
-
/** @internal */
|
|
1839
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data, z.ZodTypeDef, unknown>;
|
|
1840
|
-
/** @internal */
|
|
1841
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound = {
|
|
1842
|
-
name: string;
|
|
1843
|
-
agent_manifest_id: string;
|
|
1844
|
-
};
|
|
1845
|
-
/** @internal */
|
|
1846
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data>;
|
|
1847
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody10DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody10Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data): string;
|
|
1848
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody10DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data, SDKValidationError>;
|
|
1849
|
-
/** @internal */
|
|
1850
|
-
export declare const Data10$inboundSchema: z.ZodType<Data10, z.ZodTypeDef, unknown>;
|
|
1851
|
-
/** @internal */
|
|
1852
|
-
export type Data10$Outbound = {
|
|
1853
|
-
type: string;
|
|
1854
|
-
timestamp: string;
|
|
1855
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody10Data$Outbound;
|
|
1856
|
-
};
|
|
1857
|
-
/** @internal */
|
|
1858
|
-
export declare const Data10$outboundSchema: z.ZodType<Data10$Outbound, z.ZodTypeDef, Data10>;
|
|
1859
|
-
export declare function data10ToJSON(data10: Data10): string;
|
|
1860
|
-
export declare function data10FromJSON(jsonString: string): SafeParseResult<Data10, SDKValidationError>;
|
|
1861
|
-
/** @internal */
|
|
1862
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
1863
|
-
/** @internal */
|
|
1864
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Type>;
|
|
1865
|
-
/** @internal */
|
|
1866
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data, z.ZodTypeDef, unknown>;
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound = {};
|
|
1869
|
-
/** @internal */
|
|
1870
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data>;
|
|
1871
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody9DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody9Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data): string;
|
|
1872
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody9DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data, SDKValidationError>;
|
|
1873
|
-
/** @internal */
|
|
1874
|
-
export declare const Data9$inboundSchema: z.ZodType<Data9, z.ZodTypeDef, unknown>;
|
|
1875
|
-
/** @internal */
|
|
1876
|
-
export type Data9$Outbound = {
|
|
1877
|
-
type: string;
|
|
1878
|
-
timestamp: string;
|
|
1879
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody9Data$Outbound;
|
|
1880
|
-
};
|
|
1881
|
-
/** @internal */
|
|
1882
|
-
export declare const Data9$outboundSchema: z.ZodType<Data9$Outbound, z.ZodTypeDef, Data9>;
|
|
1883
|
-
export declare function data9ToJSON(data9: Data9): string;
|
|
1884
|
-
export declare function data9FromJSON(jsonString: string): SafeParseResult<Data9, SDKValidationError>;
|
|
1885
|
-
/** @internal */
|
|
1886
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
1887
|
-
/** @internal */
|
|
1888
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Type>;
|
|
1889
|
-
/** @internal */
|
|
1890
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data, z.ZodTypeDef, unknown>;
|
|
1891
|
-
/** @internal */
|
|
1892
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound = {};
|
|
1893
|
-
/** @internal */
|
|
1894
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data>;
|
|
1895
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody8DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody8Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data): string;
|
|
1896
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody8DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data, SDKValidationError>;
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
export declare const Data8$inboundSchema: z.ZodType<Data8, z.ZodTypeDef, unknown>;
|
|
1899
|
-
/** @internal */
|
|
1900
|
-
export type Data8$Outbound = {
|
|
1901
|
-
type: string;
|
|
1902
|
-
timestamp: string;
|
|
1903
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody8Data$Outbound;
|
|
1904
|
-
};
|
|
1905
|
-
/** @internal */
|
|
1906
|
-
export declare const Data8$outboundSchema: z.ZodType<Data8$Outbound, z.ZodTypeDef, Data8>;
|
|
1907
|
-
export declare function data8ToJSON(data8: Data8): string;
|
|
1908
|
-
export declare function data8FromJSON(jsonString: string): SafeParseResult<Data8, SDKValidationError>;
|
|
1909
|
-
/** @internal */
|
|
1910
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
1911
|
-
/** @internal */
|
|
1912
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type>;
|
|
1913
|
-
/** @internal */
|
|
1914
|
-
export declare const DataReview$inboundSchema: z.ZodNativeEnum<typeof DataReview>;
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export declare const DataReview$outboundSchema: z.ZodNativeEnum<typeof DataReview>;
|
|
1917
|
-
/** @internal */
|
|
1918
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data, z.ZodTypeDef, unknown>;
|
|
1919
|
-
/** @internal */
|
|
1920
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound = {
|
|
1921
|
-
agent_id: string;
|
|
1922
|
-
action_id: string;
|
|
1923
|
-
agent_tool_call_id: string;
|
|
1924
|
-
review: string;
|
|
1925
|
-
mock_output?: {
|
|
1926
|
-
[k: string]: any;
|
|
1927
|
-
} | undefined;
|
|
1928
|
-
review_source?: string | undefined;
|
|
1929
|
-
reviewed_by_id?: string | undefined;
|
|
1930
|
-
workflowRunId: string;
|
|
1931
|
-
};
|
|
1932
|
-
/** @internal */
|
|
1933
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data>;
|
|
1934
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody7DataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBody7Data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data): string;
|
|
1935
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBody7DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data, SDKValidationError>;
|
|
1936
|
-
/** @internal */
|
|
1937
|
-
export declare const Data7$inboundSchema: z.ZodType<Data7, z.ZodTypeDef, unknown>;
|
|
1938
|
-
/** @internal */
|
|
1939
|
-
export type Data7$Outbound = {
|
|
1940
|
-
type: string;
|
|
1941
|
-
timestamp: string;
|
|
1942
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound;
|
|
1943
|
-
};
|
|
1944
|
-
/** @internal */
|
|
1945
|
-
export declare const Data7$outboundSchema: z.ZodType<Data7$Outbound, z.ZodTypeDef, Data7>;
|
|
1946
|
-
export declare function data7ToJSON(data7: Data7): string;
|
|
1947
|
-
export declare function data7FromJSON(jsonString: string): SafeParseResult<Data7, SDKValidationError>;
|
|
1948
|
-
/** @internal */
|
|
1949
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
1950
|
-
/** @internal */
|
|
1951
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType>;
|
|
1952
|
-
/** @internal */
|
|
1953
|
-
export declare const StreamAgentDataConditions$inboundSchema: z.ZodType<StreamAgentDataConditions, z.ZodTypeDef, unknown>;
|
|
1954
|
-
/** @internal */
|
|
1955
|
-
export type StreamAgentDataConditions$Outbound = {
|
|
1956
|
-
condition: string;
|
|
1957
|
-
operator: string;
|
|
1958
|
-
value: string;
|
|
1959
|
-
};
|
|
1960
|
-
/** @internal */
|
|
1961
|
-
export declare const StreamAgentDataConditions$outboundSchema: z.ZodType<StreamAgentDataConditions$Outbound, z.ZodTypeDef, StreamAgentDataConditions>;
|
|
1962
|
-
export declare function streamAgentDataConditionsToJSON(streamAgentDataConditions: StreamAgentDataConditions): string;
|
|
1963
|
-
export declare function streamAgentDataConditionsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataConditions, SDKValidationError>;
|
|
1964
|
-
/** @internal */
|
|
1965
|
-
export declare const DataTool$inboundSchema: z.ZodType<DataTool, z.ZodTypeDef, unknown>;
|
|
1966
|
-
/** @internal */
|
|
1967
|
-
export type DataTool$Outbound = {
|
|
1968
|
-
id: string;
|
|
1969
|
-
key?: string | undefined;
|
|
1970
|
-
action_type: string;
|
|
1971
|
-
display_name?: string | undefined;
|
|
1972
|
-
description?: string | undefined;
|
|
1973
|
-
requires_approval: boolean;
|
|
1974
|
-
tool_id?: string | undefined;
|
|
1975
|
-
conditions?: Array<StreamAgentDataConditions$Outbound> | undefined;
|
|
1976
|
-
timeout: number;
|
|
1977
|
-
};
|
|
1978
|
-
/** @internal */
|
|
1979
|
-
export declare const DataTool$outboundSchema: z.ZodType<DataTool$Outbound, z.ZodTypeDef, DataTool>;
|
|
1980
|
-
export declare function dataToolToJSON(dataTool: DataTool): string;
|
|
1981
|
-
export declare function dataToolFromJSON(jsonString: string): SafeParseResult<DataTool, SDKValidationError>;
|
|
1982
|
-
/** @internal */
|
|
1983
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData, z.ZodTypeDef, unknown>;
|
|
1984
|
-
/** @internal */
|
|
1985
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound = {
|
|
1986
|
-
agent_id: string;
|
|
1987
|
-
action_id: string;
|
|
1988
|
-
requires_approval: boolean;
|
|
1989
|
-
tool: DataTool$Outbound;
|
|
1990
|
-
input: {
|
|
1991
|
-
[k: string]: any;
|
|
1992
|
-
};
|
|
1993
|
-
agent_tool_call_id: string;
|
|
1994
|
-
responseId?: string | undefined;
|
|
1995
|
-
};
|
|
1996
|
-
/** @internal */
|
|
1997
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData>;
|
|
1998
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBodyDataToJSON(streamAgentDataAgentsResponse200TextEventStreamResponseBodyData: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData): string;
|
|
1999
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamResponseBodyDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData, SDKValidationError>;
|
|
2000
|
-
/** @internal */
|
|
2001
|
-
export declare const Data6$inboundSchema: z.ZodType<Data6, z.ZodTypeDef, unknown>;
|
|
2002
|
-
/** @internal */
|
|
2003
|
-
export type Data6$Outbound = {
|
|
2004
|
-
type: string;
|
|
2005
|
-
timestamp: string;
|
|
2006
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound;
|
|
2007
|
-
};
|
|
2008
|
-
/** @internal */
|
|
2009
|
-
export declare const Data6$outboundSchema: z.ZodType<Data6$Outbound, z.ZodTypeDef, Data6>;
|
|
2010
|
-
export declare function data6ToJSON(data6: Data6): string;
|
|
2011
|
-
export declare function data6FromJSON(jsonString: string): SafeParseResult<Data6, SDKValidationError>;
|
|
2012
|
-
/** @internal */
|
|
2013
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
2014
|
-
/** @internal */
|
|
2015
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamType>;
|
|
2016
|
-
/** @internal */
|
|
2017
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData, z.ZodTypeDef, unknown>;
|
|
2018
|
-
/** @internal */
|
|
2019
|
-
export type StreamAgentDataAgentsResponse200TextEventStreamData$Outbound = {
|
|
2020
|
-
error: string;
|
|
2021
|
-
code: number;
|
|
2022
|
-
responseId?: string | undefined;
|
|
2023
|
-
workflowRunId: string;
|
|
2024
|
-
};
|
|
2025
|
-
/** @internal */
|
|
2026
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamData>;
|
|
2027
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamDataToJSON(streamAgentDataAgentsResponse200TextEventStreamData: StreamAgentDataAgentsResponse200TextEventStreamData): string;
|
|
2028
|
-
export declare function streamAgentDataAgentsResponse200TextEventStreamDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200TextEventStreamData, SDKValidationError>;
|
|
2029
|
-
/** @internal */
|
|
2030
|
-
export declare const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown>;
|
|
2031
|
-
/** @internal */
|
|
2032
|
-
export type Data5$Outbound = {
|
|
2033
|
-
type: string;
|
|
2034
|
-
timestamp: string;
|
|
2035
|
-
data: StreamAgentDataAgentsResponse200TextEventStreamData$Outbound;
|
|
2036
|
-
};
|
|
2037
|
-
/** @internal */
|
|
2038
|
-
export declare const Data5$outboundSchema: z.ZodType<Data5$Outbound, z.ZodTypeDef, Data5>;
|
|
2039
|
-
export declare function data5ToJSON(data5: Data5): string;
|
|
2040
|
-
export declare function data5FromJSON(jsonString: string): SafeParseResult<Data5, SDKValidationError>;
|
|
2041
|
-
/** @internal */
|
|
2042
|
-
export declare const StreamAgentDataAgentsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
2043
|
-
/** @internal */
|
|
2044
|
-
export declare const StreamAgentDataAgentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
2045
|
-
/** @internal */
|
|
2046
|
-
export declare const StreamAgentDataAgentsResponseRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
2047
|
-
/** @internal */
|
|
2048
|
-
export declare const StreamAgentDataAgentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
2049
|
-
/** @internal */
|
|
2050
|
-
export declare const StreamAgentDataAgentsResponseParts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts, z.ZodTypeDef, unknown>;
|
|
2051
|
-
/** @internal */
|
|
2052
|
-
export type StreamAgentDataAgentsResponseParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2053
|
-
kind: "tool_call";
|
|
2054
|
-
}) | (components.TextPart$Outbound & {
|
|
2055
|
-
kind: "text";
|
|
2056
|
-
}) | (components.DataPart$Outbound & {
|
|
2057
|
-
kind: "data";
|
|
2058
|
-
}) | (components.FilePart$Outbound & {
|
|
2059
|
-
kind: "file";
|
|
2060
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2061
|
-
kind: "tool_result";
|
|
2062
|
-
});
|
|
2063
|
-
/** @internal */
|
|
2064
|
-
export declare const StreamAgentDataAgentsResponseParts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseParts>;
|
|
2065
|
-
export declare function streamAgentDataAgentsResponsePartsToJSON(streamAgentDataAgentsResponseParts: StreamAgentDataAgentsResponseParts): string;
|
|
2066
|
-
export declare function streamAgentDataAgentsResponsePartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseParts, SDKValidationError>;
|
|
2067
|
-
/** @internal */
|
|
2068
|
-
export declare const DataLastMessageFull$inboundSchema: z.ZodType<DataLastMessageFull, z.ZodTypeDef, unknown>;
|
|
2069
|
-
/** @internal */
|
|
2070
|
-
export type DataLastMessageFull$Outbound = {
|
|
2071
|
-
messageId?: string | undefined;
|
|
2072
|
-
role: string;
|
|
2073
|
-
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2074
|
-
kind: "tool_call";
|
|
2075
|
-
}) | (components.TextPart$Outbound & {
|
|
2076
|
-
kind: "text";
|
|
2077
|
-
}) | (components.DataPart$Outbound & {
|
|
2078
|
-
kind: "data";
|
|
2079
|
-
}) | (components.FilePart$Outbound & {
|
|
2080
|
-
kind: "file";
|
|
2081
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2082
|
-
kind: "tool_result";
|
|
2083
|
-
})>;
|
|
2084
|
-
metadata?: {
|
|
2085
|
-
[k: string]: any;
|
|
2086
|
-
} | undefined;
|
|
2087
|
-
};
|
|
2088
|
-
/** @internal */
|
|
2089
|
-
export declare const DataLastMessageFull$outboundSchema: z.ZodType<DataLastMessageFull$Outbound, z.ZodTypeDef, DataLastMessageFull>;
|
|
2090
|
-
export declare function dataLastMessageFullToJSON(dataLastMessageFull: DataLastMessageFull): string;
|
|
2091
|
-
export declare function dataLastMessageFullFromJSON(jsonString: string): SafeParseResult<DataLastMessageFull, SDKValidationError>;
|
|
2092
|
-
/** @internal */
|
|
2093
|
-
export declare const DataFinishReason$inboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
2094
|
-
/** @internal */
|
|
2095
|
-
export declare const DataFinishReason$outboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
2096
|
-
/** @internal */
|
|
2097
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
2098
|
-
/** @internal */
|
|
2099
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type>;
|
|
2100
|
-
/** @internal */
|
|
2101
|
-
export declare const StreamAgentDataFunction$inboundSchema: z.ZodType<StreamAgentDataFunction, z.ZodTypeDef, unknown>;
|
|
2102
|
-
/** @internal */
|
|
2103
|
-
export type StreamAgentDataFunction$Outbound = {
|
|
2104
|
-
name?: string | undefined;
|
|
2105
|
-
arguments?: string | undefined;
|
|
2106
|
-
};
|
|
2107
|
-
/** @internal */
|
|
2108
|
-
export declare const StreamAgentDataFunction$outboundSchema: z.ZodType<StreamAgentDataFunction$Outbound, z.ZodTypeDef, StreamAgentDataFunction>;
|
|
2109
|
-
export declare function streamAgentDataFunctionToJSON(streamAgentDataFunction: StreamAgentDataFunction): string;
|
|
2110
|
-
export declare function streamAgentDataFunctionFromJSON(jsonString: string): SafeParseResult<StreamAgentDataFunction, SDKValidationError>;
|
|
2111
|
-
/** @internal */
|
|
2112
|
-
export declare const DataPendingToolCalls$inboundSchema: z.ZodType<DataPendingToolCalls, z.ZodTypeDef, unknown>;
|
|
2113
|
-
/** @internal */
|
|
2114
|
-
export type DataPendingToolCalls$Outbound = {
|
|
2115
|
-
id: string;
|
|
2116
|
-
type: string;
|
|
2117
|
-
function: StreamAgentDataFunction$Outbound;
|
|
2118
|
-
};
|
|
2119
|
-
/** @internal */
|
|
2120
|
-
export declare const DataPendingToolCalls$outboundSchema: z.ZodType<DataPendingToolCalls$Outbound, z.ZodTypeDef, DataPendingToolCalls>;
|
|
2121
|
-
export declare function dataPendingToolCallsToJSON(dataPendingToolCalls: DataPendingToolCalls): string;
|
|
2122
|
-
export declare function dataPendingToolCallsFromJSON(jsonString: string): SafeParseResult<DataPendingToolCalls, SDKValidationError>;
|
|
2123
|
-
/** @internal */
|
|
2124
|
-
export declare const StreamAgentDataAgentsPromptTokensDetails$inboundSchema: z.ZodType<StreamAgentDataAgentsPromptTokensDetails, z.ZodTypeDef, unknown>;
|
|
2125
|
-
/** @internal */
|
|
2126
|
-
export type StreamAgentDataAgentsPromptTokensDetails$Outbound = {
|
|
2127
|
-
cached_tokens?: number | null | undefined;
|
|
2128
|
-
audio_tokens?: number | null | undefined;
|
|
2129
|
-
};
|
|
2130
|
-
/** @internal */
|
|
2131
|
-
export declare const StreamAgentDataAgentsPromptTokensDetails$outboundSchema: z.ZodType<StreamAgentDataAgentsPromptTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataAgentsPromptTokensDetails>;
|
|
2132
|
-
export declare function streamAgentDataAgentsPromptTokensDetailsToJSON(streamAgentDataAgentsPromptTokensDetails: StreamAgentDataAgentsPromptTokensDetails): string;
|
|
2133
|
-
export declare function streamAgentDataAgentsPromptTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsPromptTokensDetails, SDKValidationError>;
|
|
2134
|
-
/** @internal */
|
|
2135
|
-
export declare const StreamAgentDataAgentsCompletionTokensDetails$inboundSchema: z.ZodType<StreamAgentDataAgentsCompletionTokensDetails, z.ZodTypeDef, unknown>;
|
|
2136
|
-
/** @internal */
|
|
2137
|
-
export type StreamAgentDataAgentsCompletionTokensDetails$Outbound = {
|
|
2138
|
-
reasoning_tokens?: number | null | undefined;
|
|
2139
|
-
accepted_prediction_tokens?: number | null | undefined;
|
|
2140
|
-
rejected_prediction_tokens?: number | null | undefined;
|
|
2141
|
-
audio_tokens?: number | null | undefined;
|
|
2142
|
-
};
|
|
2143
|
-
/** @internal */
|
|
2144
|
-
export declare const StreamAgentDataAgentsCompletionTokensDetails$outboundSchema: z.ZodType<StreamAgentDataAgentsCompletionTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataAgentsCompletionTokensDetails>;
|
|
2145
|
-
export declare function streamAgentDataAgentsCompletionTokensDetailsToJSON(streamAgentDataAgentsCompletionTokensDetails: StreamAgentDataAgentsCompletionTokensDetails): string;
|
|
2146
|
-
export declare function streamAgentDataAgentsCompletionTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsCompletionTokensDetails, SDKValidationError>;
|
|
2147
|
-
/** @internal */
|
|
2148
|
-
export declare const StreamAgentDataAgentsUsage$inboundSchema: z.ZodType<StreamAgentDataAgentsUsage, z.ZodTypeDef, unknown>;
|
|
2149
|
-
/** @internal */
|
|
2150
|
-
export type StreamAgentDataAgentsUsage$Outbound = {
|
|
2151
|
-
completion_tokens?: number | undefined;
|
|
2152
|
-
prompt_tokens?: number | undefined;
|
|
2153
|
-
total_tokens?: number | undefined;
|
|
2154
|
-
prompt_tokens_details?: StreamAgentDataAgentsPromptTokensDetails$Outbound | null | undefined;
|
|
2155
|
-
completion_tokens_details?: StreamAgentDataAgentsCompletionTokensDetails$Outbound | null | undefined;
|
|
2156
|
-
};
|
|
2157
|
-
/** @internal */
|
|
2158
|
-
export declare const StreamAgentDataAgentsUsage$outboundSchema: z.ZodType<StreamAgentDataAgentsUsage$Outbound, z.ZodTypeDef, StreamAgentDataAgentsUsage>;
|
|
2159
|
-
export declare function streamAgentDataAgentsUsageToJSON(streamAgentDataAgentsUsage: StreamAgentDataAgentsUsage): string;
|
|
2160
|
-
export declare function streamAgentDataAgentsUsageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsUsage, SDKValidationError>;
|
|
2161
|
-
/** @internal */
|
|
2162
|
-
export declare const StreamAgentDataAgentsResponse200Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data, z.ZodTypeDef, unknown>;
|
|
2163
|
-
/** @internal */
|
|
2164
|
-
export type StreamAgentDataAgentsResponse200Data$Outbound = {
|
|
2165
|
-
last_message: string;
|
|
2166
|
-
last_message_full?: DataLastMessageFull$Outbound | undefined;
|
|
2167
|
-
finish_reason: string;
|
|
2168
|
-
pending_tool_calls?: Array<DataPendingToolCalls$Outbound> | undefined;
|
|
2169
|
-
usage?: StreamAgentDataAgentsUsage$Outbound | undefined;
|
|
2170
|
-
workflowRunId: string;
|
|
2171
|
-
responseId?: string | undefined;
|
|
2172
|
-
};
|
|
2173
|
-
/** @internal */
|
|
2174
|
-
export declare const StreamAgentDataAgentsResponse200Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Data>;
|
|
2175
|
-
export declare function streamAgentDataAgentsResponse200DataToJSON(streamAgentDataAgentsResponse200Data: StreamAgentDataAgentsResponse200Data): string;
|
|
2176
|
-
export declare function streamAgentDataAgentsResponse200DataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200Data, SDKValidationError>;
|
|
2177
|
-
/** @internal */
|
|
2178
|
-
export declare const StreamAgentData4$inboundSchema: z.ZodType<StreamAgentData4, z.ZodTypeDef, unknown>;
|
|
2179
|
-
/** @internal */
|
|
2180
|
-
export type StreamAgentData4$Outbound = {
|
|
2181
|
-
type: string;
|
|
2182
|
-
timestamp: string;
|
|
2183
|
-
data: StreamAgentDataAgentsResponse200Data$Outbound;
|
|
2184
|
-
};
|
|
2185
|
-
/** @internal */
|
|
2186
|
-
export declare const StreamAgentData4$outboundSchema: z.ZodType<StreamAgentData4$Outbound, z.ZodTypeDef, StreamAgentData4>;
|
|
2187
|
-
export declare function streamAgentData4ToJSON(streamAgentData4: StreamAgentData4): string;
|
|
2188
|
-
export declare function streamAgentData4FromJSON(jsonString: string): SafeParseResult<StreamAgentData4, SDKValidationError>;
|
|
2189
|
-
/** @internal */
|
|
2190
|
-
export declare const StreamAgentDataAgentsResponseType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
2191
|
-
/** @internal */
|
|
2192
|
-
export declare const StreamAgentDataAgentsResponseType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseType>;
|
|
2193
|
-
/** @internal */
|
|
2194
|
-
export declare const StreamAgentDataAgentsRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsRole>;
|
|
2195
|
-
/** @internal */
|
|
2196
|
-
export declare const StreamAgentDataAgentsRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsRole>;
|
|
2197
|
-
/** @internal */
|
|
2198
|
-
export declare const StreamAgentDataAgentsParts$inboundSchema: z.ZodType<StreamAgentDataAgentsParts, z.ZodTypeDef, unknown>;
|
|
2199
|
-
/** @internal */
|
|
2200
|
-
export type StreamAgentDataAgentsParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2201
|
-
kind: "tool_call";
|
|
2202
|
-
}) | (components.TextPart$Outbound & {
|
|
2203
|
-
kind: "text";
|
|
2204
|
-
}) | (components.DataPart$Outbound & {
|
|
2205
|
-
kind: "data";
|
|
2206
|
-
}) | (components.FilePart$Outbound & {
|
|
2207
|
-
kind: "file";
|
|
2208
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2209
|
-
kind: "tool_result";
|
|
2210
|
-
});
|
|
2211
|
-
/** @internal */
|
|
2212
|
-
export declare const StreamAgentDataAgentsParts$outboundSchema: z.ZodType<StreamAgentDataAgentsParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsParts>;
|
|
2213
|
-
export declare function streamAgentDataAgentsPartsToJSON(streamAgentDataAgentsParts: StreamAgentDataAgentsParts): string;
|
|
2214
|
-
export declare function streamAgentDataAgentsPartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsParts, SDKValidationError>;
|
|
2215
|
-
/** @internal */
|
|
2216
|
-
export declare const DataMessageDifference$inboundSchema: z.ZodType<DataMessageDifference, z.ZodTypeDef, unknown>;
|
|
2217
|
-
/** @internal */
|
|
2218
|
-
export type DataMessageDifference$Outbound = {
|
|
2219
|
-
messageId: string;
|
|
2220
|
-
role: string;
|
|
2221
|
-
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2222
|
-
kind: "tool_call";
|
|
2223
|
-
}) | (components.TextPart$Outbound & {
|
|
2224
|
-
kind: "text";
|
|
2225
|
-
}) | (components.DataPart$Outbound & {
|
|
2226
|
-
kind: "data";
|
|
2227
|
-
}) | (components.FilePart$Outbound & {
|
|
2228
|
-
kind: "file";
|
|
2229
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2230
|
-
kind: "tool_result";
|
|
2231
|
-
})>;
|
|
2232
|
-
metadata?: {
|
|
2233
|
-
[k: string]: any;
|
|
2234
|
-
} | undefined;
|
|
2235
|
-
agent_id: string;
|
|
2236
|
-
agent_execution_id: string;
|
|
2237
|
-
workspace_id: string;
|
|
2238
|
-
};
|
|
2239
|
-
/** @internal */
|
|
2240
|
-
export declare const DataMessageDifference$outboundSchema: z.ZodType<DataMessageDifference$Outbound, z.ZodTypeDef, DataMessageDifference>;
|
|
2241
|
-
export declare function dataMessageDifferenceToJSON(dataMessageDifference: DataMessageDifference): string;
|
|
2242
|
-
export declare function dataMessageDifferenceFromJSON(jsonString: string): SafeParseResult<DataMessageDifference, SDKValidationError>;
|
|
2243
|
-
/** @internal */
|
|
2244
|
-
export declare const StreamAgentDataFinishReason$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataFinishReason>;
|
|
2245
|
-
/** @internal */
|
|
2246
|
-
export declare const StreamAgentDataFinishReason$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataFinishReason>;
|
|
2247
|
-
/** @internal */
|
|
2248
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
2249
|
-
/** @internal */
|
|
2250
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type>;
|
|
2251
|
-
/** @internal */
|
|
2252
|
-
export declare const StreamAgentDataAgentsFunction$inboundSchema: z.ZodType<StreamAgentDataAgentsFunction, z.ZodTypeDef, unknown>;
|
|
2253
|
-
/** @internal */
|
|
2254
|
-
export type StreamAgentDataAgentsFunction$Outbound = {
|
|
2255
|
-
name?: string | undefined;
|
|
2256
|
-
arguments?: string | undefined;
|
|
2257
|
-
};
|
|
2258
|
-
/** @internal */
|
|
2259
|
-
export declare const StreamAgentDataAgentsFunction$outboundSchema: z.ZodType<StreamAgentDataAgentsFunction$Outbound, z.ZodTypeDef, StreamAgentDataAgentsFunction>;
|
|
2260
|
-
export declare function streamAgentDataAgentsFunctionToJSON(streamAgentDataAgentsFunction: StreamAgentDataAgentsFunction): string;
|
|
2261
|
-
export declare function streamAgentDataAgentsFunctionFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsFunction, SDKValidationError>;
|
|
2262
|
-
/** @internal */
|
|
2263
|
-
export declare const StreamAgentDataToolCalls$inboundSchema: z.ZodType<StreamAgentDataToolCalls, z.ZodTypeDef, unknown>;
|
|
2264
|
-
/** @internal */
|
|
2265
|
-
export type StreamAgentDataToolCalls$Outbound = {
|
|
2266
|
-
id?: string | undefined;
|
|
2267
|
-
type?: string | undefined;
|
|
2268
|
-
function?: StreamAgentDataAgentsFunction$Outbound | undefined;
|
|
2269
|
-
};
|
|
2270
|
-
/** @internal */
|
|
2271
|
-
export declare const StreamAgentDataToolCalls$outboundSchema: z.ZodType<StreamAgentDataToolCalls$Outbound, z.ZodTypeDef, StreamAgentDataToolCalls>;
|
|
2272
|
-
export declare function streamAgentDataToolCallsToJSON(streamAgentDataToolCalls: StreamAgentDataToolCalls): string;
|
|
2273
|
-
export declare function streamAgentDataToolCallsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataToolCalls, SDKValidationError>;
|
|
2274
|
-
/** @internal */
|
|
2275
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
2276
|
-
/** @internal */
|
|
2277
|
-
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
2278
|
-
/** @internal */
|
|
2279
|
-
export declare const StreamAgentDataAudio$inboundSchema: z.ZodType<StreamAgentDataAudio, z.ZodTypeDef, unknown>;
|
|
2280
|
-
/** @internal */
|
|
2281
|
-
export type StreamAgentDataAudio$Outbound = {
|
|
2282
|
-
id: string;
|
|
2283
|
-
expires_at: number;
|
|
2284
|
-
data: string;
|
|
2285
|
-
transcript: string;
|
|
2286
|
-
};
|
|
2287
|
-
/** @internal */
|
|
2288
|
-
export declare const StreamAgentDataAudio$outboundSchema: z.ZodType<StreamAgentDataAudio$Outbound, z.ZodTypeDef, StreamAgentDataAudio>;
|
|
2289
|
-
export declare function streamAgentDataAudioToJSON(streamAgentDataAudio: StreamAgentDataAudio): string;
|
|
2290
|
-
export declare function streamAgentDataAudioFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAudio, SDKValidationError>;
|
|
2291
|
-
/** @internal */
|
|
2292
|
-
export declare const StreamAgentDataAgentsMessage$inboundSchema: z.ZodType<StreamAgentDataAgentsMessage, z.ZodTypeDef, unknown>;
|
|
2293
|
-
/** @internal */
|
|
2294
|
-
export type StreamAgentDataAgentsMessage$Outbound = {
|
|
2295
|
-
content?: string | null | undefined;
|
|
2296
|
-
refusal?: string | null | undefined;
|
|
2297
|
-
tool_calls?: Array<StreamAgentDataToolCalls$Outbound> | undefined;
|
|
2298
|
-
role?: string | undefined;
|
|
2299
|
-
reasoning?: string | null | undefined;
|
|
2300
|
-
reasoning_signature?: string | null | undefined;
|
|
2301
|
-
redacted_reasoning?: string | undefined;
|
|
2302
|
-
audio?: StreamAgentDataAudio$Outbound | null | undefined;
|
|
2303
|
-
};
|
|
2304
|
-
/** @internal */
|
|
2305
|
-
export declare const StreamAgentDataAgentsMessage$outboundSchema: z.ZodType<StreamAgentDataAgentsMessage$Outbound, z.ZodTypeDef, StreamAgentDataAgentsMessage>;
|
|
2306
|
-
export declare function streamAgentDataAgentsMessageToJSON(streamAgentDataAgentsMessage: StreamAgentDataAgentsMessage): string;
|
|
2307
|
-
export declare function streamAgentDataAgentsMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsMessage, SDKValidationError>;
|
|
2308
|
-
/** @internal */
|
|
2309
|
-
export declare const StreamAgentDataTopLogprobs$inboundSchema: z.ZodType<StreamAgentDataTopLogprobs, z.ZodTypeDef, unknown>;
|
|
2310
|
-
/** @internal */
|
|
2311
|
-
export type StreamAgentDataTopLogprobs$Outbound = {
|
|
2312
|
-
token: string;
|
|
2313
|
-
logprob: number;
|
|
2314
|
-
bytes: Array<number> | null;
|
|
2315
|
-
};
|
|
2316
|
-
/** @internal */
|
|
2317
|
-
export declare const StreamAgentDataTopLogprobs$outboundSchema: z.ZodType<StreamAgentDataTopLogprobs$Outbound, z.ZodTypeDef, StreamAgentDataTopLogprobs>;
|
|
2318
|
-
export declare function streamAgentDataTopLogprobsToJSON(streamAgentDataTopLogprobs: StreamAgentDataTopLogprobs): string;
|
|
2319
|
-
export declare function streamAgentDataTopLogprobsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataTopLogprobs, SDKValidationError>;
|
|
2320
|
-
/** @internal */
|
|
2321
|
-
export declare const StreamAgentDataContent$inboundSchema: z.ZodType<StreamAgentDataContent, z.ZodTypeDef, unknown>;
|
|
2322
|
-
/** @internal */
|
|
2323
|
-
export type StreamAgentDataContent$Outbound = {
|
|
2324
|
-
token: string;
|
|
2325
|
-
logprob: number;
|
|
2326
|
-
bytes: Array<number> | null;
|
|
2327
|
-
top_logprobs: Array<StreamAgentDataTopLogprobs$Outbound>;
|
|
2328
|
-
};
|
|
2329
|
-
/** @internal */
|
|
2330
|
-
export declare const StreamAgentDataContent$outboundSchema: z.ZodType<StreamAgentDataContent$Outbound, z.ZodTypeDef, StreamAgentDataContent>;
|
|
2331
|
-
export declare function streamAgentDataContentToJSON(streamAgentDataContent: StreamAgentDataContent): string;
|
|
2332
|
-
export declare function streamAgentDataContentFromJSON(jsonString: string): SafeParseResult<StreamAgentDataContent, SDKValidationError>;
|
|
2333
|
-
/** @internal */
|
|
2334
|
-
export declare const StreamAgentDataAgentsTopLogprobs$inboundSchema: z.ZodType<StreamAgentDataAgentsTopLogprobs, z.ZodTypeDef, unknown>;
|
|
2335
|
-
/** @internal */
|
|
2336
|
-
export type StreamAgentDataAgentsTopLogprobs$Outbound = {
|
|
2337
|
-
token: string;
|
|
2338
|
-
logprob: number;
|
|
2339
|
-
bytes: Array<number> | null;
|
|
2340
|
-
};
|
|
2341
|
-
/** @internal */
|
|
2342
|
-
export declare const StreamAgentDataAgentsTopLogprobs$outboundSchema: z.ZodType<StreamAgentDataAgentsTopLogprobs$Outbound, z.ZodTypeDef, StreamAgentDataAgentsTopLogprobs>;
|
|
2343
|
-
export declare function streamAgentDataAgentsTopLogprobsToJSON(streamAgentDataAgentsTopLogprobs: StreamAgentDataAgentsTopLogprobs): string;
|
|
2344
|
-
export declare function streamAgentDataAgentsTopLogprobsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsTopLogprobs, SDKValidationError>;
|
|
2345
|
-
/** @internal */
|
|
2346
|
-
export declare const DataRefusal$inboundSchema: z.ZodType<DataRefusal, z.ZodTypeDef, unknown>;
|
|
2347
|
-
/** @internal */
|
|
2348
|
-
export type DataRefusal$Outbound = {
|
|
2349
|
-
token: string;
|
|
2350
|
-
logprob: number;
|
|
2351
|
-
bytes: Array<number> | null;
|
|
2352
|
-
top_logprobs: Array<StreamAgentDataAgentsTopLogprobs$Outbound>;
|
|
2353
|
-
};
|
|
2354
|
-
/** @internal */
|
|
2355
|
-
export declare const DataRefusal$outboundSchema: z.ZodType<DataRefusal$Outbound, z.ZodTypeDef, DataRefusal>;
|
|
2356
|
-
export declare function dataRefusalToJSON(dataRefusal: DataRefusal): string;
|
|
2357
|
-
export declare function dataRefusalFromJSON(jsonString: string): SafeParseResult<DataRefusal, SDKValidationError>;
|
|
2358
|
-
/** @internal */
|
|
2359
|
-
export declare const DataLogprobs$inboundSchema: z.ZodType<DataLogprobs, z.ZodTypeDef, unknown>;
|
|
2360
|
-
/** @internal */
|
|
2361
|
-
export type DataLogprobs$Outbound = {
|
|
2362
|
-
content: Array<StreamAgentDataContent$Outbound> | null;
|
|
2363
|
-
refusal: Array<DataRefusal$Outbound> | null;
|
|
2364
|
-
};
|
|
2365
|
-
/** @internal */
|
|
2366
|
-
export declare const DataLogprobs$outboundSchema: z.ZodType<DataLogprobs$Outbound, z.ZodTypeDef, DataLogprobs>;
|
|
2367
|
-
export declare function dataLogprobsToJSON(dataLogprobs: DataLogprobs): string;
|
|
2368
|
-
export declare function dataLogprobsFromJSON(jsonString: string): SafeParseResult<DataLogprobs, SDKValidationError>;
|
|
2369
|
-
/** @internal */
|
|
2370
|
-
export declare const DataChoice$inboundSchema: z.ZodType<DataChoice, z.ZodTypeDef, unknown>;
|
|
2371
|
-
/** @internal */
|
|
2372
|
-
export type DataChoice$Outbound = {
|
|
2373
|
-
finish_reason: string | null;
|
|
2374
|
-
index: number;
|
|
2375
|
-
message: StreamAgentDataAgentsMessage$Outbound;
|
|
2376
|
-
logprobs?: DataLogprobs$Outbound | null | undefined;
|
|
2377
|
-
};
|
|
2378
|
-
/** @internal */
|
|
2379
|
-
export declare const DataChoice$outboundSchema: z.ZodType<DataChoice$Outbound, z.ZodTypeDef, DataChoice>;
|
|
2380
|
-
export declare function dataChoiceToJSON(dataChoice: DataChoice): string;
|
|
2381
|
-
export declare function dataChoiceFromJSON(jsonString: string): SafeParseResult<DataChoice, SDKValidationError>;
|
|
2382
|
-
/** @internal */
|
|
2383
|
-
export declare const StreamAgentDataPromptTokensDetails$inboundSchema: z.ZodType<StreamAgentDataPromptTokensDetails, z.ZodTypeDef, unknown>;
|
|
2384
|
-
/** @internal */
|
|
2385
|
-
export type StreamAgentDataPromptTokensDetails$Outbound = {
|
|
2386
|
-
cached_tokens?: number | null | undefined;
|
|
2387
|
-
audio_tokens?: number | null | undefined;
|
|
2388
|
-
};
|
|
2389
|
-
/** @internal */
|
|
2390
|
-
export declare const StreamAgentDataPromptTokensDetails$outboundSchema: z.ZodType<StreamAgentDataPromptTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataPromptTokensDetails>;
|
|
2391
|
-
export declare function streamAgentDataPromptTokensDetailsToJSON(streamAgentDataPromptTokensDetails: StreamAgentDataPromptTokensDetails): string;
|
|
2392
|
-
export declare function streamAgentDataPromptTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataPromptTokensDetails, SDKValidationError>;
|
|
2393
|
-
/** @internal */
|
|
2394
|
-
export declare const StreamAgentDataCompletionTokensDetails$inboundSchema: z.ZodType<StreamAgentDataCompletionTokensDetails, z.ZodTypeDef, unknown>;
|
|
2395
|
-
/** @internal */
|
|
2396
|
-
export type StreamAgentDataCompletionTokensDetails$Outbound = {
|
|
2397
|
-
reasoning_tokens?: number | null | undefined;
|
|
2398
|
-
accepted_prediction_tokens?: number | null | undefined;
|
|
2399
|
-
rejected_prediction_tokens?: number | null | undefined;
|
|
2400
|
-
audio_tokens?: number | null | undefined;
|
|
2401
|
-
};
|
|
2402
|
-
/** @internal */
|
|
2403
|
-
export declare const StreamAgentDataCompletionTokensDetails$outboundSchema: z.ZodType<StreamAgentDataCompletionTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataCompletionTokensDetails>;
|
|
2404
|
-
export declare function streamAgentDataCompletionTokensDetailsToJSON(streamAgentDataCompletionTokensDetails: StreamAgentDataCompletionTokensDetails): string;
|
|
2405
|
-
export declare function streamAgentDataCompletionTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataCompletionTokensDetails, SDKValidationError>;
|
|
2406
|
-
/** @internal */
|
|
2407
|
-
export declare const StreamAgentDataUsage$inboundSchema: z.ZodType<StreamAgentDataUsage, z.ZodTypeDef, unknown>;
|
|
2408
|
-
/** @internal */
|
|
2409
|
-
export type StreamAgentDataUsage$Outbound = {
|
|
2410
|
-
completion_tokens?: number | undefined;
|
|
2411
|
-
prompt_tokens?: number | undefined;
|
|
2412
|
-
total_tokens?: number | undefined;
|
|
2413
|
-
prompt_tokens_details?: StreamAgentDataPromptTokensDetails$Outbound | null | undefined;
|
|
2414
|
-
completion_tokens_details?: StreamAgentDataCompletionTokensDetails$Outbound | null | undefined;
|
|
2415
|
-
};
|
|
2416
|
-
/** @internal */
|
|
2417
|
-
export declare const StreamAgentDataUsage$outboundSchema: z.ZodType<StreamAgentDataUsage$Outbound, z.ZodTypeDef, StreamAgentDataUsage>;
|
|
2418
|
-
export declare function streamAgentDataUsageToJSON(streamAgentDataUsage: StreamAgentDataUsage): string;
|
|
2419
|
-
export declare function streamAgentDataUsageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataUsage, SDKValidationError>;
|
|
2420
|
-
/** @internal */
|
|
2421
|
-
export declare const StreamAgentDataAgentsResponseData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseData, z.ZodTypeDef, unknown>;
|
|
2422
|
-
/** @internal */
|
|
2423
|
-
export type StreamAgentDataAgentsResponseData$Outbound = {
|
|
2424
|
-
agent_id: string;
|
|
2425
|
-
message_difference: {
|
|
2426
|
-
[k: string]: DataMessageDifference$Outbound;
|
|
2427
|
-
};
|
|
2428
|
-
choice?: DataChoice$Outbound | undefined;
|
|
2429
|
-
choiceIndex?: number | undefined;
|
|
2430
|
-
iteration: number;
|
|
2431
|
-
accumulated_execution_time: number;
|
|
2432
|
-
responseId?: string | undefined;
|
|
2433
|
-
usage?: StreamAgentDataUsage$Outbound | undefined;
|
|
2434
|
-
};
|
|
2435
|
-
/** @internal */
|
|
2436
|
-
export declare const StreamAgentDataAgentsResponseData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseData>;
|
|
2437
|
-
export declare function streamAgentDataAgentsResponseDataToJSON(streamAgentDataAgentsResponseData: StreamAgentDataAgentsResponseData): string;
|
|
2438
|
-
export declare function streamAgentDataAgentsResponseDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseData, SDKValidationError>;
|
|
2439
|
-
/** @internal */
|
|
2440
|
-
export declare const StreamAgentData3$inboundSchema: z.ZodType<StreamAgentData3, z.ZodTypeDef, unknown>;
|
|
2441
|
-
/** @internal */
|
|
2442
|
-
export type StreamAgentData3$Outbound = {
|
|
2443
|
-
type: string;
|
|
2444
|
-
timestamp: string;
|
|
2445
|
-
data: StreamAgentDataAgentsResponseData$Outbound;
|
|
2446
|
-
};
|
|
2447
|
-
/** @internal */
|
|
2448
|
-
export declare const StreamAgentData3$outboundSchema: z.ZodType<StreamAgentData3$Outbound, z.ZodTypeDef, StreamAgentData3>;
|
|
2449
|
-
export declare function streamAgentData3ToJSON(streamAgentData3: StreamAgentData3): string;
|
|
2450
|
-
export declare function streamAgentData3FromJSON(jsonString: string): SafeParseResult<StreamAgentData3, SDKValidationError>;
|
|
2451
|
-
/** @internal */
|
|
2452
|
-
export declare const StreamAgentDataAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsType>;
|
|
2453
|
-
/** @internal */
|
|
2454
|
-
export declare const StreamAgentDataAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsType>;
|
|
2455
|
-
/** @internal */
|
|
2456
|
-
export declare const StreamAgentDataRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataRole>;
|
|
2457
|
-
/** @internal */
|
|
2458
|
-
export declare const StreamAgentDataRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataRole>;
|
|
2459
|
-
/** @internal */
|
|
2460
|
-
export declare const StreamAgentDataParts$inboundSchema: z.ZodType<StreamAgentDataParts, z.ZodTypeDef, unknown>;
|
|
2461
|
-
/** @internal */
|
|
2462
|
-
export type StreamAgentDataParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2463
|
-
kind: "tool_call";
|
|
2464
|
-
}) | (components.TextPart$Outbound & {
|
|
2465
|
-
kind: "text";
|
|
2466
|
-
}) | (components.DataPart$Outbound & {
|
|
2467
|
-
kind: "data";
|
|
2468
|
-
}) | (components.FilePart$Outbound & {
|
|
2469
|
-
kind: "file";
|
|
2470
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2471
|
-
kind: "tool_result";
|
|
2472
|
-
});
|
|
2473
|
-
/** @internal */
|
|
2474
|
-
export declare const StreamAgentDataParts$outboundSchema: z.ZodType<StreamAgentDataParts$Outbound, z.ZodTypeDef, StreamAgentDataParts>;
|
|
2475
|
-
export declare function streamAgentDataPartsToJSON(streamAgentDataParts: StreamAgentDataParts): string;
|
|
2476
|
-
export declare function streamAgentDataPartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataParts, SDKValidationError>;
|
|
2477
|
-
/** @internal */
|
|
2478
|
-
export declare const DataInputMessage$inboundSchema: z.ZodType<DataInputMessage, z.ZodTypeDef, unknown>;
|
|
2479
|
-
/** @internal */
|
|
2480
|
-
export type DataInputMessage$Outbound = {
|
|
2481
|
-
messageId?: string | undefined;
|
|
2482
|
-
role: string;
|
|
2483
|
-
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2484
|
-
kind: "tool_call";
|
|
2485
|
-
}) | (components.TextPart$Outbound & {
|
|
2486
|
-
kind: "text";
|
|
2487
|
-
}) | (components.DataPart$Outbound & {
|
|
2488
|
-
kind: "data";
|
|
2489
|
-
}) | (components.FilePart$Outbound & {
|
|
2490
|
-
kind: "file";
|
|
2491
|
-
}) | (components.ToolResultPart$Outbound & {
|
|
2492
|
-
kind: "tool_result";
|
|
2493
|
-
})>;
|
|
2494
|
-
metadata?: {
|
|
2495
|
-
[k: string]: any;
|
|
2496
|
-
} | undefined;
|
|
2497
|
-
};
|
|
2498
|
-
/** @internal */
|
|
2499
|
-
export declare const DataInputMessage$outboundSchema: z.ZodType<DataInputMessage$Outbound, z.ZodTypeDef, DataInputMessage>;
|
|
2500
|
-
export declare function dataInputMessageToJSON(dataInputMessage: DataInputMessage): string;
|
|
2501
|
-
export declare function dataInputMessageFromJSON(jsonString: string): SafeParseResult<DataInputMessage, SDKValidationError>;
|
|
2502
|
-
/** @internal */
|
|
2503
|
-
export declare const StreamAgentDataToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
2504
|
-
/** @internal */
|
|
2505
|
-
export declare const StreamAgentDataToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataToolApprovalRequired>;
|
|
2506
|
-
/** @internal */
|
|
2507
|
-
export declare const StreamAgentDataAgentsConditions$inboundSchema: z.ZodType<StreamAgentDataAgentsConditions, z.ZodTypeDef, unknown>;
|
|
2508
|
-
/** @internal */
|
|
2509
|
-
export type StreamAgentDataAgentsConditions$Outbound = {
|
|
2510
|
-
condition: string;
|
|
2511
|
-
operator: string;
|
|
2512
|
-
value: string;
|
|
2513
|
-
};
|
|
2514
|
-
/** @internal */
|
|
2515
|
-
export declare const StreamAgentDataAgentsConditions$outboundSchema: z.ZodType<StreamAgentDataAgentsConditions$Outbound, z.ZodTypeDef, StreamAgentDataAgentsConditions>;
|
|
2516
|
-
export declare function streamAgentDataAgentsConditionsToJSON(streamAgentDataAgentsConditions: StreamAgentDataAgentsConditions): string;
|
|
2517
|
-
export declare function streamAgentDataAgentsConditionsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsConditions, SDKValidationError>;
|
|
2518
|
-
/** @internal */
|
|
2519
|
-
export declare const StreamAgentDataTools$inboundSchema: z.ZodType<StreamAgentDataTools, z.ZodTypeDef, unknown>;
|
|
2520
|
-
/** @internal */
|
|
2521
|
-
export type StreamAgentDataTools$Outbound = {
|
|
2522
|
-
id: string;
|
|
2523
|
-
key?: string | undefined;
|
|
2524
|
-
action_type: string;
|
|
2525
|
-
display_name?: string | undefined;
|
|
2526
|
-
description?: string | undefined;
|
|
2527
|
-
requires_approval: boolean;
|
|
2528
|
-
tool_id?: string | undefined;
|
|
2529
|
-
conditions?: Array<StreamAgentDataAgentsConditions$Outbound> | undefined;
|
|
2530
|
-
timeout: number;
|
|
2531
|
-
};
|
|
2532
|
-
/** @internal */
|
|
2533
|
-
export declare const StreamAgentDataTools$outboundSchema: z.ZodType<StreamAgentDataTools$Outbound, z.ZodTypeDef, StreamAgentDataTools>;
|
|
2534
|
-
export declare function streamAgentDataToolsToJSON(streamAgentDataTools: StreamAgentDataTools): string;
|
|
2535
|
-
export declare function streamAgentDataToolsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataTools, SDKValidationError>;
|
|
2536
|
-
/** @internal */
|
|
2537
|
-
export declare const StreamAgentDataExecuteOn$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataExecuteOn>;
|
|
2538
|
-
/** @internal */
|
|
2539
|
-
export declare const StreamAgentDataExecuteOn$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataExecuteOn>;
|
|
2540
|
-
/** @internal */
|
|
2541
|
-
export declare const StreamAgentDataEvaluators$inboundSchema: z.ZodType<StreamAgentDataEvaluators, z.ZodTypeDef, unknown>;
|
|
2542
|
-
/** @internal */
|
|
2543
|
-
export type StreamAgentDataEvaluators$Outbound = {
|
|
2544
|
-
id: string;
|
|
2545
|
-
sample_rate: number;
|
|
2546
|
-
execute_on: string;
|
|
2547
|
-
};
|
|
2548
|
-
/** @internal */
|
|
2549
|
-
export declare const StreamAgentDataEvaluators$outboundSchema: z.ZodType<StreamAgentDataEvaluators$Outbound, z.ZodTypeDef, StreamAgentDataEvaluators>;
|
|
2550
|
-
export declare function streamAgentDataEvaluatorsToJSON(streamAgentDataEvaluators: StreamAgentDataEvaluators): string;
|
|
2551
|
-
export declare function streamAgentDataEvaluatorsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataEvaluators, SDKValidationError>;
|
|
2552
|
-
/** @internal */
|
|
2553
|
-
export declare const StreamAgentDataAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
2554
|
-
/** @internal */
|
|
2555
|
-
export declare const StreamAgentDataAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsExecuteOn>;
|
|
2556
|
-
/** @internal */
|
|
2557
|
-
export declare const StreamAgentDataGuardrails$inboundSchema: z.ZodType<StreamAgentDataGuardrails, z.ZodTypeDef, unknown>;
|
|
2558
|
-
/** @internal */
|
|
2559
|
-
export type StreamAgentDataGuardrails$Outbound = {
|
|
2560
|
-
id: string;
|
|
2561
|
-
sample_rate: number;
|
|
2562
|
-
execute_on: string;
|
|
2563
|
-
};
|
|
2564
|
-
/** @internal */
|
|
2565
|
-
export declare const StreamAgentDataGuardrails$outboundSchema: z.ZodType<StreamAgentDataGuardrails$Outbound, z.ZodTypeDef, StreamAgentDataGuardrails>;
|
|
2566
|
-
export declare function streamAgentDataGuardrailsToJSON(streamAgentDataGuardrails: StreamAgentDataGuardrails): string;
|
|
2567
|
-
export declare function streamAgentDataGuardrailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataGuardrails, SDKValidationError>;
|
|
2568
|
-
/** @internal */
|
|
2569
|
-
export declare const StreamAgentDataSettings$inboundSchema: z.ZodType<StreamAgentDataSettings, z.ZodTypeDef, unknown>;
|
|
2570
|
-
/** @internal */
|
|
2571
|
-
export type StreamAgentDataSettings$Outbound = {
|
|
2572
|
-
max_iterations: number;
|
|
2573
|
-
max_execution_time: number;
|
|
2574
|
-
tool_approval_required: string;
|
|
2575
|
-
tools?: Array<StreamAgentDataTools$Outbound> | undefined;
|
|
2576
|
-
evaluators?: Array<StreamAgentDataEvaluators$Outbound> | undefined;
|
|
2577
|
-
guardrails?: Array<StreamAgentDataGuardrails$Outbound> | undefined;
|
|
2578
|
-
};
|
|
2579
|
-
/** @internal */
|
|
2580
|
-
export declare const StreamAgentDataSettings$outboundSchema: z.ZodType<StreamAgentDataSettings$Outbound, z.ZodTypeDef, StreamAgentDataSettings>;
|
|
2581
|
-
export declare function streamAgentDataSettingsToJSON(streamAgentDataSettings: StreamAgentDataSettings): string;
|
|
2582
|
-
export declare function streamAgentDataSettingsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataSettings, SDKValidationError>;
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export declare const StreamAgentDataAgentsData$inboundSchema: z.ZodType<StreamAgentDataAgentsData, z.ZodTypeDef, unknown>;
|
|
2585
|
-
/** @internal */
|
|
2586
|
-
export type StreamAgentDataAgentsData$Outbound = {
|
|
2587
|
-
workflowRunId: string;
|
|
2588
|
-
integration_id?: string | undefined;
|
|
2589
|
-
inputMessage: DataInputMessage$Outbound;
|
|
2590
|
-
modelId: string;
|
|
2591
|
-
instructions: string;
|
|
2592
|
-
system_prompt: string;
|
|
2593
|
-
settings?: StreamAgentDataSettings$Outbound | undefined;
|
|
2594
|
-
agent_manifest_id: string;
|
|
2595
|
-
agent_key: string;
|
|
2596
|
-
variables?: {
|
|
2597
|
-
[k: string]: any;
|
|
2598
|
-
} | undefined;
|
|
2599
|
-
tool_execution_id?: string | undefined;
|
|
2600
|
-
is_continuation?: boolean | undefined;
|
|
2601
|
-
stream?: boolean | undefined;
|
|
2602
|
-
responseId?: string | undefined;
|
|
2603
|
-
};
|
|
2604
|
-
/** @internal */
|
|
2605
|
-
export declare const StreamAgentDataAgentsData$outboundSchema: z.ZodType<StreamAgentDataAgentsData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsData>;
|
|
2606
|
-
export declare function streamAgentDataAgentsDataToJSON(streamAgentDataAgentsData: StreamAgentDataAgentsData): string;
|
|
2607
|
-
export declare function streamAgentDataAgentsDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsData, SDKValidationError>;
|
|
2608
|
-
/** @internal */
|
|
2609
|
-
export declare const StreamAgentData2$inboundSchema: z.ZodType<StreamAgentData2, z.ZodTypeDef, unknown>;
|
|
2610
|
-
/** @internal */
|
|
2611
|
-
export type StreamAgentData2$Outbound = {
|
|
2612
|
-
type: string;
|
|
2613
|
-
timestamp: string;
|
|
2614
|
-
data: StreamAgentDataAgentsData$Outbound;
|
|
2615
|
-
};
|
|
2616
|
-
/** @internal */
|
|
2617
|
-
export declare const StreamAgentData2$outboundSchema: z.ZodType<StreamAgentData2$Outbound, z.ZodTypeDef, StreamAgentData2>;
|
|
2618
|
-
export declare function streamAgentData2ToJSON(streamAgentData2: StreamAgentData2): string;
|
|
2619
|
-
export declare function streamAgentData2FromJSON(jsonString: string): SafeParseResult<StreamAgentData2, SDKValidationError>;
|
|
2620
|
-
/** @internal */
|
|
2621
|
-
export declare const StreamAgentDataType$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataType>;
|
|
2622
|
-
/** @internal */
|
|
2623
|
-
export declare const StreamAgentDataType$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataType>;
|
|
2624
|
-
/** @internal */
|
|
2625
|
-
export declare const StreamAgentDataData$inboundSchema: z.ZodType<StreamAgentDataData, z.ZodTypeDef, unknown>;
|
|
2626
|
-
/** @internal */
|
|
2627
|
-
export type StreamAgentDataData$Outbound = {
|
|
2628
|
-
agent_task_id: string;
|
|
2629
|
-
workspace_id: string;
|
|
2630
|
-
trace_id: string;
|
|
2631
|
-
};
|
|
2632
|
-
/** @internal */
|
|
2633
|
-
export declare const StreamAgentDataData$outboundSchema: z.ZodType<StreamAgentDataData$Outbound, z.ZodTypeDef, StreamAgentDataData>;
|
|
2634
|
-
export declare function streamAgentDataDataToJSON(streamAgentDataData: StreamAgentDataData): string;
|
|
2635
|
-
export declare function streamAgentDataDataFromJSON(jsonString: string): SafeParseResult<StreamAgentDataData, SDKValidationError>;
|
|
2636
|
-
/** @internal */
|
|
2637
|
-
export declare const StreamAgentData1$inboundSchema: z.ZodType<StreamAgentData1, z.ZodTypeDef, unknown>;
|
|
2638
|
-
/** @internal */
|
|
2639
|
-
export type StreamAgentData1$Outbound = {
|
|
2640
|
-
type: string;
|
|
2641
|
-
timestamp: string;
|
|
2642
|
-
data: StreamAgentDataData$Outbound;
|
|
2643
|
-
};
|
|
2644
|
-
/** @internal */
|
|
2645
|
-
export declare const StreamAgentData1$outboundSchema: z.ZodType<StreamAgentData1$Outbound, z.ZodTypeDef, StreamAgentData1>;
|
|
2646
|
-
export declare function streamAgentData1ToJSON(streamAgentData1: StreamAgentData1): string;
|
|
2647
|
-
export declare function streamAgentData1FromJSON(jsonString: string): SafeParseResult<StreamAgentData1, SDKValidationError>;
|
|
2648
|
-
/** @internal */
|
|
2649
|
-
export declare const StreamAgentData$inboundSchema: z.ZodType<StreamAgentData, z.ZodTypeDef, unknown>;
|
|
2650
|
-
/** @internal */
|
|
2651
|
-
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;
|
|
2652
368
|
/** @internal */
|
|
2653
369
|
export declare const StreamAgentData$outboundSchema: z.ZodType<StreamAgentData$Outbound, z.ZodTypeDef, StreamAgentData>;
|
|
2654
370
|
export declare function streamAgentDataToJSON(streamAgentData: StreamAgentData): string;
|
|
@@ -2657,7 +373,41 @@ export declare function streamAgentDataFromJSON(jsonString: string): SafeParseRe
|
|
|
2657
373
|
export declare const StreamAgentResponseBody$inboundSchema: z.ZodType<StreamAgentResponseBody, z.ZodTypeDef, unknown>;
|
|
2658
374
|
/** @internal */
|
|
2659
375
|
export type StreamAgentResponseBody$Outbound = {
|
|
2660
|
-
data:
|
|
376
|
+
data: (components.AgentExecutionStartedStreamingEvent$Outbound & {
|
|
377
|
+
type: "agents.execution_started";
|
|
378
|
+
}) | (components.AgentStartedStreamingEvent$Outbound & {
|
|
379
|
+
type: "event.agents.started";
|
|
380
|
+
}) | (components.AgentThoughtStreamingEvent$Outbound & {
|
|
381
|
+
type: "event.agents.thought";
|
|
382
|
+
}) | (components.AgentInactiveStreamingEvent$Outbound & {
|
|
383
|
+
type: "event.agents.inactive";
|
|
384
|
+
}) | (components.AgentErroredStreamingEvent$Outbound & {
|
|
385
|
+
type: "event.agents.errored";
|
|
386
|
+
}) | (components.ActionReviewRequestedStreamingEvent$Outbound & {
|
|
387
|
+
type: "event.agents.action_review_requested";
|
|
388
|
+
}) | (components.ActionReviewedStreamingEvent$Outbound & {
|
|
389
|
+
type: "event.agents.action_reviewed";
|
|
390
|
+
}) | (components.ExecutionReviewRequiredStreamingEvent$Outbound & {
|
|
391
|
+
type: "event.agents.execution_review_required";
|
|
392
|
+
}) | (components.ExecutionReviewedStreamingEvent$Outbound & {
|
|
393
|
+
type: "event.agents.execution_reviewed";
|
|
394
|
+
}) | (components.ExecutionNamedStreamingEvent$Outbound & {
|
|
395
|
+
type: "event.agents.execution_named";
|
|
396
|
+
}) | (components.AgentHandedOffStreamingEvent$Outbound & {
|
|
397
|
+
type: "event.agents.handed_off";
|
|
398
|
+
}) | (components.AgentMessageCreatedStreamingEvent$Outbound & {
|
|
399
|
+
type: "event.agents.message-created";
|
|
400
|
+
}) | (components.ToolExecutionStartedStreamingEvent$Outbound & {
|
|
401
|
+
type: "event.workflow_events.tool_execution_started";
|
|
402
|
+
}) | (components.ToolExecutionFinishedStreamingEvent$Outbound & {
|
|
403
|
+
type: "event.workflow_events.tool_execution_finished";
|
|
404
|
+
}) | (components.ToolExecutionFailedStreamingEvent$Outbound & {
|
|
405
|
+
type: "event.workflow_events.tool_execution_failed";
|
|
406
|
+
}) | (components.TimeoutStreamingEvent$Outbound & {
|
|
407
|
+
type: "agents.timeout";
|
|
408
|
+
}) | (components.ErrorStreamingEvent$Outbound & {
|
|
409
|
+
type: "agents.error";
|
|
410
|
+
});
|
|
2661
411
|
};
|
|
2662
412
|
/** @internal */
|
|
2663
413
|
export declare const StreamAgentResponseBody$outboundSchema: z.ZodType<StreamAgentResponseBody$Outbound, z.ZodTypeDef, StreamAgentResponseBody>;
|