@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 InvokeAgentRoleUserMessage = ClosedEnum<typeof InvokeAgentRoleUserMe
|
|
|
26
27
|
* Message role (user or tool for continuing executions)
|
|
27
28
|
*/
|
|
28
29
|
export type InvokeAgentRole = InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
|
|
29
|
-
export declare const InvokeAgentPublicMessagePartAgentsRequestKind: {
|
|
30
|
-
readonly ToolResult: "tool_result";
|
|
31
|
-
};
|
|
32
|
-
export type InvokeAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind>;
|
|
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 PublicMessagePartToolResultPart = {
|
|
37
|
-
kind: InvokeAgentPublicMessagePartAgentsRequestKind;
|
|
38
|
-
toolCallId: string;
|
|
39
|
-
result?: any | undefined;
|
|
40
|
-
metadata?: {
|
|
41
|
-
[k: string]: any;
|
|
42
|
-
} | undefined;
|
|
43
|
-
};
|
|
44
|
-
export declare const InvokeAgentPublicMessagePartAgentsKind: {
|
|
45
|
-
readonly File: "file";
|
|
46
|
-
};
|
|
47
|
-
export type InvokeAgentPublicMessagePartAgentsKind = ClosedEnum<typeof InvokeAgentPublicMessagePartAgentsKind>;
|
|
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 FileFileInURIFormat = {
|
|
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 FileBinaryFormat = {
|
|
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 InvokeAgentPublicMessagePartFile = FileBinaryFormat | FileFileInURIFormat;
|
|
83
|
-
/**
|
|
84
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
85
|
-
*/
|
|
86
|
-
export type PublicMessagePartFilePart = {
|
|
87
|
-
kind: InvokeAgentPublicMessagePartAgentsKind;
|
|
88
|
-
file: FileBinaryFormat | FileFileInURIFormat;
|
|
89
|
-
metadata?: {
|
|
90
|
-
[k: string]: any;
|
|
91
|
-
} | undefined;
|
|
92
|
-
};
|
|
93
|
-
export declare const InvokeAgentPublicMessagePartKind: {
|
|
94
|
-
readonly Text: "text";
|
|
95
|
-
};
|
|
96
|
-
export type InvokeAgentPublicMessagePartKind = ClosedEnum<typeof InvokeAgentPublicMessagePartKind>;
|
|
97
|
-
/**
|
|
98
|
-
* Text content part. Use this to send text messages to the agent.
|
|
99
|
-
*/
|
|
100
|
-
export type PublicMessagePartTextPart = {
|
|
101
|
-
kind: InvokeAgentPublicMessagePartKind;
|
|
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 InvokeAgentPublicMessagePart =
|
|
33
|
+
export type InvokeAgentPublicMessagePart = 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 InvokeAgentA2AMessage = {
|
|
|
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.
|
|
@@ -219,13 +145,13 @@ export type InvokeAgentRequest = {
|
|
|
219
145
|
/**
|
|
220
146
|
* A2A entity type identifier
|
|
221
147
|
*/
|
|
222
|
-
export declare const
|
|
148
|
+
export declare const Kind: {
|
|
223
149
|
readonly Task: "task";
|
|
224
150
|
};
|
|
225
151
|
/**
|
|
226
152
|
* A2A entity type identifier
|
|
227
153
|
*/
|
|
228
|
-
export type
|
|
154
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
229
155
|
/**
|
|
230
156
|
* Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
|
|
231
157
|
*/
|
|
@@ -243,10 +169,10 @@ export declare const TaskState: {
|
|
|
243
169
|
* Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
|
|
244
170
|
*/
|
|
245
171
|
export type TaskState = ClosedEnum<typeof TaskState>;
|
|
246
|
-
export declare const
|
|
172
|
+
export declare const InvokeAgentKind: {
|
|
247
173
|
readonly Message: "message";
|
|
248
174
|
};
|
|
249
|
-
export type
|
|
175
|
+
export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
|
|
250
176
|
/**
|
|
251
177
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
252
178
|
*/
|
|
@@ -260,127 +186,38 @@ export declare const ExtendedMessageRole: {
|
|
|
260
186
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
261
187
|
*/
|
|
262
188
|
export type ExtendedMessageRole = ClosedEnum<typeof ExtendedMessageRole>;
|
|
263
|
-
export
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
metadata?: {
|
|
275
|
-
[k: string]: any;
|
|
276
|
-
} | undefined;
|
|
277
|
-
};
|
|
278
|
-
export declare const InvokeAgentPartsAgentsResponseKind: {
|
|
279
|
-
readonly ToolCall: "tool_call";
|
|
280
|
-
};
|
|
281
|
-
export type InvokeAgentPartsAgentsResponseKind = ClosedEnum<typeof InvokeAgentPartsAgentsResponseKind>;
|
|
282
|
-
/**
|
|
283
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
284
|
-
*/
|
|
285
|
-
export type ToolCallPart = {
|
|
286
|
-
kind: InvokeAgentPartsAgentsResponseKind;
|
|
287
|
-
toolName: string;
|
|
288
|
-
toolCallId: string;
|
|
289
|
-
arguments: {
|
|
290
|
-
[k: string]: any;
|
|
291
|
-
};
|
|
292
|
-
metadata?: {
|
|
293
|
-
[k: string]: any;
|
|
294
|
-
} | undefined;
|
|
295
|
-
};
|
|
296
|
-
export declare const InvokeAgentPartsAgentsKind: {
|
|
297
|
-
readonly File: "file";
|
|
298
|
-
};
|
|
299
|
-
export type InvokeAgentPartsAgentsKind = ClosedEnum<typeof InvokeAgentPartsAgentsKind>;
|
|
300
|
-
/**
|
|
301
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
302
|
-
*/
|
|
303
|
-
export type InvokeAgentFileFileInURIFormat = {
|
|
304
|
-
/**
|
|
305
|
-
* URL for the File content
|
|
306
|
-
*/
|
|
307
|
-
uri: string;
|
|
308
|
-
/**
|
|
309
|
-
* Optional mimeType for the file
|
|
310
|
-
*/
|
|
311
|
-
mimeType?: string | undefined;
|
|
312
|
-
/**
|
|
313
|
-
* Optional name for the file
|
|
314
|
-
*/
|
|
315
|
-
name?: string | undefined;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
319
|
-
*/
|
|
320
|
-
export type InvokeAgentFileBinaryFormat = {
|
|
321
|
-
/**
|
|
322
|
-
* base64 encoded content of the file
|
|
323
|
-
*/
|
|
324
|
-
bytes: string;
|
|
325
|
-
/**
|
|
326
|
-
* Optional mimeType for the file
|
|
327
|
-
*/
|
|
328
|
-
mimeType?: string | undefined;
|
|
329
|
-
/**
|
|
330
|
-
* Optional name for the file
|
|
331
|
-
*/
|
|
332
|
-
name?: string | undefined;
|
|
333
|
-
};
|
|
334
|
-
export type PartsFile = InvokeAgentFileBinaryFormat | InvokeAgentFileFileInURIFormat;
|
|
335
|
-
/**
|
|
336
|
-
* 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.
|
|
337
|
-
*/
|
|
338
|
-
export type PartsFilePart = {
|
|
339
|
-
kind: InvokeAgentPartsAgentsKind;
|
|
340
|
-
file: InvokeAgentFileBinaryFormat | InvokeAgentFileFileInURIFormat;
|
|
341
|
-
metadata?: {
|
|
342
|
-
[k: string]: any;
|
|
343
|
-
} | undefined;
|
|
344
|
-
};
|
|
345
|
-
export declare const InvokeAgentPartsKind: {
|
|
346
|
-
readonly Data: "data";
|
|
347
|
-
};
|
|
348
|
-
export type InvokeAgentPartsKind = ClosedEnum<typeof InvokeAgentPartsKind>;
|
|
349
|
-
/**
|
|
350
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
351
|
-
*/
|
|
352
|
-
export type DataPart = {
|
|
353
|
-
kind: InvokeAgentPartsKind;
|
|
354
|
-
data: {
|
|
355
|
-
[k: string]: any;
|
|
356
|
-
};
|
|
357
|
-
metadata?: {
|
|
358
|
-
[k: string]: any;
|
|
359
|
-
} | undefined;
|
|
360
|
-
};
|
|
361
|
-
export declare const PartsKind: {
|
|
362
|
-
readonly Text: "text";
|
|
363
|
-
};
|
|
364
|
-
export type PartsKind = ClosedEnum<typeof PartsKind>;
|
|
365
|
-
/**
|
|
366
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
367
|
-
*/
|
|
368
|
-
export type PartsTextPart = {
|
|
369
|
-
kind: PartsKind;
|
|
370
|
-
text: string;
|
|
371
|
-
};
|
|
372
|
-
export type Parts = ToolCallPart | PartsTextPart | DataPart | PartsFilePart | PartsToolResultPart;
|
|
189
|
+
export type InvokeAgentParts = (components.ToolCallPart & {
|
|
190
|
+
kind: "tool_call";
|
|
191
|
+
}) | (components.TextPart & {
|
|
192
|
+
kind: "text";
|
|
193
|
+
}) | (components.DataPart & {
|
|
194
|
+
kind: "data";
|
|
195
|
+
}) | (components.FilePart & {
|
|
196
|
+
kind: "file";
|
|
197
|
+
}) | (components.ToolResultPart & {
|
|
198
|
+
kind: "tool_result";
|
|
199
|
+
});
|
|
373
200
|
/**
|
|
374
201
|
* Optional A2A message providing additional context about the current status
|
|
375
202
|
*/
|
|
376
203
|
export type TaskStatusMessage = {
|
|
377
|
-
kind:
|
|
204
|
+
kind: InvokeAgentKind;
|
|
378
205
|
messageId: string;
|
|
379
206
|
/**
|
|
380
207
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
381
208
|
*/
|
|
382
209
|
role: ExtendedMessageRole;
|
|
383
|
-
parts: Array<ToolCallPart
|
|
210
|
+
parts: Array<(components.ToolCallPart & {
|
|
211
|
+
kind: "tool_call";
|
|
212
|
+
}) | (components.TextPart & {
|
|
213
|
+
kind: "text";
|
|
214
|
+
}) | (components.DataPart & {
|
|
215
|
+
kind: "data";
|
|
216
|
+
}) | (components.FilePart & {
|
|
217
|
+
kind: "file";
|
|
218
|
+
}) | (components.ToolResultPart & {
|
|
219
|
+
kind: "tool_result";
|
|
220
|
+
})>;
|
|
384
221
|
};
|
|
385
222
|
/**
|
|
386
223
|
* Current task status information
|
|
@@ -414,7 +251,7 @@ export type InvokeAgentA2ATaskResponse = {
|
|
|
414
251
|
/**
|
|
415
252
|
* A2A entity type identifier
|
|
416
253
|
*/
|
|
417
|
-
kind:
|
|
254
|
+
kind: Kind;
|
|
418
255
|
/**
|
|
419
256
|
* Current task status information
|
|
420
257
|
*/
|
|
@@ -443,93 +280,9 @@ export declare const InvokeAgentRole$outboundSchema: z.ZodType<InvokeAgentRole$O
|
|
|
443
280
|
export declare function invokeAgentRoleToJSON(invokeAgentRole: InvokeAgentRole): string;
|
|
444
281
|
export declare function invokeAgentRoleFromJSON(jsonString: string): SafeParseResult<InvokeAgentRole, SDKValidationError>;
|
|
445
282
|
/** @internal */
|
|
446
|
-
export declare const InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind>;
|
|
447
|
-
/** @internal */
|
|
448
|
-
export declare const InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind>;
|
|
449
|
-
/** @internal */
|
|
450
|
-
export declare const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
451
|
-
/** @internal */
|
|
452
|
-
export type PublicMessagePartToolResultPart$Outbound = {
|
|
453
|
-
kind: string;
|
|
454
|
-
tool_call_id: string;
|
|
455
|
-
result?: any | undefined;
|
|
456
|
-
metadata?: {
|
|
457
|
-
[k: string]: any;
|
|
458
|
-
} | undefined;
|
|
459
|
-
};
|
|
460
|
-
/** @internal */
|
|
461
|
-
export declare const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
|
|
462
|
-
export declare function publicMessagePartToolResultPartToJSON(publicMessagePartToolResultPart: PublicMessagePartToolResultPart): string;
|
|
463
|
-
export declare function publicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError>;
|
|
464
|
-
/** @internal */
|
|
465
|
-
export declare const InvokeAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind>;
|
|
466
|
-
/** @internal */
|
|
467
|
-
export declare const InvokeAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind>;
|
|
468
|
-
/** @internal */
|
|
469
|
-
export declare const FileFileInURIFormat$inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
470
|
-
/** @internal */
|
|
471
|
-
export type FileFileInURIFormat$Outbound = {
|
|
472
|
-
uri: string;
|
|
473
|
-
mimeType?: string | undefined;
|
|
474
|
-
name?: string | undefined;
|
|
475
|
-
};
|
|
476
|
-
/** @internal */
|
|
477
|
-
export declare const FileFileInURIFormat$outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
|
|
478
|
-
export declare function fileFileInURIFormatToJSON(fileFileInURIFormat: FileFileInURIFormat): string;
|
|
479
|
-
export declare function fileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileFileInURIFormat, SDKValidationError>;
|
|
480
|
-
/** @internal */
|
|
481
|
-
export declare const FileBinaryFormat$inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
482
|
-
/** @internal */
|
|
483
|
-
export type FileBinaryFormat$Outbound = {
|
|
484
|
-
bytes: string;
|
|
485
|
-
mimeType?: string | undefined;
|
|
486
|
-
name?: string | undefined;
|
|
487
|
-
};
|
|
488
|
-
/** @internal */
|
|
489
|
-
export declare const FileBinaryFormat$outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
|
|
490
|
-
export declare function fileBinaryFormatToJSON(fileBinaryFormat: FileBinaryFormat): string;
|
|
491
|
-
export declare function fileBinaryFormatFromJSON(jsonString: string): SafeParseResult<FileBinaryFormat, SDKValidationError>;
|
|
492
|
-
/** @internal */
|
|
493
|
-
export declare const InvokeAgentPublicMessagePartFile$inboundSchema: z.ZodType<InvokeAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
|
|
494
|
-
/** @internal */
|
|
495
|
-
export type InvokeAgentPublicMessagePartFile$Outbound = FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
496
|
-
/** @internal */
|
|
497
|
-
export declare const InvokeAgentPublicMessagePartFile$outboundSchema: z.ZodType<InvokeAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, InvokeAgentPublicMessagePartFile>;
|
|
498
|
-
export declare function invokeAgentPublicMessagePartFileToJSON(invokeAgentPublicMessagePartFile: InvokeAgentPublicMessagePartFile): string;
|
|
499
|
-
export declare function invokeAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<InvokeAgentPublicMessagePartFile, SDKValidationError>;
|
|
500
|
-
/** @internal */
|
|
501
|
-
export declare const PublicMessagePartFilePart$inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
502
|
-
/** @internal */
|
|
503
|
-
export type PublicMessagePartFilePart$Outbound = {
|
|
504
|
-
kind: string;
|
|
505
|
-
file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
506
|
-
metadata?: {
|
|
507
|
-
[k: string]: any;
|
|
508
|
-
} | undefined;
|
|
509
|
-
};
|
|
510
|
-
/** @internal */
|
|
511
|
-
export declare const PublicMessagePartFilePart$outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
|
|
512
|
-
export declare function publicMessagePartFilePartToJSON(publicMessagePartFilePart: PublicMessagePartFilePart): string;
|
|
513
|
-
export declare function publicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFilePart, SDKValidationError>;
|
|
514
|
-
/** @internal */
|
|
515
|
-
export declare const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartKind>;
|
|
516
|
-
/** @internal */
|
|
517
|
-
export declare const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartKind>;
|
|
518
|
-
/** @internal */
|
|
519
|
-
export declare const PublicMessagePartTextPart$inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
520
|
-
/** @internal */
|
|
521
|
-
export type PublicMessagePartTextPart$Outbound = {
|
|
522
|
-
kind: string;
|
|
523
|
-
text: string;
|
|
524
|
-
};
|
|
525
|
-
/** @internal */
|
|
526
|
-
export declare const PublicMessagePartTextPart$outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
|
|
527
|
-
export declare function publicMessagePartTextPartToJSON(publicMessagePartTextPart: PublicMessagePartTextPart): string;
|
|
528
|
-
export declare function publicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartTextPart, SDKValidationError>;
|
|
529
|
-
/** @internal */
|
|
530
283
|
export declare const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<InvokeAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
531
284
|
/** @internal */
|
|
532
|
-
export type InvokeAgentPublicMessagePart$Outbound =
|
|
285
|
+
export type InvokeAgentPublicMessagePart$Outbound = components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound;
|
|
533
286
|
/** @internal */
|
|
534
287
|
export declare const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<InvokeAgentPublicMessagePart$Outbound, z.ZodTypeDef, InvokeAgentPublicMessagePart>;
|
|
535
288
|
export declare function invokeAgentPublicMessagePartToJSON(invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart): string;
|
|
@@ -540,7 +293,7 @@ export declare const InvokeAgentA2AMessage$inboundSchema: z.ZodType<InvokeAgentA
|
|
|
540
293
|
export type InvokeAgentA2AMessage$Outbound = {
|
|
541
294
|
messageId?: string | undefined;
|
|
542
295
|
role: string | string;
|
|
543
|
-
parts: Array<
|
|
296
|
+
parts: Array<components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound>;
|
|
544
297
|
};
|
|
545
298
|
/** @internal */
|
|
546
299
|
export declare const InvokeAgentA2AMessage$outboundSchema: z.ZodType<InvokeAgentA2AMessage$Outbound, z.ZodTypeDef, InvokeAgentA2AMessage>;
|
|
@@ -616,155 +369,39 @@ export declare const InvokeAgentRequest$outboundSchema: z.ZodType<InvokeAgentReq
|
|
|
616
369
|
export declare function invokeAgentRequestToJSON(invokeAgentRequest: InvokeAgentRequest): string;
|
|
617
370
|
export declare function invokeAgentRequestFromJSON(jsonString: string): SafeParseResult<InvokeAgentRequest, SDKValidationError>;
|
|
618
371
|
/** @internal */
|
|
619
|
-
export declare const
|
|
372
|
+
export declare const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind>;
|
|
620
373
|
/** @internal */
|
|
621
|
-
export declare const
|
|
374
|
+
export declare const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind>;
|
|
622
375
|
/** @internal */
|
|
623
376
|
export declare const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState>;
|
|
624
377
|
/** @internal */
|
|
625
378
|
export declare const TaskState$outboundSchema: z.ZodNativeEnum<typeof TaskState>;
|
|
626
379
|
/** @internal */
|
|
627
|
-
export declare const
|
|
380
|
+
export declare const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentKind>;
|
|
628
381
|
/** @internal */
|
|
629
|
-
export declare const
|
|
382
|
+
export declare const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentKind>;
|
|
630
383
|
/** @internal */
|
|
631
384
|
export declare const ExtendedMessageRole$inboundSchema: z.ZodNativeEnum<typeof ExtendedMessageRole>;
|
|
632
385
|
/** @internal */
|
|
633
386
|
export declare const ExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof ExtendedMessageRole>;
|
|
634
387
|
/** @internal */
|
|
635
|
-
export declare const
|
|
636
|
-
/** @internal */
|
|
637
|
-
export declare const InvokeAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
|
|
638
|
-
/** @internal */
|
|
639
|
-
export declare const PartsToolResultPart$inboundSchema: z.ZodType<PartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
640
|
-
/** @internal */
|
|
641
|
-
export type PartsToolResultPart$Outbound = {
|
|
642
|
-
kind: string;
|
|
643
|
-
tool_call_id: string;
|
|
644
|
-
result?: any | undefined;
|
|
645
|
-
metadata?: {
|
|
646
|
-
[k: string]: any;
|
|
647
|
-
} | undefined;
|
|
648
|
-
};
|
|
649
|
-
/** @internal */
|
|
650
|
-
export declare const PartsToolResultPart$outboundSchema: z.ZodType<PartsToolResultPart$Outbound, z.ZodTypeDef, PartsToolResultPart>;
|
|
651
|
-
export declare function partsToolResultPartToJSON(partsToolResultPart: PartsToolResultPart): string;
|
|
652
|
-
export declare function partsToolResultPartFromJSON(jsonString: string): SafeParseResult<PartsToolResultPart, SDKValidationError>;
|
|
653
|
-
/** @internal */
|
|
654
|
-
export declare const InvokeAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
|
|
655
|
-
/** @internal */
|
|
656
|
-
export declare const InvokeAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
|
|
657
|
-
/** @internal */
|
|
658
|
-
export declare const ToolCallPart$inboundSchema: z.ZodType<ToolCallPart, z.ZodTypeDef, unknown>;
|
|
659
|
-
/** @internal */
|
|
660
|
-
export type ToolCallPart$Outbound = {
|
|
661
|
-
kind: string;
|
|
662
|
-
tool_name: string;
|
|
663
|
-
tool_call_id: string;
|
|
664
|
-
arguments: {
|
|
665
|
-
[k: string]: any;
|
|
666
|
-
};
|
|
667
|
-
metadata?: {
|
|
668
|
-
[k: string]: any;
|
|
669
|
-
} | undefined;
|
|
670
|
-
};
|
|
671
|
-
/** @internal */
|
|
672
|
-
export declare const ToolCallPart$outboundSchema: z.ZodType<ToolCallPart$Outbound, z.ZodTypeDef, ToolCallPart>;
|
|
673
|
-
export declare function toolCallPartToJSON(toolCallPart: ToolCallPart): string;
|
|
674
|
-
export declare function toolCallPartFromJSON(jsonString: string): SafeParseResult<ToolCallPart, SDKValidationError>;
|
|
675
|
-
/** @internal */
|
|
676
|
-
export declare const InvokeAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
|
|
677
|
-
/** @internal */
|
|
678
|
-
export declare const InvokeAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
|
|
679
|
-
/** @internal */
|
|
680
|
-
export declare const InvokeAgentFileFileInURIFormat$inboundSchema: z.ZodType<InvokeAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
681
|
-
/** @internal */
|
|
682
|
-
export type InvokeAgentFileFileInURIFormat$Outbound = {
|
|
683
|
-
uri: string;
|
|
684
|
-
mimeType?: string | undefined;
|
|
685
|
-
name?: string | undefined;
|
|
686
|
-
};
|
|
687
|
-
/** @internal */
|
|
688
|
-
export declare const InvokeAgentFileFileInURIFormat$outboundSchema: z.ZodType<InvokeAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, InvokeAgentFileFileInURIFormat>;
|
|
689
|
-
export declare function invokeAgentFileFileInURIFormatToJSON(invokeAgentFileFileInURIFormat: InvokeAgentFileFileInURIFormat): string;
|
|
690
|
-
export declare function invokeAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<InvokeAgentFileFileInURIFormat, SDKValidationError>;
|
|
691
|
-
/** @internal */
|
|
692
|
-
export declare const InvokeAgentFileBinaryFormat$inboundSchema: z.ZodType<InvokeAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
693
|
-
/** @internal */
|
|
694
|
-
export type InvokeAgentFileBinaryFormat$Outbound = {
|
|
695
|
-
bytes: string;
|
|
696
|
-
mimeType?: string | undefined;
|
|
697
|
-
name?: string | undefined;
|
|
698
|
-
};
|
|
699
|
-
/** @internal */
|
|
700
|
-
export declare const InvokeAgentFileBinaryFormat$outboundSchema: z.ZodType<InvokeAgentFileBinaryFormat$Outbound, z.ZodTypeDef, InvokeAgentFileBinaryFormat>;
|
|
701
|
-
export declare function invokeAgentFileBinaryFormatToJSON(invokeAgentFileBinaryFormat: InvokeAgentFileBinaryFormat): string;
|
|
702
|
-
export declare function invokeAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<InvokeAgentFileBinaryFormat, SDKValidationError>;
|
|
703
|
-
/** @internal */
|
|
704
|
-
export declare const PartsFile$inboundSchema: z.ZodType<PartsFile, z.ZodTypeDef, unknown>;
|
|
705
|
-
/** @internal */
|
|
706
|
-
export type PartsFile$Outbound = InvokeAgentFileBinaryFormat$Outbound | InvokeAgentFileFileInURIFormat$Outbound;
|
|
707
|
-
/** @internal */
|
|
708
|
-
export declare const PartsFile$outboundSchema: z.ZodType<PartsFile$Outbound, z.ZodTypeDef, PartsFile>;
|
|
709
|
-
export declare function partsFileToJSON(partsFile: PartsFile): string;
|
|
710
|
-
export declare function partsFileFromJSON(jsonString: string): SafeParseResult<PartsFile, SDKValidationError>;
|
|
711
|
-
/** @internal */
|
|
712
|
-
export declare const PartsFilePart$inboundSchema: z.ZodType<PartsFilePart, z.ZodTypeDef, unknown>;
|
|
713
|
-
/** @internal */
|
|
714
|
-
export type PartsFilePart$Outbound = {
|
|
715
|
-
kind: string;
|
|
716
|
-
file: InvokeAgentFileBinaryFormat$Outbound | InvokeAgentFileFileInURIFormat$Outbound;
|
|
717
|
-
metadata?: {
|
|
718
|
-
[k: string]: any;
|
|
719
|
-
} | undefined;
|
|
720
|
-
};
|
|
721
|
-
/** @internal */
|
|
722
|
-
export declare const PartsFilePart$outboundSchema: z.ZodType<PartsFilePart$Outbound, z.ZodTypeDef, PartsFilePart>;
|
|
723
|
-
export declare function partsFilePartToJSON(partsFilePart: PartsFilePart): string;
|
|
724
|
-
export declare function partsFilePartFromJSON(jsonString: string): SafeParseResult<PartsFilePart, SDKValidationError>;
|
|
725
|
-
/** @internal */
|
|
726
|
-
export declare const InvokeAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
|
|
727
|
-
/** @internal */
|
|
728
|
-
export declare const InvokeAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
|
|
729
|
-
/** @internal */
|
|
730
|
-
export declare const DataPart$inboundSchema: z.ZodType<DataPart, z.ZodTypeDef, unknown>;
|
|
731
|
-
/** @internal */
|
|
732
|
-
export type DataPart$Outbound = {
|
|
733
|
-
kind: string;
|
|
734
|
-
data: {
|
|
735
|
-
[k: string]: any;
|
|
736
|
-
};
|
|
737
|
-
metadata?: {
|
|
738
|
-
[k: string]: any;
|
|
739
|
-
} | undefined;
|
|
740
|
-
};
|
|
741
|
-
/** @internal */
|
|
742
|
-
export declare const DataPart$outboundSchema: z.ZodType<DataPart$Outbound, z.ZodTypeDef, DataPart>;
|
|
743
|
-
export declare function dataPartToJSON(dataPart: DataPart): string;
|
|
744
|
-
export declare function dataPartFromJSON(jsonString: string): SafeParseResult<DataPart, SDKValidationError>;
|
|
745
|
-
/** @internal */
|
|
746
|
-
export declare const PartsKind$inboundSchema: z.ZodNativeEnum<typeof PartsKind>;
|
|
747
|
-
/** @internal */
|
|
748
|
-
export declare const PartsKind$outboundSchema: z.ZodNativeEnum<typeof PartsKind>;
|
|
749
|
-
/** @internal */
|
|
750
|
-
export declare const PartsTextPart$inboundSchema: z.ZodType<PartsTextPart, z.ZodTypeDef, unknown>;
|
|
751
|
-
/** @internal */
|
|
752
|
-
export type PartsTextPart$Outbound = {
|
|
753
|
-
kind: string;
|
|
754
|
-
text: string;
|
|
755
|
-
};
|
|
756
|
-
/** @internal */
|
|
757
|
-
export declare const PartsTextPart$outboundSchema: z.ZodType<PartsTextPart$Outbound, z.ZodTypeDef, PartsTextPart>;
|
|
758
|
-
export declare function partsTextPartToJSON(partsTextPart: PartsTextPart): string;
|
|
759
|
-
export declare function partsTextPartFromJSON(jsonString: string): SafeParseResult<PartsTextPart, SDKValidationError>;
|
|
760
|
-
/** @internal */
|
|
761
|
-
export declare const Parts$inboundSchema: z.ZodType<Parts, z.ZodTypeDef, unknown>;
|
|
388
|
+
export declare const InvokeAgentParts$inboundSchema: z.ZodType<InvokeAgentParts, z.ZodTypeDef, unknown>;
|
|
762
389
|
/** @internal */
|
|
763
|
-
export type
|
|
390
|
+
export type InvokeAgentParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
391
|
+
kind: "tool_call";
|
|
392
|
+
}) | (components.TextPart$Outbound & {
|
|
393
|
+
kind: "text";
|
|
394
|
+
}) | (components.DataPart$Outbound & {
|
|
395
|
+
kind: "data";
|
|
396
|
+
}) | (components.FilePart$Outbound & {
|
|
397
|
+
kind: "file";
|
|
398
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
399
|
+
kind: "tool_result";
|
|
400
|
+
});
|
|
764
401
|
/** @internal */
|
|
765
|
-
export declare const
|
|
766
|
-
export declare function
|
|
767
|
-
export declare function
|
|
402
|
+
export declare const InvokeAgentParts$outboundSchema: z.ZodType<InvokeAgentParts$Outbound, z.ZodTypeDef, InvokeAgentParts>;
|
|
403
|
+
export declare function invokeAgentPartsToJSON(invokeAgentParts: InvokeAgentParts): string;
|
|
404
|
+
export declare function invokeAgentPartsFromJSON(jsonString: string): SafeParseResult<InvokeAgentParts, SDKValidationError>;
|
|
768
405
|
/** @internal */
|
|
769
406
|
export declare const TaskStatusMessage$inboundSchema: z.ZodType<TaskStatusMessage, z.ZodTypeDef, unknown>;
|
|
770
407
|
/** @internal */
|
|
@@ -772,7 +409,17 @@ export type TaskStatusMessage$Outbound = {
|
|
|
772
409
|
kind: string;
|
|
773
410
|
messageId: string;
|
|
774
411
|
role: string;
|
|
775
|
-
parts: Array<ToolCallPart$Outbound
|
|
412
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
413
|
+
kind: "tool_call";
|
|
414
|
+
}) | (components.TextPart$Outbound & {
|
|
415
|
+
kind: "text";
|
|
416
|
+
}) | (components.DataPart$Outbound & {
|
|
417
|
+
kind: "data";
|
|
418
|
+
}) | (components.FilePart$Outbound & {
|
|
419
|
+
kind: "file";
|
|
420
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
421
|
+
kind: "tool_result";
|
|
422
|
+
})>;
|
|
776
423
|
};
|
|
777
424
|
/** @internal */
|
|
778
425
|
export declare const TaskStatusMessage$outboundSchema: z.ZodType<TaskStatusMessage$Outbound, z.ZodTypeDef, TaskStatusMessage>;
|