@orq-ai/node 4.0.0-rc.51 → 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,49 +36,127 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.GetAgentTaskPartsDataPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$inboundSchema = exports.GetAgentTaskPartsAgentsFilePart$outboundSchema = exports.GetAgentTaskPartsAgentsFilePart$inboundSchema = exports.GetAgentTaskPartsAgentsFile$outboundSchema = exports.GetAgentTaskPartsAgentsFile$inboundSchema = exports.GetAgentTaskFileAgentsResponseBinaryFormat$outboundSchema = exports.GetAgentTaskFileAgentsResponseBinaryFormat$inboundSchema = exports.GetAgentTaskFileAgentsResponseFileInURIFormat$outboundSchema = exports.GetAgentTaskFileAgentsResponseFileInURIFormat$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$inboundSchema = exports.GetAgentTaskPartsToolCallPart$outboundSchema = exports.GetAgentTaskPartsToolCallPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$inboundSchema = exports.GetAgentTaskPartsToolResultPart$outboundSchema = exports.GetAgentTaskPartsToolResultPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$inboundSchema = exports.GetAgentTaskExtendedMessageRole$outboundSchema = exports.GetAgentTaskExtendedMessageRole$inboundSchema = exports.GetAgentTaskAgentsResponseKind$outboundSchema = exports.GetAgentTaskAgentsResponseKind$inboundSchema = exports.GetAgentTaskTaskState$outboundSchema = exports.GetAgentTaskTaskState$inboundSchema = exports.GetAgentTaskKind$outboundSchema = exports.GetAgentTaskKind$inboundSchema = exports.GetAgentTaskRequest$outboundSchema = exports.GetAgentTaskRequest$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind = exports.PartsKind = exports.GetAgentTaskPartsKind = exports.GetAgentTaskPartsAgentsKind = exports.GetAgentTaskPartsAgentsResponseKind = exports.GetAgentTaskPartsAgentsResponse200Kind = exports.ExtendedMessageRole = exports.GetAgentTaskAgentsKind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind = exports.GetAgentTaskExtendedMessageRole = exports.GetAgentTaskAgentsResponseKind = exports.GetAgentTaskTaskState = exports.GetAgentTaskKind = void 0;
|
|
40
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema = exports.PartsDataPart$outboundSchema = exports.PartsDataPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$inboundSchema = exports.ExtendedA2AMessage$outboundSchema = exports.ExtendedA2AMessage$inboundSchema = exports.Parts$outboundSchema = exports.Parts$inboundSchema = exports.PartsTextPart$outboundSchema = exports.PartsTextPart$inboundSchema = exports.PartsKind$outboundSchema = exports.PartsKind$inboundSchema = exports.DataPart$outboundSchema = exports.DataPart$inboundSchema = exports.GetAgentTaskPartsKind$outboundSchema = exports.GetAgentTaskPartsKind$inboundSchema = exports.PartsFilePart$outboundSchema = exports.PartsFilePart$inboundSchema = exports.PartsFile$outboundSchema = exports.PartsFile$inboundSchema = exports.GetAgentTaskFileAgentsBinaryFormat$outboundSchema = exports.GetAgentTaskFileAgentsBinaryFormat$inboundSchema = exports.GetAgentTaskFileAgentsFileInURIFormat$outboundSchema = exports.GetAgentTaskFileAgentsFileInURIFormat$inboundSchema = exports.GetAgentTaskPartsAgentsKind$outboundSchema = exports.GetAgentTaskPartsAgentsKind$inboundSchema = exports.ToolCallPart$outboundSchema = exports.ToolCallPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponseKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponseKind$inboundSchema = exports.PartsToolResultPart$outboundSchema = exports.PartsToolResultPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200Kind$inboundSchema = exports.ExtendedMessageRole$outboundSchema = exports.ExtendedMessageRole$inboundSchema = exports.GetAgentTaskAgentsKind$outboundSchema = exports.GetAgentTaskAgentsKind$inboundSchema = exports.GetAgentTaskTaskStatus$outboundSchema = exports.GetAgentTaskTaskStatus$inboundSchema = exports.GetAgentTaskTaskStatusMessage$outboundSchema = exports.GetAgentTaskTaskStatusMessage$inboundSchema = exports.GetAgentTaskAgentsParts$outboundSchema = exports.GetAgentTaskAgentsParts$inboundSchema = exports.GetAgentTaskPartsAgentsTextPart$outboundSchema = exports.GetAgentTaskPartsAgentsTextPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$inboundSchema = exports.GetAgentTaskPartsDataPart$outboundSchema = void 0;
|
|
41
|
+
exports.GetAgentTaskExtendedTaskResponse$outboundSchema = exports.GetAgentTaskExtendedTaskResponse$inboundSchema = exports.TaskArtifact$outboundSchema = exports.TaskArtifact$inboundSchema = exports.GetAgentTaskParts$outboundSchema = exports.GetAgentTaskParts$inboundSchema = exports.GetAgentTaskPartsTextPart$outboundSchema = exports.GetAgentTaskPartsTextPart$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$inboundSchema = exports.GetAgentTaskPartsFilePart$outboundSchema = exports.GetAgentTaskPartsFilePart$inboundSchema = exports.GetAgentTaskPartsFile$outboundSchema = exports.GetAgentTaskPartsFile$inboundSchema = exports.GetAgentTaskFileBinaryFormat$outboundSchema = exports.GetAgentTaskFileBinaryFormat$inboundSchema = exports.GetAgentTaskFileFileInURIFormat$outboundSchema = exports.GetAgentTaskFileFileInURIFormat$inboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema = void 0;
|
|
41
42
|
exports.getAgentTaskRequestToJSON = getAgentTaskRequestToJSON;
|
|
42
43
|
exports.getAgentTaskRequestFromJSON = getAgentTaskRequestFromJSON;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
44
|
+
exports.getAgentTaskPartsToolResultPartToJSON = getAgentTaskPartsToolResultPartToJSON;
|
|
45
|
+
exports.getAgentTaskPartsToolResultPartFromJSON = getAgentTaskPartsToolResultPartFromJSON;
|
|
46
|
+
exports.getAgentTaskPartsToolCallPartToJSON = getAgentTaskPartsToolCallPartToJSON;
|
|
47
|
+
exports.getAgentTaskPartsToolCallPartFromJSON = getAgentTaskPartsToolCallPartFromJSON;
|
|
48
|
+
exports.getAgentTaskFileAgentsResponseFileInURIFormatToJSON = getAgentTaskFileAgentsResponseFileInURIFormatToJSON;
|
|
49
|
+
exports.getAgentTaskFileAgentsResponseFileInURIFormatFromJSON = getAgentTaskFileAgentsResponseFileInURIFormatFromJSON;
|
|
50
|
+
exports.getAgentTaskFileAgentsResponseBinaryFormatToJSON = getAgentTaskFileAgentsResponseBinaryFormatToJSON;
|
|
51
|
+
exports.getAgentTaskFileAgentsResponseBinaryFormatFromJSON = getAgentTaskFileAgentsResponseBinaryFormatFromJSON;
|
|
52
|
+
exports.getAgentTaskPartsAgentsFileToJSON = getAgentTaskPartsAgentsFileToJSON;
|
|
53
|
+
exports.getAgentTaskPartsAgentsFileFromJSON = getAgentTaskPartsAgentsFileFromJSON;
|
|
54
|
+
exports.getAgentTaskPartsAgentsFilePartToJSON = getAgentTaskPartsAgentsFilePartToJSON;
|
|
55
|
+
exports.getAgentTaskPartsAgentsFilePartFromJSON = getAgentTaskPartsAgentsFilePartFromJSON;
|
|
56
|
+
exports.getAgentTaskPartsDataPartToJSON = getAgentTaskPartsDataPartToJSON;
|
|
57
|
+
exports.getAgentTaskPartsDataPartFromJSON = getAgentTaskPartsDataPartFromJSON;
|
|
58
|
+
exports.getAgentTaskPartsAgentsTextPartToJSON = getAgentTaskPartsAgentsTextPartToJSON;
|
|
59
|
+
exports.getAgentTaskPartsAgentsTextPartFromJSON = getAgentTaskPartsAgentsTextPartFromJSON;
|
|
60
|
+
exports.getAgentTaskAgentsPartsToJSON = getAgentTaskAgentsPartsToJSON;
|
|
61
|
+
exports.getAgentTaskAgentsPartsFromJSON = getAgentTaskAgentsPartsFromJSON;
|
|
62
|
+
exports.getAgentTaskTaskStatusMessageToJSON = getAgentTaskTaskStatusMessageToJSON;
|
|
63
|
+
exports.getAgentTaskTaskStatusMessageFromJSON = getAgentTaskTaskStatusMessageFromJSON;
|
|
64
|
+
exports.getAgentTaskTaskStatusToJSON = getAgentTaskTaskStatusToJSON;
|
|
65
|
+
exports.getAgentTaskTaskStatusFromJSON = getAgentTaskTaskStatusFromJSON;
|
|
66
|
+
exports.partsToolResultPartToJSON = partsToolResultPartToJSON;
|
|
67
|
+
exports.partsToolResultPartFromJSON = partsToolResultPartFromJSON;
|
|
68
|
+
exports.toolCallPartToJSON = toolCallPartToJSON;
|
|
69
|
+
exports.toolCallPartFromJSON = toolCallPartFromJSON;
|
|
70
|
+
exports.getAgentTaskFileAgentsFileInURIFormatToJSON = getAgentTaskFileAgentsFileInURIFormatToJSON;
|
|
71
|
+
exports.getAgentTaskFileAgentsFileInURIFormatFromJSON = getAgentTaskFileAgentsFileInURIFormatFromJSON;
|
|
72
|
+
exports.getAgentTaskFileAgentsBinaryFormatToJSON = getAgentTaskFileAgentsBinaryFormatToJSON;
|
|
73
|
+
exports.getAgentTaskFileAgentsBinaryFormatFromJSON = getAgentTaskFileAgentsBinaryFormatFromJSON;
|
|
53
74
|
exports.partsFileToJSON = partsFileToJSON;
|
|
54
75
|
exports.partsFileFromJSON = partsFileFromJSON;
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
76
|
+
exports.partsFilePartToJSON = partsFilePartToJSON;
|
|
77
|
+
exports.partsFilePartFromJSON = partsFilePartFromJSON;
|
|
78
|
+
exports.dataPartToJSON = dataPartToJSON;
|
|
79
|
+
exports.dataPartFromJSON = dataPartFromJSON;
|
|
80
|
+
exports.partsTextPartToJSON = partsTextPartToJSON;
|
|
81
|
+
exports.partsTextPartFromJSON = partsTextPartFromJSON;
|
|
61
82
|
exports.partsToJSON = partsToJSON;
|
|
62
83
|
exports.partsFromJSON = partsFromJSON;
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
84
|
+
exports.extendedA2AMessageToJSON = extendedA2AMessageToJSON;
|
|
85
|
+
exports.extendedA2AMessageFromJSON = extendedA2AMessageFromJSON;
|
|
86
|
+
exports.partsDataPartToJSON = partsDataPartToJSON;
|
|
87
|
+
exports.partsDataPartFromJSON = partsDataPartFromJSON;
|
|
88
|
+
exports.getAgentTaskFileFileInURIFormatToJSON = getAgentTaskFileFileInURIFormatToJSON;
|
|
89
|
+
exports.getAgentTaskFileFileInURIFormatFromJSON = getAgentTaskFileFileInURIFormatFromJSON;
|
|
90
|
+
exports.getAgentTaskFileBinaryFormatToJSON = getAgentTaskFileBinaryFormatToJSON;
|
|
91
|
+
exports.getAgentTaskFileBinaryFormatFromJSON = getAgentTaskFileBinaryFormatFromJSON;
|
|
92
|
+
exports.getAgentTaskPartsFileToJSON = getAgentTaskPartsFileToJSON;
|
|
93
|
+
exports.getAgentTaskPartsFileFromJSON = getAgentTaskPartsFileFromJSON;
|
|
94
|
+
exports.getAgentTaskPartsFilePartToJSON = getAgentTaskPartsFilePartToJSON;
|
|
95
|
+
exports.getAgentTaskPartsFilePartFromJSON = getAgentTaskPartsFilePartFromJSON;
|
|
96
|
+
exports.getAgentTaskPartsTextPartToJSON = getAgentTaskPartsTextPartToJSON;
|
|
97
|
+
exports.getAgentTaskPartsTextPartFromJSON = getAgentTaskPartsTextPartFromJSON;
|
|
98
|
+
exports.getAgentTaskPartsToJSON = getAgentTaskPartsToJSON;
|
|
99
|
+
exports.getAgentTaskPartsFromJSON = getAgentTaskPartsFromJSON;
|
|
100
|
+
exports.taskArtifactToJSON = taskArtifactToJSON;
|
|
101
|
+
exports.taskArtifactFromJSON = taskArtifactFromJSON;
|
|
102
|
+
exports.getAgentTaskExtendedTaskResponseToJSON = getAgentTaskExtendedTaskResponseToJSON;
|
|
103
|
+
exports.getAgentTaskExtendedTaskResponseFromJSON = getAgentTaskExtendedTaskResponseFromJSON;
|
|
69
104
|
const z = __importStar(require("zod/v3"));
|
|
70
105
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
71
106
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
107
|
+
/**
|
|
108
|
+
* A2A entity type
|
|
109
|
+
*/
|
|
72
110
|
exports.GetAgentTaskKind = {
|
|
73
111
|
Task: "task",
|
|
74
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* 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.
|
|
115
|
+
*/
|
|
116
|
+
exports.GetAgentTaskTaskState = {
|
|
117
|
+
Submitted: "submitted",
|
|
118
|
+
Working: "working",
|
|
119
|
+
InputRequired: "input-required",
|
|
120
|
+
AuthRequired: "auth-required",
|
|
121
|
+
Completed: "completed",
|
|
122
|
+
Failed: "failed",
|
|
123
|
+
Canceled: "canceled",
|
|
124
|
+
Rejected: "rejected",
|
|
125
|
+
};
|
|
75
126
|
exports.GetAgentTaskAgentsResponseKind = {
|
|
76
127
|
Message: "message",
|
|
77
128
|
};
|
|
78
129
|
/**
|
|
79
|
-
*
|
|
130
|
+
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
80
131
|
*/
|
|
81
|
-
exports.
|
|
132
|
+
exports.GetAgentTaskExtendedMessageRole = {
|
|
133
|
+
User: "user",
|
|
134
|
+
Agent: "agent",
|
|
135
|
+
Tool: "tool",
|
|
136
|
+
System: "system",
|
|
137
|
+
};
|
|
138
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind = {
|
|
139
|
+
ToolResult: "tool_result",
|
|
140
|
+
};
|
|
141
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind = {
|
|
142
|
+
ToolCall: "tool_call",
|
|
143
|
+
};
|
|
144
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind = {
|
|
145
|
+
File: "file",
|
|
146
|
+
};
|
|
147
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind = {
|
|
148
|
+
Data: "data",
|
|
149
|
+
};
|
|
150
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind = {
|
|
151
|
+
Text: "text",
|
|
152
|
+
};
|
|
153
|
+
exports.GetAgentTaskAgentsKind = {
|
|
154
|
+
Message: "message",
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
158
|
+
*/
|
|
159
|
+
exports.ExtendedMessageRole = {
|
|
82
160
|
User: "user",
|
|
83
161
|
Agent: "agent",
|
|
84
162
|
Tool: "tool",
|
|
@@ -99,8 +177,14 @@ exports.GetAgentTaskPartsKind = {
|
|
|
99
177
|
exports.PartsKind = {
|
|
100
178
|
Text: "text",
|
|
101
179
|
};
|
|
102
|
-
exports.
|
|
103
|
-
|
|
180
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind = {
|
|
181
|
+
Data: "data",
|
|
182
|
+
};
|
|
183
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind = {
|
|
184
|
+
File: "file",
|
|
185
|
+
};
|
|
186
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind = {
|
|
187
|
+
Text: "text",
|
|
104
188
|
};
|
|
105
189
|
/** @internal */
|
|
106
190
|
exports.GetAgentTaskRequest$inboundSchema = z.object({
|
|
@@ -133,38 +217,294 @@ exports.GetAgentTaskKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskKind);
|
|
|
133
217
|
/** @internal */
|
|
134
218
|
exports.GetAgentTaskKind$outboundSchema = exports.GetAgentTaskKind$inboundSchema;
|
|
135
219
|
/** @internal */
|
|
136
|
-
exports.
|
|
137
|
-
|
|
220
|
+
exports.GetAgentTaskTaskState$inboundSchema = z.nativeEnum(exports.GetAgentTaskTaskState);
|
|
221
|
+
/** @internal */
|
|
222
|
+
exports.GetAgentTaskTaskState$outboundSchema = exports.GetAgentTaskTaskState$inboundSchema;
|
|
223
|
+
/** @internal */
|
|
224
|
+
exports.GetAgentTaskAgentsResponseKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskAgentsResponseKind);
|
|
225
|
+
/** @internal */
|
|
226
|
+
exports.GetAgentTaskAgentsResponseKind$outboundSchema = exports.GetAgentTaskAgentsResponseKind$inboundSchema;
|
|
227
|
+
/** @internal */
|
|
228
|
+
exports.GetAgentTaskExtendedMessageRole$inboundSchema = z.nativeEnum(exports.GetAgentTaskExtendedMessageRole);
|
|
229
|
+
/** @internal */
|
|
230
|
+
exports.GetAgentTaskExtendedMessageRole$outboundSchema = exports.GetAgentTaskExtendedMessageRole$inboundSchema;
|
|
231
|
+
/** @internal */
|
|
232
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind);
|
|
233
|
+
/** @internal */
|
|
234
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$inboundSchema;
|
|
235
|
+
/** @internal */
|
|
236
|
+
exports.GetAgentTaskPartsToolResultPart$inboundSchema = z.object({
|
|
237
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$inboundSchema,
|
|
238
|
+
tool_call_id: z.string(),
|
|
239
|
+
result: z.any().optional(),
|
|
240
|
+
metadata: z.record(z.any()).optional(),
|
|
241
|
+
}).transform((v) => {
|
|
242
|
+
return (0, primitives_js_1.remap)(v, {
|
|
243
|
+
"tool_call_id": "toolCallId",
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
/** @internal */
|
|
247
|
+
exports.GetAgentTaskPartsToolResultPart$outboundSchema = z.object({
|
|
248
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage5Kind$outboundSchema,
|
|
249
|
+
toolCallId: z.string(),
|
|
250
|
+
result: z.any().optional(),
|
|
251
|
+
metadata: z.record(z.any()).optional(),
|
|
252
|
+
}).transform((v) => {
|
|
253
|
+
return (0, primitives_js_1.remap)(v, {
|
|
254
|
+
toolCallId: "tool_call_id",
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
function getAgentTaskPartsToolResultPartToJSON(getAgentTaskPartsToolResultPart) {
|
|
258
|
+
return JSON.stringify(exports.GetAgentTaskPartsToolResultPart$outboundSchema.parse(getAgentTaskPartsToolResultPart));
|
|
259
|
+
}
|
|
260
|
+
function getAgentTaskPartsToolResultPartFromJSON(jsonString) {
|
|
261
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsToolResultPart' from JSON`);
|
|
262
|
+
}
|
|
263
|
+
/** @internal */
|
|
264
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind);
|
|
265
|
+
/** @internal */
|
|
266
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$inboundSchema;
|
|
267
|
+
/** @internal */
|
|
268
|
+
exports.GetAgentTaskPartsToolCallPart$inboundSchema = z.object({
|
|
269
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$inboundSchema,
|
|
270
|
+
tool_name: z.string(),
|
|
271
|
+
tool_call_id: z.string(),
|
|
272
|
+
arguments: z.record(z.any()),
|
|
273
|
+
metadata: z.record(z.any()).optional(),
|
|
274
|
+
}).transform((v) => {
|
|
275
|
+
return (0, primitives_js_1.remap)(v, {
|
|
276
|
+
"tool_name": "toolName",
|
|
277
|
+
"tool_call_id": "toolCallId",
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
/** @internal */
|
|
281
|
+
exports.GetAgentTaskPartsToolCallPart$outboundSchema = z.object({
|
|
282
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage4Kind$outboundSchema,
|
|
283
|
+
toolName: z.string(),
|
|
284
|
+
toolCallId: z.string(),
|
|
285
|
+
arguments: z.record(z.any()),
|
|
286
|
+
metadata: z.record(z.any()).optional(),
|
|
287
|
+
}).transform((v) => {
|
|
288
|
+
return (0, primitives_js_1.remap)(v, {
|
|
289
|
+
toolName: "tool_name",
|
|
290
|
+
toolCallId: "tool_call_id",
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
function getAgentTaskPartsToolCallPartToJSON(getAgentTaskPartsToolCallPart) {
|
|
294
|
+
return JSON.stringify(exports.GetAgentTaskPartsToolCallPart$outboundSchema.parse(getAgentTaskPartsToolCallPart));
|
|
295
|
+
}
|
|
296
|
+
function getAgentTaskPartsToolCallPartFromJSON(jsonString) {
|
|
297
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsToolCallPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsToolCallPart' from JSON`);
|
|
298
|
+
}
|
|
299
|
+
/** @internal */
|
|
300
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind);
|
|
301
|
+
/** @internal */
|
|
302
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$inboundSchema;
|
|
303
|
+
/** @internal */
|
|
304
|
+
exports.GetAgentTaskFileAgentsResponseFileInURIFormat$inboundSchema = z.object({
|
|
305
|
+
uri: z.string(),
|
|
306
|
+
mimeType: z.string().optional(),
|
|
307
|
+
name: z.string().optional(),
|
|
308
|
+
});
|
|
309
|
+
/** @internal */
|
|
310
|
+
exports.GetAgentTaskFileAgentsResponseFileInURIFormat$outboundSchema = z.object({
|
|
311
|
+
uri: z.string(),
|
|
312
|
+
mimeType: z.string().optional(),
|
|
313
|
+
name: z.string().optional(),
|
|
314
|
+
});
|
|
315
|
+
function getAgentTaskFileAgentsResponseFileInURIFormatToJSON(getAgentTaskFileAgentsResponseFileInURIFormat) {
|
|
316
|
+
return JSON.stringify(exports.GetAgentTaskFileAgentsResponseFileInURIFormat$outboundSchema.parse(getAgentTaskFileAgentsResponseFileInURIFormat));
|
|
317
|
+
}
|
|
318
|
+
function getAgentTaskFileAgentsResponseFileInURIFormatFromJSON(jsonString) {
|
|
319
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileAgentsResponseFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileAgentsResponseFileInURIFormat' from JSON`);
|
|
320
|
+
}
|
|
321
|
+
/** @internal */
|
|
322
|
+
exports.GetAgentTaskFileAgentsResponseBinaryFormat$inboundSchema = z.object({
|
|
323
|
+
bytes: z.string(),
|
|
324
|
+
mimeType: z.string().optional(),
|
|
325
|
+
name: z.string().optional(),
|
|
326
|
+
});
|
|
327
|
+
/** @internal */
|
|
328
|
+
exports.GetAgentTaskFileAgentsResponseBinaryFormat$outboundSchema = z.object({
|
|
329
|
+
bytes: z.string(),
|
|
330
|
+
mimeType: z.string().optional(),
|
|
331
|
+
name: z.string().optional(),
|
|
332
|
+
});
|
|
333
|
+
function getAgentTaskFileAgentsResponseBinaryFormatToJSON(getAgentTaskFileAgentsResponseBinaryFormat) {
|
|
334
|
+
return JSON.stringify(exports.GetAgentTaskFileAgentsResponseBinaryFormat$outboundSchema.parse(getAgentTaskFileAgentsResponseBinaryFormat));
|
|
335
|
+
}
|
|
336
|
+
function getAgentTaskFileAgentsResponseBinaryFormatFromJSON(jsonString) {
|
|
337
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileAgentsResponseBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileAgentsResponseBinaryFormat' from JSON`);
|
|
338
|
+
}
|
|
339
|
+
/** @internal */
|
|
340
|
+
exports.GetAgentTaskPartsAgentsFile$inboundSchema = z.union([
|
|
341
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseBinaryFormat$inboundSchema),
|
|
342
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
343
|
+
]);
|
|
344
|
+
/** @internal */
|
|
345
|
+
exports.GetAgentTaskPartsAgentsFile$outboundSchema = z.union([
|
|
346
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseBinaryFormat$outboundSchema),
|
|
347
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseFileInURIFormat$outboundSchema),
|
|
348
|
+
]);
|
|
349
|
+
function getAgentTaskPartsAgentsFileToJSON(getAgentTaskPartsAgentsFile) {
|
|
350
|
+
return JSON.stringify(exports.GetAgentTaskPartsAgentsFile$outboundSchema.parse(getAgentTaskPartsAgentsFile));
|
|
351
|
+
}
|
|
352
|
+
function getAgentTaskPartsAgentsFileFromJSON(jsonString) {
|
|
353
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsAgentsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsAgentsFile' from JSON`);
|
|
354
|
+
}
|
|
355
|
+
/** @internal */
|
|
356
|
+
exports.GetAgentTaskPartsAgentsFilePart$inboundSchema = z.object({
|
|
357
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$inboundSchema,
|
|
358
|
+
file: z.union([
|
|
359
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseBinaryFormat$inboundSchema),
|
|
360
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
361
|
+
]),
|
|
362
|
+
metadata: z.record(z.any()).optional(),
|
|
363
|
+
});
|
|
364
|
+
/** @internal */
|
|
365
|
+
exports.GetAgentTaskPartsAgentsFilePart$outboundSchema = z.object({
|
|
366
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessageKind$outboundSchema,
|
|
367
|
+
file: z.union([
|
|
368
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseBinaryFormat$outboundSchema),
|
|
369
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsResponseFileInURIFormat$outboundSchema),
|
|
370
|
+
]),
|
|
371
|
+
metadata: z.record(z.any()).optional(),
|
|
372
|
+
});
|
|
373
|
+
function getAgentTaskPartsAgentsFilePartToJSON(getAgentTaskPartsAgentsFilePart) {
|
|
374
|
+
return JSON.stringify(exports.GetAgentTaskPartsAgentsFilePart$outboundSchema.parse(getAgentTaskPartsAgentsFilePart));
|
|
375
|
+
}
|
|
376
|
+
function getAgentTaskPartsAgentsFilePartFromJSON(jsonString) {
|
|
377
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsAgentsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsAgentsFilePart' from JSON`);
|
|
378
|
+
}
|
|
379
|
+
/** @internal */
|
|
380
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind);
|
|
381
|
+
/** @internal */
|
|
382
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$inboundSchema;
|
|
383
|
+
/** @internal */
|
|
384
|
+
exports.GetAgentTaskPartsDataPart$inboundSchema = z.object({
|
|
385
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$inboundSchema,
|
|
386
|
+
data: z.record(z.any()),
|
|
387
|
+
metadata: z.record(z.any()).optional(),
|
|
388
|
+
});
|
|
389
|
+
/** @internal */
|
|
390
|
+
exports.GetAgentTaskPartsDataPart$outboundSchema = z.object({
|
|
391
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusKind$outboundSchema,
|
|
392
|
+
data: z.record(z.any()),
|
|
393
|
+
metadata: z.record(z.any()).optional(),
|
|
394
|
+
});
|
|
395
|
+
function getAgentTaskPartsDataPartToJSON(getAgentTaskPartsDataPart) {
|
|
396
|
+
return JSON.stringify(exports.GetAgentTaskPartsDataPart$outboundSchema.parse(getAgentTaskPartsDataPart));
|
|
397
|
+
}
|
|
398
|
+
function getAgentTaskPartsDataPartFromJSON(jsonString) {
|
|
399
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsDataPart' from JSON`);
|
|
400
|
+
}
|
|
401
|
+
/** @internal */
|
|
402
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind);
|
|
403
|
+
/** @internal */
|
|
404
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$inboundSchema;
|
|
405
|
+
/** @internal */
|
|
406
|
+
exports.GetAgentTaskPartsAgentsTextPart$inboundSchema = z.object({
|
|
407
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$inboundSchema,
|
|
408
|
+
text: z.string(),
|
|
409
|
+
});
|
|
410
|
+
/** @internal */
|
|
411
|
+
exports.GetAgentTaskPartsAgentsTextPart$outboundSchema = z.object({
|
|
412
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyStatusMessage1Kind$outboundSchema,
|
|
413
|
+
text: z.string(),
|
|
414
|
+
});
|
|
415
|
+
function getAgentTaskPartsAgentsTextPartToJSON(getAgentTaskPartsAgentsTextPart) {
|
|
416
|
+
return JSON.stringify(exports.GetAgentTaskPartsAgentsTextPart$outboundSchema.parse(getAgentTaskPartsAgentsTextPart));
|
|
417
|
+
}
|
|
418
|
+
function getAgentTaskPartsAgentsTextPartFromJSON(jsonString) {
|
|
419
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsAgentsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsAgentsTextPart' from JSON`);
|
|
420
|
+
}
|
|
421
|
+
/** @internal */
|
|
422
|
+
exports.GetAgentTaskAgentsParts$inboundSchema = z.union([
|
|
423
|
+
z.lazy(() => exports.GetAgentTaskPartsToolCallPart$inboundSchema),
|
|
424
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsTextPart$inboundSchema),
|
|
425
|
+
z.lazy(() => exports.GetAgentTaskPartsDataPart$inboundSchema),
|
|
426
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsFilePart$inboundSchema),
|
|
427
|
+
z.lazy(() => exports.GetAgentTaskPartsToolResultPart$inboundSchema),
|
|
428
|
+
]);
|
|
429
|
+
/** @internal */
|
|
430
|
+
exports.GetAgentTaskAgentsParts$outboundSchema = z.union([
|
|
431
|
+
z.lazy(() => exports.GetAgentTaskPartsToolCallPart$outboundSchema),
|
|
432
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsTextPart$outboundSchema),
|
|
433
|
+
z.lazy(() => exports.GetAgentTaskPartsDataPart$outboundSchema),
|
|
434
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsFilePart$outboundSchema),
|
|
435
|
+
z.lazy(() => exports.GetAgentTaskPartsToolResultPart$outboundSchema),
|
|
436
|
+
]);
|
|
437
|
+
function getAgentTaskAgentsPartsToJSON(getAgentTaskAgentsParts) {
|
|
438
|
+
return JSON.stringify(exports.GetAgentTaskAgentsParts$outboundSchema.parse(getAgentTaskAgentsParts));
|
|
439
|
+
}
|
|
440
|
+
function getAgentTaskAgentsPartsFromJSON(jsonString) {
|
|
441
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskAgentsParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskAgentsParts' from JSON`);
|
|
442
|
+
}
|
|
443
|
+
/** @internal */
|
|
444
|
+
exports.GetAgentTaskTaskStatusMessage$inboundSchema = z.object({
|
|
445
|
+
kind: exports.GetAgentTaskAgentsResponseKind$inboundSchema,
|
|
446
|
+
messageId: z.string(),
|
|
447
|
+
role: exports.GetAgentTaskExtendedMessageRole$inboundSchema,
|
|
448
|
+
parts: z.array(z.union([
|
|
449
|
+
z.lazy(() => exports.GetAgentTaskPartsToolCallPart$inboundSchema),
|
|
450
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsTextPart$inboundSchema),
|
|
451
|
+
z.lazy(() => exports.GetAgentTaskPartsDataPart$inboundSchema),
|
|
452
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsFilePart$inboundSchema),
|
|
453
|
+
z.lazy(() => exports.GetAgentTaskPartsToolResultPart$inboundSchema),
|
|
454
|
+
])),
|
|
455
|
+
});
|
|
456
|
+
/** @internal */
|
|
457
|
+
exports.GetAgentTaskTaskStatusMessage$outboundSchema = z.object({
|
|
458
|
+
kind: exports.GetAgentTaskAgentsResponseKind$outboundSchema,
|
|
459
|
+
messageId: z.string(),
|
|
460
|
+
role: exports.GetAgentTaskExtendedMessageRole$outboundSchema,
|
|
461
|
+
parts: z.array(z.union([
|
|
462
|
+
z.lazy(() => exports.GetAgentTaskPartsToolCallPart$outboundSchema),
|
|
463
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsTextPart$outboundSchema),
|
|
464
|
+
z.lazy(() => exports.GetAgentTaskPartsDataPart$outboundSchema),
|
|
465
|
+
z.lazy(() => exports.GetAgentTaskPartsAgentsFilePart$outboundSchema),
|
|
466
|
+
z.lazy(() => exports.GetAgentTaskPartsToolResultPart$outboundSchema),
|
|
467
|
+
])),
|
|
468
|
+
});
|
|
469
|
+
function getAgentTaskTaskStatusMessageToJSON(getAgentTaskTaskStatusMessage) {
|
|
470
|
+
return JSON.stringify(exports.GetAgentTaskTaskStatusMessage$outboundSchema.parse(getAgentTaskTaskStatusMessage));
|
|
471
|
+
}
|
|
472
|
+
function getAgentTaskTaskStatusMessageFromJSON(jsonString) {
|
|
473
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskTaskStatusMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskTaskStatusMessage' from JSON`);
|
|
474
|
+
}
|
|
475
|
+
/** @internal */
|
|
476
|
+
exports.GetAgentTaskTaskStatus$inboundSchema = z.object({
|
|
477
|
+
state: exports.GetAgentTaskTaskState$inboundSchema,
|
|
138
478
|
timestamp: z.string().optional(),
|
|
139
|
-
message: z.
|
|
479
|
+
message: z.lazy(() => exports.GetAgentTaskTaskStatusMessage$inboundSchema).optional(),
|
|
140
480
|
});
|
|
141
481
|
/** @internal */
|
|
142
|
-
exports.
|
|
143
|
-
state:
|
|
482
|
+
exports.GetAgentTaskTaskStatus$outboundSchema = z.object({
|
|
483
|
+
state: exports.GetAgentTaskTaskState$outboundSchema,
|
|
144
484
|
timestamp: z.string().optional(),
|
|
145
|
-
message: z.
|
|
485
|
+
message: z.lazy(() => exports.GetAgentTaskTaskStatusMessage$outboundSchema)
|
|
486
|
+
.optional(),
|
|
146
487
|
});
|
|
147
|
-
function
|
|
148
|
-
return JSON.stringify(exports.
|
|
488
|
+
function getAgentTaskTaskStatusToJSON(getAgentTaskTaskStatus) {
|
|
489
|
+
return JSON.stringify(exports.GetAgentTaskTaskStatus$outboundSchema.parse(getAgentTaskTaskStatus));
|
|
149
490
|
}
|
|
150
|
-
function
|
|
151
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
491
|
+
function getAgentTaskTaskStatusFromJSON(jsonString) {
|
|
492
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskTaskStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskTaskStatus' from JSON`);
|
|
152
493
|
}
|
|
153
494
|
/** @internal */
|
|
154
|
-
exports.
|
|
495
|
+
exports.GetAgentTaskAgentsKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskAgentsKind);
|
|
155
496
|
/** @internal */
|
|
156
|
-
exports.
|
|
497
|
+
exports.GetAgentTaskAgentsKind$outboundSchema = exports.GetAgentTaskAgentsKind$inboundSchema;
|
|
157
498
|
/** @internal */
|
|
158
|
-
exports.
|
|
499
|
+
exports.ExtendedMessageRole$inboundSchema = z.nativeEnum(exports.ExtendedMessageRole);
|
|
159
500
|
/** @internal */
|
|
160
|
-
exports.
|
|
501
|
+
exports.ExtendedMessageRole$outboundSchema = exports.ExtendedMessageRole$inboundSchema;
|
|
161
502
|
/** @internal */
|
|
162
503
|
exports.GetAgentTaskPartsAgentsResponse200Kind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200Kind);
|
|
163
504
|
/** @internal */
|
|
164
505
|
exports.GetAgentTaskPartsAgentsResponse200Kind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200Kind$inboundSchema;
|
|
165
506
|
/** @internal */
|
|
166
|
-
exports.
|
|
167
|
-
.object({
|
|
507
|
+
exports.PartsToolResultPart$inboundSchema = z.object({
|
|
168
508
|
kind: exports.GetAgentTaskPartsAgentsResponse200Kind$inboundSchema,
|
|
169
509
|
tool_call_id: z.string(),
|
|
170
510
|
result: z.any().optional(),
|
|
@@ -175,7 +515,7 @@ exports.Parts5$inboundSchema = z
|
|
|
175
515
|
});
|
|
176
516
|
});
|
|
177
517
|
/** @internal */
|
|
178
|
-
exports.
|
|
518
|
+
exports.PartsToolResultPart$outboundSchema = z.object({
|
|
179
519
|
kind: exports.GetAgentTaskPartsAgentsResponse200Kind$outboundSchema,
|
|
180
520
|
toolCallId: z.string(),
|
|
181
521
|
result: z.any().optional(),
|
|
@@ -185,19 +525,18 @@ exports.Parts5$outboundSchema = z.object({
|
|
|
185
525
|
toolCallId: "tool_call_id",
|
|
186
526
|
});
|
|
187
527
|
});
|
|
188
|
-
function
|
|
189
|
-
return JSON.stringify(exports.
|
|
528
|
+
function partsToolResultPartToJSON(partsToolResultPart) {
|
|
529
|
+
return JSON.stringify(exports.PartsToolResultPart$outboundSchema.parse(partsToolResultPart));
|
|
190
530
|
}
|
|
191
|
-
function
|
|
192
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
531
|
+
function partsToolResultPartFromJSON(jsonString) {
|
|
532
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsToolResultPart' from JSON`);
|
|
193
533
|
}
|
|
194
534
|
/** @internal */
|
|
195
535
|
exports.GetAgentTaskPartsAgentsResponseKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponseKind);
|
|
196
536
|
/** @internal */
|
|
197
537
|
exports.GetAgentTaskPartsAgentsResponseKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponseKind$inboundSchema;
|
|
198
538
|
/** @internal */
|
|
199
|
-
exports.
|
|
200
|
-
.object({
|
|
539
|
+
exports.ToolCallPart$inboundSchema = z.object({
|
|
201
540
|
kind: exports.GetAgentTaskPartsAgentsResponseKind$inboundSchema,
|
|
202
541
|
tool_name: z.string(),
|
|
203
542
|
tool_call_id: z.string(),
|
|
@@ -210,7 +549,7 @@ exports.Parts4$inboundSchema = z
|
|
|
210
549
|
});
|
|
211
550
|
});
|
|
212
551
|
/** @internal */
|
|
213
|
-
exports.
|
|
552
|
+
exports.ToolCallPart$outboundSchema = z.object({
|
|
214
553
|
kind: exports.GetAgentTaskPartsAgentsResponseKind$outboundSchema,
|
|
215
554
|
toolName: z.string(),
|
|
216
555
|
toolCallId: z.string(),
|
|
@@ -222,61 +561,61 @@ exports.Parts4$outboundSchema = z.object({
|
|
|
222
561
|
toolCallId: "tool_call_id",
|
|
223
562
|
});
|
|
224
563
|
});
|
|
225
|
-
function
|
|
226
|
-
return JSON.stringify(exports.
|
|
564
|
+
function toolCallPartToJSON(toolCallPart) {
|
|
565
|
+
return JSON.stringify(exports.ToolCallPart$outboundSchema.parse(toolCallPart));
|
|
227
566
|
}
|
|
228
|
-
function
|
|
229
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
567
|
+
function toolCallPartFromJSON(jsonString) {
|
|
568
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ToolCallPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolCallPart' from JSON`);
|
|
230
569
|
}
|
|
231
570
|
/** @internal */
|
|
232
571
|
exports.GetAgentTaskPartsAgentsKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsKind);
|
|
233
572
|
/** @internal */
|
|
234
573
|
exports.GetAgentTaskPartsAgentsKind$outboundSchema = exports.GetAgentTaskPartsAgentsKind$inboundSchema;
|
|
235
574
|
/** @internal */
|
|
236
|
-
exports.
|
|
575
|
+
exports.GetAgentTaskFileAgentsFileInURIFormat$inboundSchema = z.object({
|
|
237
576
|
uri: z.string(),
|
|
238
577
|
mimeType: z.string().optional(),
|
|
239
578
|
name: z.string().optional(),
|
|
240
579
|
});
|
|
241
580
|
/** @internal */
|
|
242
|
-
exports.
|
|
581
|
+
exports.GetAgentTaskFileAgentsFileInURIFormat$outboundSchema = z.object({
|
|
243
582
|
uri: z.string(),
|
|
244
583
|
mimeType: z.string().optional(),
|
|
245
584
|
name: z.string().optional(),
|
|
246
585
|
});
|
|
247
|
-
function
|
|
248
|
-
return JSON.stringify(exports.
|
|
586
|
+
function getAgentTaskFileAgentsFileInURIFormatToJSON(getAgentTaskFileAgentsFileInURIFormat) {
|
|
587
|
+
return JSON.stringify(exports.GetAgentTaskFileAgentsFileInURIFormat$outboundSchema.parse(getAgentTaskFileAgentsFileInURIFormat));
|
|
249
588
|
}
|
|
250
|
-
function
|
|
251
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
589
|
+
function getAgentTaskFileAgentsFileInURIFormatFromJSON(jsonString) {
|
|
590
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileAgentsFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileAgentsFileInURIFormat' from JSON`);
|
|
252
591
|
}
|
|
253
592
|
/** @internal */
|
|
254
|
-
exports.
|
|
593
|
+
exports.GetAgentTaskFileAgentsBinaryFormat$inboundSchema = z.object({
|
|
255
594
|
bytes: z.string(),
|
|
256
595
|
mimeType: z.string().optional(),
|
|
257
596
|
name: z.string().optional(),
|
|
258
597
|
});
|
|
259
598
|
/** @internal */
|
|
260
|
-
exports.
|
|
599
|
+
exports.GetAgentTaskFileAgentsBinaryFormat$outboundSchema = z.object({
|
|
261
600
|
bytes: z.string(),
|
|
262
601
|
mimeType: z.string().optional(),
|
|
263
602
|
name: z.string().optional(),
|
|
264
603
|
});
|
|
265
|
-
function
|
|
266
|
-
return JSON.stringify(exports.
|
|
604
|
+
function getAgentTaskFileAgentsBinaryFormatToJSON(getAgentTaskFileAgentsBinaryFormat) {
|
|
605
|
+
return JSON.stringify(exports.GetAgentTaskFileAgentsBinaryFormat$outboundSchema.parse(getAgentTaskFileAgentsBinaryFormat));
|
|
267
606
|
}
|
|
268
|
-
function
|
|
269
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
607
|
+
function getAgentTaskFileAgentsBinaryFormatFromJSON(jsonString) {
|
|
608
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileAgentsBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileAgentsBinaryFormat' from JSON`);
|
|
270
609
|
}
|
|
271
610
|
/** @internal */
|
|
272
611
|
exports.PartsFile$inboundSchema = z.union([
|
|
273
|
-
z.lazy(() => exports.
|
|
274
|
-
z.lazy(() => exports.
|
|
612
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsBinaryFormat$inboundSchema),
|
|
613
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsFileInURIFormat$inboundSchema),
|
|
275
614
|
]);
|
|
276
615
|
/** @internal */
|
|
277
616
|
exports.PartsFile$outboundSchema = z.union([
|
|
278
|
-
z.lazy(() => exports.
|
|
279
|
-
z.lazy(() => exports.
|
|
617
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsBinaryFormat$outboundSchema),
|
|
618
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsFileInURIFormat$outboundSchema),
|
|
280
619
|
]);
|
|
281
620
|
function partsFileToJSON(partsFile) {
|
|
282
621
|
return JSON.stringify(exports.PartsFile$outboundSchema.parse(partsFile));
|
|
@@ -285,52 +624,50 @@ function partsFileFromJSON(jsonString) {
|
|
|
285
624
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsFile' from JSON`);
|
|
286
625
|
}
|
|
287
626
|
/** @internal */
|
|
288
|
-
exports.
|
|
289
|
-
.object({
|
|
627
|
+
exports.PartsFilePart$inboundSchema = z.object({
|
|
290
628
|
kind: exports.GetAgentTaskPartsAgentsKind$inboundSchema,
|
|
291
629
|
file: z.union([
|
|
292
|
-
z.lazy(() => exports.
|
|
293
|
-
z.lazy(() => exports.
|
|
630
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsBinaryFormat$inboundSchema),
|
|
631
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsFileInURIFormat$inboundSchema),
|
|
294
632
|
]),
|
|
295
633
|
metadata: z.record(z.any()).optional(),
|
|
296
634
|
});
|
|
297
635
|
/** @internal */
|
|
298
|
-
exports.
|
|
636
|
+
exports.PartsFilePart$outboundSchema = z.object({
|
|
299
637
|
kind: exports.GetAgentTaskPartsAgentsKind$outboundSchema,
|
|
300
638
|
file: z.union([
|
|
301
|
-
z.lazy(() => exports.
|
|
302
|
-
z.lazy(() => exports.
|
|
639
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsBinaryFormat$outboundSchema),
|
|
640
|
+
z.lazy(() => exports.GetAgentTaskFileAgentsFileInURIFormat$outboundSchema),
|
|
303
641
|
]),
|
|
304
642
|
metadata: z.record(z.any()).optional(),
|
|
305
643
|
});
|
|
306
|
-
function
|
|
307
|
-
return JSON.stringify(exports.
|
|
644
|
+
function partsFilePartToJSON(partsFilePart) {
|
|
645
|
+
return JSON.stringify(exports.PartsFilePart$outboundSchema.parse(partsFilePart));
|
|
308
646
|
}
|
|
309
|
-
function
|
|
310
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
647
|
+
function partsFilePartFromJSON(jsonString) {
|
|
648
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsFilePart' from JSON`);
|
|
311
649
|
}
|
|
312
650
|
/** @internal */
|
|
313
651
|
exports.GetAgentTaskPartsKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsKind);
|
|
314
652
|
/** @internal */
|
|
315
653
|
exports.GetAgentTaskPartsKind$outboundSchema = exports.GetAgentTaskPartsKind$inboundSchema;
|
|
316
654
|
/** @internal */
|
|
317
|
-
exports.
|
|
318
|
-
.object({
|
|
655
|
+
exports.DataPart$inboundSchema = z.object({
|
|
319
656
|
kind: exports.GetAgentTaskPartsKind$inboundSchema,
|
|
320
657
|
data: z.record(z.any()),
|
|
321
658
|
metadata: z.record(z.any()).optional(),
|
|
322
659
|
});
|
|
323
660
|
/** @internal */
|
|
324
|
-
exports.
|
|
661
|
+
exports.DataPart$outboundSchema = z.object({
|
|
325
662
|
kind: exports.GetAgentTaskPartsKind$outboundSchema,
|
|
326
663
|
data: z.record(z.any()),
|
|
327
664
|
metadata: z.record(z.any()).optional(),
|
|
328
665
|
});
|
|
329
|
-
function
|
|
330
|
-
return JSON.stringify(exports.
|
|
666
|
+
function dataPartToJSON(dataPart) {
|
|
667
|
+
return JSON.stringify(exports.DataPart$outboundSchema.parse(dataPart));
|
|
331
668
|
}
|
|
332
|
-
function
|
|
333
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
669
|
+
function dataPartFromJSON(jsonString) {
|
|
670
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataPart' from JSON`);
|
|
334
671
|
}
|
|
335
672
|
/** @internal */
|
|
336
673
|
exports.PartsKind$inboundSchema = z
|
|
@@ -338,38 +675,37 @@ exports.PartsKind$inboundSchema = z
|
|
|
338
675
|
/** @internal */
|
|
339
676
|
exports.PartsKind$outboundSchema = exports.PartsKind$inboundSchema;
|
|
340
677
|
/** @internal */
|
|
341
|
-
exports.
|
|
342
|
-
.object({
|
|
678
|
+
exports.PartsTextPart$inboundSchema = z.object({
|
|
343
679
|
kind: exports.PartsKind$inboundSchema,
|
|
344
680
|
text: z.string(),
|
|
345
681
|
});
|
|
346
682
|
/** @internal */
|
|
347
|
-
exports.
|
|
683
|
+
exports.PartsTextPart$outboundSchema = z.object({
|
|
348
684
|
kind: exports.PartsKind$outboundSchema,
|
|
349
685
|
text: z.string(),
|
|
350
686
|
});
|
|
351
|
-
function
|
|
352
|
-
return JSON.stringify(exports.
|
|
687
|
+
function partsTextPartToJSON(partsTextPart) {
|
|
688
|
+
return JSON.stringify(exports.PartsTextPart$outboundSchema.parse(partsTextPart));
|
|
353
689
|
}
|
|
354
|
-
function
|
|
355
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
690
|
+
function partsTextPartFromJSON(jsonString) {
|
|
691
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsTextPart' from JSON`);
|
|
356
692
|
}
|
|
357
693
|
/** @internal */
|
|
358
694
|
exports.Parts$inboundSchema = z
|
|
359
695
|
.union([
|
|
360
|
-
z.lazy(() => exports.
|
|
361
|
-
z.lazy(() => exports.
|
|
362
|
-
z.lazy(() => exports.
|
|
363
|
-
z.lazy(() => exports.
|
|
364
|
-
z.lazy(() => exports.
|
|
696
|
+
z.lazy(() => exports.ToolCallPart$inboundSchema),
|
|
697
|
+
z.lazy(() => exports.PartsTextPart$inboundSchema),
|
|
698
|
+
z.lazy(() => exports.DataPart$inboundSchema),
|
|
699
|
+
z.lazy(() => exports.PartsFilePart$inboundSchema),
|
|
700
|
+
z.lazy(() => exports.PartsToolResultPart$inboundSchema),
|
|
365
701
|
]);
|
|
366
702
|
/** @internal */
|
|
367
703
|
exports.Parts$outboundSchema = z.union([
|
|
368
|
-
z.lazy(() => exports.
|
|
369
|
-
z.lazy(() => exports.
|
|
370
|
-
z.lazy(() => exports.
|
|
371
|
-
z.lazy(() => exports.
|
|
372
|
-
z.lazy(() => exports.
|
|
704
|
+
z.lazy(() => exports.ToolCallPart$outboundSchema),
|
|
705
|
+
z.lazy(() => exports.PartsTextPart$outboundSchema),
|
|
706
|
+
z.lazy(() => exports.DataPart$outboundSchema),
|
|
707
|
+
z.lazy(() => exports.PartsFilePart$outboundSchema),
|
|
708
|
+
z.lazy(() => exports.PartsToolResultPart$outboundSchema),
|
|
373
709
|
]);
|
|
374
710
|
function partsToJSON(parts) {
|
|
375
711
|
return JSON.stringify(exports.Parts$outboundSchema.parse(parts));
|
|
@@ -378,95 +714,239 @@ function partsFromJSON(jsonString) {
|
|
|
378
714
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Parts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Parts' from JSON`);
|
|
379
715
|
}
|
|
380
716
|
/** @internal */
|
|
381
|
-
exports.
|
|
382
|
-
kind: exports.
|
|
717
|
+
exports.ExtendedA2AMessage$inboundSchema = z.object({
|
|
718
|
+
kind: exports.GetAgentTaskAgentsKind$inboundSchema,
|
|
383
719
|
messageId: z.string(),
|
|
384
|
-
role: exports.
|
|
720
|
+
role: exports.ExtendedMessageRole$inboundSchema,
|
|
385
721
|
parts: z.array(z.union([
|
|
386
|
-
z.lazy(() => exports.
|
|
387
|
-
z.lazy(() => exports.
|
|
388
|
-
z.lazy(() => exports.
|
|
389
|
-
z.lazy(() => exports.
|
|
390
|
-
z.lazy(() => exports.
|
|
722
|
+
z.lazy(() => exports.ToolCallPart$inboundSchema),
|
|
723
|
+
z.lazy(() => exports.PartsTextPart$inboundSchema),
|
|
724
|
+
z.lazy(() => exports.DataPart$inboundSchema),
|
|
725
|
+
z.lazy(() => exports.PartsFilePart$inboundSchema),
|
|
726
|
+
z.lazy(() => exports.PartsToolResultPart$inboundSchema),
|
|
391
727
|
])),
|
|
392
728
|
taskId: z.string().optional(),
|
|
393
729
|
contextId: z.string().optional(),
|
|
394
730
|
metadata: z.record(z.any()).optional(),
|
|
395
731
|
});
|
|
396
732
|
/** @internal */
|
|
397
|
-
exports.
|
|
398
|
-
kind: exports.
|
|
733
|
+
exports.ExtendedA2AMessage$outboundSchema = z.object({
|
|
734
|
+
kind: exports.GetAgentTaskAgentsKind$outboundSchema,
|
|
399
735
|
messageId: z.string(),
|
|
400
|
-
role: exports.
|
|
736
|
+
role: exports.ExtendedMessageRole$outboundSchema,
|
|
401
737
|
parts: z.array(z.union([
|
|
402
|
-
z.lazy(() => exports.
|
|
403
|
-
z.lazy(() => exports.
|
|
404
|
-
z.lazy(() => exports.
|
|
405
|
-
z.lazy(() => exports.
|
|
406
|
-
z.lazy(() => exports.
|
|
738
|
+
z.lazy(() => exports.ToolCallPart$outboundSchema),
|
|
739
|
+
z.lazy(() => exports.PartsTextPart$outboundSchema),
|
|
740
|
+
z.lazy(() => exports.DataPart$outboundSchema),
|
|
741
|
+
z.lazy(() => exports.PartsFilePart$outboundSchema),
|
|
742
|
+
z.lazy(() => exports.PartsToolResultPart$outboundSchema),
|
|
407
743
|
])),
|
|
408
744
|
taskId: z.string().optional(),
|
|
409
745
|
contextId: z.string().optional(),
|
|
410
746
|
metadata: z.record(z.any()).optional(),
|
|
411
747
|
});
|
|
412
|
-
function
|
|
413
|
-
return JSON.stringify(exports.
|
|
748
|
+
function extendedA2AMessageToJSON(extendedA2AMessage) {
|
|
749
|
+
return JSON.stringify(exports.ExtendedA2AMessage$outboundSchema.parse(extendedA2AMessage));
|
|
414
750
|
}
|
|
415
|
-
function
|
|
416
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
751
|
+
function extendedA2AMessageFromJSON(jsonString) {
|
|
752
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExtendedA2AMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExtendedA2AMessage' from JSON`);
|
|
417
753
|
}
|
|
418
754
|
/** @internal */
|
|
419
|
-
exports.
|
|
755
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind);
|
|
420
756
|
/** @internal */
|
|
421
|
-
exports.
|
|
757
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$inboundSchema;
|
|
422
758
|
/** @internal */
|
|
423
|
-
exports.
|
|
424
|
-
kind: exports.
|
|
759
|
+
exports.PartsDataPart$inboundSchema = z.object({
|
|
760
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$inboundSchema,
|
|
761
|
+
data: z.record(z.any()),
|
|
762
|
+
metadata: z.record(z.any()).optional(),
|
|
763
|
+
});
|
|
764
|
+
/** @internal */
|
|
765
|
+
exports.PartsDataPart$outboundSchema = z.object({
|
|
766
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyArtifactsKind$outboundSchema,
|
|
767
|
+
data: z.record(z.any()),
|
|
768
|
+
metadata: z.record(z.any()).optional(),
|
|
769
|
+
});
|
|
770
|
+
function partsDataPartToJSON(partsDataPart) {
|
|
771
|
+
return JSON.stringify(exports.PartsDataPart$outboundSchema.parse(partsDataPart));
|
|
772
|
+
}
|
|
773
|
+
function partsDataPartFromJSON(jsonString) {
|
|
774
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartsDataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartsDataPart' from JSON`);
|
|
775
|
+
}
|
|
776
|
+
/** @internal */
|
|
777
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind);
|
|
778
|
+
/** @internal */
|
|
779
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema;
|
|
780
|
+
/** @internal */
|
|
781
|
+
exports.GetAgentTaskFileFileInURIFormat$inboundSchema = z.object({
|
|
782
|
+
uri: z.string(),
|
|
783
|
+
mimeType: z.string().optional(),
|
|
784
|
+
name: z.string().optional(),
|
|
785
|
+
});
|
|
786
|
+
/** @internal */
|
|
787
|
+
exports.GetAgentTaskFileFileInURIFormat$outboundSchema = z.object({
|
|
788
|
+
uri: z.string(),
|
|
789
|
+
mimeType: z.string().optional(),
|
|
790
|
+
name: z.string().optional(),
|
|
791
|
+
});
|
|
792
|
+
function getAgentTaskFileFileInURIFormatToJSON(getAgentTaskFileFileInURIFormat) {
|
|
793
|
+
return JSON.stringify(exports.GetAgentTaskFileFileInURIFormat$outboundSchema.parse(getAgentTaskFileFileInURIFormat));
|
|
794
|
+
}
|
|
795
|
+
function getAgentTaskFileFileInURIFormatFromJSON(jsonString) {
|
|
796
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileFileInURIFormat' from JSON`);
|
|
797
|
+
}
|
|
798
|
+
/** @internal */
|
|
799
|
+
exports.GetAgentTaskFileBinaryFormat$inboundSchema = z.object({
|
|
800
|
+
bytes: z.string(),
|
|
801
|
+
mimeType: z.string().optional(),
|
|
802
|
+
name: z.string().optional(),
|
|
803
|
+
});
|
|
804
|
+
/** @internal */
|
|
805
|
+
exports.GetAgentTaskFileBinaryFormat$outboundSchema = z.object({
|
|
806
|
+
bytes: z.string(),
|
|
807
|
+
mimeType: z.string().optional(),
|
|
808
|
+
name: z.string().optional(),
|
|
809
|
+
});
|
|
810
|
+
function getAgentTaskFileBinaryFormatToJSON(getAgentTaskFileBinaryFormat) {
|
|
811
|
+
return JSON.stringify(exports.GetAgentTaskFileBinaryFormat$outboundSchema.parse(getAgentTaskFileBinaryFormat));
|
|
812
|
+
}
|
|
813
|
+
function getAgentTaskFileBinaryFormatFromJSON(jsonString) {
|
|
814
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskFileBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskFileBinaryFormat' from JSON`);
|
|
815
|
+
}
|
|
816
|
+
/** @internal */
|
|
817
|
+
exports.GetAgentTaskPartsFile$inboundSchema = z.union([
|
|
818
|
+
z.lazy(() => exports.GetAgentTaskFileBinaryFormat$inboundSchema),
|
|
819
|
+
z.lazy(() => exports.GetAgentTaskFileFileInURIFormat$inboundSchema),
|
|
820
|
+
]);
|
|
821
|
+
/** @internal */
|
|
822
|
+
exports.GetAgentTaskPartsFile$outboundSchema = z.union([
|
|
823
|
+
z.lazy(() => exports.GetAgentTaskFileBinaryFormat$outboundSchema),
|
|
824
|
+
z.lazy(() => exports.GetAgentTaskFileFileInURIFormat$outboundSchema),
|
|
825
|
+
]);
|
|
826
|
+
function getAgentTaskPartsFileToJSON(getAgentTaskPartsFile) {
|
|
827
|
+
return JSON.stringify(exports.GetAgentTaskPartsFile$outboundSchema.parse(getAgentTaskPartsFile));
|
|
828
|
+
}
|
|
829
|
+
function getAgentTaskPartsFileFromJSON(jsonString) {
|
|
830
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsFile' from JSON`);
|
|
831
|
+
}
|
|
832
|
+
/** @internal */
|
|
833
|
+
exports.GetAgentTaskPartsFilePart$inboundSchema = z.object({
|
|
834
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema,
|
|
835
|
+
file: z.union([
|
|
836
|
+
z.lazy(() => exports.GetAgentTaskFileBinaryFormat$inboundSchema),
|
|
837
|
+
z.lazy(() => exports.GetAgentTaskFileFileInURIFormat$inboundSchema),
|
|
838
|
+
]),
|
|
839
|
+
metadata: z.record(z.any()).optional(),
|
|
840
|
+
});
|
|
841
|
+
/** @internal */
|
|
842
|
+
exports.GetAgentTaskPartsFilePart$outboundSchema = z.object({
|
|
843
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema,
|
|
844
|
+
file: z.union([
|
|
845
|
+
z.lazy(() => exports.GetAgentTaskFileBinaryFormat$outboundSchema),
|
|
846
|
+
z.lazy(() => exports.GetAgentTaskFileFileInURIFormat$outboundSchema),
|
|
847
|
+
]),
|
|
848
|
+
metadata: z.record(z.any()).optional(),
|
|
849
|
+
});
|
|
850
|
+
function getAgentTaskPartsFilePartToJSON(getAgentTaskPartsFilePart) {
|
|
851
|
+
return JSON.stringify(exports.GetAgentTaskPartsFilePart$outboundSchema.parse(getAgentTaskPartsFilePart));
|
|
852
|
+
}
|
|
853
|
+
function getAgentTaskPartsFilePartFromJSON(jsonString) {
|
|
854
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsFilePart' from JSON`);
|
|
855
|
+
}
|
|
856
|
+
/** @internal */
|
|
857
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$inboundSchema = z.nativeEnum(exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind);
|
|
858
|
+
/** @internal */
|
|
859
|
+
exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
|
|
860
|
+
/** @internal */
|
|
861
|
+
exports.GetAgentTaskPartsTextPart$inboundSchema = z.object({
|
|
862
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
|
|
863
|
+
text: z.string(),
|
|
864
|
+
});
|
|
865
|
+
/** @internal */
|
|
866
|
+
exports.GetAgentTaskPartsTextPart$outboundSchema = z.object({
|
|
867
|
+
kind: exports.GetAgentTaskPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
|
|
868
|
+
text: z.string(),
|
|
869
|
+
});
|
|
870
|
+
function getAgentTaskPartsTextPartToJSON(getAgentTaskPartsTextPart) {
|
|
871
|
+
return JSON.stringify(exports.GetAgentTaskPartsTextPart$outboundSchema.parse(getAgentTaskPartsTextPart));
|
|
872
|
+
}
|
|
873
|
+
function getAgentTaskPartsTextPartFromJSON(jsonString) {
|
|
874
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskPartsTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskPartsTextPart' from JSON`);
|
|
875
|
+
}
|
|
876
|
+
/** @internal */
|
|
877
|
+
exports.GetAgentTaskParts$inboundSchema = z.union([
|
|
878
|
+
z.lazy(() => exports.GetAgentTaskPartsTextPart$inboundSchema),
|
|
879
|
+
z.lazy(() => exports.GetAgentTaskPartsFilePart$inboundSchema),
|
|
880
|
+
z.lazy(() => exports.PartsDataPart$inboundSchema),
|
|
881
|
+
]);
|
|
882
|
+
/** @internal */
|
|
883
|
+
exports.GetAgentTaskParts$outboundSchema = z.union([
|
|
884
|
+
z.lazy(() => exports.GetAgentTaskPartsTextPart$outboundSchema),
|
|
885
|
+
z.lazy(() => exports.GetAgentTaskPartsFilePart$outboundSchema),
|
|
886
|
+
z.lazy(() => exports.PartsDataPart$outboundSchema),
|
|
887
|
+
]);
|
|
888
|
+
function getAgentTaskPartsToJSON(getAgentTaskParts) {
|
|
889
|
+
return JSON.stringify(exports.GetAgentTaskParts$outboundSchema.parse(getAgentTaskParts));
|
|
890
|
+
}
|
|
891
|
+
function getAgentTaskPartsFromJSON(jsonString) {
|
|
892
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskParts' from JSON`);
|
|
893
|
+
}
|
|
894
|
+
/** @internal */
|
|
895
|
+
exports.TaskArtifact$inboundSchema = z.object({
|
|
425
896
|
artifactId: z.string(),
|
|
426
897
|
name: z.string(),
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
898
|
+
description: z.string().optional(),
|
|
899
|
+
parts: z.array(z.union([
|
|
900
|
+
z.lazy(() => exports.GetAgentTaskPartsTextPart$inboundSchema),
|
|
901
|
+
z.lazy(() => exports.GetAgentTaskPartsFilePart$inboundSchema),
|
|
902
|
+
z.lazy(() => exports.PartsDataPart$inboundSchema),
|
|
903
|
+
])),
|
|
904
|
+
extensions: z.array(z.string()).optional(),
|
|
905
|
+
metadata: z.record(z.any()).optional(),
|
|
430
906
|
});
|
|
431
907
|
/** @internal */
|
|
432
|
-
exports.
|
|
433
|
-
kind: exports.GetAgentTaskAgentsKind$outboundSchema,
|
|
908
|
+
exports.TaskArtifact$outboundSchema = z.object({
|
|
434
909
|
artifactId: z.string(),
|
|
435
910
|
name: z.string(),
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
911
|
+
description: z.string().optional(),
|
|
912
|
+
parts: z.array(z.union([
|
|
913
|
+
z.lazy(() => exports.GetAgentTaskPartsTextPart$outboundSchema),
|
|
914
|
+
z.lazy(() => exports.GetAgentTaskPartsFilePart$outboundSchema),
|
|
915
|
+
z.lazy(() => exports.PartsDataPart$outboundSchema),
|
|
916
|
+
])),
|
|
917
|
+
extensions: z.array(z.string()).optional(),
|
|
918
|
+
metadata: z.record(z.any()).optional(),
|
|
439
919
|
});
|
|
440
|
-
function
|
|
441
|
-
return JSON.stringify(exports.
|
|
920
|
+
function taskArtifactToJSON(taskArtifact) {
|
|
921
|
+
return JSON.stringify(exports.TaskArtifact$outboundSchema.parse(taskArtifact));
|
|
442
922
|
}
|
|
443
|
-
function
|
|
444
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
923
|
+
function taskArtifactFromJSON(jsonString) {
|
|
924
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TaskArtifact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskArtifact' from JSON`);
|
|
445
925
|
}
|
|
446
926
|
/** @internal */
|
|
447
|
-
exports.
|
|
927
|
+
exports.GetAgentTaskExtendedTaskResponse$inboundSchema = z.object({
|
|
448
928
|
id: z.string(),
|
|
449
929
|
contextId: z.string(),
|
|
450
930
|
kind: exports.GetAgentTaskKind$inboundSchema,
|
|
451
|
-
status: z.lazy(() => exports.
|
|
452
|
-
history: z.array(z.lazy(() => exports.
|
|
453
|
-
artifacts: z.array(z.lazy(() => exports.
|
|
931
|
+
status: z.lazy(() => exports.GetAgentTaskTaskStatus$inboundSchema),
|
|
932
|
+
history: z.array(z.lazy(() => exports.ExtendedA2AMessage$inboundSchema)),
|
|
933
|
+
artifacts: z.array(z.lazy(() => exports.TaskArtifact$inboundSchema)).optional(),
|
|
454
934
|
metadata: z.record(z.any()).optional(),
|
|
455
935
|
});
|
|
456
936
|
/** @internal */
|
|
457
|
-
exports.
|
|
937
|
+
exports.GetAgentTaskExtendedTaskResponse$outboundSchema = z.object({
|
|
458
938
|
id: z.string(),
|
|
459
939
|
contextId: z.string(),
|
|
460
940
|
kind: exports.GetAgentTaskKind$outboundSchema,
|
|
461
|
-
status: z.lazy(() => exports.
|
|
462
|
-
history: z.array(z.lazy(() => exports.
|
|
463
|
-
artifacts: z.array(z.lazy(() => exports.
|
|
941
|
+
status: z.lazy(() => exports.GetAgentTaskTaskStatus$outboundSchema),
|
|
942
|
+
history: z.array(z.lazy(() => exports.ExtendedA2AMessage$outboundSchema)),
|
|
943
|
+
artifacts: z.array(z.lazy(() => exports.TaskArtifact$outboundSchema)).optional(),
|
|
464
944
|
metadata: z.record(z.any()).optional(),
|
|
465
945
|
});
|
|
466
|
-
function
|
|
467
|
-
return JSON.stringify(exports.
|
|
946
|
+
function getAgentTaskExtendedTaskResponseToJSON(getAgentTaskExtendedTaskResponse) {
|
|
947
|
+
return JSON.stringify(exports.GetAgentTaskExtendedTaskResponse$outboundSchema.parse(getAgentTaskExtendedTaskResponse));
|
|
468
948
|
}
|
|
469
|
-
function
|
|
470
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
949
|
+
function getAgentTaskExtendedTaskResponseFromJSON(jsonString) {
|
|
950
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTaskExtendedTaskResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTaskExtendedTaskResponse' from JSON`);
|
|
471
951
|
}
|
|
472
952
|
//# sourceMappingURL=getagenttask.js.map
|