@orq-ai/node 4.0.0-rc.50 → 4.0.0-rc.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/bin/mcp-server.js +1125 -606
- package/bin/mcp-server.js.map +50 -51
- package/docs/sdks/agents/README.md +80 -80
- package/examples/package-lock.json +1 -1
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +1 -1
- package/funcs/agentsListTasks.d.ts.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieveTask.d.ts +1 -1
- package/funcs/agentsRetrieveTask.d.ts.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/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.js +28 -28
- package/models/operations/createtool.d.ts +25 -25
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +41 -41
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +6 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -9
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagenttask.d.ts +682 -108
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +635 -155
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/invokeagent.d.ts +143 -123
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -146
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +680 -118
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +612 -144
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +6 -6
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +9 -9
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +6 -6
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +12 -11
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +112 -98
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +120 -121
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +18 -12
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +13 -13
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -12
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -15
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +11 -8
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +13 -11
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +10 -10
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +4 -4
- package/src/funcs/agentsListTasks.ts +4 -4
- package/src/funcs/agentsRetrieveTask.ts +8 -8
- package/src/funcs/agentsRun.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/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 +28 -28
- package/src/models/operations/createtool.ts +76 -76
- package/src/models/operations/deploymentinvoke.ts +17 -24
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagenttask.ts +1873 -428
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/invokeagent.ts +319 -299
- package/src/models/operations/listagenttasks.ts +2029 -540
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +14 -14
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +15 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +264 -220
- package/src/models/operations/streamagent.ts +28 -22
- package/src/models/operations/streamrunagent.ts +24 -24
- package/src/models/operations/updateagent.ts +25 -18
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +20 -20
- package/models/errors/getagenttask.d.ts +0 -29
- package/models/errors/getagenttask.d.ts.map +0 -1
- package/models/errors/getagenttask.js +0 -74
- package/models/errors/getagenttask.js.map +0 -1
- package/src/models/errors/getagenttask.ts +0 -67
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InvokeAgentRequestBody$outboundSchema = exports.InvokeAgentRequestBody$inboundSchema = exports.Memory$outboundSchema = exports.Memory$inboundSchema = exports.InvokeAgentThread$outboundSchema = exports.InvokeAgentThread$inboundSchema = exports.Contact$outboundSchema = exports.Contact$inboundSchema = exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.InvokeAgentRequestBody$outboundSchema = exports.InvokeAgentRequestBody$inboundSchema = exports.Memory$outboundSchema = exports.Memory$inboundSchema = exports.InvokeAgentThread$outboundSchema = exports.InvokeAgentThread$inboundSchema = exports.Contact$outboundSchema = exports.Contact$inboundSchema = exports.A2AMessage$outboundSchema = exports.A2AMessage$inboundSchema = exports.PublicMessagePart$outboundSchema = exports.PublicMessagePart$inboundSchema = exports.TextPart$outboundSchema = exports.TextPart$inboundSchema = exports.Kind$outboundSchema = exports.Kind$inboundSchema = exports.FilePart$outboundSchema = exports.FilePart$inboundSchema = exports.PublicMessagePartFile$outboundSchema = exports.PublicMessagePartFile$inboundSchema = exports.BinaryFormat$outboundSchema = exports.BinaryFormat$inboundSchema = exports.FileInURIFormat$outboundSchema = exports.FileInURIFormat$inboundSchema = exports.PublicMessagePartKind$outboundSchema = exports.PublicMessagePartKind$inboundSchema = exports.ToolResultPart$outboundSchema = exports.ToolResultPart$inboundSchema = exports.InvokeAgentPublicMessagePartKind$outboundSchema = exports.InvokeAgentPublicMessagePartKind$inboundSchema = exports.InvokeAgentRole$outboundSchema = exports.InvokeAgentRole$inboundSchema = exports.RoleUserMessage$outboundSchema = exports.RoleUserMessage$inboundSchema = exports.RoleToolMessage$outboundSchema = exports.RoleToolMessage$inboundSchema = exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind = exports.InvokeAgentPartsKind = exports.InvokeAgentPartsAgentsKind = exports.InvokeAgentPartsAgentsResponseKind = exports.InvokeAgentPartsAgentsResponse200Kind = exports.InvokeAgentExtendedMessageRole = exports.InvokeAgentAgentsKind = exports.TaskState = exports.InvokeAgentKind = exports.Kind = exports.PublicMessagePartKind = exports.InvokeAgentPublicMessagePartKind = exports.RoleUserMessage = exports.RoleToolMessage = void 0;
|
|
40
|
+
exports.InvokeAgentA2ATaskResponse$outboundSchema = exports.InvokeAgentA2ATaskResponse$inboundSchema = exports.TaskStatus$outboundSchema = exports.TaskStatus$inboundSchema = exports.TaskStatusMessage$outboundSchema = exports.TaskStatusMessage$inboundSchema = exports.InvokeAgentParts$outboundSchema = exports.InvokeAgentParts$inboundSchema = exports.InvokeAgentPartsTextPart$outboundSchema = exports.InvokeAgentPartsTextPart$inboundSchema = exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema = exports.InvokeAgentPartsDataPart$outboundSchema = exports.InvokeAgentPartsDataPart$inboundSchema = exports.InvokeAgentPartsKind$outboundSchema = exports.InvokeAgentPartsKind$inboundSchema = exports.InvokeAgentPartsFilePart$outboundSchema = exports.InvokeAgentPartsFilePart$inboundSchema = exports.InvokeAgentPartsFile$outboundSchema = exports.InvokeAgentPartsFile$inboundSchema = exports.InvokeAgentFileBinaryFormat$outboundSchema = exports.InvokeAgentFileBinaryFormat$inboundSchema = exports.InvokeAgentFileFileInURIFormat$outboundSchema = exports.InvokeAgentFileFileInURIFormat$inboundSchema = exports.InvokeAgentPartsAgentsKind$outboundSchema = exports.InvokeAgentPartsAgentsKind$inboundSchema = exports.InvokeAgentPartsToolCallPart$outboundSchema = exports.InvokeAgentPartsToolCallPart$inboundSchema = exports.InvokeAgentPartsAgentsResponseKind$outboundSchema = exports.InvokeAgentPartsAgentsResponseKind$inboundSchema = exports.InvokeAgentPartsToolResultPart$outboundSchema = exports.InvokeAgentPartsToolResultPart$inboundSchema = exports.InvokeAgentPartsAgentsResponse200Kind$outboundSchema = exports.InvokeAgentPartsAgentsResponse200Kind$inboundSchema = exports.InvokeAgentExtendedMessageRole$outboundSchema = exports.InvokeAgentExtendedMessageRole$inboundSchema = exports.InvokeAgentAgentsKind$outboundSchema = exports.InvokeAgentAgentsKind$inboundSchema = exports.TaskState$outboundSchema = exports.TaskState$inboundSchema = exports.InvokeAgentKind$outboundSchema = exports.InvokeAgentKind$inboundSchema = exports.InvokeAgentRequest$outboundSchema = exports.InvokeAgentRequest$inboundSchema = void 0;
|
|
41
41
|
exports.invokeAgentRoleToJSON = invokeAgentRoleToJSON;
|
|
42
42
|
exports.invokeAgentRoleFromJSON = invokeAgentRoleFromJSON;
|
|
43
43
|
exports.toolResultPartToJSON = toolResultPartToJSON;
|
|
@@ -54,8 +54,8 @@ exports.textPartToJSON = textPartToJSON;
|
|
|
54
54
|
exports.textPartFromJSON = textPartFromJSON;
|
|
55
55
|
exports.publicMessagePartToJSON = publicMessagePartToJSON;
|
|
56
56
|
exports.publicMessagePartFromJSON = publicMessagePartFromJSON;
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
57
|
+
exports.a2AMessageToJSON = a2AMessageToJSON;
|
|
58
|
+
exports.a2AMessageFromJSON = a2AMessageFromJSON;
|
|
59
59
|
exports.contactToJSON = contactToJSON;
|
|
60
60
|
exports.contactFromJSON = contactFromJSON;
|
|
61
61
|
exports.invokeAgentThreadToJSON = invokeAgentThreadToJSON;
|
|
@@ -66,41 +66,41 @@ exports.invokeAgentRequestBodyToJSON = invokeAgentRequestBodyToJSON;
|
|
|
66
66
|
exports.invokeAgentRequestBodyFromJSON = invokeAgentRequestBodyFromJSON;
|
|
67
67
|
exports.invokeAgentRequestToJSON = invokeAgentRequestToJSON;
|
|
68
68
|
exports.invokeAgentRequestFromJSON = invokeAgentRequestFromJSON;
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
69
|
+
exports.invokeAgentPartsToolResultPartToJSON = invokeAgentPartsToolResultPartToJSON;
|
|
70
|
+
exports.invokeAgentPartsToolResultPartFromJSON = invokeAgentPartsToolResultPartFromJSON;
|
|
71
|
+
exports.invokeAgentPartsToolCallPartToJSON = invokeAgentPartsToolCallPartToJSON;
|
|
72
|
+
exports.invokeAgentPartsToolCallPartFromJSON = invokeAgentPartsToolCallPartFromJSON;
|
|
73
73
|
exports.invokeAgentFileFileInURIFormatToJSON = invokeAgentFileFileInURIFormatToJSON;
|
|
74
74
|
exports.invokeAgentFileFileInURIFormatFromJSON = invokeAgentFileFileInURIFormatFromJSON;
|
|
75
75
|
exports.invokeAgentFileBinaryFormatToJSON = invokeAgentFileBinaryFormatToJSON;
|
|
76
76
|
exports.invokeAgentFileBinaryFormatFromJSON = invokeAgentFileBinaryFormatFromJSON;
|
|
77
77
|
exports.invokeAgentPartsFileToJSON = invokeAgentPartsFileToJSON;
|
|
78
78
|
exports.invokeAgentPartsFileFromJSON = invokeAgentPartsFileFromJSON;
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
79
|
+
exports.invokeAgentPartsFilePartToJSON = invokeAgentPartsFilePartToJSON;
|
|
80
|
+
exports.invokeAgentPartsFilePartFromJSON = invokeAgentPartsFilePartFromJSON;
|
|
81
|
+
exports.invokeAgentPartsDataPartToJSON = invokeAgentPartsDataPartToJSON;
|
|
82
|
+
exports.invokeAgentPartsDataPartFromJSON = invokeAgentPartsDataPartFromJSON;
|
|
83
|
+
exports.invokeAgentPartsTextPartToJSON = invokeAgentPartsTextPartToJSON;
|
|
84
|
+
exports.invokeAgentPartsTextPartFromJSON = invokeAgentPartsTextPartFromJSON;
|
|
85
85
|
exports.invokeAgentPartsToJSON = invokeAgentPartsToJSON;
|
|
86
86
|
exports.invokeAgentPartsFromJSON = invokeAgentPartsFromJSON;
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
87
|
+
exports.taskStatusMessageToJSON = taskStatusMessageToJSON;
|
|
88
|
+
exports.taskStatusMessageFromJSON = taskStatusMessageFromJSON;
|
|
89
|
+
exports.taskStatusToJSON = taskStatusToJSON;
|
|
90
|
+
exports.taskStatusFromJSON = taskStatusFromJSON;
|
|
91
|
+
exports.invokeAgentA2ATaskResponseToJSON = invokeAgentA2ATaskResponseToJSON;
|
|
92
|
+
exports.invokeAgentA2ATaskResponseFromJSON = invokeAgentA2ATaskResponseFromJSON;
|
|
93
93
|
const z = __importStar(require("zod/v3"));
|
|
94
94
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
95
95
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Message containing tool execution results
|
|
98
98
|
*/
|
|
99
99
|
exports.RoleToolMessage = {
|
|
100
100
|
Tool: "tool",
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Message from the end user
|
|
104
104
|
*/
|
|
105
105
|
exports.RoleUserMessage = {
|
|
106
106
|
User: "user",
|
|
@@ -115,50 +115,49 @@ exports.Kind = {
|
|
|
115
115
|
Text: "text",
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
* A2A entity type
|
|
118
|
+
* A2A entity type identifier
|
|
119
119
|
*/
|
|
120
120
|
exports.InvokeAgentKind = {
|
|
121
121
|
Task: "task",
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
124
|
-
* Current task
|
|
124
|
+
* 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.
|
|
125
125
|
*/
|
|
126
|
-
exports.
|
|
126
|
+
exports.TaskState = {
|
|
127
127
|
Submitted: "submitted",
|
|
128
128
|
Working: "working",
|
|
129
129
|
InputRequired: "input-required",
|
|
130
|
+
AuthRequired: "auth-required",
|
|
130
131
|
Completed: "completed",
|
|
131
132
|
Failed: "failed",
|
|
132
133
|
Canceled: "canceled",
|
|
133
134
|
Rejected: "rejected",
|
|
134
|
-
AuthRequired: "auth-required",
|
|
135
|
-
Unknown: "unknown",
|
|
136
135
|
};
|
|
137
136
|
exports.InvokeAgentAgentsKind = {
|
|
138
137
|
Message: "message",
|
|
139
138
|
};
|
|
140
139
|
/**
|
|
141
|
-
*
|
|
140
|
+
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
142
141
|
*/
|
|
143
|
-
exports.
|
|
142
|
+
exports.InvokeAgentExtendedMessageRole = {
|
|
144
143
|
User: "user",
|
|
145
144
|
Agent: "agent",
|
|
146
145
|
Tool: "tool",
|
|
147
146
|
System: "system",
|
|
148
147
|
};
|
|
149
|
-
exports.
|
|
148
|
+
exports.InvokeAgentPartsAgentsResponse200Kind = {
|
|
150
149
|
ToolResult: "tool_result",
|
|
151
150
|
};
|
|
152
|
-
exports.
|
|
151
|
+
exports.InvokeAgentPartsAgentsResponseKind = {
|
|
153
152
|
ToolCall: "tool_call",
|
|
154
153
|
};
|
|
155
|
-
exports.
|
|
154
|
+
exports.InvokeAgentPartsAgentsKind = {
|
|
156
155
|
File: "file",
|
|
157
156
|
};
|
|
158
|
-
exports.
|
|
157
|
+
exports.InvokeAgentPartsKind = {
|
|
159
158
|
Data: "data",
|
|
160
159
|
};
|
|
161
|
-
exports.
|
|
160
|
+
exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind = {
|
|
162
161
|
Text: "text",
|
|
163
162
|
};
|
|
164
163
|
/** @internal */
|
|
@@ -330,12 +329,9 @@ function publicMessagePartFromJSON(jsonString) {
|
|
|
330
329
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePart' from JSON`);
|
|
331
330
|
}
|
|
332
331
|
/** @internal */
|
|
333
|
-
exports.
|
|
332
|
+
exports.A2AMessage$inboundSchema = z.object({
|
|
334
333
|
messageId: z.string().optional(),
|
|
335
|
-
role: z.union([
|
|
336
|
-
exports.RoleUserMessage$inboundSchema,
|
|
337
|
-
exports.RoleToolMessage$inboundSchema,
|
|
338
|
-
]),
|
|
334
|
+
role: z.union([exports.RoleUserMessage$inboundSchema, exports.RoleToolMessage$inboundSchema]),
|
|
339
335
|
parts: z.array(z.union([
|
|
340
336
|
z.lazy(() => exports.TextPart$inboundSchema),
|
|
341
337
|
z.lazy(() => exports.FilePart$inboundSchema),
|
|
@@ -343,7 +339,7 @@ exports.Message$inboundSchema = z.object({
|
|
|
343
339
|
])),
|
|
344
340
|
});
|
|
345
341
|
/** @internal */
|
|
346
|
-
exports.
|
|
342
|
+
exports.A2AMessage$outboundSchema = z.object({
|
|
347
343
|
messageId: z.string().optional(),
|
|
348
344
|
role: z.union([
|
|
349
345
|
exports.RoleUserMessage$outboundSchema,
|
|
@@ -355,11 +351,11 @@ exports.Message$outboundSchema = z.object({
|
|
|
355
351
|
z.lazy(() => exports.ToolResultPart$outboundSchema),
|
|
356
352
|
])),
|
|
357
353
|
});
|
|
358
|
-
function
|
|
359
|
-
return JSON.stringify(exports.
|
|
354
|
+
function a2AMessageToJSON(a2AMessage) {
|
|
355
|
+
return JSON.stringify(exports.A2AMessage$outboundSchema.parse(a2AMessage));
|
|
360
356
|
}
|
|
361
|
-
function
|
|
362
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
357
|
+
function a2AMessageFromJSON(jsonString) {
|
|
358
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.A2AMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'A2AMessage' from JSON`);
|
|
363
359
|
}
|
|
364
360
|
/** @internal */
|
|
365
361
|
exports.Contact$inboundSchema = z.object({
|
|
@@ -437,7 +433,7 @@ function memoryFromJSON(jsonString) {
|
|
|
437
433
|
/** @internal */
|
|
438
434
|
exports.InvokeAgentRequestBody$inboundSchema = z.object({
|
|
439
435
|
task_id: z.string().optional(),
|
|
440
|
-
message: z.lazy(() => exports.
|
|
436
|
+
message: z.lazy(() => exports.A2AMessage$inboundSchema),
|
|
441
437
|
variables: z.record(z.any()).optional(),
|
|
442
438
|
contact: z.lazy(() => exports.Contact$inboundSchema).optional(),
|
|
443
439
|
thread: z.lazy(() => exports.InvokeAgentThread$inboundSchema).optional(),
|
|
@@ -451,7 +447,7 @@ exports.InvokeAgentRequestBody$inboundSchema = z.object({
|
|
|
451
447
|
/** @internal */
|
|
452
448
|
exports.InvokeAgentRequestBody$outboundSchema = z.object({
|
|
453
449
|
taskId: z.string().optional(),
|
|
454
|
-
message: z.lazy(() => exports.
|
|
450
|
+
message: z.lazy(() => exports.A2AMessage$outboundSchema),
|
|
455
451
|
variables: z.record(z.any()).optional(),
|
|
456
452
|
contact: z.lazy(() => exports.Contact$outboundSchema).optional(),
|
|
457
453
|
thread: z.lazy(() => exports.InvokeAgentThread$outboundSchema).optional(),
|
|
@@ -497,24 +493,25 @@ exports.InvokeAgentKind$inboundSchema = z.nativeEnum(exports.InvokeAgentKind);
|
|
|
497
493
|
/** @internal */
|
|
498
494
|
exports.InvokeAgentKind$outboundSchema = exports.InvokeAgentKind$inboundSchema;
|
|
499
495
|
/** @internal */
|
|
500
|
-
exports.
|
|
496
|
+
exports.TaskState$inboundSchema = z
|
|
497
|
+
.nativeEnum(exports.TaskState);
|
|
501
498
|
/** @internal */
|
|
502
|
-
exports.
|
|
499
|
+
exports.TaskState$outboundSchema = exports.TaskState$inboundSchema;
|
|
503
500
|
/** @internal */
|
|
504
501
|
exports.InvokeAgentAgentsKind$inboundSchema = z.nativeEnum(exports.InvokeAgentAgentsKind);
|
|
505
502
|
/** @internal */
|
|
506
503
|
exports.InvokeAgentAgentsKind$outboundSchema = exports.InvokeAgentAgentsKind$inboundSchema;
|
|
507
504
|
/** @internal */
|
|
508
|
-
exports.
|
|
505
|
+
exports.InvokeAgentExtendedMessageRole$inboundSchema = z.nativeEnum(exports.InvokeAgentExtendedMessageRole);
|
|
509
506
|
/** @internal */
|
|
510
|
-
exports.
|
|
507
|
+
exports.InvokeAgentExtendedMessageRole$outboundSchema = exports.InvokeAgentExtendedMessageRole$inboundSchema;
|
|
511
508
|
/** @internal */
|
|
512
|
-
exports.
|
|
509
|
+
exports.InvokeAgentPartsAgentsResponse200Kind$inboundSchema = z.nativeEnum(exports.InvokeAgentPartsAgentsResponse200Kind);
|
|
513
510
|
/** @internal */
|
|
514
|
-
exports.
|
|
511
|
+
exports.InvokeAgentPartsAgentsResponse200Kind$outboundSchema = exports.InvokeAgentPartsAgentsResponse200Kind$inboundSchema;
|
|
515
512
|
/** @internal */
|
|
516
|
-
exports.
|
|
517
|
-
kind: exports.
|
|
513
|
+
exports.InvokeAgentPartsToolResultPart$inboundSchema = z.object({
|
|
514
|
+
kind: exports.InvokeAgentPartsAgentsResponse200Kind$inboundSchema,
|
|
518
515
|
tool_call_id: z.string(),
|
|
519
516
|
result: z.any().optional(),
|
|
520
517
|
metadata: z.record(z.any()).optional(),
|
|
@@ -524,8 +521,8 @@ exports.InvokeAgentParts5$inboundSchema = z.object({
|
|
|
524
521
|
});
|
|
525
522
|
});
|
|
526
523
|
/** @internal */
|
|
527
|
-
exports.
|
|
528
|
-
kind: exports.
|
|
524
|
+
exports.InvokeAgentPartsToolResultPart$outboundSchema = z.object({
|
|
525
|
+
kind: exports.InvokeAgentPartsAgentsResponse200Kind$outboundSchema,
|
|
529
526
|
toolCallId: z.string(),
|
|
530
527
|
result: z.any().optional(),
|
|
531
528
|
metadata: z.record(z.any()).optional(),
|
|
@@ -534,19 +531,19 @@ exports.InvokeAgentParts5$outboundSchema = z.object({
|
|
|
534
531
|
toolCallId: "tool_call_id",
|
|
535
532
|
});
|
|
536
533
|
});
|
|
537
|
-
function
|
|
538
|
-
return JSON.stringify(exports.
|
|
534
|
+
function invokeAgentPartsToolResultPartToJSON(invokeAgentPartsToolResultPart) {
|
|
535
|
+
return JSON.stringify(exports.InvokeAgentPartsToolResultPart$outboundSchema.parse(invokeAgentPartsToolResultPart));
|
|
539
536
|
}
|
|
540
|
-
function
|
|
541
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
537
|
+
function invokeAgentPartsToolResultPartFromJSON(jsonString) {
|
|
538
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsToolResultPart' from JSON`);
|
|
542
539
|
}
|
|
543
540
|
/** @internal */
|
|
544
|
-
exports.
|
|
541
|
+
exports.InvokeAgentPartsAgentsResponseKind$inboundSchema = z.nativeEnum(exports.InvokeAgentPartsAgentsResponseKind);
|
|
545
542
|
/** @internal */
|
|
546
|
-
exports.
|
|
543
|
+
exports.InvokeAgentPartsAgentsResponseKind$outboundSchema = exports.InvokeAgentPartsAgentsResponseKind$inboundSchema;
|
|
547
544
|
/** @internal */
|
|
548
|
-
exports.
|
|
549
|
-
kind: exports.
|
|
545
|
+
exports.InvokeAgentPartsToolCallPart$inboundSchema = z.object({
|
|
546
|
+
kind: exports.InvokeAgentPartsAgentsResponseKind$inboundSchema,
|
|
550
547
|
tool_name: z.string(),
|
|
551
548
|
tool_call_id: z.string(),
|
|
552
549
|
arguments: z.record(z.any()),
|
|
@@ -558,8 +555,8 @@ exports.InvokeAgentParts4$inboundSchema = z.object({
|
|
|
558
555
|
});
|
|
559
556
|
});
|
|
560
557
|
/** @internal */
|
|
561
|
-
exports.
|
|
562
|
-
kind: exports.
|
|
558
|
+
exports.InvokeAgentPartsToolCallPart$outboundSchema = z.object({
|
|
559
|
+
kind: exports.InvokeAgentPartsAgentsResponseKind$outboundSchema,
|
|
563
560
|
toolName: z.string(),
|
|
564
561
|
toolCallId: z.string(),
|
|
565
562
|
arguments: z.record(z.any()),
|
|
@@ -570,16 +567,16 @@ exports.InvokeAgentParts4$outboundSchema = z.object({
|
|
|
570
567
|
toolCallId: "tool_call_id",
|
|
571
568
|
});
|
|
572
569
|
});
|
|
573
|
-
function
|
|
574
|
-
return JSON.stringify(exports.
|
|
570
|
+
function invokeAgentPartsToolCallPartToJSON(invokeAgentPartsToolCallPart) {
|
|
571
|
+
return JSON.stringify(exports.InvokeAgentPartsToolCallPart$outboundSchema.parse(invokeAgentPartsToolCallPart));
|
|
575
572
|
}
|
|
576
|
-
function
|
|
577
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
573
|
+
function invokeAgentPartsToolCallPartFromJSON(jsonString) {
|
|
574
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsToolCallPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsToolCallPart' from JSON`);
|
|
578
575
|
}
|
|
579
576
|
/** @internal */
|
|
580
|
-
exports.
|
|
577
|
+
exports.InvokeAgentPartsAgentsKind$inboundSchema = z.nativeEnum(exports.InvokeAgentPartsAgentsKind);
|
|
581
578
|
/** @internal */
|
|
582
|
-
exports.
|
|
579
|
+
exports.InvokeAgentPartsAgentsKind$outboundSchema = exports.InvokeAgentPartsAgentsKind$inboundSchema;
|
|
583
580
|
/** @internal */
|
|
584
581
|
exports.InvokeAgentFileFileInURIFormat$inboundSchema = z.object({
|
|
585
582
|
uri: z.string(),
|
|
@@ -633,8 +630,8 @@ function invokeAgentPartsFileFromJSON(jsonString) {
|
|
|
633
630
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsFile' from JSON`);
|
|
634
631
|
}
|
|
635
632
|
/** @internal */
|
|
636
|
-
exports.
|
|
637
|
-
kind: exports.
|
|
633
|
+
exports.InvokeAgentPartsFilePart$inboundSchema = z.object({
|
|
634
|
+
kind: exports.InvokeAgentPartsAgentsKind$inboundSchema,
|
|
638
635
|
file: z.union([
|
|
639
636
|
z.lazy(() => exports.InvokeAgentFileBinaryFormat$inboundSchema),
|
|
640
637
|
z.lazy(() => exports.InvokeAgentFileFileInURIFormat$inboundSchema),
|
|
@@ -642,77 +639,77 @@ exports.InvokeAgentParts3$inboundSchema = z.object({
|
|
|
642
639
|
metadata: z.record(z.any()).optional(),
|
|
643
640
|
});
|
|
644
641
|
/** @internal */
|
|
645
|
-
exports.
|
|
646
|
-
kind: exports.
|
|
642
|
+
exports.InvokeAgentPartsFilePart$outboundSchema = z.object({
|
|
643
|
+
kind: exports.InvokeAgentPartsAgentsKind$outboundSchema,
|
|
647
644
|
file: z.union([
|
|
648
645
|
z.lazy(() => exports.InvokeAgentFileBinaryFormat$outboundSchema),
|
|
649
646
|
z.lazy(() => exports.InvokeAgentFileFileInURIFormat$outboundSchema),
|
|
650
647
|
]),
|
|
651
648
|
metadata: z.record(z.any()).optional(),
|
|
652
649
|
});
|
|
653
|
-
function
|
|
654
|
-
return JSON.stringify(exports.
|
|
650
|
+
function invokeAgentPartsFilePartToJSON(invokeAgentPartsFilePart) {
|
|
651
|
+
return JSON.stringify(exports.InvokeAgentPartsFilePart$outboundSchema.parse(invokeAgentPartsFilePart));
|
|
655
652
|
}
|
|
656
|
-
function
|
|
657
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
653
|
+
function invokeAgentPartsFilePartFromJSON(jsonString) {
|
|
654
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsFilePart' from JSON`);
|
|
658
655
|
}
|
|
659
656
|
/** @internal */
|
|
660
|
-
exports.
|
|
657
|
+
exports.InvokeAgentPartsKind$inboundSchema = z.nativeEnum(exports.InvokeAgentPartsKind);
|
|
661
658
|
/** @internal */
|
|
662
|
-
exports.
|
|
659
|
+
exports.InvokeAgentPartsKind$outboundSchema = exports.InvokeAgentPartsKind$inboundSchema;
|
|
663
660
|
/** @internal */
|
|
664
|
-
exports.
|
|
665
|
-
kind: exports.
|
|
661
|
+
exports.InvokeAgentPartsDataPart$inboundSchema = z.object({
|
|
662
|
+
kind: exports.InvokeAgentPartsKind$inboundSchema,
|
|
666
663
|
data: z.record(z.any()),
|
|
667
664
|
metadata: z.record(z.any()).optional(),
|
|
668
665
|
});
|
|
669
666
|
/** @internal */
|
|
670
|
-
exports.
|
|
671
|
-
kind: exports.
|
|
667
|
+
exports.InvokeAgentPartsDataPart$outboundSchema = z.object({
|
|
668
|
+
kind: exports.InvokeAgentPartsKind$outboundSchema,
|
|
672
669
|
data: z.record(z.any()),
|
|
673
670
|
metadata: z.record(z.any()).optional(),
|
|
674
671
|
});
|
|
675
|
-
function
|
|
676
|
-
return JSON.stringify(exports.
|
|
672
|
+
function invokeAgentPartsDataPartToJSON(invokeAgentPartsDataPart) {
|
|
673
|
+
return JSON.stringify(exports.InvokeAgentPartsDataPart$outboundSchema.parse(invokeAgentPartsDataPart));
|
|
677
674
|
}
|
|
678
|
-
function
|
|
679
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
675
|
+
function invokeAgentPartsDataPartFromJSON(jsonString) {
|
|
676
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsDataPart' from JSON`);
|
|
680
677
|
}
|
|
681
678
|
/** @internal */
|
|
682
|
-
exports.
|
|
679
|
+
exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema = z.nativeEnum(exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind);
|
|
683
680
|
/** @internal */
|
|
684
|
-
exports.
|
|
681
|
+
exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
|
|
685
682
|
/** @internal */
|
|
686
|
-
exports.
|
|
687
|
-
kind: exports.
|
|
683
|
+
exports.InvokeAgentPartsTextPart$inboundSchema = z.object({
|
|
684
|
+
kind: exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
|
|
688
685
|
text: z.string(),
|
|
689
686
|
});
|
|
690
687
|
/** @internal */
|
|
691
|
-
exports.
|
|
692
|
-
kind: exports.
|
|
688
|
+
exports.InvokeAgentPartsTextPart$outboundSchema = z.object({
|
|
689
|
+
kind: exports.InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
|
|
693
690
|
text: z.string(),
|
|
694
691
|
});
|
|
695
|
-
function
|
|
696
|
-
return JSON.stringify(exports.
|
|
692
|
+
function invokeAgentPartsTextPartToJSON(invokeAgentPartsTextPart) {
|
|
693
|
+
return JSON.stringify(exports.InvokeAgentPartsTextPart$outboundSchema.parse(invokeAgentPartsTextPart));
|
|
697
694
|
}
|
|
698
|
-
function
|
|
699
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
695
|
+
function invokeAgentPartsTextPartFromJSON(jsonString) {
|
|
696
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentPartsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentPartsTextPart' from JSON`);
|
|
700
697
|
}
|
|
701
698
|
/** @internal */
|
|
702
699
|
exports.InvokeAgentParts$inboundSchema = z.union([
|
|
703
|
-
z.lazy(() => exports.
|
|
704
|
-
z.lazy(() => exports.
|
|
705
|
-
z.lazy(() => exports.
|
|
706
|
-
z.lazy(() => exports.
|
|
707
|
-
z.lazy(() => exports.
|
|
700
|
+
z.lazy(() => exports.InvokeAgentPartsToolCallPart$inboundSchema),
|
|
701
|
+
z.lazy(() => exports.InvokeAgentPartsTextPart$inboundSchema),
|
|
702
|
+
z.lazy(() => exports.InvokeAgentPartsDataPart$inboundSchema),
|
|
703
|
+
z.lazy(() => exports.InvokeAgentPartsFilePart$inboundSchema),
|
|
704
|
+
z.lazy(() => exports.InvokeAgentPartsToolResultPart$inboundSchema),
|
|
708
705
|
]);
|
|
709
706
|
/** @internal */
|
|
710
707
|
exports.InvokeAgentParts$outboundSchema = z.union([
|
|
711
|
-
z.lazy(() => exports.
|
|
712
|
-
z.lazy(() => exports.
|
|
713
|
-
z.lazy(() => exports.
|
|
714
|
-
z.lazy(() => exports.
|
|
715
|
-
z.lazy(() => exports.
|
|
708
|
+
z.lazy(() => exports.InvokeAgentPartsToolCallPart$outboundSchema),
|
|
709
|
+
z.lazy(() => exports.InvokeAgentPartsTextPart$outboundSchema),
|
|
710
|
+
z.lazy(() => exports.InvokeAgentPartsDataPart$outboundSchema),
|
|
711
|
+
z.lazy(() => exports.InvokeAgentPartsFilePart$outboundSchema),
|
|
712
|
+
z.lazy(() => exports.InvokeAgentPartsToolResultPart$outboundSchema),
|
|
716
713
|
]);
|
|
717
714
|
function invokeAgentPartsToJSON(invokeAgentParts) {
|
|
718
715
|
return JSON.stringify(exports.InvokeAgentParts$outboundSchema.parse(invokeAgentParts));
|
|
@@ -721,75 +718,75 @@ function invokeAgentPartsFromJSON(jsonString) {
|
|
|
721
718
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentParts' from JSON`);
|
|
722
719
|
}
|
|
723
720
|
/** @internal */
|
|
724
|
-
exports.
|
|
721
|
+
exports.TaskStatusMessage$inboundSchema = z.object({
|
|
725
722
|
kind: exports.InvokeAgentAgentsKind$inboundSchema,
|
|
726
723
|
messageId: z.string(),
|
|
727
|
-
role: exports.
|
|
724
|
+
role: exports.InvokeAgentExtendedMessageRole$inboundSchema,
|
|
728
725
|
parts: z.array(z.union([
|
|
729
|
-
z.lazy(() => exports.
|
|
730
|
-
z.lazy(() => exports.
|
|
731
|
-
z.lazy(() => exports.
|
|
732
|
-
z.lazy(() => exports.
|
|
733
|
-
z.lazy(() => exports.
|
|
726
|
+
z.lazy(() => exports.InvokeAgentPartsToolCallPart$inboundSchema),
|
|
727
|
+
z.lazy(() => exports.InvokeAgentPartsTextPart$inboundSchema),
|
|
728
|
+
z.lazy(() => exports.InvokeAgentPartsDataPart$inboundSchema),
|
|
729
|
+
z.lazy(() => exports.InvokeAgentPartsFilePart$inboundSchema),
|
|
730
|
+
z.lazy(() => exports.InvokeAgentPartsToolResultPart$inboundSchema),
|
|
734
731
|
])),
|
|
735
732
|
});
|
|
736
733
|
/** @internal */
|
|
737
|
-
exports.
|
|
734
|
+
exports.TaskStatusMessage$outboundSchema = z.object({
|
|
738
735
|
kind: exports.InvokeAgentAgentsKind$outboundSchema,
|
|
739
736
|
messageId: z.string(),
|
|
740
|
-
role: exports.
|
|
737
|
+
role: exports.InvokeAgentExtendedMessageRole$outboundSchema,
|
|
741
738
|
parts: z.array(z.union([
|
|
742
|
-
z.lazy(() => exports.
|
|
743
|
-
z.lazy(() => exports.
|
|
744
|
-
z.lazy(() => exports.
|
|
745
|
-
z.lazy(() => exports.
|
|
746
|
-
z.lazy(() => exports.
|
|
739
|
+
z.lazy(() => exports.InvokeAgentPartsToolCallPart$outboundSchema),
|
|
740
|
+
z.lazy(() => exports.InvokeAgentPartsTextPart$outboundSchema),
|
|
741
|
+
z.lazy(() => exports.InvokeAgentPartsDataPart$outboundSchema),
|
|
742
|
+
z.lazy(() => exports.InvokeAgentPartsFilePart$outboundSchema),
|
|
743
|
+
z.lazy(() => exports.InvokeAgentPartsToolResultPart$outboundSchema),
|
|
747
744
|
])),
|
|
748
745
|
});
|
|
749
|
-
function
|
|
750
|
-
return JSON.stringify(exports.
|
|
746
|
+
function taskStatusMessageToJSON(taskStatusMessage) {
|
|
747
|
+
return JSON.stringify(exports.TaskStatusMessage$outboundSchema.parse(taskStatusMessage));
|
|
751
748
|
}
|
|
752
|
-
function
|
|
753
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
749
|
+
function taskStatusMessageFromJSON(jsonString) {
|
|
750
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TaskStatusMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskStatusMessage' from JSON`);
|
|
754
751
|
}
|
|
755
752
|
/** @internal */
|
|
756
|
-
exports.
|
|
757
|
-
state: exports.
|
|
753
|
+
exports.TaskStatus$inboundSchema = z.object({
|
|
754
|
+
state: exports.TaskState$inboundSchema,
|
|
758
755
|
timestamp: z.string().optional(),
|
|
759
|
-
message: z.lazy(() => exports.
|
|
756
|
+
message: z.lazy(() => exports.TaskStatusMessage$inboundSchema).optional(),
|
|
760
757
|
});
|
|
761
758
|
/** @internal */
|
|
762
|
-
exports.
|
|
763
|
-
state: exports.
|
|
759
|
+
exports.TaskStatus$outboundSchema = z.object({
|
|
760
|
+
state: exports.TaskState$outboundSchema,
|
|
764
761
|
timestamp: z.string().optional(),
|
|
765
|
-
message: z.lazy(() => exports.
|
|
762
|
+
message: z.lazy(() => exports.TaskStatusMessage$outboundSchema).optional(),
|
|
766
763
|
});
|
|
767
|
-
function
|
|
768
|
-
return JSON.stringify(exports.
|
|
764
|
+
function taskStatusToJSON(taskStatus) {
|
|
765
|
+
return JSON.stringify(exports.TaskStatus$outboundSchema.parse(taskStatus));
|
|
769
766
|
}
|
|
770
|
-
function
|
|
771
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
767
|
+
function taskStatusFromJSON(jsonString) {
|
|
768
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TaskStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskStatus' from JSON`);
|
|
772
769
|
}
|
|
773
770
|
/** @internal */
|
|
774
|
-
exports.
|
|
771
|
+
exports.InvokeAgentA2ATaskResponse$inboundSchema = z.object({
|
|
775
772
|
id: z.string(),
|
|
776
773
|
contextId: z.string(),
|
|
777
774
|
kind: exports.InvokeAgentKind$inboundSchema,
|
|
778
|
-
status: z.lazy(() => exports.
|
|
775
|
+
status: z.lazy(() => exports.TaskStatus$inboundSchema),
|
|
779
776
|
metadata: z.record(z.any()).optional(),
|
|
780
777
|
});
|
|
781
778
|
/** @internal */
|
|
782
|
-
exports.
|
|
779
|
+
exports.InvokeAgentA2ATaskResponse$outboundSchema = z.object({
|
|
783
780
|
id: z.string(),
|
|
784
781
|
contextId: z.string(),
|
|
785
782
|
kind: exports.InvokeAgentKind$outboundSchema,
|
|
786
|
-
status: z.lazy(() => exports.
|
|
783
|
+
status: z.lazy(() => exports.TaskStatus$outboundSchema),
|
|
787
784
|
metadata: z.record(z.any()).optional(),
|
|
788
785
|
});
|
|
789
|
-
function
|
|
790
|
-
return JSON.stringify(exports.
|
|
786
|
+
function invokeAgentA2ATaskResponseToJSON(invokeAgentA2ATaskResponse) {
|
|
787
|
+
return JSON.stringify(exports.InvokeAgentA2ATaskResponse$outboundSchema.parse(invokeAgentA2ATaskResponse));
|
|
791
788
|
}
|
|
792
|
-
function
|
|
793
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
789
|
+
function invokeAgentA2ATaskResponseFromJSON(jsonString) {
|
|
790
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentA2ATaskResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentA2ATaskResponse' from JSON`);
|
|
794
791
|
}
|
|
795
792
|
//# sourceMappingURL=invokeagent.js.map
|