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