@orq-ai/node 4.1.0-rc.2 → 4.1.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +37427 -38283
- package/bin/mcp-server.js.map +72 -67
- package/docs/sdks/agents/README.md +10 -10
- package/docs/sdks/responses/README.md +5 -5
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +1 -1
- package/funcs/agentsCreate.d.ts.map +1 -1
- package/funcs/agentsCreate.js +2 -4
- package/funcs/agentsCreate.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +1 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +4 -4
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +2 -4
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js +4 -4
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.d.ts +1 -1
- package/funcs/agentsStreamRun.d.ts.map +1 -1
- package/funcs/agentsStreamRun.js +2 -4
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js +4 -4
- package/funcs/agentsUpdate.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 +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +1 -1
- package/mcp-server/tools/agentsCreate.js +1 -1
- package/mcp-server/tools/agentsCreate.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.js +2 -3
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -1
- package/mcp-server/tools/agentsRun.d.ts +1 -1
- package/mcp-server/tools/agentsRun.js +1 -1
- package/mcp-server/tools/agentsRun.js.map +1 -1
- package/mcp-server/tools/agentsStream.d.ts +1 -1
- package/mcp-server/tools/agentsStream.js +2 -2
- package/mcp-server/tools/agentsStream.js.map +1 -1
- package/mcp-server/tools/agentsStreamRun.d.ts +1 -1
- package/mcp-server/tools/agentsStreamRun.js +1 -1
- package/mcp-server/tools/agentsStreamRun.js.map +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/agentsUpdate.js +2 -3
- package/mcp-server/tools/agentsUpdate.js.map +1 -1
- package/models/components/datapart.d.ts +41 -0
- package/models/components/datapart.d.ts.map +1 -0
- package/models/components/datapart.js +69 -0
- package/models/components/datapart.js.map +1 -0
- package/models/components/filepart.d.ts +104 -0
- package/models/components/filepart.d.ts.map +1 -0
- package/models/components/filepart.js +134 -0
- package/models/components/filepart.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +11 -12
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/textpart.d.ts +31 -0
- package/models/components/textpart.d.ts.map +1 -0
- package/models/components/textpart.js +67 -0
- package/models/components/textpart.js.map +1 -0
- package/models/components/toolcallpart.d.ts +45 -0
- package/models/components/toolcallpart.d.ts.map +1 -0
- package/models/components/toolcallpart.js +84 -0
- package/models/components/toolcallpart.js.map +1 -0
- package/models/components/toolresultpart.d.ts +39 -0
- package/models/components/toolresultpart.d.ts.map +1 -0
- package/models/components/toolresultpart.js +80 -0
- package/models/components/toolresultpart.js.map +1 -0
- package/models/operations/createagentresponserequest.d.ts +68 -44
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +92 -47
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +9 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +9 -11
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentinvoke.d.ts +9 -11
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -11
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -11
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +9 -11
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +9 -11
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +9 -11
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +9 -11
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +9 -11
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +9 -11
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +9 -11
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +9 -11
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +9 -11
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/invokeagent.d.ts +63 -283
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +73 -293
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +9 -11
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +9 -11
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +59 -279
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +72 -292
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +214 -1005
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +229 -1019
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +215 -1006
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +236 -1026
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +2 -2
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +2 -4
- 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/updatememorystore.d.ts +9 -20
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +9 -14
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +18 -22
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +18 -22
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +5 -5
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -4
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +1 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +2 -2
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsCreate.ts +4 -8
- package/src/funcs/agentsResponsesCreate.ts +4 -4
- package/src/funcs/agentsRun.ts +4 -7
- package/src/funcs/agentsStream.ts +4 -4
- package/src/funcs/agentsStreamRun.ts +4 -9
- package/src/funcs/agentsUpdate.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 +1 -1
- package/src/mcp-server/tools/agentsCreate.ts +1 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +2 -3
- package/src/mcp-server/tools/agentsRun.ts +1 -1
- package/src/mcp-server/tools/agentsStream.ts +2 -2
- package/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/src/mcp-server/tools/agentsUpdate.ts +2 -3
- package/src/models/components/datapart.ts +71 -0
- package/src/models/components/filepart.ts +231 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invokedeploymentrequest.ts +34 -25
- package/src/models/components/textpart.ts +68 -0
- package/src/models/components/toolcallpart.ts +92 -0
- package/src/models/components/toolresultpart.ts +86 -0
- package/src/models/operations/createagentresponserequest.ts +194 -100
- 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/createprompt.ts +9 -11
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentinvoke.ts +9 -11
- package/src/models/operations/deployments.ts +9 -11
- package/src/models/operations/deploymentstream.ts +9 -11
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +9 -11
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +9 -11
- package/src/models/operations/getpromptversion.ts +9 -11
- package/src/models/operations/invokeagent.ts +158 -682
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +9 -11
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +143 -697
- package/src/models/operations/streamagent.ts +2226 -4563
- package/src/models/operations/streamrunagent.ts +2189 -4615
- package/src/models/operations/updateagent.ts +4 -6
- 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/updatememorystore.ts +9 -20
- package/src/models/operations/updateprompt.ts +18 -22
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +7 -7
- package/src/sdk/responses.ts +2 -2
|
@@ -2,8 +2,8 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import * as operations from "../../models/operations/index.js";
|
|
3
3
|
import { ToolDefinition } from "../tools.js";
|
|
4
4
|
declare const args: {
|
|
5
|
+
requestBody: z.ZodType<operations.CreateAgentResponseRequestRequestBody, z.ZodTypeDef, unknown>;
|
|
5
6
|
agentKey: z.ZodString;
|
|
6
|
-
requestBody: z.ZodOptional<z.ZodType<operations.CreateAgentResponseRequestRequestBody, z.ZodTypeDef, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
export declare const tool$agentsResponsesCreate: ToolDefinition<typeof args>;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsResponsesCreate.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsResponsesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;;
|
|
1
|
+
{"version":3,"file":"agentsResponsesCreate.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsResponsesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;;CAGT,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBlE,CAAC"}
|
|
@@ -42,9 +42,8 @@ const agentsResponsesCreate_js_1 = require("../../funcs/agentsResponsesCreate.js
|
|
|
42
42
|
const operations = __importStar(require("../../models/operations/index.js"));
|
|
43
43
|
const tools_js_1 = require("../tools.js");
|
|
44
44
|
const args = {
|
|
45
|
+
requestBody: operations.CreateAgentResponseRequestRequestBody$inboundSchema,
|
|
45
46
|
agentKey: z.string(),
|
|
46
|
-
requestBody: operations.CreateAgentResponseRequestRequestBody$inboundSchema
|
|
47
|
-
.optional(),
|
|
48
47
|
};
|
|
49
48
|
exports.tool$agentsResponsesCreate = {
|
|
50
49
|
name: "agents-responses-create",
|
|
@@ -53,7 +52,7 @@ exports.tool$agentsResponsesCreate = {
|
|
|
53
52
|
Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.`,
|
|
54
53
|
args,
|
|
55
54
|
tool: async (client, args, ctx) => {
|
|
56
|
-
const [result, apiCall] = await (0, agentsResponsesCreate_js_1.agentsResponsesCreate)(client, args.
|
|
55
|
+
const [result, apiCall] = await (0, agentsResponsesCreate_js_1.agentsResponsesCreate)(client, args.requestBody, args.agentKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57
56
|
if (!result.ok) {
|
|
58
57
|
return {
|
|
59
58
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsResponsesCreate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsResponsesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,mFAA6E;AAC7E,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,
|
|
1
|
+
{"version":3,"file":"agentsResponsesCreate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsResponsesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,mFAA6E;AAC7E,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,UAAU,CAAC,mDAAmD;IAC3E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;AAEW,QAAA,0BAA0B,GAAgC;IACrE,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;yfAE0e;IACvf,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gDAAqB,EACnD,MAAM,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,QAAQ,EACb,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as operations from "../../models/operations/index.js";
|
|
2
2
|
import { ToolDefinition } from "../tools.js";
|
|
3
3
|
declare const args: {
|
|
4
|
-
request: import("zod").
|
|
4
|
+
request: import("zod").ZodType<operations.RunAgentRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
5
|
};
|
|
6
6
|
export declare const tool$agentsRun: ToolDefinition<typeof args>;
|
|
7
7
|
export {};
|
|
@@ -41,7 +41,7 @@ const agentsRun_js_1 = require("../../funcs/agentsRun.js");
|
|
|
41
41
|
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
42
|
const tools_js_1 = require("../tools.js");
|
|
43
43
|
const args = {
|
|
44
|
-
request: operations.RunAgentRequestBody$inboundSchema
|
|
44
|
+
request: operations.RunAgentRequestBody$inboundSchema,
|
|
45
45
|
};
|
|
46
46
|
exports.tool$agentsRun = {
|
|
47
47
|
name: "agents-run",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsRun.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsRun.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2DAAqD;AACrD,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC
|
|
1
|
+
{"version":3,"file":"agentsRun.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsRun.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2DAAqD;AACrD,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEW,QAAA,cAAc,GAAgC;IACzD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE;;seAEud;IACpe,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,wBAAS,EACvC,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -2,8 +2,8 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import * as operations from "../../models/operations/index.js";
|
|
3
3
|
import { ToolDefinition } from "../tools.js";
|
|
4
4
|
declare const args: {
|
|
5
|
+
requestBody: z.ZodType<operations.StreamAgentRequestBody, z.ZodTypeDef, unknown>;
|
|
5
6
|
key: z.ZodString;
|
|
6
|
-
requestBody: z.ZodOptional<z.ZodType<operations.StreamAgentRequestBody, z.ZodTypeDef, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
export declare const tool$agentsStream: ToolDefinition<typeof args>;
|
|
9
9
|
export {};
|
|
@@ -42,8 +42,8 @@ const agentsStream_js_1 = require("../../funcs/agentsStream.js");
|
|
|
42
42
|
const operations = __importStar(require("../../models/operations/index.js"));
|
|
43
43
|
const tools_js_1 = require("../tools.js");
|
|
44
44
|
const args = {
|
|
45
|
+
requestBody: operations.StreamAgentRequestBody$inboundSchema,
|
|
45
46
|
key: z.string(),
|
|
46
|
-
requestBody: operations.StreamAgentRequestBody$inboundSchema.optional(),
|
|
47
47
|
};
|
|
48
48
|
exports.tool$agentsStream = {
|
|
49
49
|
name: "agents-stream",
|
|
@@ -52,7 +52,7 @@ exports.tool$agentsStream = {
|
|
|
52
52
|
Executes an agent and streams the interaction in real-time using Server-Sent Events (SSE). Provides live updates as the agent processes the request, including message chunks, tool calls, and execution status. Perfect for building responsive chat interfaces and monitoring agent progress. The stream continues until the agent completes its task, encounters an error, or reaches the configured timeout (default 30 minutes, configurable 1-3600 seconds).`,
|
|
53
53
|
args,
|
|
54
54
|
tool: async (client, args, ctx) => {
|
|
55
|
-
const [result, apiCall] = await (0, agentsStream_js_1.agentsStream)(client, args.
|
|
55
|
+
const [result, apiCall] = await (0, agentsStream_js_1.agentsStream)(client, args.requestBody, args.key, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56
56
|
if (!result.ok) {
|
|
57
57
|
return {
|
|
58
58
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsStream.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsStream.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,
|
|
1
|
+
{"version":3,"file":"agentsStream.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsStream.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,UAAU,CAAC,oCAAoC;IAC5D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;mcAEob;IACjc,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,GAAG,EACR,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as operations from "../../models/operations/index.js";
|
|
2
2
|
import { ToolDefinition } from "../tools.js";
|
|
3
3
|
declare const args: {
|
|
4
|
-
request: import("zod").
|
|
4
|
+
request: import("zod").ZodType<operations.StreamRunAgentRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
5
|
};
|
|
6
6
|
export declare const tool$agentsStreamRun: ToolDefinition<typeof args>;
|
|
7
7
|
export {};
|
|
@@ -41,7 +41,7 @@ const agentsStreamRun_js_1 = require("../../funcs/agentsStreamRun.js");
|
|
|
41
41
|
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
42
|
const tools_js_1 = require("../tools.js");
|
|
43
43
|
const args = {
|
|
44
|
-
request: operations.StreamRunAgentRequestBody$inboundSchema
|
|
44
|
+
request: operations.StreamRunAgentRequestBody$inboundSchema,
|
|
45
45
|
};
|
|
46
46
|
exports.tool$agentsStreamRun = {
|
|
47
47
|
name: "agents-stream-run",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsStreamRun.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsStreamRun.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAiE;AACjE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,uCAAuC
|
|
1
|
+
{"version":3,"file":"agentsStreamRun.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsStreamRun.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAiE;AACjE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,uCAAuC;CAC5D,CAAC;AAEW,QAAA,oBAAoB,GAAgC;IAC/D,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;4hBAE6gB;IAC1hB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,oCAAe,EAC7C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -2,8 +2,8 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import * as operations from "../../models/operations/index.js";
|
|
3
3
|
import { ToolDefinition } from "../tools.js";
|
|
4
4
|
declare const args: {
|
|
5
|
+
requestBody: z.ZodType<operations.UpdateAgentUpdateAgentRequest, z.ZodTypeDef, unknown>;
|
|
5
6
|
agentKey: z.ZodString;
|
|
6
|
-
requestBody: z.ZodOptional<z.ZodType<operations.UpdateAgentUpdateAgentRequest, z.ZodTypeDef, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
export declare const tool$agentsUpdate: ToolDefinition<typeof args>;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsUpdate.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;;
|
|
1
|
+
{"version":3,"file":"agentsUpdate.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;;CAGT,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBzD,CAAC"}
|
|
@@ -42,9 +42,8 @@ const agentsUpdate_js_1 = require("../../funcs/agentsUpdate.js");
|
|
|
42
42
|
const operations = __importStar(require("../../models/operations/index.js"));
|
|
43
43
|
const tools_js_1 = require("../tools.js");
|
|
44
44
|
const args = {
|
|
45
|
+
requestBody: operations.UpdateAgentUpdateAgentRequest$inboundSchema,
|
|
45
46
|
agentKey: z.string(),
|
|
46
|
-
requestBody: operations.UpdateAgentUpdateAgentRequest$inboundSchema
|
|
47
|
-
.optional(),
|
|
48
47
|
};
|
|
49
48
|
exports.tool$agentsUpdate = {
|
|
50
49
|
name: "agents-update",
|
|
@@ -53,7 +52,7 @@ exports.tool$agentsUpdate = {
|
|
|
53
52
|
Modifies an existing agent's configuration with partial updates. Supports updating any aspect of the agent including model assignments (primary and fallback), instructions, tools, knowledge bases, memory stores, and execution parameters. Only the fields provided in the request body will be updated; all other fields remain unchanged. Changes take effect immediately for new agent invocations.`,
|
|
54
53
|
args,
|
|
55
54
|
tool: async (client, args, ctx) => {
|
|
56
|
-
const [result, apiCall] = await (0, agentsUpdate_js_1.agentsUpdate)(client, args.
|
|
55
|
+
const [result, apiCall] = await (0, agentsUpdate_js_1.agentsUpdate)(client, args.requestBody, args.agentKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57
56
|
if (!result.ok) {
|
|
58
57
|
return {
|
|
59
58
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsUpdate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,
|
|
1
|
+
{"version":3,"file":"agentsUpdate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,UAAU,CAAC,2CAA2C;IACnE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;0YAE2X;IACxY,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,QAAQ,EACb,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const DataPartKind: {
|
|
6
|
+
readonly Data: "data";
|
|
7
|
+
};
|
|
8
|
+
export type DataPartKind = ClosedEnum<typeof DataPartKind>;
|
|
9
|
+
/**
|
|
10
|
+
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
11
|
+
*/
|
|
12
|
+
export type DataPart = {
|
|
13
|
+
kind: DataPartKind;
|
|
14
|
+
data: {
|
|
15
|
+
[k: string]: any;
|
|
16
|
+
};
|
|
17
|
+
metadata?: {
|
|
18
|
+
[k: string]: any;
|
|
19
|
+
} | undefined;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const DataPartKind$inboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const DataPartKind$outboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const DataPart$inboundSchema: z.ZodType<DataPart, z.ZodTypeDef, unknown>;
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type DataPart$Outbound = {
|
|
29
|
+
kind: string;
|
|
30
|
+
data: {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
};
|
|
33
|
+
metadata?: {
|
|
34
|
+
[k: string]: any;
|
|
35
|
+
} | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const DataPart$outboundSchema: z.ZodType<DataPart$Outbound, z.ZodTypeDef, DataPart>;
|
|
39
|
+
export declare function dataPartToJSON(dataPart: DataPart): string;
|
|
40
|
+
export declare function dataPartFromJSON(jsonString: string): SafeParseResult<DataPart, SDKValidationError>;
|
|
41
|
+
//# sourceMappingURL=datapart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datapart.d.ts","sourceRoot":"","sources":["../../src/models/components/datapart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY;;CAEf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAC7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAKR,CAAC;AAEH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AACD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.DataPart$outboundSchema = exports.DataPart$inboundSchema = exports.DataPartKind$outboundSchema = exports.DataPartKind$inboundSchema = exports.DataPartKind = void 0;
|
|
40
|
+
exports.dataPartToJSON = dataPartToJSON;
|
|
41
|
+
exports.dataPartFromJSON = dataPartFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
exports.DataPartKind = {
|
|
45
|
+
Data: "data",
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.DataPartKind$inboundSchema = z.nativeEnum(exports.DataPartKind);
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.DataPartKind$outboundSchema = exports.DataPartKind$inboundSchema;
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.DataPart$inboundSchema = z.object({
|
|
53
|
+
kind: exports.DataPartKind$inboundSchema,
|
|
54
|
+
data: z.record(z.any()),
|
|
55
|
+
metadata: z.record(z.any()).optional(),
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.DataPart$outboundSchema = z.object({
|
|
59
|
+
kind: exports.DataPartKind$outboundSchema,
|
|
60
|
+
data: z.record(z.any()),
|
|
61
|
+
metadata: z.record(z.any()).optional(),
|
|
62
|
+
});
|
|
63
|
+
function dataPartToJSON(dataPart) {
|
|
64
|
+
return JSON.stringify(exports.DataPart$outboundSchema.parse(dataPart));
|
|
65
|
+
}
|
|
66
|
+
function dataPartFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataPart' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=datapart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datapart.js","sourceRoot":"","sources":["../../src/models/components/datapart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,wCAEC;AACD,4CAQC;AAlED,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC;AAYX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,kCAA0B;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,mCAA2B;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AACD,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FilePartKind: {
|
|
6
|
+
readonly File: "file";
|
|
7
|
+
};
|
|
8
|
+
export type FilePartKind = ClosedEnum<typeof FilePartKind>;
|
|
9
|
+
/**
|
|
10
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
11
|
+
*/
|
|
12
|
+
export type FileInURIFormat = {
|
|
13
|
+
/**
|
|
14
|
+
* URL for the File content
|
|
15
|
+
*/
|
|
16
|
+
uri: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional mimeType for the file
|
|
19
|
+
*/
|
|
20
|
+
mimeType?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional name for the file
|
|
23
|
+
*/
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
28
|
+
*/
|
|
29
|
+
export type BinaryFormat = {
|
|
30
|
+
/**
|
|
31
|
+
* base64 encoded content of the file
|
|
32
|
+
*/
|
|
33
|
+
bytes: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional mimeType for the file
|
|
36
|
+
*/
|
|
37
|
+
mimeType?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Optional name for the file
|
|
40
|
+
*/
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
export type FileT = BinaryFormat | FileInURIFormat;
|
|
44
|
+
/**
|
|
45
|
+
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
46
|
+
*/
|
|
47
|
+
export type FilePart = {
|
|
48
|
+
kind: FilePartKind;
|
|
49
|
+
file: BinaryFormat | FileInURIFormat;
|
|
50
|
+
metadata?: {
|
|
51
|
+
[k: string]: any;
|
|
52
|
+
} | undefined;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const FilePartKind$inboundSchema: z.ZodNativeEnum<typeof FilePartKind>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const FilePartKind$outboundSchema: z.ZodNativeEnum<typeof FilePartKind>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const FileInURIFormat$inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type FileInURIFormat$Outbound = {
|
|
62
|
+
uri: string;
|
|
63
|
+
mimeType?: string | undefined;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const FileInURIFormat$outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
|
|
68
|
+
export declare function fileInURIFormatToJSON(fileInURIFormat: FileInURIFormat): string;
|
|
69
|
+
export declare function fileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileInURIFormat, SDKValidationError>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const BinaryFormat$inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type BinaryFormat$Outbound = {
|
|
74
|
+
bytes: string;
|
|
75
|
+
mimeType?: string | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
/** @internal */
|
|
79
|
+
export declare const BinaryFormat$outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
|
|
80
|
+
export declare function binaryFormatToJSON(binaryFormat: BinaryFormat): string;
|
|
81
|
+
export declare function binaryFormatFromJSON(jsonString: string): SafeParseResult<BinaryFormat, SDKValidationError>;
|
|
82
|
+
/** @internal */
|
|
83
|
+
export declare const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown>;
|
|
84
|
+
/** @internal */
|
|
85
|
+
export type FileT$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
86
|
+
/** @internal */
|
|
87
|
+
export declare const FileT$outboundSchema: z.ZodType<FileT$Outbound, z.ZodTypeDef, FileT>;
|
|
88
|
+
export declare function fileToJSON(fileT: FileT): string;
|
|
89
|
+
export declare function fileFromJSON(jsonString: string): SafeParseResult<FileT, SDKValidationError>;
|
|
90
|
+
/** @internal */
|
|
91
|
+
export declare const FilePart$inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
|
|
92
|
+
/** @internal */
|
|
93
|
+
export type FilePart$Outbound = {
|
|
94
|
+
kind: string;
|
|
95
|
+
file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
96
|
+
metadata?: {
|
|
97
|
+
[k: string]: any;
|
|
98
|
+
} | undefined;
|
|
99
|
+
};
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const FilePart$outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
|
|
102
|
+
export declare function filePartToJSON(filePart: FilePart): string;
|
|
103
|
+
export declare function filePartFromJSON(jsonString: string): SafeParseResult<FilePart, SDKValidationError>;
|
|
104
|
+
//# sourceMappingURL=filepart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepart.d.ts","sourceRoot":"","sources":["../../src/models/components/filepart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY;;CAEf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,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,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAQR,CAAC;AAEH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AACD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -0,0 +1,134 @@
|
|
|
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.FilePart$outboundSchema = exports.FilePart$inboundSchema = exports.FileT$outboundSchema = exports.FileT$inboundSchema = exports.BinaryFormat$outboundSchema = exports.BinaryFormat$inboundSchema = exports.FileInURIFormat$outboundSchema = exports.FileInURIFormat$inboundSchema = exports.FilePartKind$outboundSchema = exports.FilePartKind$inboundSchema = exports.FilePartKind = void 0;
|
|
40
|
+
exports.fileInURIFormatToJSON = fileInURIFormatToJSON;
|
|
41
|
+
exports.fileInURIFormatFromJSON = fileInURIFormatFromJSON;
|
|
42
|
+
exports.binaryFormatToJSON = binaryFormatToJSON;
|
|
43
|
+
exports.binaryFormatFromJSON = binaryFormatFromJSON;
|
|
44
|
+
exports.fileToJSON = fileToJSON;
|
|
45
|
+
exports.fileFromJSON = fileFromJSON;
|
|
46
|
+
exports.filePartToJSON = filePartToJSON;
|
|
47
|
+
exports.filePartFromJSON = filePartFromJSON;
|
|
48
|
+
const z = __importStar(require("zod/v3"));
|
|
49
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
50
|
+
exports.FilePartKind = {
|
|
51
|
+
File: "file",
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.FilePartKind$inboundSchema = z.nativeEnum(exports.FilePartKind);
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.FilePartKind$outboundSchema = exports.FilePartKind$inboundSchema;
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.FileInURIFormat$inboundSchema = z.object({
|
|
59
|
+
uri: z.string(),
|
|
60
|
+
mimeType: z.string().optional(),
|
|
61
|
+
name: z.string().optional(),
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.FileInURIFormat$outboundSchema = z.object({
|
|
65
|
+
uri: z.string(),
|
|
66
|
+
mimeType: z.string().optional(),
|
|
67
|
+
name: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
function fileInURIFormatToJSON(fileInURIFormat) {
|
|
70
|
+
return JSON.stringify(exports.FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
71
|
+
}
|
|
72
|
+
function fileInURIFormatFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileInURIFormat' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
/** @internal */
|
|
76
|
+
exports.BinaryFormat$inboundSchema = z.object({
|
|
77
|
+
bytes: z.string(),
|
|
78
|
+
mimeType: z.string().optional(),
|
|
79
|
+
name: z.string().optional(),
|
|
80
|
+
});
|
|
81
|
+
/** @internal */
|
|
82
|
+
exports.BinaryFormat$outboundSchema = z.object({
|
|
83
|
+
bytes: z.string(),
|
|
84
|
+
mimeType: z.string().optional(),
|
|
85
|
+
name: z.string().optional(),
|
|
86
|
+
});
|
|
87
|
+
function binaryFormatToJSON(binaryFormat) {
|
|
88
|
+
return JSON.stringify(exports.BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
89
|
+
}
|
|
90
|
+
function binaryFormatFromJSON(jsonString) {
|
|
91
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BinaryFormat' from JSON`);
|
|
92
|
+
}
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.FileT$inboundSchema = z
|
|
95
|
+
.union([
|
|
96
|
+
z.lazy(() => exports.BinaryFormat$inboundSchema),
|
|
97
|
+
z.lazy(() => exports.FileInURIFormat$inboundSchema),
|
|
98
|
+
]);
|
|
99
|
+
/** @internal */
|
|
100
|
+
exports.FileT$outboundSchema = z.union([
|
|
101
|
+
z.lazy(() => exports.BinaryFormat$outboundSchema),
|
|
102
|
+
z.lazy(() => exports.FileInURIFormat$outboundSchema),
|
|
103
|
+
]);
|
|
104
|
+
function fileToJSON(fileT) {
|
|
105
|
+
return JSON.stringify(exports.FileT$outboundSchema.parse(fileT));
|
|
106
|
+
}
|
|
107
|
+
function fileFromJSON(jsonString) {
|
|
108
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileT' from JSON`);
|
|
109
|
+
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
exports.FilePart$inboundSchema = z.object({
|
|
112
|
+
kind: exports.FilePartKind$inboundSchema,
|
|
113
|
+
file: z.union([
|
|
114
|
+
z.lazy(() => exports.BinaryFormat$inboundSchema),
|
|
115
|
+
z.lazy(() => exports.FileInURIFormat$inboundSchema),
|
|
116
|
+
]),
|
|
117
|
+
metadata: z.record(z.any()).optional(),
|
|
118
|
+
});
|
|
119
|
+
/** @internal */
|
|
120
|
+
exports.FilePart$outboundSchema = z.object({
|
|
121
|
+
kind: exports.FilePartKind$outboundSchema,
|
|
122
|
+
file: z.union([
|
|
123
|
+
z.lazy(() => exports.BinaryFormat$outboundSchema),
|
|
124
|
+
z.lazy(() => exports.FileInURIFormat$outboundSchema),
|
|
125
|
+
]),
|
|
126
|
+
metadata: z.record(z.any()).optional(),
|
|
127
|
+
});
|
|
128
|
+
function filePartToJSON(filePart) {
|
|
129
|
+
return JSON.stringify(exports.FilePart$outboundSchema.parse(filePart));
|
|
130
|
+
}
|
|
131
|
+
function filePartFromJSON(jsonString) {
|
|
132
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilePart' from JSON`);
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=filepart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filepart.js","sourceRoot":"","sources":["../../src/models/components/filepart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,sDAIC;AACD,0DAQC;AA8BD,gDAEC;AACD,oDAQC;AAqBD,gCAEC;AACD,oCAQC;AAoCD,wCAEC;AACD,4CAQC;AAlOD,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC;AAkDX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,SA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,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AACD,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from "./datapart.js";
|
|
2
|
+
export * from "./filepart.js";
|
|
1
3
|
export * from "./invokedeploymentrequest.js";
|
|
2
4
|
export * from "./security.js";
|
|
5
|
+
export * from "./textpart.js";
|
|
6
|
+
export * from "./toolcallpart.js";
|
|
7
|
+
export * from "./toolresultpart.js";
|
|
3
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -17,6 +17,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
17
17
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./datapart.js"), exports);
|
|
21
|
+
__exportStar(require("./filepart.js"), exports);
|
|
20
22
|
__exportStar(require("./invokedeploymentrequest.js"), exports);
|
|
21
23
|
__exportStar(require("./security.js"), exports);
|
|
24
|
+
__exportStar(require("./textpart.js"), exports);
|
|
25
|
+
__exportStar(require("./toolcallpart.js"), exports);
|
|
26
|
+
__exportStar(require("./toolresultpart.js"), exports);
|
|
22
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+DAA6C;AAC7C,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,gDAA8B;AAC9B,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,sDAAoC"}
|