@orq-ai/node 3.13.9 → 3.13.11
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 +107 -93
- package/bin/mcp-server.js +43652 -40649
- package/bin/mcp-server.js.map +117 -98
- package/docs/sdks/agents/README.md +566 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +18 -0
- package/funcs/agentsCreate.d.ts.map +1 -0
- package/funcs/agentsCreate.js +120 -0
- package/funcs/agentsCreate.js.map +1 -0
- package/funcs/agentsDelete.d.ts +18 -0
- package/funcs/agentsDelete.d.ts.map +1 -0
- package/funcs/agentsDelete.js +124 -0
- package/funcs/agentsDelete.js.map +1 -0
- package/funcs/agentsInvoke.d.ts +17 -0
- package/funcs/agentsInvoke.d.ts.map +1 -0
- package/funcs/agentsInvoke.js +120 -0
- package/funcs/agentsInvoke.js.map +1 -0
- package/funcs/agentsStream.d.ts +19 -0
- package/funcs/agentsStream.d.ts.map +1 -0
- package/funcs/agentsStream.js +134 -0
- package/funcs/agentsStream.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +18 -0
- package/funcs/agentsUpdate.d.ts.map +1 -0
- package/funcs/agentsUpdate.js +124 -0
- package/funcs/agentsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +8 -0
- package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsCreate.js +64 -0
- package/mcp-server/tools/agentsCreate.js.map +1 -0
- package/mcp-server/tools/agentsDelete.d.ts +8 -0
- package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
- package/mcp-server/tools/agentsDelete.js +63 -0
- package/mcp-server/tools/agentsDelete.js.map +1 -0
- package/mcp-server/tools/agentsInvoke.d.ts +8 -0
- package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/agentsInvoke.js +64 -0
- package/mcp-server/tools/agentsInvoke.js.map +1 -0
- package/mcp-server/tools/agentsStream.d.ts +8 -0
- package/mcp-server/tools/agentsStream.d.ts.map +1 -0
- package/mcp-server/tools/agentsStream.js +64 -0
- package/mcp-server/tools/agentsStream.js.map +1 -0
- package/mcp-server/tools/agentsUpdate.d.ts +8 -0
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/agentsUpdate.js +64 -0
- package/mcp-server/tools/agentsUpdate.js.map +1 -0
- package/models/errors/createagent.d.ts +41 -0
- package/models/errors/createagent.d.ts.map +1 -0
- package/models/errors/createagent.js +85 -0
- package/models/errors/createagent.js.map +1 -0
- package/models/errors/deleteagent.d.ts +41 -0
- package/models/errors/deleteagent.d.ts.map +1 -0
- package/models/errors/deleteagent.js +85 -0
- package/models/errors/deleteagent.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/streamagent.d.ts +41 -0
- package/models/errors/streamagent.d.ts.map +1 -0
- package/models/errors/streamagent.js +85 -0
- package/models/errors/streamagent.js.map +1 -0
- package/models/errors/updateagent.d.ts +41 -0
- package/models/errors/updateagent.d.ts.map +1 -0
- package/models/errors/updateagent.js +85 -0
- package/models/errors/updateagent.js.map +1 -0
- package/models/operations/createagent.d.ts +1504 -0
- package/models/operations/createagent.d.ts.map +1 -0
- package/models/operations/createagent.js +1530 -0
- package/models/operations/createagent.js.map +1 -0
- 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 +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +20 -20
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +34 -34
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteagent.d.ts +32 -0
- package/models/operations/deleteagent.d.ts.map +1 -0
- package/models/operations/deleteagent.js +78 -0
- package/models/operations/deleteagent.js.map +1 -0
- package/models/operations/duplicatetool.d.ts +10 -10
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +20 -20
- package/models/operations/duplicatetool.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/getagent.d.ts +44 -175
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +51 -184
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +20 -20
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +912 -0
- package/models/operations/invokeagent.d.ts.map +1 -0
- package/models/operations/invokeagent.js +824 -0
- package/models/operations/invokeagent.js.map +1 -0
- package/models/operations/listagents.d.ts +6 -137
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +5 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +2 -0
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +20 -20
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +640 -721
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +817 -928
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +676 -0
- package/models/operations/streamagent.d.ts.map +1 -0
- package/models/operations/streamagent.js +670 -0
- package/models/operations/streamagent.js.map +1 -0
- package/models/operations/streamrunagent.d.ts +567 -648
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +721 -835
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +1515 -0
- package/models/operations/updateagent.d.ts.map +1 -0
- package/models/operations/updateagent.js +1576 -0
- package/models/operations/updateagent.js.map +1 -0
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- 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.d.ts +18 -18
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +36 -36
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/README.md +103 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +7 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
- package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
- package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
- package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
- package/packages/orq-rc/src/sdk/agents.ts +54 -0
- package/sdk/agents.d.ts +35 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +50 -0
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +172 -0
- package/src/funcs/agentsDelete.ts +176 -0
- package/src/funcs/agentsInvoke.ts +167 -0
- package/src/funcs/agentsStream.ts +191 -0
- package/src/funcs/agentsUpdate.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/src/mcp-server/tools/agentsStream.ts +37 -0
- package/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/src/models/errors/createagent.ts +80 -0
- package/src/models/errors/deleteagent.ts +80 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/streamagent.ts +80 -0
- package/src/models/errors/updateagent.ts +80 -0
- package/src/models/operations/createagent.ts +3021 -0
- 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 +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +54 -54
- package/src/models/operations/deleteagent.ts +78 -0
- package/src/models/operations/duplicatetool.ts +30 -30
- 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/getagent.ts +87 -387
- package/src/models/operations/getalltools.ts +30 -30
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/invokeagent.ts +1569 -0
- package/src/models/operations/listagents.ts +8 -321
- package/src/models/operations/listagenttasks.ts +7 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +30 -30
- package/src/models/operations/runagent.ts +1441 -1488
- package/src/models/operations/streamagent.ts +1367 -0
- package/src/models/operations/streamrunagent.ts +1542 -1657
- package/src/models/operations/updateagent.ts +3227 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- 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 +60 -60
- package/src/sdk/agents.ts +90 -0
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Message$outboundSchema = exports.Message$inboundSchema = exports.PublicMessagePart$ = exports.PublicMessagePart$outboundSchema = exports.PublicMessagePart$inboundSchema = exports.TextPart$ = exports.TextPart$outboundSchema = exports.TextPart$inboundSchema = exports.Kind$ = exports.Kind$outboundSchema = exports.Kind$inboundSchema = exports.FilePart$ = exports.FilePart$outboundSchema = exports.FilePart$inboundSchema = exports.PublicMessagePartFile$ = exports.PublicMessagePartFile$outboundSchema = exports.PublicMessagePartFile$inboundSchema = exports.BinaryFormat$ = exports.BinaryFormat$outboundSchema = exports.BinaryFormat$inboundSchema = exports.FileInURIFormat$ = exports.FileInURIFormat$outboundSchema = exports.FileInURIFormat$inboundSchema = exports.PublicMessagePartKind$ = exports.PublicMessagePartKind$outboundSchema = exports.PublicMessagePartKind$inboundSchema = exports.ToolResultPart$ = exports.ToolResultPart$outboundSchema = exports.ToolResultPart$inboundSchema = exports.InvokeAgentPublicMessagePartKind$ = exports.InvokeAgentPublicMessagePartKind$outboundSchema = exports.InvokeAgentPublicMessagePartKind$inboundSchema = exports.InvokeAgentRole$ = exports.InvokeAgentRole$outboundSchema = exports.InvokeAgentRole$inboundSchema = exports.RoleUserMessage$ = exports.RoleUserMessage$outboundSchema = exports.RoleUserMessage$inboundSchema = exports.RoleToolMessage$ = exports.RoleToolMessage$outboundSchema = exports.RoleToolMessage$inboundSchema = exports.InvokeAgentAgentsRole = exports.InvokeAgentAgentsKind = exports.InvokeAgentState = exports.InvokeAgentKind = exports.Kind = exports.PublicMessagePartKind = exports.InvokeAgentPublicMessagePartKind = exports.RoleUserMessage = exports.RoleToolMessage = void 0;
|
|
40
|
+
exports.InvokeAgentResponseBody$ = exports.InvokeAgentResponseBody$outboundSchema = exports.InvokeAgentResponseBody$inboundSchema = exports.InvokeAgentStatus$ = exports.InvokeAgentStatus$outboundSchema = exports.InvokeAgentStatus$inboundSchema = exports.InvokeAgentMessage$ = exports.InvokeAgentMessage$outboundSchema = exports.InvokeAgentMessage$inboundSchema = exports.InvokeAgentAgentsRole$ = exports.InvokeAgentAgentsRole$outboundSchema = exports.InvokeAgentAgentsRole$inboundSchema = exports.InvokeAgentAgentsKind$ = exports.InvokeAgentAgentsKind$outboundSchema = exports.InvokeAgentAgentsKind$inboundSchema = exports.InvokeAgentState$ = exports.InvokeAgentState$outboundSchema = exports.InvokeAgentState$inboundSchema = exports.InvokeAgentKind$ = exports.InvokeAgentKind$outboundSchema = exports.InvokeAgentKind$inboundSchema = exports.InvokeAgentRequest$ = exports.InvokeAgentRequest$outboundSchema = exports.InvokeAgentRequest$inboundSchema = exports.InvokeAgentRequestBody$ = exports.InvokeAgentRequestBody$outboundSchema = exports.InvokeAgentRequestBody$inboundSchema = exports.Memory$ = exports.Memory$outboundSchema = exports.Memory$inboundSchema = exports.InvokeAgentThread$ = exports.InvokeAgentThread$outboundSchema = exports.InvokeAgentThread$inboundSchema = exports.Contact$ = exports.Contact$outboundSchema = exports.Contact$inboundSchema = exports.Message$ = void 0;
|
|
41
|
+
exports.invokeAgentRoleToJSON = invokeAgentRoleToJSON;
|
|
42
|
+
exports.invokeAgentRoleFromJSON = invokeAgentRoleFromJSON;
|
|
43
|
+
exports.toolResultPartToJSON = toolResultPartToJSON;
|
|
44
|
+
exports.toolResultPartFromJSON = toolResultPartFromJSON;
|
|
45
|
+
exports.fileInURIFormatToJSON = fileInURIFormatToJSON;
|
|
46
|
+
exports.fileInURIFormatFromJSON = fileInURIFormatFromJSON;
|
|
47
|
+
exports.binaryFormatToJSON = binaryFormatToJSON;
|
|
48
|
+
exports.binaryFormatFromJSON = binaryFormatFromJSON;
|
|
49
|
+
exports.publicMessagePartFileToJSON = publicMessagePartFileToJSON;
|
|
50
|
+
exports.publicMessagePartFileFromJSON = publicMessagePartFileFromJSON;
|
|
51
|
+
exports.filePartToJSON = filePartToJSON;
|
|
52
|
+
exports.filePartFromJSON = filePartFromJSON;
|
|
53
|
+
exports.textPartToJSON = textPartToJSON;
|
|
54
|
+
exports.textPartFromJSON = textPartFromJSON;
|
|
55
|
+
exports.publicMessagePartToJSON = publicMessagePartToJSON;
|
|
56
|
+
exports.publicMessagePartFromJSON = publicMessagePartFromJSON;
|
|
57
|
+
exports.messageToJSON = messageToJSON;
|
|
58
|
+
exports.messageFromJSON = messageFromJSON;
|
|
59
|
+
exports.contactToJSON = contactToJSON;
|
|
60
|
+
exports.contactFromJSON = contactFromJSON;
|
|
61
|
+
exports.invokeAgentThreadToJSON = invokeAgentThreadToJSON;
|
|
62
|
+
exports.invokeAgentThreadFromJSON = invokeAgentThreadFromJSON;
|
|
63
|
+
exports.memoryToJSON = memoryToJSON;
|
|
64
|
+
exports.memoryFromJSON = memoryFromJSON;
|
|
65
|
+
exports.invokeAgentRequestBodyToJSON = invokeAgentRequestBodyToJSON;
|
|
66
|
+
exports.invokeAgentRequestBodyFromJSON = invokeAgentRequestBodyFromJSON;
|
|
67
|
+
exports.invokeAgentRequestToJSON = invokeAgentRequestToJSON;
|
|
68
|
+
exports.invokeAgentRequestFromJSON = invokeAgentRequestFromJSON;
|
|
69
|
+
exports.invokeAgentMessageToJSON = invokeAgentMessageToJSON;
|
|
70
|
+
exports.invokeAgentMessageFromJSON = invokeAgentMessageFromJSON;
|
|
71
|
+
exports.invokeAgentStatusToJSON = invokeAgentStatusToJSON;
|
|
72
|
+
exports.invokeAgentStatusFromJSON = invokeAgentStatusFromJSON;
|
|
73
|
+
exports.invokeAgentResponseBodyToJSON = invokeAgentResponseBodyToJSON;
|
|
74
|
+
exports.invokeAgentResponseBodyFromJSON = invokeAgentResponseBodyFromJSON;
|
|
75
|
+
const z = __importStar(require("zod"));
|
|
76
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
77
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
78
|
+
/**
|
|
79
|
+
* Tool message
|
|
80
|
+
*/
|
|
81
|
+
exports.RoleToolMessage = {
|
|
82
|
+
Tool: "tool",
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* User message
|
|
86
|
+
*/
|
|
87
|
+
exports.RoleUserMessage = {
|
|
88
|
+
User: "user",
|
|
89
|
+
};
|
|
90
|
+
exports.InvokeAgentPublicMessagePartKind = {
|
|
91
|
+
ToolResult: "tool_result",
|
|
92
|
+
};
|
|
93
|
+
exports.PublicMessagePartKind = {
|
|
94
|
+
File: "file",
|
|
95
|
+
};
|
|
96
|
+
exports.Kind = {
|
|
97
|
+
Text: "text",
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* A2A entity type
|
|
101
|
+
*/
|
|
102
|
+
exports.InvokeAgentKind = {
|
|
103
|
+
Task: "task",
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Current task state
|
|
107
|
+
*/
|
|
108
|
+
exports.InvokeAgentState = {
|
|
109
|
+
Submitted: "submitted",
|
|
110
|
+
Working: "working",
|
|
111
|
+
InputRequired: "input-required",
|
|
112
|
+
Completed: "completed",
|
|
113
|
+
Failed: "failed",
|
|
114
|
+
Canceled: "canceled",
|
|
115
|
+
Rejected: "rejected",
|
|
116
|
+
AuthRequired: "auth-required",
|
|
117
|
+
Unknown: "unknown",
|
|
118
|
+
};
|
|
119
|
+
exports.InvokeAgentAgentsKind = {
|
|
120
|
+
Message: "message",
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Extended A2A message role
|
|
124
|
+
*/
|
|
125
|
+
exports.InvokeAgentAgentsRole = {
|
|
126
|
+
User: "user",
|
|
127
|
+
Agent: "agent",
|
|
128
|
+
Tool: "tool",
|
|
129
|
+
System: "system",
|
|
130
|
+
};
|
|
131
|
+
/** @internal */
|
|
132
|
+
exports.RoleToolMessage$inboundSchema = z.nativeEnum(exports.RoleToolMessage);
|
|
133
|
+
/** @internal */
|
|
134
|
+
exports.RoleToolMessage$outboundSchema = exports.RoleToolMessage$inboundSchema;
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
var RoleToolMessage$;
|
|
140
|
+
(function (RoleToolMessage$) {
|
|
141
|
+
/** @deprecated use `RoleToolMessage$inboundSchema` instead. */
|
|
142
|
+
RoleToolMessage$.inboundSchema = exports.RoleToolMessage$inboundSchema;
|
|
143
|
+
/** @deprecated use `RoleToolMessage$outboundSchema` instead. */
|
|
144
|
+
RoleToolMessage$.outboundSchema = exports.RoleToolMessage$outboundSchema;
|
|
145
|
+
})(RoleToolMessage$ || (exports.RoleToolMessage$ = RoleToolMessage$ = {}));
|
|
146
|
+
/** @internal */
|
|
147
|
+
exports.RoleUserMessage$inboundSchema = z.nativeEnum(exports.RoleUserMessage);
|
|
148
|
+
/** @internal */
|
|
149
|
+
exports.RoleUserMessage$outboundSchema = exports.RoleUserMessage$inboundSchema;
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
+
*/
|
|
154
|
+
var RoleUserMessage$;
|
|
155
|
+
(function (RoleUserMessage$) {
|
|
156
|
+
/** @deprecated use `RoleUserMessage$inboundSchema` instead. */
|
|
157
|
+
RoleUserMessage$.inboundSchema = exports.RoleUserMessage$inboundSchema;
|
|
158
|
+
/** @deprecated use `RoleUserMessage$outboundSchema` instead. */
|
|
159
|
+
RoleUserMessage$.outboundSchema = exports.RoleUserMessage$outboundSchema;
|
|
160
|
+
})(RoleUserMessage$ || (exports.RoleUserMessage$ = RoleUserMessage$ = {}));
|
|
161
|
+
/** @internal */
|
|
162
|
+
exports.InvokeAgentRole$inboundSchema = z.union([exports.RoleUserMessage$inboundSchema, exports.RoleToolMessage$inboundSchema]);
|
|
163
|
+
/** @internal */
|
|
164
|
+
exports.InvokeAgentRole$outboundSchema = z.union([exports.RoleUserMessage$outboundSchema, exports.RoleToolMessage$outboundSchema]);
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
+
*/
|
|
169
|
+
var InvokeAgentRole$;
|
|
170
|
+
(function (InvokeAgentRole$) {
|
|
171
|
+
/** @deprecated use `InvokeAgentRole$inboundSchema` instead. */
|
|
172
|
+
InvokeAgentRole$.inboundSchema = exports.InvokeAgentRole$inboundSchema;
|
|
173
|
+
/** @deprecated use `InvokeAgentRole$outboundSchema` instead. */
|
|
174
|
+
InvokeAgentRole$.outboundSchema = exports.InvokeAgentRole$outboundSchema;
|
|
175
|
+
})(InvokeAgentRole$ || (exports.InvokeAgentRole$ = InvokeAgentRole$ = {}));
|
|
176
|
+
function invokeAgentRoleToJSON(invokeAgentRole) {
|
|
177
|
+
return JSON.stringify(exports.InvokeAgentRole$outboundSchema.parse(invokeAgentRole));
|
|
178
|
+
}
|
|
179
|
+
function invokeAgentRoleFromJSON(jsonString) {
|
|
180
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentRole' from JSON`);
|
|
181
|
+
}
|
|
182
|
+
/** @internal */
|
|
183
|
+
exports.InvokeAgentPublicMessagePartKind$inboundSchema = z.nativeEnum(exports.InvokeAgentPublicMessagePartKind);
|
|
184
|
+
/** @internal */
|
|
185
|
+
exports.InvokeAgentPublicMessagePartKind$outboundSchema = exports.InvokeAgentPublicMessagePartKind$inboundSchema;
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
|
+
*/
|
|
190
|
+
var InvokeAgentPublicMessagePartKind$;
|
|
191
|
+
(function (InvokeAgentPublicMessagePartKind$) {
|
|
192
|
+
/** @deprecated use `InvokeAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
193
|
+
InvokeAgentPublicMessagePartKind$.inboundSchema = exports.InvokeAgentPublicMessagePartKind$inboundSchema;
|
|
194
|
+
/** @deprecated use `InvokeAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
195
|
+
InvokeAgentPublicMessagePartKind$.outboundSchema = exports.InvokeAgentPublicMessagePartKind$outboundSchema;
|
|
196
|
+
})(InvokeAgentPublicMessagePartKind$ || (exports.InvokeAgentPublicMessagePartKind$ = InvokeAgentPublicMessagePartKind$ = {}));
|
|
197
|
+
/** @internal */
|
|
198
|
+
exports.ToolResultPart$inboundSchema = z.object({
|
|
199
|
+
kind: exports.InvokeAgentPublicMessagePartKind$inboundSchema,
|
|
200
|
+
tool_call_id: z.string(),
|
|
201
|
+
result: z.any().optional(),
|
|
202
|
+
metadata: z.record(z.any()).optional(),
|
|
203
|
+
}).transform((v) => {
|
|
204
|
+
return (0, primitives_js_1.remap)(v, {
|
|
205
|
+
"tool_call_id": "toolCallId",
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
/** @internal */
|
|
209
|
+
exports.ToolResultPart$outboundSchema = z.object({
|
|
210
|
+
kind: exports.InvokeAgentPublicMessagePartKind$outboundSchema,
|
|
211
|
+
toolCallId: z.string(),
|
|
212
|
+
result: z.any().optional(),
|
|
213
|
+
metadata: z.record(z.any()).optional(),
|
|
214
|
+
}).transform((v) => {
|
|
215
|
+
return (0, primitives_js_1.remap)(v, {
|
|
216
|
+
toolCallId: "tool_call_id",
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
+
*/
|
|
223
|
+
var ToolResultPart$;
|
|
224
|
+
(function (ToolResultPart$) {
|
|
225
|
+
/** @deprecated use `ToolResultPart$inboundSchema` instead. */
|
|
226
|
+
ToolResultPart$.inboundSchema = exports.ToolResultPart$inboundSchema;
|
|
227
|
+
/** @deprecated use `ToolResultPart$outboundSchema` instead. */
|
|
228
|
+
ToolResultPart$.outboundSchema = exports.ToolResultPart$outboundSchema;
|
|
229
|
+
})(ToolResultPart$ || (exports.ToolResultPart$ = ToolResultPart$ = {}));
|
|
230
|
+
function toolResultPartToJSON(toolResultPart) {
|
|
231
|
+
return JSON.stringify(exports.ToolResultPart$outboundSchema.parse(toolResultPart));
|
|
232
|
+
}
|
|
233
|
+
function toolResultPartFromJSON(jsonString) {
|
|
234
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolResultPart' from JSON`);
|
|
235
|
+
}
|
|
236
|
+
/** @internal */
|
|
237
|
+
exports.PublicMessagePartKind$inboundSchema = z.nativeEnum(exports.PublicMessagePartKind);
|
|
238
|
+
/** @internal */
|
|
239
|
+
exports.PublicMessagePartKind$outboundSchema = exports.PublicMessagePartKind$inboundSchema;
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
243
|
+
*/
|
|
244
|
+
var PublicMessagePartKind$;
|
|
245
|
+
(function (PublicMessagePartKind$) {
|
|
246
|
+
/** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
|
|
247
|
+
PublicMessagePartKind$.inboundSchema = exports.PublicMessagePartKind$inboundSchema;
|
|
248
|
+
/** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
|
|
249
|
+
PublicMessagePartKind$.outboundSchema = exports.PublicMessagePartKind$outboundSchema;
|
|
250
|
+
})(PublicMessagePartKind$ || (exports.PublicMessagePartKind$ = PublicMessagePartKind$ = {}));
|
|
251
|
+
/** @internal */
|
|
252
|
+
exports.FileInURIFormat$inboundSchema = z.object({
|
|
253
|
+
uri: z.string(),
|
|
254
|
+
mimeType: z.string().optional(),
|
|
255
|
+
name: z.string().optional(),
|
|
256
|
+
});
|
|
257
|
+
/** @internal */
|
|
258
|
+
exports.FileInURIFormat$outboundSchema = z.object({
|
|
259
|
+
uri: z.string(),
|
|
260
|
+
mimeType: z.string().optional(),
|
|
261
|
+
name: z.string().optional(),
|
|
262
|
+
});
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
266
|
+
*/
|
|
267
|
+
var FileInURIFormat$;
|
|
268
|
+
(function (FileInURIFormat$) {
|
|
269
|
+
/** @deprecated use `FileInURIFormat$inboundSchema` instead. */
|
|
270
|
+
FileInURIFormat$.inboundSchema = exports.FileInURIFormat$inboundSchema;
|
|
271
|
+
/** @deprecated use `FileInURIFormat$outboundSchema` instead. */
|
|
272
|
+
FileInURIFormat$.outboundSchema = exports.FileInURIFormat$outboundSchema;
|
|
273
|
+
})(FileInURIFormat$ || (exports.FileInURIFormat$ = FileInURIFormat$ = {}));
|
|
274
|
+
function fileInURIFormatToJSON(fileInURIFormat) {
|
|
275
|
+
return JSON.stringify(exports.FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
276
|
+
}
|
|
277
|
+
function fileInURIFormatFromJSON(jsonString) {
|
|
278
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileInURIFormat' from JSON`);
|
|
279
|
+
}
|
|
280
|
+
/** @internal */
|
|
281
|
+
exports.BinaryFormat$inboundSchema = z.object({
|
|
282
|
+
bytes: z.string(),
|
|
283
|
+
mimeType: z.string().optional(),
|
|
284
|
+
name: z.string().optional(),
|
|
285
|
+
});
|
|
286
|
+
/** @internal */
|
|
287
|
+
exports.BinaryFormat$outboundSchema = z.object({
|
|
288
|
+
bytes: z.string(),
|
|
289
|
+
mimeType: z.string().optional(),
|
|
290
|
+
name: z.string().optional(),
|
|
291
|
+
});
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
295
|
+
*/
|
|
296
|
+
var BinaryFormat$;
|
|
297
|
+
(function (BinaryFormat$) {
|
|
298
|
+
/** @deprecated use `BinaryFormat$inboundSchema` instead. */
|
|
299
|
+
BinaryFormat$.inboundSchema = exports.BinaryFormat$inboundSchema;
|
|
300
|
+
/** @deprecated use `BinaryFormat$outboundSchema` instead. */
|
|
301
|
+
BinaryFormat$.outboundSchema = exports.BinaryFormat$outboundSchema;
|
|
302
|
+
})(BinaryFormat$ || (exports.BinaryFormat$ = BinaryFormat$ = {}));
|
|
303
|
+
function binaryFormatToJSON(binaryFormat) {
|
|
304
|
+
return JSON.stringify(exports.BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
305
|
+
}
|
|
306
|
+
function binaryFormatFromJSON(jsonString) {
|
|
307
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BinaryFormat' from JSON`);
|
|
308
|
+
}
|
|
309
|
+
/** @internal */
|
|
310
|
+
exports.PublicMessagePartFile$inboundSchema = z.union([
|
|
311
|
+
z.lazy(() => exports.BinaryFormat$inboundSchema),
|
|
312
|
+
z.lazy(() => exports.FileInURIFormat$inboundSchema),
|
|
313
|
+
]);
|
|
314
|
+
/** @internal */
|
|
315
|
+
exports.PublicMessagePartFile$outboundSchema = z.union([
|
|
316
|
+
z.lazy(() => exports.BinaryFormat$outboundSchema),
|
|
317
|
+
z.lazy(() => exports.FileInURIFormat$outboundSchema),
|
|
318
|
+
]);
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
322
|
+
*/
|
|
323
|
+
var PublicMessagePartFile$;
|
|
324
|
+
(function (PublicMessagePartFile$) {
|
|
325
|
+
/** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
|
|
326
|
+
PublicMessagePartFile$.inboundSchema = exports.PublicMessagePartFile$inboundSchema;
|
|
327
|
+
/** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
|
|
328
|
+
PublicMessagePartFile$.outboundSchema = exports.PublicMessagePartFile$outboundSchema;
|
|
329
|
+
})(PublicMessagePartFile$ || (exports.PublicMessagePartFile$ = PublicMessagePartFile$ = {}));
|
|
330
|
+
function publicMessagePartFileToJSON(publicMessagePartFile) {
|
|
331
|
+
return JSON.stringify(exports.PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile));
|
|
332
|
+
}
|
|
333
|
+
function publicMessagePartFileFromJSON(jsonString) {
|
|
334
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePartFile' from JSON`);
|
|
335
|
+
}
|
|
336
|
+
/** @internal */
|
|
337
|
+
exports.FilePart$inboundSchema = z.object({
|
|
338
|
+
kind: exports.PublicMessagePartKind$inboundSchema,
|
|
339
|
+
file: z.union([
|
|
340
|
+
z.lazy(() => exports.BinaryFormat$inboundSchema),
|
|
341
|
+
z.lazy(() => exports.FileInURIFormat$inboundSchema),
|
|
342
|
+
]),
|
|
343
|
+
metadata: z.record(z.any()).optional(),
|
|
344
|
+
});
|
|
345
|
+
/** @internal */
|
|
346
|
+
exports.FilePart$outboundSchema = z.object({
|
|
347
|
+
kind: exports.PublicMessagePartKind$outboundSchema,
|
|
348
|
+
file: z.union([
|
|
349
|
+
z.lazy(() => exports.BinaryFormat$outboundSchema),
|
|
350
|
+
z.lazy(() => exports.FileInURIFormat$outboundSchema),
|
|
351
|
+
]),
|
|
352
|
+
metadata: z.record(z.any()).optional(),
|
|
353
|
+
});
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
357
|
+
*/
|
|
358
|
+
var FilePart$;
|
|
359
|
+
(function (FilePart$) {
|
|
360
|
+
/** @deprecated use `FilePart$inboundSchema` instead. */
|
|
361
|
+
FilePart$.inboundSchema = exports.FilePart$inboundSchema;
|
|
362
|
+
/** @deprecated use `FilePart$outboundSchema` instead. */
|
|
363
|
+
FilePart$.outboundSchema = exports.FilePart$outboundSchema;
|
|
364
|
+
})(FilePart$ || (exports.FilePart$ = FilePart$ = {}));
|
|
365
|
+
function filePartToJSON(filePart) {
|
|
366
|
+
return JSON.stringify(exports.FilePart$outboundSchema.parse(filePart));
|
|
367
|
+
}
|
|
368
|
+
function filePartFromJSON(jsonString) {
|
|
369
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilePart' from JSON`);
|
|
370
|
+
}
|
|
371
|
+
/** @internal */
|
|
372
|
+
exports.Kind$inboundSchema = z.nativeEnum(exports.Kind);
|
|
373
|
+
/** @internal */
|
|
374
|
+
exports.Kind$outboundSchema = exports.Kind$inboundSchema;
|
|
375
|
+
/**
|
|
376
|
+
* @internal
|
|
377
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
378
|
+
*/
|
|
379
|
+
var Kind$;
|
|
380
|
+
(function (Kind$) {
|
|
381
|
+
/** @deprecated use `Kind$inboundSchema` instead. */
|
|
382
|
+
Kind$.inboundSchema = exports.Kind$inboundSchema;
|
|
383
|
+
/** @deprecated use `Kind$outboundSchema` instead. */
|
|
384
|
+
Kind$.outboundSchema = exports.Kind$outboundSchema;
|
|
385
|
+
})(Kind$ || (exports.Kind$ = Kind$ = {}));
|
|
386
|
+
/** @internal */
|
|
387
|
+
exports.TextPart$inboundSchema = z.object({
|
|
388
|
+
kind: exports.Kind$inboundSchema,
|
|
389
|
+
text: z.string(),
|
|
390
|
+
});
|
|
391
|
+
/** @internal */
|
|
392
|
+
exports.TextPart$outboundSchema = z.object({
|
|
393
|
+
kind: exports.Kind$outboundSchema,
|
|
394
|
+
text: z.string(),
|
|
395
|
+
});
|
|
396
|
+
/**
|
|
397
|
+
* @internal
|
|
398
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
399
|
+
*/
|
|
400
|
+
var TextPart$;
|
|
401
|
+
(function (TextPart$) {
|
|
402
|
+
/** @deprecated use `TextPart$inboundSchema` instead. */
|
|
403
|
+
TextPart$.inboundSchema = exports.TextPart$inboundSchema;
|
|
404
|
+
/** @deprecated use `TextPart$outboundSchema` instead. */
|
|
405
|
+
TextPart$.outboundSchema = exports.TextPart$outboundSchema;
|
|
406
|
+
})(TextPart$ || (exports.TextPart$ = TextPart$ = {}));
|
|
407
|
+
function textPartToJSON(textPart) {
|
|
408
|
+
return JSON.stringify(exports.TextPart$outboundSchema.parse(textPart));
|
|
409
|
+
}
|
|
410
|
+
function textPartFromJSON(jsonString) {
|
|
411
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TextPart' from JSON`);
|
|
412
|
+
}
|
|
413
|
+
/** @internal */
|
|
414
|
+
exports.PublicMessagePart$inboundSchema = z.union([
|
|
415
|
+
z.lazy(() => exports.TextPart$inboundSchema),
|
|
416
|
+
z.lazy(() => exports.FilePart$inboundSchema),
|
|
417
|
+
z.lazy(() => exports.ToolResultPart$inboundSchema),
|
|
418
|
+
]);
|
|
419
|
+
/** @internal */
|
|
420
|
+
exports.PublicMessagePart$outboundSchema = z.union([
|
|
421
|
+
z.lazy(() => exports.TextPart$outboundSchema),
|
|
422
|
+
z.lazy(() => exports.FilePart$outboundSchema),
|
|
423
|
+
z.lazy(() => exports.ToolResultPart$outboundSchema),
|
|
424
|
+
]);
|
|
425
|
+
/**
|
|
426
|
+
* @internal
|
|
427
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
428
|
+
*/
|
|
429
|
+
var PublicMessagePart$;
|
|
430
|
+
(function (PublicMessagePart$) {
|
|
431
|
+
/** @deprecated use `PublicMessagePart$inboundSchema` instead. */
|
|
432
|
+
PublicMessagePart$.inboundSchema = exports.PublicMessagePart$inboundSchema;
|
|
433
|
+
/** @deprecated use `PublicMessagePart$outboundSchema` instead. */
|
|
434
|
+
PublicMessagePart$.outboundSchema = exports.PublicMessagePart$outboundSchema;
|
|
435
|
+
})(PublicMessagePart$ || (exports.PublicMessagePart$ = PublicMessagePart$ = {}));
|
|
436
|
+
function publicMessagePartToJSON(publicMessagePart) {
|
|
437
|
+
return JSON.stringify(exports.PublicMessagePart$outboundSchema.parse(publicMessagePart));
|
|
438
|
+
}
|
|
439
|
+
function publicMessagePartFromJSON(jsonString) {
|
|
440
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePart' from JSON`);
|
|
441
|
+
}
|
|
442
|
+
/** @internal */
|
|
443
|
+
exports.Message$inboundSchema = z.object({
|
|
444
|
+
messageId: z.string().optional(),
|
|
445
|
+
role: z.union([
|
|
446
|
+
exports.RoleUserMessage$inboundSchema,
|
|
447
|
+
exports.RoleToolMessage$inboundSchema,
|
|
448
|
+
]),
|
|
449
|
+
parts: z.array(z.union([
|
|
450
|
+
z.lazy(() => exports.TextPart$inboundSchema),
|
|
451
|
+
z.lazy(() => exports.FilePart$inboundSchema),
|
|
452
|
+
z.lazy(() => exports.ToolResultPart$inboundSchema),
|
|
453
|
+
])),
|
|
454
|
+
});
|
|
455
|
+
/** @internal */
|
|
456
|
+
exports.Message$outboundSchema = z.object({
|
|
457
|
+
messageId: z.string().optional(),
|
|
458
|
+
role: z.union([
|
|
459
|
+
exports.RoleUserMessage$outboundSchema,
|
|
460
|
+
exports.RoleToolMessage$outboundSchema,
|
|
461
|
+
]),
|
|
462
|
+
parts: z.array(z.union([
|
|
463
|
+
z.lazy(() => exports.TextPart$outboundSchema),
|
|
464
|
+
z.lazy(() => exports.FilePart$outboundSchema),
|
|
465
|
+
z.lazy(() => exports.ToolResultPart$outboundSchema),
|
|
466
|
+
])),
|
|
467
|
+
});
|
|
468
|
+
/**
|
|
469
|
+
* @internal
|
|
470
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
471
|
+
*/
|
|
472
|
+
var Message$;
|
|
473
|
+
(function (Message$) {
|
|
474
|
+
/** @deprecated use `Message$inboundSchema` instead. */
|
|
475
|
+
Message$.inboundSchema = exports.Message$inboundSchema;
|
|
476
|
+
/** @deprecated use `Message$outboundSchema` instead. */
|
|
477
|
+
Message$.outboundSchema = exports.Message$outboundSchema;
|
|
478
|
+
})(Message$ || (exports.Message$ = Message$ = {}));
|
|
479
|
+
function messageToJSON(message) {
|
|
480
|
+
return JSON.stringify(exports.Message$outboundSchema.parse(message));
|
|
481
|
+
}
|
|
482
|
+
function messageFromJSON(jsonString) {
|
|
483
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Message$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Message' from JSON`);
|
|
484
|
+
}
|
|
485
|
+
/** @internal */
|
|
486
|
+
exports.Contact$inboundSchema = z.object({
|
|
487
|
+
id: z.string(),
|
|
488
|
+
display_name: z.string().optional(),
|
|
489
|
+
email: z.string().optional(),
|
|
490
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
491
|
+
logo_url: z.string().optional(),
|
|
492
|
+
tags: z.array(z.string()).optional(),
|
|
493
|
+
}).transform((v) => {
|
|
494
|
+
return (0, primitives_js_1.remap)(v, {
|
|
495
|
+
"display_name": "displayName",
|
|
496
|
+
"logo_url": "logoUrl",
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
/** @internal */
|
|
500
|
+
exports.Contact$outboundSchema = z.object({
|
|
501
|
+
id: z.string(),
|
|
502
|
+
displayName: z.string().optional(),
|
|
503
|
+
email: z.string().optional(),
|
|
504
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
505
|
+
logoUrl: z.string().optional(),
|
|
506
|
+
tags: z.array(z.string()).optional(),
|
|
507
|
+
}).transform((v) => {
|
|
508
|
+
return (0, primitives_js_1.remap)(v, {
|
|
509
|
+
displayName: "display_name",
|
|
510
|
+
logoUrl: "logo_url",
|
|
511
|
+
});
|
|
512
|
+
});
|
|
513
|
+
/**
|
|
514
|
+
* @internal
|
|
515
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
516
|
+
*/
|
|
517
|
+
var Contact$;
|
|
518
|
+
(function (Contact$) {
|
|
519
|
+
/** @deprecated use `Contact$inboundSchema` instead. */
|
|
520
|
+
Contact$.inboundSchema = exports.Contact$inboundSchema;
|
|
521
|
+
/** @deprecated use `Contact$outboundSchema` instead. */
|
|
522
|
+
Contact$.outboundSchema = exports.Contact$outboundSchema;
|
|
523
|
+
})(Contact$ || (exports.Contact$ = Contact$ = {}));
|
|
524
|
+
function contactToJSON(contact) {
|
|
525
|
+
return JSON.stringify(exports.Contact$outboundSchema.parse(contact));
|
|
526
|
+
}
|
|
527
|
+
function contactFromJSON(jsonString) {
|
|
528
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Contact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Contact' from JSON`);
|
|
529
|
+
}
|
|
530
|
+
/** @internal */
|
|
531
|
+
exports.InvokeAgentThread$inboundSchema = z.object({
|
|
532
|
+
id: z.string(),
|
|
533
|
+
tags: z.array(z.string()).optional(),
|
|
534
|
+
});
|
|
535
|
+
/** @internal */
|
|
536
|
+
exports.InvokeAgentThread$outboundSchema = z.object({
|
|
537
|
+
id: z.string(),
|
|
538
|
+
tags: z.array(z.string()).optional(),
|
|
539
|
+
});
|
|
540
|
+
/**
|
|
541
|
+
* @internal
|
|
542
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
|
+
*/
|
|
544
|
+
var InvokeAgentThread$;
|
|
545
|
+
(function (InvokeAgentThread$) {
|
|
546
|
+
/** @deprecated use `InvokeAgentThread$inboundSchema` instead. */
|
|
547
|
+
InvokeAgentThread$.inboundSchema = exports.InvokeAgentThread$inboundSchema;
|
|
548
|
+
/** @deprecated use `InvokeAgentThread$outboundSchema` instead. */
|
|
549
|
+
InvokeAgentThread$.outboundSchema = exports.InvokeAgentThread$outboundSchema;
|
|
550
|
+
})(InvokeAgentThread$ || (exports.InvokeAgentThread$ = InvokeAgentThread$ = {}));
|
|
551
|
+
function invokeAgentThreadToJSON(invokeAgentThread) {
|
|
552
|
+
return JSON.stringify(exports.InvokeAgentThread$outboundSchema.parse(invokeAgentThread));
|
|
553
|
+
}
|
|
554
|
+
function invokeAgentThreadFromJSON(jsonString) {
|
|
555
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentThread$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentThread' from JSON`);
|
|
556
|
+
}
|
|
557
|
+
/** @internal */
|
|
558
|
+
exports.Memory$inboundSchema = z
|
|
559
|
+
.object({
|
|
560
|
+
entity_id: z.string(),
|
|
561
|
+
}).transform((v) => {
|
|
562
|
+
return (0, primitives_js_1.remap)(v, {
|
|
563
|
+
"entity_id": "entityId",
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
/** @internal */
|
|
567
|
+
exports.Memory$outboundSchema = z.object({
|
|
568
|
+
entityId: z.string(),
|
|
569
|
+
}).transform((v) => {
|
|
570
|
+
return (0, primitives_js_1.remap)(v, {
|
|
571
|
+
entityId: "entity_id",
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
577
|
+
*/
|
|
578
|
+
var Memory$;
|
|
579
|
+
(function (Memory$) {
|
|
580
|
+
/** @deprecated use `Memory$inboundSchema` instead. */
|
|
581
|
+
Memory$.inboundSchema = exports.Memory$inboundSchema;
|
|
582
|
+
/** @deprecated use `Memory$outboundSchema` instead. */
|
|
583
|
+
Memory$.outboundSchema = exports.Memory$outboundSchema;
|
|
584
|
+
})(Memory$ || (exports.Memory$ = Memory$ = {}));
|
|
585
|
+
function memoryToJSON(memory) {
|
|
586
|
+
return JSON.stringify(exports.Memory$outboundSchema.parse(memory));
|
|
587
|
+
}
|
|
588
|
+
function memoryFromJSON(jsonString) {
|
|
589
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Memory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Memory' from JSON`);
|
|
590
|
+
}
|
|
591
|
+
/** @internal */
|
|
592
|
+
exports.InvokeAgentRequestBody$inboundSchema = z.object({
|
|
593
|
+
task_id: z.string().optional(),
|
|
594
|
+
message: z.lazy(() => exports.Message$inboundSchema),
|
|
595
|
+
variables: z.record(z.any()).optional(),
|
|
596
|
+
contact: z.lazy(() => exports.Contact$inboundSchema).optional(),
|
|
597
|
+
thread: z.lazy(() => exports.InvokeAgentThread$inboundSchema).optional(),
|
|
598
|
+
memory: z.lazy(() => exports.Memory$inboundSchema).optional(),
|
|
599
|
+
metadata: z.record(z.any()).optional(),
|
|
600
|
+
}).transform((v) => {
|
|
601
|
+
return (0, primitives_js_1.remap)(v, {
|
|
602
|
+
"task_id": "taskId",
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
/** @internal */
|
|
606
|
+
exports.InvokeAgentRequestBody$outboundSchema = z.object({
|
|
607
|
+
taskId: z.string().optional(),
|
|
608
|
+
message: z.lazy(() => exports.Message$outboundSchema),
|
|
609
|
+
variables: z.record(z.any()).optional(),
|
|
610
|
+
contact: z.lazy(() => exports.Contact$outboundSchema).optional(),
|
|
611
|
+
thread: z.lazy(() => exports.InvokeAgentThread$outboundSchema).optional(),
|
|
612
|
+
memory: z.lazy(() => exports.Memory$outboundSchema).optional(),
|
|
613
|
+
metadata: z.record(z.any()).optional(),
|
|
614
|
+
}).transform((v) => {
|
|
615
|
+
return (0, primitives_js_1.remap)(v, {
|
|
616
|
+
taskId: "task_id",
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
/**
|
|
620
|
+
* @internal
|
|
621
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
622
|
+
*/
|
|
623
|
+
var InvokeAgentRequestBody$;
|
|
624
|
+
(function (InvokeAgentRequestBody$) {
|
|
625
|
+
/** @deprecated use `InvokeAgentRequestBody$inboundSchema` instead. */
|
|
626
|
+
InvokeAgentRequestBody$.inboundSchema = exports.InvokeAgentRequestBody$inboundSchema;
|
|
627
|
+
/** @deprecated use `InvokeAgentRequestBody$outboundSchema` instead. */
|
|
628
|
+
InvokeAgentRequestBody$.outboundSchema = exports.InvokeAgentRequestBody$outboundSchema;
|
|
629
|
+
})(InvokeAgentRequestBody$ || (exports.InvokeAgentRequestBody$ = InvokeAgentRequestBody$ = {}));
|
|
630
|
+
function invokeAgentRequestBodyToJSON(invokeAgentRequestBody) {
|
|
631
|
+
return JSON.stringify(exports.InvokeAgentRequestBody$outboundSchema.parse(invokeAgentRequestBody));
|
|
632
|
+
}
|
|
633
|
+
function invokeAgentRequestBodyFromJSON(jsonString) {
|
|
634
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentRequestBody' from JSON`);
|
|
635
|
+
}
|
|
636
|
+
/** @internal */
|
|
637
|
+
exports.InvokeAgentRequest$inboundSchema = z.object({
|
|
638
|
+
key: z.string(),
|
|
639
|
+
RequestBody: z.lazy(() => exports.InvokeAgentRequestBody$inboundSchema).optional(),
|
|
640
|
+
}).transform((v) => {
|
|
641
|
+
return (0, primitives_js_1.remap)(v, {
|
|
642
|
+
"RequestBody": "requestBody",
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
/** @internal */
|
|
646
|
+
exports.InvokeAgentRequest$outboundSchema = z.object({
|
|
647
|
+
key: z.string(),
|
|
648
|
+
requestBody: z.lazy(() => exports.InvokeAgentRequestBody$outboundSchema).optional(),
|
|
649
|
+
}).transform((v) => {
|
|
650
|
+
return (0, primitives_js_1.remap)(v, {
|
|
651
|
+
requestBody: "RequestBody",
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
/**
|
|
655
|
+
* @internal
|
|
656
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
657
|
+
*/
|
|
658
|
+
var InvokeAgentRequest$;
|
|
659
|
+
(function (InvokeAgentRequest$) {
|
|
660
|
+
/** @deprecated use `InvokeAgentRequest$inboundSchema` instead. */
|
|
661
|
+
InvokeAgentRequest$.inboundSchema = exports.InvokeAgentRequest$inboundSchema;
|
|
662
|
+
/** @deprecated use `InvokeAgentRequest$outboundSchema` instead. */
|
|
663
|
+
InvokeAgentRequest$.outboundSchema = exports.InvokeAgentRequest$outboundSchema;
|
|
664
|
+
})(InvokeAgentRequest$ || (exports.InvokeAgentRequest$ = InvokeAgentRequest$ = {}));
|
|
665
|
+
function invokeAgentRequestToJSON(invokeAgentRequest) {
|
|
666
|
+
return JSON.stringify(exports.InvokeAgentRequest$outboundSchema.parse(invokeAgentRequest));
|
|
667
|
+
}
|
|
668
|
+
function invokeAgentRequestFromJSON(jsonString) {
|
|
669
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentRequest' from JSON`);
|
|
670
|
+
}
|
|
671
|
+
/** @internal */
|
|
672
|
+
exports.InvokeAgentKind$inboundSchema = z.nativeEnum(exports.InvokeAgentKind);
|
|
673
|
+
/** @internal */
|
|
674
|
+
exports.InvokeAgentKind$outboundSchema = exports.InvokeAgentKind$inboundSchema;
|
|
675
|
+
/**
|
|
676
|
+
* @internal
|
|
677
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
678
|
+
*/
|
|
679
|
+
var InvokeAgentKind$;
|
|
680
|
+
(function (InvokeAgentKind$) {
|
|
681
|
+
/** @deprecated use `InvokeAgentKind$inboundSchema` instead. */
|
|
682
|
+
InvokeAgentKind$.inboundSchema = exports.InvokeAgentKind$inboundSchema;
|
|
683
|
+
/** @deprecated use `InvokeAgentKind$outboundSchema` instead. */
|
|
684
|
+
InvokeAgentKind$.outboundSchema = exports.InvokeAgentKind$outboundSchema;
|
|
685
|
+
})(InvokeAgentKind$ || (exports.InvokeAgentKind$ = InvokeAgentKind$ = {}));
|
|
686
|
+
/** @internal */
|
|
687
|
+
exports.InvokeAgentState$inboundSchema = z.nativeEnum(exports.InvokeAgentState);
|
|
688
|
+
/** @internal */
|
|
689
|
+
exports.InvokeAgentState$outboundSchema = exports.InvokeAgentState$inboundSchema;
|
|
690
|
+
/**
|
|
691
|
+
* @internal
|
|
692
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
693
|
+
*/
|
|
694
|
+
var InvokeAgentState$;
|
|
695
|
+
(function (InvokeAgentState$) {
|
|
696
|
+
/** @deprecated use `InvokeAgentState$inboundSchema` instead. */
|
|
697
|
+
InvokeAgentState$.inboundSchema = exports.InvokeAgentState$inboundSchema;
|
|
698
|
+
/** @deprecated use `InvokeAgentState$outboundSchema` instead. */
|
|
699
|
+
InvokeAgentState$.outboundSchema = exports.InvokeAgentState$outboundSchema;
|
|
700
|
+
})(InvokeAgentState$ || (exports.InvokeAgentState$ = InvokeAgentState$ = {}));
|
|
701
|
+
/** @internal */
|
|
702
|
+
exports.InvokeAgentAgentsKind$inboundSchema = z.nativeEnum(exports.InvokeAgentAgentsKind);
|
|
703
|
+
/** @internal */
|
|
704
|
+
exports.InvokeAgentAgentsKind$outboundSchema = exports.InvokeAgentAgentsKind$inboundSchema;
|
|
705
|
+
/**
|
|
706
|
+
* @internal
|
|
707
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
708
|
+
*/
|
|
709
|
+
var InvokeAgentAgentsKind$;
|
|
710
|
+
(function (InvokeAgentAgentsKind$) {
|
|
711
|
+
/** @deprecated use `InvokeAgentAgentsKind$inboundSchema` instead. */
|
|
712
|
+
InvokeAgentAgentsKind$.inboundSchema = exports.InvokeAgentAgentsKind$inboundSchema;
|
|
713
|
+
/** @deprecated use `InvokeAgentAgentsKind$outboundSchema` instead. */
|
|
714
|
+
InvokeAgentAgentsKind$.outboundSchema = exports.InvokeAgentAgentsKind$outboundSchema;
|
|
715
|
+
})(InvokeAgentAgentsKind$ || (exports.InvokeAgentAgentsKind$ = InvokeAgentAgentsKind$ = {}));
|
|
716
|
+
/** @internal */
|
|
717
|
+
exports.InvokeAgentAgentsRole$inboundSchema = z.nativeEnum(exports.InvokeAgentAgentsRole);
|
|
718
|
+
/** @internal */
|
|
719
|
+
exports.InvokeAgentAgentsRole$outboundSchema = exports.InvokeAgentAgentsRole$inboundSchema;
|
|
720
|
+
/**
|
|
721
|
+
* @internal
|
|
722
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
723
|
+
*/
|
|
724
|
+
var InvokeAgentAgentsRole$;
|
|
725
|
+
(function (InvokeAgentAgentsRole$) {
|
|
726
|
+
/** @deprecated use `InvokeAgentAgentsRole$inboundSchema` instead. */
|
|
727
|
+
InvokeAgentAgentsRole$.inboundSchema = exports.InvokeAgentAgentsRole$inboundSchema;
|
|
728
|
+
/** @deprecated use `InvokeAgentAgentsRole$outboundSchema` instead. */
|
|
729
|
+
InvokeAgentAgentsRole$.outboundSchema = exports.InvokeAgentAgentsRole$outboundSchema;
|
|
730
|
+
})(InvokeAgentAgentsRole$ || (exports.InvokeAgentAgentsRole$ = InvokeAgentAgentsRole$ = {}));
|
|
731
|
+
/** @internal */
|
|
732
|
+
exports.InvokeAgentMessage$inboundSchema = z.object({
|
|
733
|
+
kind: exports.InvokeAgentAgentsKind$inboundSchema,
|
|
734
|
+
messageId: z.string(),
|
|
735
|
+
role: exports.InvokeAgentAgentsRole$inboundSchema,
|
|
736
|
+
parts: z.array(z.any()),
|
|
737
|
+
});
|
|
738
|
+
/** @internal */
|
|
739
|
+
exports.InvokeAgentMessage$outboundSchema = z.object({
|
|
740
|
+
kind: exports.InvokeAgentAgentsKind$outboundSchema,
|
|
741
|
+
messageId: z.string(),
|
|
742
|
+
role: exports.InvokeAgentAgentsRole$outboundSchema,
|
|
743
|
+
parts: z.array(z.any()),
|
|
744
|
+
});
|
|
745
|
+
/**
|
|
746
|
+
* @internal
|
|
747
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
748
|
+
*/
|
|
749
|
+
var InvokeAgentMessage$;
|
|
750
|
+
(function (InvokeAgentMessage$) {
|
|
751
|
+
/** @deprecated use `InvokeAgentMessage$inboundSchema` instead. */
|
|
752
|
+
InvokeAgentMessage$.inboundSchema = exports.InvokeAgentMessage$inboundSchema;
|
|
753
|
+
/** @deprecated use `InvokeAgentMessage$outboundSchema` instead. */
|
|
754
|
+
InvokeAgentMessage$.outboundSchema = exports.InvokeAgentMessage$outboundSchema;
|
|
755
|
+
})(InvokeAgentMessage$ || (exports.InvokeAgentMessage$ = InvokeAgentMessage$ = {}));
|
|
756
|
+
function invokeAgentMessageToJSON(invokeAgentMessage) {
|
|
757
|
+
return JSON.stringify(exports.InvokeAgentMessage$outboundSchema.parse(invokeAgentMessage));
|
|
758
|
+
}
|
|
759
|
+
function invokeAgentMessageFromJSON(jsonString) {
|
|
760
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentMessage' from JSON`);
|
|
761
|
+
}
|
|
762
|
+
/** @internal */
|
|
763
|
+
exports.InvokeAgentStatus$inboundSchema = z.object({
|
|
764
|
+
state: exports.InvokeAgentState$inboundSchema,
|
|
765
|
+
timestamp: z.string().optional(),
|
|
766
|
+
message: z.lazy(() => exports.InvokeAgentMessage$inboundSchema).optional(),
|
|
767
|
+
});
|
|
768
|
+
/** @internal */
|
|
769
|
+
exports.InvokeAgentStatus$outboundSchema = z.object({
|
|
770
|
+
state: exports.InvokeAgentState$outboundSchema,
|
|
771
|
+
timestamp: z.string().optional(),
|
|
772
|
+
message: z.lazy(() => exports.InvokeAgentMessage$outboundSchema).optional(),
|
|
773
|
+
});
|
|
774
|
+
/**
|
|
775
|
+
* @internal
|
|
776
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
777
|
+
*/
|
|
778
|
+
var InvokeAgentStatus$;
|
|
779
|
+
(function (InvokeAgentStatus$) {
|
|
780
|
+
/** @deprecated use `InvokeAgentStatus$inboundSchema` instead. */
|
|
781
|
+
InvokeAgentStatus$.inboundSchema = exports.InvokeAgentStatus$inboundSchema;
|
|
782
|
+
/** @deprecated use `InvokeAgentStatus$outboundSchema` instead. */
|
|
783
|
+
InvokeAgentStatus$.outboundSchema = exports.InvokeAgentStatus$outboundSchema;
|
|
784
|
+
})(InvokeAgentStatus$ || (exports.InvokeAgentStatus$ = InvokeAgentStatus$ = {}));
|
|
785
|
+
function invokeAgentStatusToJSON(invokeAgentStatus) {
|
|
786
|
+
return JSON.stringify(exports.InvokeAgentStatus$outboundSchema.parse(invokeAgentStatus));
|
|
787
|
+
}
|
|
788
|
+
function invokeAgentStatusFromJSON(jsonString) {
|
|
789
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentStatus' from JSON`);
|
|
790
|
+
}
|
|
791
|
+
/** @internal */
|
|
792
|
+
exports.InvokeAgentResponseBody$inboundSchema = z.object({
|
|
793
|
+
id: z.string(),
|
|
794
|
+
contextId: z.string(),
|
|
795
|
+
kind: exports.InvokeAgentKind$inboundSchema,
|
|
796
|
+
status: z.lazy(() => exports.InvokeAgentStatus$inboundSchema),
|
|
797
|
+
metadata: z.record(z.any()).optional(),
|
|
798
|
+
});
|
|
799
|
+
/** @internal */
|
|
800
|
+
exports.InvokeAgentResponseBody$outboundSchema = z.object({
|
|
801
|
+
id: z.string(),
|
|
802
|
+
contextId: z.string(),
|
|
803
|
+
kind: exports.InvokeAgentKind$outboundSchema,
|
|
804
|
+
status: z.lazy(() => exports.InvokeAgentStatus$outboundSchema),
|
|
805
|
+
metadata: z.record(z.any()).optional(),
|
|
806
|
+
});
|
|
807
|
+
/**
|
|
808
|
+
* @internal
|
|
809
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
810
|
+
*/
|
|
811
|
+
var InvokeAgentResponseBody$;
|
|
812
|
+
(function (InvokeAgentResponseBody$) {
|
|
813
|
+
/** @deprecated use `InvokeAgentResponseBody$inboundSchema` instead. */
|
|
814
|
+
InvokeAgentResponseBody$.inboundSchema = exports.InvokeAgentResponseBody$inboundSchema;
|
|
815
|
+
/** @deprecated use `InvokeAgentResponseBody$outboundSchema` instead. */
|
|
816
|
+
InvokeAgentResponseBody$.outboundSchema = exports.InvokeAgentResponseBody$outboundSchema;
|
|
817
|
+
})(InvokeAgentResponseBody$ || (exports.InvokeAgentResponseBody$ = InvokeAgentResponseBody$ = {}));
|
|
818
|
+
function invokeAgentResponseBodyToJSON(invokeAgentResponseBody) {
|
|
819
|
+
return JSON.stringify(exports.InvokeAgentResponseBody$outboundSchema.parse(invokeAgentResponseBody));
|
|
820
|
+
}
|
|
821
|
+
function invokeAgentResponseBodyFromJSON(jsonString) {
|
|
822
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvokeAgentResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeAgentResponseBody' from JSON`);
|
|
823
|
+
}
|
|
824
|
+
//# sourceMappingURL=invokeagent.js.map
|