@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
|
@@ -12,56 +12,62 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Tool message
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const RunAgentRoleToolMessage = {
|
|
16
16
|
Tool: "tool",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Tool message
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type RunAgentRoleToolMessage = ClosedEnum<
|
|
22
|
+
typeof RunAgentRoleToolMessage
|
|
23
|
+
>;
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* User message
|
|
25
27
|
*/
|
|
26
|
-
export const
|
|
28
|
+
export const RunAgentRoleUserMessage = {
|
|
27
29
|
User: "user",
|
|
28
30
|
} as const;
|
|
29
31
|
/**
|
|
30
32
|
* User message
|
|
31
33
|
*/
|
|
32
|
-
export type
|
|
34
|
+
export type RunAgentRoleUserMessage = ClosedEnum<
|
|
35
|
+
typeof RunAgentRoleUserMessage
|
|
36
|
+
>;
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
* Message role (user or tool for continuing executions)
|
|
36
40
|
*/
|
|
37
|
-
export type RunAgentRole =
|
|
41
|
+
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
38
42
|
|
|
39
|
-
export const
|
|
43
|
+
export const RunAgentPublicMessagePartAgentsRequestKind = {
|
|
40
44
|
ToolResult: "tool_result",
|
|
41
45
|
} as const;
|
|
42
|
-
export type
|
|
43
|
-
typeof
|
|
46
|
+
export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
47
|
+
typeof RunAgentPublicMessagePartAgentsRequestKind
|
|
44
48
|
>;
|
|
45
49
|
|
|
46
50
|
/**
|
|
47
51
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
48
52
|
*/
|
|
49
|
-
export type
|
|
50
|
-
kind:
|
|
53
|
+
export type PublicMessagePartToolResultPart = {
|
|
54
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
51
55
|
toolCallId: string;
|
|
52
56
|
result?: any | undefined;
|
|
53
57
|
metadata?: { [k: string]: any } | undefined;
|
|
54
58
|
};
|
|
55
59
|
|
|
56
|
-
export const
|
|
60
|
+
export const RunAgentPublicMessagePartAgentsKind = {
|
|
57
61
|
File: "file",
|
|
58
62
|
} as const;
|
|
59
|
-
export type
|
|
63
|
+
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
64
|
+
typeof RunAgentPublicMessagePartAgentsKind
|
|
65
|
+
>;
|
|
60
66
|
|
|
61
67
|
/**
|
|
62
68
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
63
69
|
*/
|
|
64
|
-
export type
|
|
70
|
+
export type FileFileInURIFormat = {
|
|
65
71
|
/**
|
|
66
72
|
* URL for the File content
|
|
67
73
|
*/
|
|
@@ -79,7 +85,7 @@ export type FileInURIFormat = {
|
|
|
79
85
|
/**
|
|
80
86
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
81
87
|
*/
|
|
82
|
-
export type
|
|
88
|
+
export type FileBinaryFormat = {
|
|
83
89
|
/**
|
|
84
90
|
* base64 encoded content of the file
|
|
85
91
|
*/
|
|
@@ -94,39 +100,46 @@ export type BinaryFormat = {
|
|
|
94
100
|
name?: string | undefined;
|
|
95
101
|
};
|
|
96
102
|
|
|
97
|
-
export type
|
|
103
|
+
export type RunAgentPublicMessagePartFile =
|
|
104
|
+
| FileBinaryFormat
|
|
105
|
+
| FileFileInURIFormat;
|
|
98
106
|
|
|
99
107
|
/**
|
|
100
108
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
101
109
|
*/
|
|
102
|
-
export type
|
|
103
|
-
kind:
|
|
104
|
-
file:
|
|
110
|
+
export type PublicMessagePartFilePart = {
|
|
111
|
+
kind: RunAgentPublicMessagePartAgentsKind;
|
|
112
|
+
file: FileBinaryFormat | FileFileInURIFormat;
|
|
105
113
|
metadata?: { [k: string]: any } | undefined;
|
|
106
114
|
};
|
|
107
115
|
|
|
108
|
-
export const
|
|
116
|
+
export const RunAgentPublicMessagePartKind = {
|
|
109
117
|
Text: "text",
|
|
110
118
|
} as const;
|
|
111
|
-
export type
|
|
119
|
+
export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
120
|
+
typeof RunAgentPublicMessagePartKind
|
|
121
|
+
>;
|
|
112
122
|
|
|
113
123
|
/**
|
|
114
124
|
* Text content part. Use this to send text messages to the agent.
|
|
115
125
|
*/
|
|
116
|
-
export type
|
|
117
|
-
kind:
|
|
126
|
+
export type PublicMessagePartTextPart = {
|
|
127
|
+
kind: RunAgentPublicMessagePartKind;
|
|
118
128
|
text: string;
|
|
119
129
|
};
|
|
120
130
|
|
|
121
131
|
/**
|
|
122
132
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
123
133
|
*/
|
|
124
|
-
export type
|
|
134
|
+
export type RunAgentPublicMessagePart =
|
|
135
|
+
| PublicMessagePartTextPart
|
|
136
|
+
| PublicMessagePartFilePart
|
|
137
|
+
| PublicMessagePartToolResultPart;
|
|
125
138
|
|
|
126
139
|
/**
|
|
127
140
|
* The A2A format message containing the task for the agent to perform.
|
|
128
141
|
*/
|
|
129
|
-
export type
|
|
142
|
+
export type RunAgentMessage = {
|
|
130
143
|
/**
|
|
131
144
|
* Optional A2A message ID in ULID format
|
|
132
145
|
*/
|
|
@@ -134,17 +147,21 @@ export type Message = {
|
|
|
134
147
|
/**
|
|
135
148
|
* Message role (user or tool for continuing executions)
|
|
136
149
|
*/
|
|
137
|
-
role:
|
|
150
|
+
role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
138
151
|
/**
|
|
139
152
|
* A2A message parts (text, file, or tool_result only)
|
|
140
153
|
*/
|
|
141
|
-
parts: Array<
|
|
154
|
+
parts: Array<
|
|
155
|
+
| PublicMessagePartTextPart
|
|
156
|
+
| PublicMessagePartFilePart
|
|
157
|
+
| PublicMessagePartToolResultPart
|
|
158
|
+
>;
|
|
142
159
|
};
|
|
143
160
|
|
|
144
161
|
/**
|
|
145
162
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
146
163
|
*/
|
|
147
|
-
export type
|
|
164
|
+
export type RunAgentContact = {
|
|
148
165
|
/**
|
|
149
166
|
* Unique identifier for the contact
|
|
150
167
|
*/
|
|
@@ -188,54 +205,18 @@ export type RunAgentThread = {
|
|
|
188
205
|
/**
|
|
189
206
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
190
207
|
*/
|
|
191
|
-
export type
|
|
208
|
+
export type RunAgentMemory = {
|
|
192
209
|
/**
|
|
193
210
|
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
194
211
|
*/
|
|
195
212
|
entityId: string;
|
|
196
213
|
};
|
|
197
214
|
|
|
198
|
-
export
|
|
199
|
-
Query: "query",
|
|
200
|
-
} as const;
|
|
201
|
-
export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<
|
|
202
|
-
typeof RunAgentKnowledgeBaseConfigurationType
|
|
203
|
-
>;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Defines the configuration settings for a static query.
|
|
207
|
-
*/
|
|
208
|
-
export type KnowledgeBaseStaticQuery = {
|
|
209
|
-
type: RunAgentKnowledgeBaseConfigurationType;
|
|
210
|
-
query: string;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export const KnowledgeBaseConfigurationType = {
|
|
214
|
-
LastUserMessage: "last_user_message",
|
|
215
|
-
} as const;
|
|
216
|
-
export type KnowledgeBaseConfigurationType = ClosedEnum<
|
|
217
|
-
typeof KnowledgeBaseConfigurationType
|
|
218
|
-
>;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Defines the configuration settings for a last user message type retrieval.
|
|
222
|
-
*/
|
|
223
|
-
export type KnowledgeBaseLastUserMessage = {
|
|
224
|
-
type: KnowledgeBaseConfigurationType;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
229
|
-
*/
|
|
230
|
-
export type KnowledgeBaseConfiguration =
|
|
231
|
-
| KnowledgeBaseStaticQuery
|
|
232
|
-
| KnowledgeBaseLastUserMessage;
|
|
233
|
-
|
|
234
|
-
export type KnowledgeBases = {
|
|
215
|
+
export type RunAgentKnowledgeBases = {
|
|
235
216
|
/**
|
|
236
|
-
*
|
|
217
|
+
* Unique identifier of the knowledge base to search
|
|
237
218
|
*/
|
|
238
|
-
|
|
219
|
+
knowledgeId: string;
|
|
239
220
|
};
|
|
240
221
|
|
|
241
222
|
export type TeamOfAgents = {
|
|
@@ -249,42 +230,57 @@ export type TeamOfAgents = {
|
|
|
249
230
|
role?: string | undefined;
|
|
250
231
|
};
|
|
251
232
|
|
|
252
|
-
export const
|
|
233
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
253
234
|
{
|
|
254
235
|
Function: "function",
|
|
255
236
|
} as const;
|
|
256
|
-
export type
|
|
237
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
257
238
|
ClosedEnum<
|
|
258
|
-
typeof
|
|
239
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
259
240
|
>;
|
|
260
241
|
|
|
261
|
-
export type
|
|
242
|
+
export type AgentToolInputRunFunction = {
|
|
243
|
+
/**
|
|
244
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
245
|
+
*/
|
|
262
246
|
name: string;
|
|
247
|
+
/**
|
|
248
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
249
|
+
*/
|
|
263
250
|
description?: string | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
253
|
+
*/
|
|
264
254
|
strict?: boolean | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
257
|
+
*/
|
|
265
258
|
parameters?: { [k: string]: any } | undefined;
|
|
266
259
|
};
|
|
267
260
|
|
|
268
261
|
/**
|
|
269
|
-
*
|
|
262
|
+
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
270
263
|
*/
|
|
271
|
-
export type
|
|
272
|
-
type:
|
|
273
|
-
|
|
264
|
+
export type FunctionToolRun = {
|
|
265
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
266
|
+
/**
|
|
267
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
268
|
+
*/
|
|
274
269
|
key: string;
|
|
270
|
+
id?: string | undefined;
|
|
275
271
|
displayName?: string | undefined;
|
|
276
272
|
description?: string | undefined;
|
|
273
|
+
function: AgentToolInputRunFunction;
|
|
277
274
|
requiresApproval?: boolean | undefined;
|
|
278
|
-
function: RunAgentRequestToolFunction;
|
|
279
275
|
};
|
|
280
276
|
|
|
281
|
-
export const
|
|
277
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
282
278
|
{
|
|
283
279
|
Code: "code",
|
|
284
280
|
} as const;
|
|
285
|
-
export type
|
|
281
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
286
282
|
ClosedEnum<
|
|
287
|
-
typeof
|
|
283
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
288
284
|
>;
|
|
289
285
|
|
|
290
286
|
export const Language = {
|
|
@@ -305,34 +301,31 @@ export type CodeTool = {
|
|
|
305
301
|
};
|
|
306
302
|
|
|
307
303
|
/**
|
|
308
|
-
*
|
|
304
|
+
* Code execution tool with inline definition for on-the-fly creation in run endpoint
|
|
309
305
|
*/
|
|
310
|
-
export type
|
|
306
|
+
export type CodeToolRun = {
|
|
307
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
311
308
|
/**
|
|
312
309
|
* Unique key of the tool as it will be displayed in the UI
|
|
313
310
|
*/
|
|
314
311
|
key: string;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
*/
|
|
318
|
-
displayName: string;
|
|
312
|
+
id?: string | undefined;
|
|
313
|
+
displayName?: string | undefined;
|
|
319
314
|
/**
|
|
320
315
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
321
316
|
*/
|
|
322
317
|
description: string;
|
|
323
|
-
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
|
|
324
318
|
codeTool: CodeTool;
|
|
325
|
-
id?: string | undefined;
|
|
326
319
|
requiresApproval?: boolean | undefined;
|
|
327
320
|
};
|
|
328
321
|
|
|
329
|
-
export const
|
|
322
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
330
323
|
{
|
|
331
324
|
Http: "http",
|
|
332
325
|
} as const;
|
|
333
|
-
export type
|
|
326
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
334
327
|
ClosedEnum<
|
|
335
|
-
typeof
|
|
328
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
336
329
|
>;
|
|
337
330
|
|
|
338
331
|
/**
|
|
@@ -374,7 +367,7 @@ export type Blueprint = {
|
|
|
374
367
|
/**
|
|
375
368
|
* The type of the argument.
|
|
376
369
|
*/
|
|
377
|
-
export const
|
|
370
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
378
371
|
{
|
|
379
372
|
String: "string",
|
|
380
373
|
Number: "number",
|
|
@@ -383,9 +376,9 @@ export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12H
|
|
|
383
376
|
/**
|
|
384
377
|
* The type of the argument.
|
|
385
378
|
*/
|
|
386
|
-
export type
|
|
379
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
387
380
|
ClosedEnum<
|
|
388
|
-
typeof
|
|
381
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
389
382
|
>;
|
|
390
383
|
|
|
391
384
|
/**
|
|
@@ -398,7 +391,7 @@ export type Arguments = {
|
|
|
398
391
|
* The type of the argument.
|
|
399
392
|
*/
|
|
400
393
|
type:
|
|
401
|
-
|
|
394
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
402
395
|
/**
|
|
403
396
|
* A description of the argument.
|
|
404
397
|
*/
|
|
@@ -425,225 +418,254 @@ export type Http = {
|
|
|
425
418
|
};
|
|
426
419
|
|
|
427
420
|
/**
|
|
428
|
-
*
|
|
421
|
+
* HTTP tool with inline definition for on-the-fly creation in run endpoint
|
|
429
422
|
*/
|
|
430
|
-
export type
|
|
431
|
-
|
|
423
|
+
export type HTTPToolRun = {
|
|
424
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
432
425
|
/**
|
|
433
426
|
* Unique key of the tool as it will be displayed in the UI
|
|
434
427
|
*/
|
|
435
428
|
key: string;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
*/
|
|
439
|
-
displayName: string;
|
|
429
|
+
id?: string | undefined;
|
|
430
|
+
displayName?: string | undefined;
|
|
440
431
|
/**
|
|
441
432
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
442
433
|
*/
|
|
443
434
|
description: string;
|
|
444
|
-
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
|
|
445
435
|
http: Http;
|
|
446
436
|
requiresApproval?: boolean | undefined;
|
|
447
437
|
};
|
|
448
438
|
|
|
449
|
-
export const
|
|
439
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
450
440
|
{
|
|
451
441
|
CurrentDate: "current_date",
|
|
452
442
|
} as const;
|
|
453
|
-
export type
|
|
443
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
454
444
|
ClosedEnum<
|
|
455
|
-
typeof
|
|
445
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
456
446
|
>;
|
|
457
447
|
|
|
458
448
|
/**
|
|
459
|
-
*
|
|
449
|
+
* Returns the current date and time
|
|
460
450
|
*/
|
|
461
|
-
export type
|
|
462
|
-
type:
|
|
451
|
+
export type AgentToolInputRunCurrentDateTool = {
|
|
452
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
453
|
+
/**
|
|
454
|
+
* Whether this tool requires approval before execution
|
|
455
|
+
*/
|
|
463
456
|
requiresApproval?: boolean | undefined;
|
|
464
457
|
};
|
|
465
458
|
|
|
466
|
-
export const
|
|
459
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
467
460
|
{
|
|
468
461
|
QueryKnowledgeBase: "query_knowledge_base",
|
|
469
462
|
} as const;
|
|
470
|
-
export type
|
|
463
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
471
464
|
ClosedEnum<
|
|
472
|
-
typeof
|
|
465
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
473
466
|
>;
|
|
474
467
|
|
|
475
468
|
/**
|
|
476
469
|
* Queries knowledge bases for information
|
|
477
470
|
*/
|
|
478
|
-
export type
|
|
479
|
-
type:
|
|
471
|
+
export type AgentToolInputRunQueryKnowledgeBaseTool = {
|
|
472
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
473
|
+
/**
|
|
474
|
+
* Whether this tool requires approval before execution
|
|
475
|
+
*/
|
|
480
476
|
requiresApproval?: boolean | undefined;
|
|
481
477
|
};
|
|
482
478
|
|
|
483
|
-
export const
|
|
479
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
484
480
|
{
|
|
485
481
|
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
486
482
|
} as const;
|
|
487
|
-
export type
|
|
483
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
488
484
|
ClosedEnum<
|
|
489
|
-
typeof
|
|
485
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
490
486
|
>;
|
|
491
487
|
|
|
492
488
|
/**
|
|
493
489
|
* Lists available knowledge bases
|
|
494
490
|
*/
|
|
495
|
-
export type
|
|
496
|
-
type:
|
|
491
|
+
export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
492
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
493
|
+
/**
|
|
494
|
+
* Whether this tool requires approval before execution
|
|
495
|
+
*/
|
|
497
496
|
requiresApproval?: boolean | undefined;
|
|
498
497
|
};
|
|
499
498
|
|
|
500
|
-
export const
|
|
499
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
501
500
|
{
|
|
502
501
|
DeleteMemoryDocument: "delete_memory_document",
|
|
503
502
|
} as const;
|
|
504
|
-
export type
|
|
503
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
505
504
|
ClosedEnum<
|
|
506
|
-
typeof
|
|
505
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
507
506
|
>;
|
|
508
507
|
|
|
509
508
|
/**
|
|
510
|
-
* Deletes
|
|
509
|
+
* Deletes documents from memory stores
|
|
511
510
|
*/
|
|
512
|
-
export type
|
|
513
|
-
type:
|
|
511
|
+
export type AgentToolInputRunDeleteMemoryDocumentTool = {
|
|
512
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
513
|
+
/**
|
|
514
|
+
* Whether this tool requires approval before execution
|
|
515
|
+
*/
|
|
514
516
|
requiresApproval?: boolean | undefined;
|
|
515
517
|
};
|
|
516
518
|
|
|
517
|
-
export const
|
|
519
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
518
520
|
{
|
|
519
521
|
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
520
522
|
} as const;
|
|
521
|
-
export type
|
|
523
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
522
524
|
ClosedEnum<
|
|
523
|
-
typeof
|
|
525
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
524
526
|
>;
|
|
525
527
|
|
|
526
528
|
/**
|
|
527
529
|
* Lists available memory stores
|
|
528
530
|
*/
|
|
529
|
-
export type
|
|
530
|
-
type:
|
|
531
|
+
export type AgentToolInputRunRetrieveMemoryStoresTool = {
|
|
532
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
533
|
+
/**
|
|
534
|
+
* Whether this tool requires approval before execution
|
|
535
|
+
*/
|
|
531
536
|
requiresApproval?: boolean | undefined;
|
|
532
537
|
};
|
|
533
538
|
|
|
534
|
-
export const
|
|
539
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
|
|
535
540
|
WriteMemoryStore: "write_memory_store",
|
|
536
541
|
} as const;
|
|
537
|
-
export type
|
|
542
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
538
543
|
ClosedEnum<
|
|
539
|
-
typeof
|
|
544
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
540
545
|
>;
|
|
541
546
|
|
|
542
547
|
/**
|
|
543
548
|
* Writes information to agent memory stores
|
|
544
549
|
*/
|
|
545
|
-
export type
|
|
546
|
-
type:
|
|
550
|
+
export type AgentToolInputRunWriteMemoryStoreTool = {
|
|
551
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
552
|
+
/**
|
|
553
|
+
* Whether this tool requires approval before execution
|
|
554
|
+
*/
|
|
547
555
|
requiresApproval?: boolean | undefined;
|
|
548
556
|
};
|
|
549
557
|
|
|
550
|
-
export const
|
|
558
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
551
559
|
QueryMemoryStore: "query_memory_store",
|
|
552
560
|
} as const;
|
|
553
|
-
export type
|
|
554
|
-
|
|
561
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<
|
|
562
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
563
|
+
>;
|
|
555
564
|
|
|
556
565
|
/**
|
|
557
566
|
* Queries agent memory stores for context
|
|
558
567
|
*/
|
|
559
|
-
export type
|
|
560
|
-
type:
|
|
568
|
+
export type AgentToolInputRunQueryMemoryStoreTool = {
|
|
569
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
570
|
+
/**
|
|
571
|
+
* Whether this tool requires approval before execution
|
|
572
|
+
*/
|
|
561
573
|
requiresApproval?: boolean | undefined;
|
|
562
574
|
};
|
|
563
575
|
|
|
564
|
-
export const
|
|
576
|
+
export const RunAgentAgentToolInputRunAgentsRequestType = {
|
|
565
577
|
RetrieveAgents: "retrieve_agents",
|
|
566
578
|
} as const;
|
|
567
|
-
export type
|
|
568
|
-
typeof
|
|
579
|
+
export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
|
|
580
|
+
typeof RunAgentAgentToolInputRunAgentsRequestType
|
|
569
581
|
>;
|
|
570
582
|
|
|
571
583
|
/**
|
|
572
584
|
* Retrieves available agents in the system
|
|
573
585
|
*/
|
|
574
|
-
export type
|
|
575
|
-
type:
|
|
586
|
+
export type AgentToolInputRunRetrieveAgentsTool = {
|
|
587
|
+
type: RunAgentAgentToolInputRunAgentsRequestType;
|
|
588
|
+
/**
|
|
589
|
+
* Whether this tool requires approval before execution
|
|
590
|
+
*/
|
|
576
591
|
requiresApproval?: boolean | undefined;
|
|
577
592
|
};
|
|
578
593
|
|
|
579
|
-
export const
|
|
594
|
+
export const RunAgentAgentToolInputRunAgentsType = {
|
|
580
595
|
CallSubAgent: "call_sub_agent",
|
|
581
596
|
} as const;
|
|
582
|
-
export type
|
|
583
|
-
typeof
|
|
597
|
+
export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<
|
|
598
|
+
typeof RunAgentAgentToolInputRunAgentsType
|
|
584
599
|
>;
|
|
585
600
|
|
|
586
601
|
/**
|
|
587
602
|
* Delegates tasks to specialized sub-agents
|
|
588
603
|
*/
|
|
589
|
-
export type
|
|
590
|
-
type:
|
|
604
|
+
export type AgentToolInputRunCallSubAgentTool = {
|
|
605
|
+
type: RunAgentAgentToolInputRunAgentsType;
|
|
606
|
+
/**
|
|
607
|
+
* Whether this tool requires approval before execution
|
|
608
|
+
*/
|
|
591
609
|
requiresApproval?: boolean | undefined;
|
|
592
610
|
};
|
|
593
611
|
|
|
594
|
-
export const
|
|
612
|
+
export const RunAgentAgentToolInputRunType = {
|
|
595
613
|
WebScraper: "web_scraper",
|
|
596
614
|
} as const;
|
|
597
|
-
export type
|
|
598
|
-
typeof
|
|
615
|
+
export type RunAgentAgentToolInputRunType = ClosedEnum<
|
|
616
|
+
typeof RunAgentAgentToolInputRunType
|
|
599
617
|
>;
|
|
600
618
|
|
|
601
619
|
/**
|
|
602
620
|
* Scrapes and extracts content from web pages
|
|
603
621
|
*/
|
|
604
|
-
export type
|
|
605
|
-
type:
|
|
622
|
+
export type AgentToolInputRunWebScraperTool = {
|
|
623
|
+
type: RunAgentAgentToolInputRunType;
|
|
624
|
+
/**
|
|
625
|
+
* Whether this tool requires approval before execution
|
|
626
|
+
*/
|
|
606
627
|
requiresApproval?: boolean | undefined;
|
|
607
628
|
};
|
|
608
629
|
|
|
609
|
-
export const
|
|
630
|
+
export const AgentToolInputRunType = {
|
|
610
631
|
GoogleSearch: "google_search",
|
|
611
632
|
} as const;
|
|
612
|
-
export type
|
|
613
|
-
typeof RunAgentRequestToolType
|
|
614
|
-
>;
|
|
633
|
+
export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
|
|
615
634
|
|
|
616
635
|
/**
|
|
617
636
|
* Performs Google searches to retrieve web content
|
|
618
637
|
*/
|
|
619
|
-
export type
|
|
620
|
-
type:
|
|
638
|
+
export type AgentToolInputRunGoogleSearchTool = {
|
|
639
|
+
type: AgentToolInputRunType;
|
|
640
|
+
/**
|
|
641
|
+
* Whether this tool requires approval before execution
|
|
642
|
+
*/
|
|
621
643
|
requiresApproval?: boolean | undefined;
|
|
622
644
|
};
|
|
623
645
|
|
|
624
646
|
/**
|
|
625
|
-
*
|
|
647
|
+
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (http, code, function) support full inline definitions for on-the-fly creation.
|
|
626
648
|
*/
|
|
627
|
-
export type
|
|
628
|
-
|
|
|
629
|
-
|
|
|
630
|
-
|
|
|
631
|
-
|
|
|
632
|
-
|
|
|
633
|
-
|
|
|
634
|
-
|
|
|
635
|
-
|
|
|
636
|
-
|
|
|
637
|
-
|
|
|
638
|
-
|
|
|
639
|
-
|
|
|
640
|
-
|
|
|
641
|
-
|
|
|
649
|
+
export type AgentToolInputRun =
|
|
650
|
+
| HTTPToolRun
|
|
651
|
+
| CodeToolRun
|
|
652
|
+
| FunctionToolRun
|
|
653
|
+
| AgentToolInputRunGoogleSearchTool
|
|
654
|
+
| AgentToolInputRunWebScraperTool
|
|
655
|
+
| AgentToolInputRunCallSubAgentTool
|
|
656
|
+
| AgentToolInputRunRetrieveAgentsTool
|
|
657
|
+
| AgentToolInputRunQueryMemoryStoreTool
|
|
658
|
+
| AgentToolInputRunWriteMemoryStoreTool
|
|
659
|
+
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
660
|
+
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
661
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
662
|
+
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
663
|
+
| AgentToolInputRunCurrentDateTool;
|
|
642
664
|
|
|
643
665
|
/**
|
|
644
666
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
645
667
|
*/
|
|
646
|
-
export const
|
|
668
|
+
export const RunAgentToolApprovalRequired = {
|
|
647
669
|
All: "all",
|
|
648
670
|
RespectTool: "respect_tool",
|
|
649
671
|
None: "none",
|
|
@@ -651,32 +673,34 @@ export const ToolApprovalRequired = {
|
|
|
651
673
|
/**
|
|
652
674
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
653
675
|
*/
|
|
654
|
-
export type
|
|
676
|
+
export type RunAgentToolApprovalRequired = ClosedEnum<
|
|
677
|
+
typeof RunAgentToolApprovalRequired
|
|
678
|
+
>;
|
|
655
679
|
|
|
656
|
-
export type
|
|
680
|
+
export type RunAgentSettings = {
|
|
657
681
|
/**
|
|
658
682
|
* Tools available to the agent
|
|
659
683
|
*/
|
|
660
684
|
tools: Array<
|
|
661
|
-
|
|
|
662
|
-
|
|
|
663
|
-
|
|
|
664
|
-
|
|
|
665
|
-
|
|
|
666
|
-
|
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
671
|
-
|
|
|
672
|
-
|
|
|
673
|
-
|
|
|
674
|
-
|
|
|
685
|
+
| HTTPToolRun
|
|
686
|
+
| CodeToolRun
|
|
687
|
+
| FunctionToolRun
|
|
688
|
+
| AgentToolInputRunGoogleSearchTool
|
|
689
|
+
| AgentToolInputRunWebScraperTool
|
|
690
|
+
| AgentToolInputRunCallSubAgentTool
|
|
691
|
+
| AgentToolInputRunRetrieveAgentsTool
|
|
692
|
+
| AgentToolInputRunQueryMemoryStoreTool
|
|
693
|
+
| AgentToolInputRunWriteMemoryStoreTool
|
|
694
|
+
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
695
|
+
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
696
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
697
|
+
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
698
|
+
| AgentToolInputRunCurrentDateTool
|
|
675
699
|
>;
|
|
676
700
|
/**
|
|
677
701
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
678
702
|
*/
|
|
679
|
-
toolApprovalRequired?:
|
|
703
|
+
toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
|
|
680
704
|
/**
|
|
681
705
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
682
706
|
*/
|
|
@@ -715,7 +739,7 @@ export type RunAgentRequestBody = {
|
|
|
715
739
|
/**
|
|
716
740
|
* The A2A format message containing the task for the agent to perform.
|
|
717
741
|
*/
|
|
718
|
-
message:
|
|
742
|
+
message: RunAgentMessage;
|
|
719
743
|
/**
|
|
720
744
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
721
745
|
*/
|
|
@@ -723,7 +747,7 @@ export type RunAgentRequestBody = {
|
|
|
723
747
|
/**
|
|
724
748
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
725
749
|
*/
|
|
726
|
-
contact?:
|
|
750
|
+
contact?: RunAgentContact | undefined;
|
|
727
751
|
/**
|
|
728
752
|
* Thread information to group related requests
|
|
729
753
|
*/
|
|
@@ -731,7 +755,7 @@ export type RunAgentRequestBody = {
|
|
|
731
755
|
/**
|
|
732
756
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
733
757
|
*/
|
|
734
|
-
memory?:
|
|
758
|
+
memory?: RunAgentMemory | undefined;
|
|
735
759
|
/**
|
|
736
760
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
737
761
|
*/
|
|
@@ -748,12 +772,15 @@ export type RunAgentRequestBody = {
|
|
|
748
772
|
* The list of keys of the memory stores that are accessible to the agent.
|
|
749
773
|
*/
|
|
750
774
|
memoryStores?: Array<string> | undefined;
|
|
751
|
-
|
|
775
|
+
/**
|
|
776
|
+
* Knowledge base configurations for the agent to access
|
|
777
|
+
*/
|
|
778
|
+
knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
|
|
752
779
|
/**
|
|
753
780
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
754
781
|
*/
|
|
755
782
|
teamOfAgents?: Array<TeamOfAgents> | undefined;
|
|
756
|
-
settings:
|
|
783
|
+
settings: RunAgentSettings;
|
|
757
784
|
/**
|
|
758
785
|
* Optional metadata for the agent run as key-value pairs that will be included in traces
|
|
759
786
|
*/
|
|
@@ -812,7 +839,7 @@ export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
|
|
|
812
839
|
/**
|
|
813
840
|
* Optional status message
|
|
814
841
|
*/
|
|
815
|
-
export type
|
|
842
|
+
export type RunAgentAgentsMessage = {
|
|
816
843
|
kind: RunAgentAgentsKind;
|
|
817
844
|
messageId: string;
|
|
818
845
|
/**
|
|
@@ -837,7 +864,7 @@ export type RunAgentStatus = {
|
|
|
837
864
|
/**
|
|
838
865
|
* Optional status message
|
|
839
866
|
*/
|
|
840
|
-
message?:
|
|
867
|
+
message?: RunAgentAgentsMessage | undefined;
|
|
841
868
|
};
|
|
842
869
|
|
|
843
870
|
/**
|
|
@@ -849,7 +876,7 @@ export type RunAgentResponseBody = {
|
|
|
849
876
|
*/
|
|
850
877
|
id: string;
|
|
851
878
|
/**
|
|
852
|
-
* The
|
|
879
|
+
* The correlation ID for this execution
|
|
853
880
|
*/
|
|
854
881
|
contextId: string;
|
|
855
882
|
/**
|
|
@@ -861,51 +888,51 @@ export type RunAgentResponseBody = {
|
|
|
861
888
|
*/
|
|
862
889
|
status: RunAgentStatus;
|
|
863
890
|
/**
|
|
864
|
-
* Task metadata
|
|
891
|
+
* Task metadata containing workspace_id and trace_id for feedback
|
|
865
892
|
*/
|
|
866
893
|
metadata?: { [k: string]: any } | undefined;
|
|
867
894
|
};
|
|
868
895
|
|
|
869
896
|
/** @internal */
|
|
870
|
-
export const
|
|
871
|
-
typeof
|
|
872
|
-
> = z.nativeEnum(
|
|
897
|
+
export const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
898
|
+
typeof RunAgentRoleToolMessage
|
|
899
|
+
> = z.nativeEnum(RunAgentRoleToolMessage);
|
|
873
900
|
|
|
874
901
|
/** @internal */
|
|
875
|
-
export const
|
|
876
|
-
typeof
|
|
877
|
-
> =
|
|
902
|
+
export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
903
|
+
typeof RunAgentRoleToolMessage
|
|
904
|
+
> = RunAgentRoleToolMessage$inboundSchema;
|
|
878
905
|
|
|
879
906
|
/**
|
|
880
907
|
* @internal
|
|
881
908
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
882
909
|
*/
|
|
883
|
-
export namespace
|
|
884
|
-
/** @deprecated use `
|
|
885
|
-
export const inboundSchema =
|
|
886
|
-
/** @deprecated use `
|
|
887
|
-
export const outboundSchema =
|
|
910
|
+
export namespace RunAgentRoleToolMessage$ {
|
|
911
|
+
/** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
|
|
912
|
+
export const inboundSchema = RunAgentRoleToolMessage$inboundSchema;
|
|
913
|
+
/** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
|
|
914
|
+
export const outboundSchema = RunAgentRoleToolMessage$outboundSchema;
|
|
888
915
|
}
|
|
889
916
|
|
|
890
917
|
/** @internal */
|
|
891
|
-
export const
|
|
892
|
-
typeof
|
|
893
|
-
> = z.nativeEnum(
|
|
918
|
+
export const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
919
|
+
typeof RunAgentRoleUserMessage
|
|
920
|
+
> = z.nativeEnum(RunAgentRoleUserMessage);
|
|
894
921
|
|
|
895
922
|
/** @internal */
|
|
896
|
-
export const
|
|
897
|
-
typeof
|
|
898
|
-
> =
|
|
923
|
+
export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
924
|
+
typeof RunAgentRoleUserMessage
|
|
925
|
+
> = RunAgentRoleUserMessage$inboundSchema;
|
|
899
926
|
|
|
900
927
|
/**
|
|
901
928
|
* @internal
|
|
902
929
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
903
930
|
*/
|
|
904
|
-
export namespace
|
|
905
|
-
/** @deprecated use `
|
|
906
|
-
export const inboundSchema =
|
|
907
|
-
/** @deprecated use `
|
|
908
|
-
export const outboundSchema =
|
|
931
|
+
export namespace RunAgentRoleUserMessage$ {
|
|
932
|
+
/** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
|
|
933
|
+
export const inboundSchema = RunAgentRoleUserMessage$inboundSchema;
|
|
934
|
+
/** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
|
|
935
|
+
export const outboundSchema = RunAgentRoleUserMessage$outboundSchema;
|
|
909
936
|
}
|
|
910
937
|
|
|
911
938
|
/** @internal */
|
|
@@ -913,7 +940,10 @@ export const RunAgentRole$inboundSchema: z.ZodType<
|
|
|
913
940
|
RunAgentRole,
|
|
914
941
|
z.ZodTypeDef,
|
|
915
942
|
unknown
|
|
916
|
-
> = z.union([
|
|
943
|
+
> = z.union([
|
|
944
|
+
RunAgentRoleUserMessage$inboundSchema,
|
|
945
|
+
RunAgentRoleToolMessage$inboundSchema,
|
|
946
|
+
]);
|
|
917
947
|
|
|
918
948
|
/** @internal */
|
|
919
949
|
export type RunAgentRole$Outbound = string | string;
|
|
@@ -923,7 +953,10 @@ export const RunAgentRole$outboundSchema: z.ZodType<
|
|
|
923
953
|
RunAgentRole$Outbound,
|
|
924
954
|
z.ZodTypeDef,
|
|
925
955
|
RunAgentRole
|
|
926
|
-
> = z.union([
|
|
956
|
+
> = z.union([
|
|
957
|
+
RunAgentRoleUserMessage$outboundSchema,
|
|
958
|
+
RunAgentRoleToolMessage$outboundSchema,
|
|
959
|
+
]);
|
|
927
960
|
|
|
928
961
|
/**
|
|
929
962
|
* @internal
|
|
@@ -953,33 +986,35 @@ export function runAgentRoleFromJSON(
|
|
|
953
986
|
}
|
|
954
987
|
|
|
955
988
|
/** @internal */
|
|
956
|
-
export const
|
|
957
|
-
typeof
|
|
958
|
-
|
|
989
|
+
export const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
|
|
990
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> = z
|
|
991
|
+
.nativeEnum(RunAgentPublicMessagePartAgentsRequestKind);
|
|
959
992
|
|
|
960
993
|
/** @internal */
|
|
961
|
-
export const
|
|
962
|
-
typeof
|
|
963
|
-
|
|
994
|
+
export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
995
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> =
|
|
996
|
+
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
964
997
|
|
|
965
998
|
/**
|
|
966
999
|
* @internal
|
|
967
1000
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
968
1001
|
*/
|
|
969
|
-
export namespace
|
|
970
|
-
/** @deprecated use `
|
|
971
|
-
export const inboundSchema =
|
|
972
|
-
|
|
973
|
-
|
|
1002
|
+
export namespace RunAgentPublicMessagePartAgentsRequestKind$ {
|
|
1003
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
|
|
1004
|
+
export const inboundSchema =
|
|
1005
|
+
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
1006
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
|
|
1007
|
+
export const outboundSchema =
|
|
1008
|
+
RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
|
|
974
1009
|
}
|
|
975
1010
|
|
|
976
1011
|
/** @internal */
|
|
977
|
-
export const
|
|
978
|
-
|
|
1012
|
+
export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
1013
|
+
PublicMessagePartToolResultPart,
|
|
979
1014
|
z.ZodTypeDef,
|
|
980
1015
|
unknown
|
|
981
1016
|
> = z.object({
|
|
982
|
-
kind:
|
|
1017
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
983
1018
|
tool_call_id: z.string(),
|
|
984
1019
|
result: z.any().optional(),
|
|
985
1020
|
metadata: z.record(z.any()).optional(),
|
|
@@ -990,7 +1025,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
|
|
|
990
1025
|
});
|
|
991
1026
|
|
|
992
1027
|
/** @internal */
|
|
993
|
-
export type
|
|
1028
|
+
export type PublicMessagePartToolResultPart$Outbound = {
|
|
994
1029
|
kind: string;
|
|
995
1030
|
tool_call_id: string;
|
|
996
1031
|
result?: any | undefined;
|
|
@@ -998,12 +1033,12 @@ export type ToolResultPart$Outbound = {
|
|
|
998
1033
|
};
|
|
999
1034
|
|
|
1000
1035
|
/** @internal */
|
|
1001
|
-
export const
|
|
1002
|
-
|
|
1036
|
+
export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
1037
|
+
PublicMessagePartToolResultPart$Outbound,
|
|
1003
1038
|
z.ZodTypeDef,
|
|
1004
|
-
|
|
1039
|
+
PublicMessagePartToolResultPart
|
|
1005
1040
|
> = z.object({
|
|
1006
|
-
kind:
|
|
1041
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
1007
1042
|
toolCallId: z.string(),
|
|
1008
1043
|
result: z.any().optional(),
|
|
1009
1044
|
metadata: z.record(z.any()).optional(),
|
|
@@ -1017,53 +1052,61 @@ export const ToolResultPart$outboundSchema: z.ZodType<
|
|
|
1017
1052
|
* @internal
|
|
1018
1053
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1019
1054
|
*/
|
|
1020
|
-
export namespace
|
|
1021
|
-
/** @deprecated use `
|
|
1022
|
-
export const inboundSchema =
|
|
1023
|
-
/** @deprecated use `
|
|
1024
|
-
export const outboundSchema =
|
|
1025
|
-
/** @deprecated use `
|
|
1026
|
-
export type Outbound =
|
|
1055
|
+
export namespace PublicMessagePartToolResultPart$ {
|
|
1056
|
+
/** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
1057
|
+
export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
|
|
1058
|
+
/** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
1059
|
+
export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
|
|
1060
|
+
/** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
|
|
1061
|
+
export type Outbound = PublicMessagePartToolResultPart$Outbound;
|
|
1027
1062
|
}
|
|
1028
1063
|
|
|
1029
|
-
export function
|
|
1030
|
-
|
|
1064
|
+
export function publicMessagePartToolResultPartToJSON(
|
|
1065
|
+
publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
|
|
1066
|
+
): string {
|
|
1067
|
+
return JSON.stringify(
|
|
1068
|
+
PublicMessagePartToolResultPart$outboundSchema.parse(
|
|
1069
|
+
publicMessagePartToolResultPart,
|
|
1070
|
+
),
|
|
1071
|
+
);
|
|
1031
1072
|
}
|
|
1032
1073
|
|
|
1033
|
-
export function
|
|
1074
|
+
export function publicMessagePartToolResultPartFromJSON(
|
|
1034
1075
|
jsonString: string,
|
|
1035
|
-
): SafeParseResult<
|
|
1076
|
+
): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
|
|
1036
1077
|
return safeParse(
|
|
1037
1078
|
jsonString,
|
|
1038
|
-
(x) =>
|
|
1039
|
-
`Failed to parse '
|
|
1079
|
+
(x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
1080
|
+
`Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
|
|
1040
1081
|
);
|
|
1041
1082
|
}
|
|
1042
1083
|
|
|
1043
1084
|
/** @internal */
|
|
1044
|
-
export const
|
|
1045
|
-
typeof
|
|
1046
|
-
> = z.nativeEnum(
|
|
1085
|
+
export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1086
|
+
typeof RunAgentPublicMessagePartAgentsKind
|
|
1087
|
+
> = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
|
|
1047
1088
|
|
|
1048
1089
|
/** @internal */
|
|
1049
|
-
export const
|
|
1050
|
-
typeof
|
|
1051
|
-
|
|
1090
|
+
export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
1091
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
|
|
1092
|
+
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1052
1093
|
|
|
1053
1094
|
/**
|
|
1054
1095
|
* @internal
|
|
1055
1096
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1056
1097
|
*/
|
|
1057
|
-
export namespace
|
|
1058
|
-
/** @deprecated use `
|
|
1059
|
-
export const inboundSchema =
|
|
1060
|
-
|
|
1061
|
-
|
|
1098
|
+
export namespace RunAgentPublicMessagePartAgentsKind$ {
|
|
1099
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
|
|
1100
|
+
export const inboundSchema =
|
|
1101
|
+
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1102
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
|
|
1103
|
+
export const outboundSchema =
|
|
1104
|
+
RunAgentPublicMessagePartAgentsKind$outboundSchema;
|
|
1062
1105
|
}
|
|
1063
1106
|
|
|
1064
1107
|
/** @internal */
|
|
1065
|
-
export const
|
|
1066
|
-
|
|
1108
|
+
export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
1109
|
+
FileFileInURIFormat,
|
|
1067
1110
|
z.ZodTypeDef,
|
|
1068
1111
|
unknown
|
|
1069
1112
|
> = z.object({
|
|
@@ -1073,17 +1116,17 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
|
1073
1116
|
});
|
|
1074
1117
|
|
|
1075
1118
|
/** @internal */
|
|
1076
|
-
export type
|
|
1119
|
+
export type FileFileInURIFormat$Outbound = {
|
|
1077
1120
|
uri: string;
|
|
1078
1121
|
mimeType?: string | undefined;
|
|
1079
1122
|
name?: string | undefined;
|
|
1080
1123
|
};
|
|
1081
1124
|
|
|
1082
1125
|
/** @internal */
|
|
1083
|
-
export const
|
|
1084
|
-
|
|
1126
|
+
export const FileFileInURIFormat$outboundSchema: z.ZodType<
|
|
1127
|
+
FileFileInURIFormat$Outbound,
|
|
1085
1128
|
z.ZodTypeDef,
|
|
1086
|
-
|
|
1129
|
+
FileFileInURIFormat
|
|
1087
1130
|
> = z.object({
|
|
1088
1131
|
uri: z.string(),
|
|
1089
1132
|
mimeType: z.string().optional(),
|
|
@@ -1094,34 +1137,36 @@ export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
|
1094
1137
|
* @internal
|
|
1095
1138
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1096
1139
|
*/
|
|
1097
|
-
export namespace
|
|
1098
|
-
/** @deprecated use `
|
|
1099
|
-
export const inboundSchema =
|
|
1100
|
-
/** @deprecated use `
|
|
1101
|
-
export const outboundSchema =
|
|
1102
|
-
/** @deprecated use `
|
|
1103
|
-
export type Outbound =
|
|
1140
|
+
export namespace FileFileInURIFormat$ {
|
|
1141
|
+
/** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
|
|
1142
|
+
export const inboundSchema = FileFileInURIFormat$inboundSchema;
|
|
1143
|
+
/** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
|
|
1144
|
+
export const outboundSchema = FileFileInURIFormat$outboundSchema;
|
|
1145
|
+
/** @deprecated use `FileFileInURIFormat$Outbound` instead. */
|
|
1146
|
+
export type Outbound = FileFileInURIFormat$Outbound;
|
|
1104
1147
|
}
|
|
1105
1148
|
|
|
1106
|
-
export function
|
|
1107
|
-
|
|
1149
|
+
export function fileFileInURIFormatToJSON(
|
|
1150
|
+
fileFileInURIFormat: FileFileInURIFormat,
|
|
1108
1151
|
): string {
|
|
1109
|
-
return JSON.stringify(
|
|
1152
|
+
return JSON.stringify(
|
|
1153
|
+
FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
|
|
1154
|
+
);
|
|
1110
1155
|
}
|
|
1111
1156
|
|
|
1112
|
-
export function
|
|
1157
|
+
export function fileFileInURIFormatFromJSON(
|
|
1113
1158
|
jsonString: string,
|
|
1114
|
-
): SafeParseResult<
|
|
1159
|
+
): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
|
|
1115
1160
|
return safeParse(
|
|
1116
1161
|
jsonString,
|
|
1117
|
-
(x) =>
|
|
1118
|
-
`Failed to parse '
|
|
1162
|
+
(x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1163
|
+
`Failed to parse 'FileFileInURIFormat' from JSON`,
|
|
1119
1164
|
);
|
|
1120
1165
|
}
|
|
1121
1166
|
|
|
1122
1167
|
/** @internal */
|
|
1123
|
-
export const
|
|
1124
|
-
|
|
1168
|
+
export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
1169
|
+
FileBinaryFormat,
|
|
1125
1170
|
z.ZodTypeDef,
|
|
1126
1171
|
unknown
|
|
1127
1172
|
> = z.object({
|
|
@@ -1131,17 +1176,17 @@ export const BinaryFormat$inboundSchema: z.ZodType<
|
|
|
1131
1176
|
});
|
|
1132
1177
|
|
|
1133
1178
|
/** @internal */
|
|
1134
|
-
export type
|
|
1179
|
+
export type FileBinaryFormat$Outbound = {
|
|
1135
1180
|
bytes: string;
|
|
1136
1181
|
mimeType?: string | undefined;
|
|
1137
1182
|
name?: string | undefined;
|
|
1138
1183
|
};
|
|
1139
1184
|
|
|
1140
1185
|
/** @internal */
|
|
1141
|
-
export const
|
|
1142
|
-
|
|
1186
|
+
export const FileBinaryFormat$outboundSchema: z.ZodType<
|
|
1187
|
+
FileBinaryFormat$Outbound,
|
|
1143
1188
|
z.ZodTypeDef,
|
|
1144
|
-
|
|
1189
|
+
FileBinaryFormat
|
|
1145
1190
|
> = z.object({
|
|
1146
1191
|
bytes: z.string(),
|
|
1147
1192
|
mimeType: z.string().optional(),
|
|
@@ -1152,116 +1197,122 @@ export const BinaryFormat$outboundSchema: z.ZodType<
|
|
|
1152
1197
|
* @internal
|
|
1153
1198
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1154
1199
|
*/
|
|
1155
|
-
export namespace
|
|
1156
|
-
/** @deprecated use `
|
|
1157
|
-
export const inboundSchema =
|
|
1158
|
-
/** @deprecated use `
|
|
1159
|
-
export const outboundSchema =
|
|
1160
|
-
/** @deprecated use `
|
|
1161
|
-
export type Outbound =
|
|
1200
|
+
export namespace FileBinaryFormat$ {
|
|
1201
|
+
/** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
|
|
1202
|
+
export const inboundSchema = FileBinaryFormat$inboundSchema;
|
|
1203
|
+
/** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
|
|
1204
|
+
export const outboundSchema = FileBinaryFormat$outboundSchema;
|
|
1205
|
+
/** @deprecated use `FileBinaryFormat$Outbound` instead. */
|
|
1206
|
+
export type Outbound = FileBinaryFormat$Outbound;
|
|
1162
1207
|
}
|
|
1163
1208
|
|
|
1164
|
-
export function
|
|
1165
|
-
|
|
1209
|
+
export function fileBinaryFormatToJSON(
|
|
1210
|
+
fileBinaryFormat: FileBinaryFormat,
|
|
1211
|
+
): string {
|
|
1212
|
+
return JSON.stringify(
|
|
1213
|
+
FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
|
|
1214
|
+
);
|
|
1166
1215
|
}
|
|
1167
1216
|
|
|
1168
|
-
export function
|
|
1217
|
+
export function fileBinaryFormatFromJSON(
|
|
1169
1218
|
jsonString: string,
|
|
1170
|
-
): SafeParseResult<
|
|
1219
|
+
): SafeParseResult<FileBinaryFormat, SDKValidationError> {
|
|
1171
1220
|
return safeParse(
|
|
1172
1221
|
jsonString,
|
|
1173
|
-
(x) =>
|
|
1174
|
-
`Failed to parse '
|
|
1222
|
+
(x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1223
|
+
`Failed to parse 'FileBinaryFormat' from JSON`,
|
|
1175
1224
|
);
|
|
1176
1225
|
}
|
|
1177
1226
|
|
|
1178
1227
|
/** @internal */
|
|
1179
|
-
export const
|
|
1180
|
-
|
|
1228
|
+
export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
1229
|
+
RunAgentPublicMessagePartFile,
|
|
1181
1230
|
z.ZodTypeDef,
|
|
1182
1231
|
unknown
|
|
1183
1232
|
> = z.union([
|
|
1184
|
-
z.lazy(() =>
|
|
1185
|
-
z.lazy(() =>
|
|
1233
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1234
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1186
1235
|
]);
|
|
1187
1236
|
|
|
1188
1237
|
/** @internal */
|
|
1189
|
-
export type
|
|
1190
|
-
|
|
|
1191
|
-
|
|
|
1238
|
+
export type RunAgentPublicMessagePartFile$Outbound =
|
|
1239
|
+
| FileBinaryFormat$Outbound
|
|
1240
|
+
| FileFileInURIFormat$Outbound;
|
|
1192
1241
|
|
|
1193
1242
|
/** @internal */
|
|
1194
|
-
export const
|
|
1195
|
-
|
|
1243
|
+
export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
1244
|
+
RunAgentPublicMessagePartFile$Outbound,
|
|
1196
1245
|
z.ZodTypeDef,
|
|
1197
|
-
|
|
1246
|
+
RunAgentPublicMessagePartFile
|
|
1198
1247
|
> = z.union([
|
|
1199
|
-
z.lazy(() =>
|
|
1200
|
-
z.lazy(() =>
|
|
1248
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1249
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1201
1250
|
]);
|
|
1202
1251
|
|
|
1203
1252
|
/**
|
|
1204
1253
|
* @internal
|
|
1205
1254
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1206
1255
|
*/
|
|
1207
|
-
export namespace
|
|
1208
|
-
/** @deprecated use `
|
|
1209
|
-
export const inboundSchema =
|
|
1210
|
-
/** @deprecated use `
|
|
1211
|
-
export const outboundSchema =
|
|
1212
|
-
/** @deprecated use `
|
|
1213
|
-
export type Outbound =
|
|
1256
|
+
export namespace RunAgentPublicMessagePartFile$ {
|
|
1257
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
|
|
1258
|
+
export const inboundSchema = RunAgentPublicMessagePartFile$inboundSchema;
|
|
1259
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
|
|
1260
|
+
export const outboundSchema = RunAgentPublicMessagePartFile$outboundSchema;
|
|
1261
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
|
|
1262
|
+
export type Outbound = RunAgentPublicMessagePartFile$Outbound;
|
|
1214
1263
|
}
|
|
1215
1264
|
|
|
1216
|
-
export function
|
|
1217
|
-
|
|
1265
|
+
export function runAgentPublicMessagePartFileToJSON(
|
|
1266
|
+
runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
|
|
1218
1267
|
): string {
|
|
1219
1268
|
return JSON.stringify(
|
|
1220
|
-
|
|
1269
|
+
RunAgentPublicMessagePartFile$outboundSchema.parse(
|
|
1270
|
+
runAgentPublicMessagePartFile,
|
|
1271
|
+
),
|
|
1221
1272
|
);
|
|
1222
1273
|
}
|
|
1223
1274
|
|
|
1224
|
-
export function
|
|
1275
|
+
export function runAgentPublicMessagePartFileFromJSON(
|
|
1225
1276
|
jsonString: string,
|
|
1226
|
-
): SafeParseResult<
|
|
1277
|
+
): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
|
|
1227
1278
|
return safeParse(
|
|
1228
1279
|
jsonString,
|
|
1229
|
-
(x) =>
|
|
1230
|
-
`Failed to parse '
|
|
1280
|
+
(x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
1281
|
+
`Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
|
|
1231
1282
|
);
|
|
1232
1283
|
}
|
|
1233
1284
|
|
|
1234
1285
|
/** @internal */
|
|
1235
|
-
export const
|
|
1236
|
-
|
|
1286
|
+
export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
1287
|
+
PublicMessagePartFilePart,
|
|
1237
1288
|
z.ZodTypeDef,
|
|
1238
1289
|
unknown
|
|
1239
1290
|
> = z.object({
|
|
1240
|
-
kind:
|
|
1291
|
+
kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
1241
1292
|
file: z.union([
|
|
1242
|
-
z.lazy(() =>
|
|
1243
|
-
z.lazy(() =>
|
|
1293
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1294
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1244
1295
|
]),
|
|
1245
1296
|
metadata: z.record(z.any()).optional(),
|
|
1246
1297
|
});
|
|
1247
1298
|
|
|
1248
1299
|
/** @internal */
|
|
1249
|
-
export type
|
|
1300
|
+
export type PublicMessagePartFilePart$Outbound = {
|
|
1250
1301
|
kind: string;
|
|
1251
|
-
file:
|
|
1302
|
+
file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
1252
1303
|
metadata?: { [k: string]: any } | undefined;
|
|
1253
1304
|
};
|
|
1254
1305
|
|
|
1255
1306
|
/** @internal */
|
|
1256
|
-
export const
|
|
1257
|
-
|
|
1307
|
+
export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
1308
|
+
PublicMessagePartFilePart$Outbound,
|
|
1258
1309
|
z.ZodTypeDef,
|
|
1259
|
-
|
|
1310
|
+
PublicMessagePartFilePart
|
|
1260
1311
|
> = z.object({
|
|
1261
|
-
kind:
|
|
1312
|
+
kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
1262
1313
|
file: z.union([
|
|
1263
|
-
z.lazy(() =>
|
|
1264
|
-
z.lazy(() =>
|
|
1314
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1315
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1265
1316
|
]),
|
|
1266
1317
|
metadata: z.record(z.any()).optional(),
|
|
1267
1318
|
});
|
|
@@ -1270,72 +1321,77 @@ export const FilePart$outboundSchema: z.ZodType<
|
|
|
1270
1321
|
* @internal
|
|
1271
1322
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1272
1323
|
*/
|
|
1273
|
-
export namespace
|
|
1274
|
-
/** @deprecated use `
|
|
1275
|
-
export const inboundSchema =
|
|
1276
|
-
/** @deprecated use `
|
|
1277
|
-
export const outboundSchema =
|
|
1278
|
-
/** @deprecated use `
|
|
1279
|
-
export type Outbound =
|
|
1324
|
+
export namespace PublicMessagePartFilePart$ {
|
|
1325
|
+
/** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
|
|
1326
|
+
export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
|
|
1327
|
+
/** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
|
|
1328
|
+
export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
|
|
1329
|
+
/** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
|
|
1330
|
+
export type Outbound = PublicMessagePartFilePart$Outbound;
|
|
1280
1331
|
}
|
|
1281
1332
|
|
|
1282
|
-
export function
|
|
1283
|
-
|
|
1333
|
+
export function publicMessagePartFilePartToJSON(
|
|
1334
|
+
publicMessagePartFilePart: PublicMessagePartFilePart,
|
|
1335
|
+
): string {
|
|
1336
|
+
return JSON.stringify(
|
|
1337
|
+
PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
|
|
1338
|
+
);
|
|
1284
1339
|
}
|
|
1285
1340
|
|
|
1286
|
-
export function
|
|
1341
|
+
export function publicMessagePartFilePartFromJSON(
|
|
1287
1342
|
jsonString: string,
|
|
1288
|
-
): SafeParseResult<
|
|
1343
|
+
): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
|
|
1289
1344
|
return safeParse(
|
|
1290
1345
|
jsonString,
|
|
1291
|
-
(x) =>
|
|
1292
|
-
`Failed to parse '
|
|
1346
|
+
(x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
1347
|
+
`Failed to parse 'PublicMessagePartFilePart' from JSON`,
|
|
1293
1348
|
);
|
|
1294
1349
|
}
|
|
1295
1350
|
|
|
1296
1351
|
/** @internal */
|
|
1297
|
-
export const
|
|
1298
|
-
|
|
1299
|
-
);
|
|
1352
|
+
export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
1353
|
+
typeof RunAgentPublicMessagePartKind
|
|
1354
|
+
> = z.nativeEnum(RunAgentPublicMessagePartKind);
|
|
1300
1355
|
|
|
1301
1356
|
/** @internal */
|
|
1302
|
-
export const
|
|
1303
|
-
|
|
1357
|
+
export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
1358
|
+
typeof RunAgentPublicMessagePartKind
|
|
1359
|
+
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1304
1360
|
|
|
1305
1361
|
/**
|
|
1306
1362
|
* @internal
|
|
1307
1363
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1308
1364
|
*/
|
|
1309
|
-
export namespace
|
|
1310
|
-
/** @deprecated use `
|
|
1311
|
-
export const inboundSchema =
|
|
1312
|
-
/** @deprecated use `
|
|
1313
|
-
export const outboundSchema =
|
|
1365
|
+
export namespace RunAgentPublicMessagePartKind$ {
|
|
1366
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
1367
|
+
export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1368
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
1369
|
+
export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
|
|
1314
1370
|
}
|
|
1315
1371
|
|
|
1316
1372
|
/** @internal */
|
|
1317
|
-
export const
|
|
1318
|
-
|
|
1373
|
+
export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
1374
|
+
PublicMessagePartTextPart,
|
|
1319
1375
|
z.ZodTypeDef,
|
|
1320
1376
|
unknown
|
|
1321
1377
|
> = z.object({
|
|
1322
|
-
kind:
|
|
1378
|
+
kind: RunAgentPublicMessagePartKind$inboundSchema,
|
|
1323
1379
|
text: z.string(),
|
|
1324
1380
|
});
|
|
1325
1381
|
|
|
1326
1382
|
/** @internal */
|
|
1327
|
-
export type
|
|
1383
|
+
export type PublicMessagePartTextPart$Outbound = {
|
|
1328
1384
|
kind: string;
|
|
1329
1385
|
text: string;
|
|
1330
1386
|
};
|
|
1331
1387
|
|
|
1332
1388
|
/** @internal */
|
|
1333
|
-
export const
|
|
1334
|
-
|
|
1389
|
+
export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
1390
|
+
PublicMessagePartTextPart$Outbound,
|
|
1335
1391
|
z.ZodTypeDef,
|
|
1336
|
-
|
|
1392
|
+
PublicMessagePartTextPart
|
|
1337
1393
|
> = z.object({
|
|
1338
|
-
kind:
|
|
1394
|
+
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
1339
1395
|
text: z.string(),
|
|
1340
1396
|
});
|
|
1341
1397
|
|
|
@@ -1343,128 +1399,139 @@ export const TextPart$outboundSchema: z.ZodType<
|
|
|
1343
1399
|
* @internal
|
|
1344
1400
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1345
1401
|
*/
|
|
1346
|
-
export namespace
|
|
1347
|
-
/** @deprecated use `
|
|
1348
|
-
export const inboundSchema =
|
|
1349
|
-
/** @deprecated use `
|
|
1350
|
-
export const outboundSchema =
|
|
1351
|
-
/** @deprecated use `
|
|
1352
|
-
export type Outbound =
|
|
1402
|
+
export namespace PublicMessagePartTextPart$ {
|
|
1403
|
+
/** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
|
|
1404
|
+
export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
|
|
1405
|
+
/** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
|
|
1406
|
+
export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
|
|
1407
|
+
/** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
|
|
1408
|
+
export type Outbound = PublicMessagePartTextPart$Outbound;
|
|
1353
1409
|
}
|
|
1354
1410
|
|
|
1355
|
-
export function
|
|
1356
|
-
|
|
1411
|
+
export function publicMessagePartTextPartToJSON(
|
|
1412
|
+
publicMessagePartTextPart: PublicMessagePartTextPart,
|
|
1413
|
+
): string {
|
|
1414
|
+
return JSON.stringify(
|
|
1415
|
+
PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
|
|
1416
|
+
);
|
|
1357
1417
|
}
|
|
1358
1418
|
|
|
1359
|
-
export function
|
|
1419
|
+
export function publicMessagePartTextPartFromJSON(
|
|
1360
1420
|
jsonString: string,
|
|
1361
|
-
): SafeParseResult<
|
|
1421
|
+
): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
|
|
1362
1422
|
return safeParse(
|
|
1363
1423
|
jsonString,
|
|
1364
|
-
(x) =>
|
|
1365
|
-
`Failed to parse '
|
|
1424
|
+
(x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
1425
|
+
`Failed to parse 'PublicMessagePartTextPart' from JSON`,
|
|
1366
1426
|
);
|
|
1367
1427
|
}
|
|
1368
1428
|
|
|
1369
1429
|
/** @internal */
|
|
1370
|
-
export const
|
|
1371
|
-
|
|
1430
|
+
export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
1431
|
+
RunAgentPublicMessagePart,
|
|
1372
1432
|
z.ZodTypeDef,
|
|
1373
1433
|
unknown
|
|
1374
1434
|
> = z.union([
|
|
1375
|
-
z.lazy(() =>
|
|
1376
|
-
z.lazy(() =>
|
|
1377
|
-
z.lazy(() =>
|
|
1435
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1436
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1437
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1378
1438
|
]);
|
|
1379
1439
|
|
|
1380
1440
|
/** @internal */
|
|
1381
|
-
export type
|
|
1382
|
-
|
|
|
1383
|
-
|
|
|
1384
|
-
|
|
|
1441
|
+
export type RunAgentPublicMessagePart$Outbound =
|
|
1442
|
+
| PublicMessagePartTextPart$Outbound
|
|
1443
|
+
| PublicMessagePartFilePart$Outbound
|
|
1444
|
+
| PublicMessagePartToolResultPart$Outbound;
|
|
1385
1445
|
|
|
1386
1446
|
/** @internal */
|
|
1387
|
-
export const
|
|
1388
|
-
|
|
1447
|
+
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
1448
|
+
RunAgentPublicMessagePart$Outbound,
|
|
1389
1449
|
z.ZodTypeDef,
|
|
1390
|
-
|
|
1450
|
+
RunAgentPublicMessagePart
|
|
1391
1451
|
> = z.union([
|
|
1392
|
-
z.lazy(() =>
|
|
1393
|
-
z.lazy(() =>
|
|
1394
|
-
z.lazy(() =>
|
|
1452
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1453
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1454
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1395
1455
|
]);
|
|
1396
1456
|
|
|
1397
1457
|
/**
|
|
1398
1458
|
* @internal
|
|
1399
1459
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1400
1460
|
*/
|
|
1401
|
-
export namespace
|
|
1402
|
-
/** @deprecated use `
|
|
1403
|
-
export const inboundSchema =
|
|
1404
|
-
/** @deprecated use `
|
|
1405
|
-
export const outboundSchema =
|
|
1406
|
-
/** @deprecated use `
|
|
1407
|
-
export type Outbound =
|
|
1461
|
+
export namespace RunAgentPublicMessagePart$ {
|
|
1462
|
+
/** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
|
|
1463
|
+
export const inboundSchema = RunAgentPublicMessagePart$inboundSchema;
|
|
1464
|
+
/** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
|
|
1465
|
+
export const outboundSchema = RunAgentPublicMessagePart$outboundSchema;
|
|
1466
|
+
/** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
|
|
1467
|
+
export type Outbound = RunAgentPublicMessagePart$Outbound;
|
|
1408
1468
|
}
|
|
1409
1469
|
|
|
1410
|
-
export function
|
|
1411
|
-
|
|
1470
|
+
export function runAgentPublicMessagePartToJSON(
|
|
1471
|
+
runAgentPublicMessagePart: RunAgentPublicMessagePart,
|
|
1412
1472
|
): string {
|
|
1413
1473
|
return JSON.stringify(
|
|
1414
|
-
|
|
1474
|
+
RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
|
|
1415
1475
|
);
|
|
1416
1476
|
}
|
|
1417
1477
|
|
|
1418
|
-
export function
|
|
1478
|
+
export function runAgentPublicMessagePartFromJSON(
|
|
1419
1479
|
jsonString: string,
|
|
1420
|
-
): SafeParseResult<
|
|
1480
|
+
): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError> {
|
|
1421
1481
|
return safeParse(
|
|
1422
1482
|
jsonString,
|
|
1423
|
-
(x) =>
|
|
1424
|
-
`Failed to parse '
|
|
1483
|
+
(x) => RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
1484
|
+
`Failed to parse 'RunAgentPublicMessagePart' from JSON`,
|
|
1425
1485
|
);
|
|
1426
1486
|
}
|
|
1427
1487
|
|
|
1428
1488
|
/** @internal */
|
|
1429
|
-
export const
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1489
|
+
export const RunAgentMessage$inboundSchema: z.ZodType<
|
|
1490
|
+
RunAgentMessage,
|
|
1491
|
+
z.ZodTypeDef,
|
|
1492
|
+
unknown
|
|
1493
|
+
> = z.object({
|
|
1494
|
+
messageId: z.string().optional(),
|
|
1495
|
+
role: z.union([
|
|
1496
|
+
RunAgentRoleUserMessage$inboundSchema,
|
|
1497
|
+
RunAgentRoleToolMessage$inboundSchema,
|
|
1498
|
+
]),
|
|
1499
|
+
parts: z.array(
|
|
1500
|
+
z.union([
|
|
1501
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1502
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1503
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1435
1504
|
]),
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
z.lazy(() => TextPart$inboundSchema),
|
|
1439
|
-
z.lazy(() => FilePart$inboundSchema),
|
|
1440
|
-
z.lazy(() => ToolResultPart$inboundSchema),
|
|
1441
|
-
]),
|
|
1442
|
-
),
|
|
1443
|
-
});
|
|
1505
|
+
),
|
|
1506
|
+
});
|
|
1444
1507
|
|
|
1445
1508
|
/** @internal */
|
|
1446
|
-
export type
|
|
1509
|
+
export type RunAgentMessage$Outbound = {
|
|
1447
1510
|
messageId?: string | undefined;
|
|
1448
1511
|
role: string | string;
|
|
1449
|
-
parts: Array<
|
|
1512
|
+
parts: Array<
|
|
1513
|
+
| PublicMessagePartTextPart$Outbound
|
|
1514
|
+
| PublicMessagePartFilePart$Outbound
|
|
1515
|
+
| PublicMessagePartToolResultPart$Outbound
|
|
1516
|
+
>;
|
|
1450
1517
|
};
|
|
1451
1518
|
|
|
1452
1519
|
/** @internal */
|
|
1453
|
-
export const
|
|
1454
|
-
|
|
1520
|
+
export const RunAgentMessage$outboundSchema: z.ZodType<
|
|
1521
|
+
RunAgentMessage$Outbound,
|
|
1455
1522
|
z.ZodTypeDef,
|
|
1456
|
-
|
|
1523
|
+
RunAgentMessage
|
|
1457
1524
|
> = z.object({
|
|
1458
1525
|
messageId: z.string().optional(),
|
|
1459
1526
|
role: z.union([
|
|
1460
|
-
|
|
1461
|
-
|
|
1527
|
+
RunAgentRoleUserMessage$outboundSchema,
|
|
1528
|
+
RunAgentRoleToolMessage$outboundSchema,
|
|
1462
1529
|
]),
|
|
1463
1530
|
parts: z.array(
|
|
1464
1531
|
z.union([
|
|
1465
|
-
z.lazy(() =>
|
|
1466
|
-
z.lazy(() =>
|
|
1467
|
-
z.lazy(() =>
|
|
1532
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1533
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1534
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1468
1535
|
]),
|
|
1469
1536
|
),
|
|
1470
1537
|
});
|
|
@@ -1473,47 +1540,52 @@ export const Message$outboundSchema: z.ZodType<
|
|
|
1473
1540
|
* @internal
|
|
1474
1541
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1475
1542
|
*/
|
|
1476
|
-
export namespace
|
|
1477
|
-
/** @deprecated use `
|
|
1478
|
-
export const inboundSchema =
|
|
1479
|
-
/** @deprecated use `
|
|
1480
|
-
export const outboundSchema =
|
|
1481
|
-
/** @deprecated use `
|
|
1482
|
-
export type Outbound =
|
|
1543
|
+
export namespace RunAgentMessage$ {
|
|
1544
|
+
/** @deprecated use `RunAgentMessage$inboundSchema` instead. */
|
|
1545
|
+
export const inboundSchema = RunAgentMessage$inboundSchema;
|
|
1546
|
+
/** @deprecated use `RunAgentMessage$outboundSchema` instead. */
|
|
1547
|
+
export const outboundSchema = RunAgentMessage$outboundSchema;
|
|
1548
|
+
/** @deprecated use `RunAgentMessage$Outbound` instead. */
|
|
1549
|
+
export type Outbound = RunAgentMessage$Outbound;
|
|
1483
1550
|
}
|
|
1484
1551
|
|
|
1485
|
-
export function
|
|
1486
|
-
|
|
1552
|
+
export function runAgentMessageToJSON(
|
|
1553
|
+
runAgentMessage: RunAgentMessage,
|
|
1554
|
+
): string {
|
|
1555
|
+
return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
|
|
1487
1556
|
}
|
|
1488
1557
|
|
|
1489
|
-
export function
|
|
1558
|
+
export function runAgentMessageFromJSON(
|
|
1490
1559
|
jsonString: string,
|
|
1491
|
-
): SafeParseResult<
|
|
1560
|
+
): SafeParseResult<RunAgentMessage, SDKValidationError> {
|
|
1492
1561
|
return safeParse(
|
|
1493
1562
|
jsonString,
|
|
1494
|
-
(x) =>
|
|
1495
|
-
`Failed to parse '
|
|
1563
|
+
(x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1564
|
+
`Failed to parse 'RunAgentMessage' from JSON`,
|
|
1496
1565
|
);
|
|
1497
1566
|
}
|
|
1498
1567
|
|
|
1499
1568
|
/** @internal */
|
|
1500
|
-
export const
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1569
|
+
export const RunAgentContact$inboundSchema: z.ZodType<
|
|
1570
|
+
RunAgentContact,
|
|
1571
|
+
z.ZodTypeDef,
|
|
1572
|
+
unknown
|
|
1573
|
+
> = z.object({
|
|
1574
|
+
id: z.string(),
|
|
1575
|
+
display_name: z.string().optional(),
|
|
1576
|
+
email: z.string().optional(),
|
|
1577
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1578
|
+
logo_url: z.string().optional(),
|
|
1579
|
+
tags: z.array(z.string()).optional(),
|
|
1580
|
+
}).transform((v) => {
|
|
1581
|
+
return remap$(v, {
|
|
1582
|
+
"display_name": "displayName",
|
|
1583
|
+
"logo_url": "logoUrl",
|
|
1513
1584
|
});
|
|
1585
|
+
});
|
|
1514
1586
|
|
|
1515
1587
|
/** @internal */
|
|
1516
|
-
export type
|
|
1588
|
+
export type RunAgentContact$Outbound = {
|
|
1517
1589
|
id: string;
|
|
1518
1590
|
display_name?: string | undefined;
|
|
1519
1591
|
email?: string | undefined;
|
|
@@ -1523,10 +1595,10 @@ export type Contact$Outbound = {
|
|
|
1523
1595
|
};
|
|
1524
1596
|
|
|
1525
1597
|
/** @internal */
|
|
1526
|
-
export const
|
|
1527
|
-
|
|
1598
|
+
export const RunAgentContact$outboundSchema: z.ZodType<
|
|
1599
|
+
RunAgentContact$Outbound,
|
|
1528
1600
|
z.ZodTypeDef,
|
|
1529
|
-
|
|
1601
|
+
RunAgentContact
|
|
1530
1602
|
> = z.object({
|
|
1531
1603
|
id: z.string(),
|
|
1532
1604
|
displayName: z.string().optional(),
|
|
@@ -1545,26 +1617,28 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
1545
1617
|
* @internal
|
|
1546
1618
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1547
1619
|
*/
|
|
1548
|
-
export namespace
|
|
1549
|
-
/** @deprecated use `
|
|
1550
|
-
export const inboundSchema =
|
|
1551
|
-
/** @deprecated use `
|
|
1552
|
-
export const outboundSchema =
|
|
1553
|
-
/** @deprecated use `
|
|
1554
|
-
export type Outbound =
|
|
1620
|
+
export namespace RunAgentContact$ {
|
|
1621
|
+
/** @deprecated use `RunAgentContact$inboundSchema` instead. */
|
|
1622
|
+
export const inboundSchema = RunAgentContact$inboundSchema;
|
|
1623
|
+
/** @deprecated use `RunAgentContact$outboundSchema` instead. */
|
|
1624
|
+
export const outboundSchema = RunAgentContact$outboundSchema;
|
|
1625
|
+
/** @deprecated use `RunAgentContact$Outbound` instead. */
|
|
1626
|
+
export type Outbound = RunAgentContact$Outbound;
|
|
1555
1627
|
}
|
|
1556
1628
|
|
|
1557
|
-
export function
|
|
1558
|
-
|
|
1629
|
+
export function runAgentContactToJSON(
|
|
1630
|
+
runAgentContact: RunAgentContact,
|
|
1631
|
+
): string {
|
|
1632
|
+
return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
|
|
1559
1633
|
}
|
|
1560
1634
|
|
|
1561
|
-
export function
|
|
1635
|
+
export function runAgentContactFromJSON(
|
|
1562
1636
|
jsonString: string,
|
|
1563
|
-
): SafeParseResult<
|
|
1637
|
+
): SafeParseResult<RunAgentContact, SDKValidationError> {
|
|
1564
1638
|
return safeParse(
|
|
1565
1639
|
jsonString,
|
|
1566
|
-
(x) =>
|
|
1567
|
-
`Failed to parse '
|
|
1640
|
+
(x) => RunAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1641
|
+
`Failed to parse 'RunAgentContact' from JSON`,
|
|
1568
1642
|
);
|
|
1569
1643
|
}
|
|
1570
1644
|
|
|
@@ -1622,25 +1696,28 @@ export function runAgentThreadFromJSON(
|
|
|
1622
1696
|
}
|
|
1623
1697
|
|
|
1624
1698
|
/** @internal */
|
|
1625
|
-
export const
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1699
|
+
export const RunAgentMemory$inboundSchema: z.ZodType<
|
|
1700
|
+
RunAgentMemory,
|
|
1701
|
+
z.ZodTypeDef,
|
|
1702
|
+
unknown
|
|
1703
|
+
> = z.object({
|
|
1704
|
+
entity_id: z.string(),
|
|
1705
|
+
}).transform((v) => {
|
|
1706
|
+
return remap$(v, {
|
|
1707
|
+
"entity_id": "entityId",
|
|
1632
1708
|
});
|
|
1709
|
+
});
|
|
1633
1710
|
|
|
1634
1711
|
/** @internal */
|
|
1635
|
-
export type
|
|
1712
|
+
export type RunAgentMemory$Outbound = {
|
|
1636
1713
|
entity_id: string;
|
|
1637
1714
|
};
|
|
1638
1715
|
|
|
1639
1716
|
/** @internal */
|
|
1640
|
-
export const
|
|
1641
|
-
|
|
1717
|
+
export const RunAgentMemory$outboundSchema: z.ZodType<
|
|
1718
|
+
RunAgentMemory$Outbound,
|
|
1642
1719
|
z.ZodTypeDef,
|
|
1643
|
-
|
|
1720
|
+
RunAgentMemory
|
|
1644
1721
|
> = z.object({
|
|
1645
1722
|
entityId: z.string(),
|
|
1646
1723
|
}).transform((v) => {
|
|
@@ -1653,298 +1730,88 @@ export const Memory$outboundSchema: z.ZodType<
|
|
|
1653
1730
|
* @internal
|
|
1654
1731
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1655
1732
|
*/
|
|
1656
|
-
export namespace
|
|
1657
|
-
/** @deprecated use `
|
|
1658
|
-
export const inboundSchema =
|
|
1659
|
-
/** @deprecated use `
|
|
1660
|
-
export const outboundSchema =
|
|
1661
|
-
/** @deprecated use `
|
|
1662
|
-
export type Outbound =
|
|
1733
|
+
export namespace RunAgentMemory$ {
|
|
1734
|
+
/** @deprecated use `RunAgentMemory$inboundSchema` instead. */
|
|
1735
|
+
export const inboundSchema = RunAgentMemory$inboundSchema;
|
|
1736
|
+
/** @deprecated use `RunAgentMemory$outboundSchema` instead. */
|
|
1737
|
+
export const outboundSchema = RunAgentMemory$outboundSchema;
|
|
1738
|
+
/** @deprecated use `RunAgentMemory$Outbound` instead. */
|
|
1739
|
+
export type Outbound = RunAgentMemory$Outbound;
|
|
1663
1740
|
}
|
|
1664
1741
|
|
|
1665
|
-
export function
|
|
1666
|
-
return JSON.stringify(
|
|
1742
|
+
export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
|
|
1743
|
+
return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
|
|
1667
1744
|
}
|
|
1668
1745
|
|
|
1669
|
-
export function
|
|
1746
|
+
export function runAgentMemoryFromJSON(
|
|
1670
1747
|
jsonString: string,
|
|
1671
|
-
): SafeParseResult<
|
|
1748
|
+
): SafeParseResult<RunAgentMemory, SDKValidationError> {
|
|
1672
1749
|
return safeParse(
|
|
1673
1750
|
jsonString,
|
|
1674
|
-
(x) =>
|
|
1675
|
-
`Failed to parse '
|
|
1676
|
-
);
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
/** @internal */
|
|
1680
|
-
export const RunAgentKnowledgeBaseConfigurationType$inboundSchema:
|
|
1681
|
-
z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
|
|
1682
|
-
RunAgentKnowledgeBaseConfigurationType,
|
|
1751
|
+
(x) => RunAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1752
|
+
`Failed to parse 'RunAgentMemory' from JSON`,
|
|
1683
1753
|
);
|
|
1684
|
-
|
|
1685
|
-
/** @internal */
|
|
1686
|
-
export const RunAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
1687
|
-
z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> =
|
|
1688
|
-
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* @internal
|
|
1692
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1693
|
-
*/
|
|
1694
|
-
export namespace RunAgentKnowledgeBaseConfigurationType$ {
|
|
1695
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1696
|
-
export const inboundSchema =
|
|
1697
|
-
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1698
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1699
|
-
export const outboundSchema =
|
|
1700
|
-
RunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
1701
1754
|
}
|
|
1702
1755
|
|
|
1703
1756
|
/** @internal */
|
|
1704
|
-
export const
|
|
1705
|
-
|
|
1757
|
+
export const RunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1758
|
+
RunAgentKnowledgeBases,
|
|
1706
1759
|
z.ZodTypeDef,
|
|
1707
1760
|
unknown
|
|
1708
1761
|
> = z.object({
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
export type KnowledgeBaseStaticQuery$Outbound = {
|
|
1715
|
-
type: string;
|
|
1716
|
-
query: string;
|
|
1717
|
-
};
|
|
1718
|
-
|
|
1719
|
-
/** @internal */
|
|
1720
|
-
export const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<
|
|
1721
|
-
KnowledgeBaseStaticQuery$Outbound,
|
|
1722
|
-
z.ZodTypeDef,
|
|
1723
|
-
KnowledgeBaseStaticQuery
|
|
1724
|
-
> = z.object({
|
|
1725
|
-
type: RunAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
1726
|
-
query: z.string(),
|
|
1727
|
-
});
|
|
1728
|
-
|
|
1729
|
-
/**
|
|
1730
|
-
* @internal
|
|
1731
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1732
|
-
*/
|
|
1733
|
-
export namespace KnowledgeBaseStaticQuery$ {
|
|
1734
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
1735
|
-
export const inboundSchema = KnowledgeBaseStaticQuery$inboundSchema;
|
|
1736
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
1737
|
-
export const outboundSchema = KnowledgeBaseStaticQuery$outboundSchema;
|
|
1738
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
|
|
1739
|
-
export type Outbound = KnowledgeBaseStaticQuery$Outbound;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
export function knowledgeBaseStaticQueryToJSON(
|
|
1743
|
-
knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery,
|
|
1744
|
-
): string {
|
|
1745
|
-
return JSON.stringify(
|
|
1746
|
-
KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery),
|
|
1747
|
-
);
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
export function knowledgeBaseStaticQueryFromJSON(
|
|
1751
|
-
jsonString: string,
|
|
1752
|
-
): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError> {
|
|
1753
|
-
return safeParse(
|
|
1754
|
-
jsonString,
|
|
1755
|
-
(x) => KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)),
|
|
1756
|
-
`Failed to parse 'KnowledgeBaseStaticQuery' from JSON`,
|
|
1757
|
-
);
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
/** @internal */
|
|
1761
|
-
export const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1762
|
-
typeof KnowledgeBaseConfigurationType
|
|
1763
|
-
> = z.nativeEnum(KnowledgeBaseConfigurationType);
|
|
1764
|
-
|
|
1765
|
-
/** @internal */
|
|
1766
|
-
export const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1767
|
-
typeof KnowledgeBaseConfigurationType
|
|
1768
|
-
> = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1769
|
-
|
|
1770
|
-
/**
|
|
1771
|
-
* @internal
|
|
1772
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1773
|
-
*/
|
|
1774
|
-
export namespace KnowledgeBaseConfigurationType$ {
|
|
1775
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1776
|
-
export const inboundSchema = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1777
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1778
|
-
export const outboundSchema = KnowledgeBaseConfigurationType$outboundSchema;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
/** @internal */
|
|
1782
|
-
export const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<
|
|
1783
|
-
KnowledgeBaseLastUserMessage,
|
|
1784
|
-
z.ZodTypeDef,
|
|
1785
|
-
unknown
|
|
1786
|
-
> = z.object({
|
|
1787
|
-
type: KnowledgeBaseConfigurationType$inboundSchema,
|
|
1762
|
+
knowledge_id: z.string(),
|
|
1763
|
+
}).transform((v) => {
|
|
1764
|
+
return remap$(v, {
|
|
1765
|
+
"knowledge_id": "knowledgeId",
|
|
1766
|
+
});
|
|
1788
1767
|
});
|
|
1789
1768
|
|
|
1790
1769
|
/** @internal */
|
|
1791
|
-
export type
|
|
1792
|
-
|
|
1770
|
+
export type RunAgentKnowledgeBases$Outbound = {
|
|
1771
|
+
knowledge_id: string;
|
|
1793
1772
|
};
|
|
1794
1773
|
|
|
1795
1774
|
/** @internal */
|
|
1796
|
-
export const
|
|
1797
|
-
|
|
1775
|
+
export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1776
|
+
RunAgentKnowledgeBases$Outbound,
|
|
1798
1777
|
z.ZodTypeDef,
|
|
1799
|
-
|
|
1778
|
+
RunAgentKnowledgeBases
|
|
1800
1779
|
> = z.object({
|
|
1801
|
-
|
|
1780
|
+
knowledgeId: z.string(),
|
|
1781
|
+
}).transform((v) => {
|
|
1782
|
+
return remap$(v, {
|
|
1783
|
+
knowledgeId: "knowledge_id",
|
|
1784
|
+
});
|
|
1802
1785
|
});
|
|
1803
1786
|
|
|
1804
1787
|
/**
|
|
1805
1788
|
* @internal
|
|
1806
1789
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1807
1790
|
*/
|
|
1808
|
-
export namespace
|
|
1809
|
-
/** @deprecated use `
|
|
1810
|
-
export const inboundSchema =
|
|
1811
|
-
/** @deprecated use `
|
|
1812
|
-
export const outboundSchema =
|
|
1813
|
-
/** @deprecated use `
|
|
1814
|
-
export type Outbound =
|
|
1791
|
+
export namespace RunAgentKnowledgeBases$ {
|
|
1792
|
+
/** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
|
|
1793
|
+
export const inboundSchema = RunAgentKnowledgeBases$inboundSchema;
|
|
1794
|
+
/** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
|
|
1795
|
+
export const outboundSchema = RunAgentKnowledgeBases$outboundSchema;
|
|
1796
|
+
/** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
|
|
1797
|
+
export type Outbound = RunAgentKnowledgeBases$Outbound;
|
|
1815
1798
|
}
|
|
1816
1799
|
|
|
1817
|
-
export function
|
|
1818
|
-
|
|
1800
|
+
export function runAgentKnowledgeBasesToJSON(
|
|
1801
|
+
runAgentKnowledgeBases: RunAgentKnowledgeBases,
|
|
1819
1802
|
): string {
|
|
1820
1803
|
return JSON.stringify(
|
|
1821
|
-
|
|
1822
|
-
knowledgeBaseLastUserMessage,
|
|
1823
|
-
),
|
|
1804
|
+
RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
|
|
1824
1805
|
);
|
|
1825
1806
|
}
|
|
1826
1807
|
|
|
1827
|
-
export function
|
|
1808
|
+
export function runAgentKnowledgeBasesFromJSON(
|
|
1828
1809
|
jsonString: string,
|
|
1829
|
-
): SafeParseResult<
|
|
1810
|
+
): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError> {
|
|
1830
1811
|
return safeParse(
|
|
1831
1812
|
jsonString,
|
|
1832
|
-
(x) =>
|
|
1833
|
-
`Failed to parse '
|
|
1834
|
-
);
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
/** @internal */
|
|
1838
|
-
export const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
1839
|
-
KnowledgeBaseConfiguration,
|
|
1840
|
-
z.ZodTypeDef,
|
|
1841
|
-
unknown
|
|
1842
|
-
> = z.union([
|
|
1843
|
-
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1844
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1845
|
-
]);
|
|
1846
|
-
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export type KnowledgeBaseConfiguration$Outbound =
|
|
1849
|
-
| KnowledgeBaseStaticQuery$Outbound
|
|
1850
|
-
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1851
|
-
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1854
|
-
KnowledgeBaseConfiguration$Outbound,
|
|
1855
|
-
z.ZodTypeDef,
|
|
1856
|
-
KnowledgeBaseConfiguration
|
|
1857
|
-
> = z.union([
|
|
1858
|
-
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1859
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1860
|
-
]);
|
|
1861
|
-
|
|
1862
|
-
/**
|
|
1863
|
-
* @internal
|
|
1864
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1865
|
-
*/
|
|
1866
|
-
export namespace KnowledgeBaseConfiguration$ {
|
|
1867
|
-
/** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1868
|
-
export const inboundSchema = KnowledgeBaseConfiguration$inboundSchema;
|
|
1869
|
-
/** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1870
|
-
export const outboundSchema = KnowledgeBaseConfiguration$outboundSchema;
|
|
1871
|
-
/** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
|
|
1872
|
-
export type Outbound = KnowledgeBaseConfiguration$Outbound;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
export function knowledgeBaseConfigurationToJSON(
|
|
1876
|
-
knowledgeBaseConfiguration: KnowledgeBaseConfiguration,
|
|
1877
|
-
): string {
|
|
1878
|
-
return JSON.stringify(
|
|
1879
|
-
KnowledgeBaseConfiguration$outboundSchema.parse(knowledgeBaseConfiguration),
|
|
1880
|
-
);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
export function knowledgeBaseConfigurationFromJSON(
|
|
1884
|
-
jsonString: string,
|
|
1885
|
-
): SafeParseResult<KnowledgeBaseConfiguration, SDKValidationError> {
|
|
1886
|
-
return safeParse(
|
|
1887
|
-
jsonString,
|
|
1888
|
-
(x) => KnowledgeBaseConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1889
|
-
`Failed to parse 'KnowledgeBaseConfiguration' from JSON`,
|
|
1890
|
-
);
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
/** @internal */
|
|
1894
|
-
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
1895
|
-
KnowledgeBases,
|
|
1896
|
-
z.ZodTypeDef,
|
|
1897
|
-
unknown
|
|
1898
|
-
> = z.object({
|
|
1899
|
-
configuration: z.union([
|
|
1900
|
-
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1901
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1902
|
-
]),
|
|
1903
|
-
});
|
|
1904
|
-
|
|
1905
|
-
/** @internal */
|
|
1906
|
-
export type KnowledgeBases$Outbound = {
|
|
1907
|
-
configuration:
|
|
1908
|
-
| KnowledgeBaseStaticQuery$Outbound
|
|
1909
|
-
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
/** @internal */
|
|
1913
|
-
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
1914
|
-
KnowledgeBases$Outbound,
|
|
1915
|
-
z.ZodTypeDef,
|
|
1916
|
-
KnowledgeBases
|
|
1917
|
-
> = z.object({
|
|
1918
|
-
configuration: z.union([
|
|
1919
|
-
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1920
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1921
|
-
]),
|
|
1922
|
-
});
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* @internal
|
|
1926
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1927
|
-
*/
|
|
1928
|
-
export namespace KnowledgeBases$ {
|
|
1929
|
-
/** @deprecated use `KnowledgeBases$inboundSchema` instead. */
|
|
1930
|
-
export const inboundSchema = KnowledgeBases$inboundSchema;
|
|
1931
|
-
/** @deprecated use `KnowledgeBases$outboundSchema` instead. */
|
|
1932
|
-
export const outboundSchema = KnowledgeBases$outboundSchema;
|
|
1933
|
-
/** @deprecated use `KnowledgeBases$Outbound` instead. */
|
|
1934
|
-
export type Outbound = KnowledgeBases$Outbound;
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
1938
|
-
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
export function knowledgeBasesFromJSON(
|
|
1942
|
-
jsonString: string,
|
|
1943
|
-
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
1944
|
-
return safeParse(
|
|
1945
|
-
jsonString,
|
|
1946
|
-
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1947
|
-
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
1813
|
+
(x) => RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1814
|
+
`Failed to parse 'RunAgentKnowledgeBases' from JSON`,
|
|
1948
1815
|
);
|
|
1949
1816
|
}
|
|
1950
1817
|
|
|
@@ -2002,36 +1869,36 @@ export function teamOfAgentsFromJSON(
|
|
|
2002
1869
|
}
|
|
2003
1870
|
|
|
2004
1871
|
/** @internal */
|
|
2005
|
-
export const
|
|
1872
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
2006
1873
|
z.ZodNativeEnum<
|
|
2007
|
-
typeof
|
|
1874
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2008
1875
|
> = z.nativeEnum(
|
|
2009
|
-
|
|
1876
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
|
|
2010
1877
|
);
|
|
2011
1878
|
|
|
2012
1879
|
/** @internal */
|
|
2013
|
-
export const
|
|
1880
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
2014
1881
|
z.ZodNativeEnum<
|
|
2015
|
-
typeof
|
|
1882
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2016
1883
|
> =
|
|
2017
|
-
|
|
1884
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
2018
1885
|
|
|
2019
1886
|
/**
|
|
2020
1887
|
* @internal
|
|
2021
1888
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2022
1889
|
*/
|
|
2023
|
-
export namespace
|
|
2024
|
-
/** @deprecated use `
|
|
1890
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
|
|
1891
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
2025
1892
|
export const inboundSchema =
|
|
2026
|
-
|
|
2027
|
-
/** @deprecated use `
|
|
1893
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1894
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
2028
1895
|
export const outboundSchema =
|
|
2029
|
-
|
|
1896
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
2030
1897
|
}
|
|
2031
1898
|
|
|
2032
1899
|
/** @internal */
|
|
2033
|
-
export const
|
|
2034
|
-
|
|
1900
|
+
export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
1901
|
+
AgentToolInputRunFunction,
|
|
2035
1902
|
z.ZodTypeDef,
|
|
2036
1903
|
unknown
|
|
2037
1904
|
> = z.object({
|
|
@@ -2042,7 +1909,7 @@ export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
|
|
|
2042
1909
|
});
|
|
2043
1910
|
|
|
2044
1911
|
/** @internal */
|
|
2045
|
-
export type
|
|
1912
|
+
export type AgentToolInputRunFunction$Outbound = {
|
|
2046
1913
|
name: string;
|
|
2047
1914
|
description?: string | undefined;
|
|
2048
1915
|
strict?: boolean | undefined;
|
|
@@ -2050,10 +1917,10 @@ export type RunAgentRequestToolFunction$Outbound = {
|
|
|
2050
1917
|
};
|
|
2051
1918
|
|
|
2052
1919
|
/** @internal */
|
|
2053
|
-
export const
|
|
2054
|
-
|
|
1920
|
+
export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
1921
|
+
AgentToolInputRunFunction$Outbound,
|
|
2055
1922
|
z.ZodTypeDef,
|
|
2056
|
-
|
|
1923
|
+
AgentToolInputRunFunction
|
|
2057
1924
|
> = z.object({
|
|
2058
1925
|
name: z.string(),
|
|
2059
1926
|
description: z.string().optional(),
|
|
@@ -2065,49 +1932,47 @@ export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
|
|
|
2065
1932
|
* @internal
|
|
2066
1933
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2067
1934
|
*/
|
|
2068
|
-
export namespace
|
|
2069
|
-
/** @deprecated use `
|
|
2070
|
-
export const inboundSchema =
|
|
2071
|
-
/** @deprecated use `
|
|
2072
|
-
export const outboundSchema =
|
|
2073
|
-
/** @deprecated use `
|
|
2074
|
-
export type Outbound =
|
|
1935
|
+
export namespace AgentToolInputRunFunction$ {
|
|
1936
|
+
/** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
|
|
1937
|
+
export const inboundSchema = AgentToolInputRunFunction$inboundSchema;
|
|
1938
|
+
/** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
|
|
1939
|
+
export const outboundSchema = AgentToolInputRunFunction$outboundSchema;
|
|
1940
|
+
/** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
|
|
1941
|
+
export type Outbound = AgentToolInputRunFunction$Outbound;
|
|
2075
1942
|
}
|
|
2076
1943
|
|
|
2077
|
-
export function
|
|
2078
|
-
|
|
1944
|
+
export function agentToolInputRunFunctionToJSON(
|
|
1945
|
+
agentToolInputRunFunction: AgentToolInputRunFunction,
|
|
2079
1946
|
): string {
|
|
2080
1947
|
return JSON.stringify(
|
|
2081
|
-
|
|
2082
|
-
runAgentRequestToolFunction,
|
|
2083
|
-
),
|
|
1948
|
+
AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
|
|
2084
1949
|
);
|
|
2085
1950
|
}
|
|
2086
1951
|
|
|
2087
|
-
export function
|
|
1952
|
+
export function agentToolInputRunFunctionFromJSON(
|
|
2088
1953
|
jsonString: string,
|
|
2089
|
-
): SafeParseResult<
|
|
1954
|
+
): SafeParseResult<AgentToolInputRunFunction, SDKValidationError> {
|
|
2090
1955
|
return safeParse(
|
|
2091
1956
|
jsonString,
|
|
2092
|
-
(x) =>
|
|
2093
|
-
`Failed to parse '
|
|
1957
|
+
(x) => AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1958
|
+
`Failed to parse 'AgentToolInputRunFunction' from JSON`,
|
|
2094
1959
|
);
|
|
2095
1960
|
}
|
|
2096
1961
|
|
|
2097
1962
|
/** @internal */
|
|
2098
|
-
export const
|
|
2099
|
-
|
|
1963
|
+
export const FunctionToolRun$inboundSchema: z.ZodType<
|
|
1964
|
+
FunctionToolRun,
|
|
2100
1965
|
z.ZodTypeDef,
|
|
2101
1966
|
unknown
|
|
2102
1967
|
> = z.object({
|
|
2103
1968
|
type:
|
|
2104
|
-
|
|
2105
|
-
_id: z.string().optional(),
|
|
1969
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
2106
1970
|
key: z.string(),
|
|
1971
|
+
_id: z.string().optional(),
|
|
2107
1972
|
display_name: z.string().optional(),
|
|
2108
1973
|
description: z.string().optional(),
|
|
1974
|
+
function: z.lazy(() => AgentToolInputRunFunction$inboundSchema),
|
|
2109
1975
|
requires_approval: z.boolean().default(false),
|
|
2110
|
-
function: z.lazy(() => RunAgentRequestToolFunction$inboundSchema),
|
|
2111
1976
|
}).transform((v) => {
|
|
2112
1977
|
return remap$(v, {
|
|
2113
1978
|
"_id": "id",
|
|
@@ -2117,30 +1982,30 @@ export const FunctionTool$inboundSchema: z.ZodType<
|
|
|
2117
1982
|
});
|
|
2118
1983
|
|
|
2119
1984
|
/** @internal */
|
|
2120
|
-
export type
|
|
1985
|
+
export type FunctionToolRun$Outbound = {
|
|
2121
1986
|
type: string;
|
|
2122
|
-
_id?: string | undefined;
|
|
2123
1987
|
key: string;
|
|
1988
|
+
_id?: string | undefined;
|
|
2124
1989
|
display_name?: string | undefined;
|
|
2125
1990
|
description?: string | undefined;
|
|
1991
|
+
function: AgentToolInputRunFunction$Outbound;
|
|
2126
1992
|
requires_approval: boolean;
|
|
2127
|
-
function: RunAgentRequestToolFunction$Outbound;
|
|
2128
1993
|
};
|
|
2129
1994
|
|
|
2130
1995
|
/** @internal */
|
|
2131
|
-
export const
|
|
2132
|
-
|
|
1996
|
+
export const FunctionToolRun$outboundSchema: z.ZodType<
|
|
1997
|
+
FunctionToolRun$Outbound,
|
|
2133
1998
|
z.ZodTypeDef,
|
|
2134
|
-
|
|
1999
|
+
FunctionToolRun
|
|
2135
2000
|
> = z.object({
|
|
2136
2001
|
type:
|
|
2137
|
-
|
|
2138
|
-
id: z.string().optional(),
|
|
2002
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
2139
2003
|
key: z.string(),
|
|
2004
|
+
id: z.string().optional(),
|
|
2140
2005
|
displayName: z.string().optional(),
|
|
2141
2006
|
description: z.string().optional(),
|
|
2007
|
+
function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
|
|
2142
2008
|
requiresApproval: z.boolean().default(false),
|
|
2143
|
-
function: z.lazy(() => RunAgentRequestToolFunction$outboundSchema),
|
|
2144
2009
|
}).transform((v) => {
|
|
2145
2010
|
return remap$(v, {
|
|
2146
2011
|
id: "_id",
|
|
@@ -2153,55 +2018,57 @@ export const FunctionTool$outboundSchema: z.ZodType<
|
|
|
2153
2018
|
* @internal
|
|
2154
2019
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2155
2020
|
*/
|
|
2156
|
-
export namespace
|
|
2157
|
-
/** @deprecated use `
|
|
2158
|
-
export const inboundSchema =
|
|
2159
|
-
/** @deprecated use `
|
|
2160
|
-
export const outboundSchema =
|
|
2161
|
-
/** @deprecated use `
|
|
2162
|
-
export type Outbound =
|
|
2021
|
+
export namespace FunctionToolRun$ {
|
|
2022
|
+
/** @deprecated use `FunctionToolRun$inboundSchema` instead. */
|
|
2023
|
+
export const inboundSchema = FunctionToolRun$inboundSchema;
|
|
2024
|
+
/** @deprecated use `FunctionToolRun$outboundSchema` instead. */
|
|
2025
|
+
export const outboundSchema = FunctionToolRun$outboundSchema;
|
|
2026
|
+
/** @deprecated use `FunctionToolRun$Outbound` instead. */
|
|
2027
|
+
export type Outbound = FunctionToolRun$Outbound;
|
|
2163
2028
|
}
|
|
2164
2029
|
|
|
2165
|
-
export function
|
|
2166
|
-
|
|
2030
|
+
export function functionToolRunToJSON(
|
|
2031
|
+
functionToolRun: FunctionToolRun,
|
|
2032
|
+
): string {
|
|
2033
|
+
return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
|
|
2167
2034
|
}
|
|
2168
2035
|
|
|
2169
|
-
export function
|
|
2036
|
+
export function functionToolRunFromJSON(
|
|
2170
2037
|
jsonString: string,
|
|
2171
|
-
): SafeParseResult<
|
|
2038
|
+
): SafeParseResult<FunctionToolRun, SDKValidationError> {
|
|
2172
2039
|
return safeParse(
|
|
2173
2040
|
jsonString,
|
|
2174
|
-
(x) =>
|
|
2175
|
-
`Failed to parse '
|
|
2041
|
+
(x) => FunctionToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2042
|
+
`Failed to parse 'FunctionToolRun' from JSON`,
|
|
2176
2043
|
);
|
|
2177
2044
|
}
|
|
2178
2045
|
|
|
2179
2046
|
/** @internal */
|
|
2180
|
-
export const
|
|
2047
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
2181
2048
|
z.ZodNativeEnum<
|
|
2182
|
-
typeof
|
|
2049
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2183
2050
|
> = z.nativeEnum(
|
|
2184
|
-
|
|
2051
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
|
|
2185
2052
|
);
|
|
2186
2053
|
|
|
2187
2054
|
/** @internal */
|
|
2188
|
-
export const
|
|
2055
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2189
2056
|
z.ZodNativeEnum<
|
|
2190
|
-
typeof
|
|
2057
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2191
2058
|
> =
|
|
2192
|
-
|
|
2059
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2193
2060
|
|
|
2194
2061
|
/**
|
|
2195
2062
|
* @internal
|
|
2196
2063
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2197
2064
|
*/
|
|
2198
|
-
export namespace
|
|
2199
|
-
/** @deprecated use `
|
|
2065
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2066
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2200
2067
|
export const inboundSchema =
|
|
2201
|
-
|
|
2202
|
-
/** @deprecated use `
|
|
2068
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2069
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2203
2070
|
export const outboundSchema =
|
|
2204
|
-
|
|
2071
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
2205
2072
|
}
|
|
2206
2073
|
|
|
2207
2074
|
/** @internal */
|
|
@@ -2280,58 +2147,58 @@ export function codeToolFromJSON(
|
|
|
2280
2147
|
}
|
|
2281
2148
|
|
|
2282
2149
|
/** @internal */
|
|
2283
|
-
export const
|
|
2284
|
-
|
|
2150
|
+
export const CodeToolRun$inboundSchema: z.ZodType<
|
|
2151
|
+
CodeToolRun,
|
|
2285
2152
|
z.ZodTypeDef,
|
|
2286
2153
|
unknown
|
|
2287
2154
|
> = z.object({
|
|
2155
|
+
type:
|
|
2156
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2288
2157
|
key: z.string(),
|
|
2289
|
-
|
|
2158
|
+
_id: z.string().optional(),
|
|
2159
|
+
display_name: z.string().optional(),
|
|
2290
2160
|
description: z.string(),
|
|
2291
|
-
type:
|
|
2292
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2293
2161
|
code_tool: z.lazy(() => CodeTool$inboundSchema),
|
|
2294
|
-
_id: z.string().optional(),
|
|
2295
2162
|
requires_approval: z.boolean().default(false),
|
|
2296
2163
|
}).transform((v) => {
|
|
2297
2164
|
return remap$(v, {
|
|
2165
|
+
"_id": "id",
|
|
2298
2166
|
"display_name": "displayName",
|
|
2299
2167
|
"code_tool": "codeTool",
|
|
2300
|
-
"_id": "id",
|
|
2301
2168
|
"requires_approval": "requiresApproval",
|
|
2302
2169
|
});
|
|
2303
2170
|
});
|
|
2304
2171
|
|
|
2305
2172
|
/** @internal */
|
|
2306
|
-
export type
|
|
2173
|
+
export type CodeToolRun$Outbound = {
|
|
2174
|
+
type: string;
|
|
2307
2175
|
key: string;
|
|
2308
|
-
|
|
2176
|
+
_id?: string | undefined;
|
|
2177
|
+
display_name?: string | undefined;
|
|
2309
2178
|
description: string;
|
|
2310
|
-
type: string;
|
|
2311
2179
|
code_tool: CodeTool$Outbound;
|
|
2312
|
-
_id?: string | undefined;
|
|
2313
2180
|
requires_approval: boolean;
|
|
2314
2181
|
};
|
|
2315
2182
|
|
|
2316
2183
|
/** @internal */
|
|
2317
|
-
export const
|
|
2318
|
-
|
|
2184
|
+
export const CodeToolRun$outboundSchema: z.ZodType<
|
|
2185
|
+
CodeToolRun$Outbound,
|
|
2319
2186
|
z.ZodTypeDef,
|
|
2320
|
-
|
|
2187
|
+
CodeToolRun
|
|
2321
2188
|
> = z.object({
|
|
2189
|
+
type:
|
|
2190
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2322
2191
|
key: z.string(),
|
|
2323
|
-
|
|
2192
|
+
id: z.string().optional(),
|
|
2193
|
+
displayName: z.string().optional(),
|
|
2324
2194
|
description: z.string(),
|
|
2325
|
-
type:
|
|
2326
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2327
2195
|
codeTool: z.lazy(() => CodeTool$outboundSchema),
|
|
2328
|
-
id: z.string().optional(),
|
|
2329
2196
|
requiresApproval: z.boolean().default(false),
|
|
2330
2197
|
}).transform((v) => {
|
|
2331
2198
|
return remap$(v, {
|
|
2199
|
+
id: "_id",
|
|
2332
2200
|
displayName: "display_name",
|
|
2333
2201
|
codeTool: "code_tool",
|
|
2334
|
-
id: "_id",
|
|
2335
2202
|
requiresApproval: "requires_approval",
|
|
2336
2203
|
});
|
|
2337
2204
|
});
|
|
@@ -2340,59 +2207,55 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2340
2207
|
* @internal
|
|
2341
2208
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2342
2209
|
*/
|
|
2343
|
-
export namespace
|
|
2344
|
-
/** @deprecated use `
|
|
2345
|
-
export const inboundSchema =
|
|
2346
|
-
/** @deprecated use `
|
|
2347
|
-
export const outboundSchema =
|
|
2348
|
-
/** @deprecated use `
|
|
2349
|
-
export type Outbound =
|
|
2210
|
+
export namespace CodeToolRun$ {
|
|
2211
|
+
/** @deprecated use `CodeToolRun$inboundSchema` instead. */
|
|
2212
|
+
export const inboundSchema = CodeToolRun$inboundSchema;
|
|
2213
|
+
/** @deprecated use `CodeToolRun$outboundSchema` instead. */
|
|
2214
|
+
export const outboundSchema = CodeToolRun$outboundSchema;
|
|
2215
|
+
/** @deprecated use `CodeToolRun$Outbound` instead. */
|
|
2216
|
+
export type Outbound = CodeToolRun$Outbound;
|
|
2350
2217
|
}
|
|
2351
2218
|
|
|
2352
|
-
export function
|
|
2353
|
-
|
|
2354
|
-
): string {
|
|
2355
|
-
return JSON.stringify(
|
|
2356
|
-
CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
|
|
2357
|
-
);
|
|
2219
|
+
export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
|
|
2220
|
+
return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
|
|
2358
2221
|
}
|
|
2359
2222
|
|
|
2360
|
-
export function
|
|
2223
|
+
export function codeToolRunFromJSON(
|
|
2361
2224
|
jsonString: string,
|
|
2362
|
-
): SafeParseResult<
|
|
2225
|
+
): SafeParseResult<CodeToolRun, SDKValidationError> {
|
|
2363
2226
|
return safeParse(
|
|
2364
2227
|
jsonString,
|
|
2365
|
-
(x) =>
|
|
2366
|
-
`Failed to parse '
|
|
2228
|
+
(x) => CodeToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2229
|
+
`Failed to parse 'CodeToolRun' from JSON`,
|
|
2367
2230
|
);
|
|
2368
2231
|
}
|
|
2369
2232
|
|
|
2370
2233
|
/** @internal */
|
|
2371
|
-
export const
|
|
2234
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2372
2235
|
z.ZodNativeEnum<
|
|
2373
|
-
typeof
|
|
2236
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2374
2237
|
> = z.nativeEnum(
|
|
2375
|
-
|
|
2238
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
|
|
2376
2239
|
);
|
|
2377
2240
|
|
|
2378
2241
|
/** @internal */
|
|
2379
|
-
export const
|
|
2242
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2380
2243
|
z.ZodNativeEnum<
|
|
2381
|
-
typeof
|
|
2244
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2382
2245
|
> =
|
|
2383
|
-
|
|
2246
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2384
2247
|
|
|
2385
2248
|
/**
|
|
2386
2249
|
* @internal
|
|
2387
2250
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2388
2251
|
*/
|
|
2389
|
-
export namespace
|
|
2390
|
-
/** @deprecated use `
|
|
2252
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2253
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2391
2254
|
export const inboundSchema =
|
|
2392
|
-
|
|
2393
|
-
/** @deprecated use `
|
|
2255
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2256
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2394
2257
|
export const outboundSchema =
|
|
2395
|
-
|
|
2258
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2396
2259
|
}
|
|
2397
2260
|
|
|
2398
2261
|
/** @internal */
|
|
@@ -2474,31 +2337,31 @@ export function blueprintFromJSON(
|
|
|
2474
2337
|
}
|
|
2475
2338
|
|
|
2476
2339
|
/** @internal */
|
|
2477
|
-
export const
|
|
2340
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
|
|
2478
2341
|
z.ZodNativeEnum<
|
|
2479
|
-
typeof
|
|
2342
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2480
2343
|
> = z.nativeEnum(
|
|
2481
|
-
|
|
2344
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
|
|
2482
2345
|
);
|
|
2483
2346
|
|
|
2484
2347
|
/** @internal */
|
|
2485
|
-
export const
|
|
2348
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
|
|
2486
2349
|
z.ZodNativeEnum<
|
|
2487
|
-
typeof
|
|
2350
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2488
2351
|
> =
|
|
2489
|
-
|
|
2352
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2490
2353
|
|
|
2491
2354
|
/**
|
|
2492
2355
|
* @internal
|
|
2493
2356
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2494
2357
|
*/
|
|
2495
|
-
export namespace
|
|
2496
|
-
/** @deprecated use `
|
|
2358
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
|
|
2359
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
2497
2360
|
export const inboundSchema =
|
|
2498
|
-
|
|
2499
|
-
/** @deprecated use `
|
|
2361
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2362
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
2500
2363
|
export const outboundSchema =
|
|
2501
|
-
|
|
2364
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
2502
2365
|
}
|
|
2503
2366
|
|
|
2504
2367
|
/** @internal */
|
|
@@ -2552,7 +2415,7 @@ export const Arguments$inboundSchema: z.ZodType<
|
|
|
2552
2415
|
unknown
|
|
2553
2416
|
> = z.object({
|
|
2554
2417
|
type:
|
|
2555
|
-
|
|
2418
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
2556
2419
|
description: z.string(),
|
|
2557
2420
|
send_to_model: z.boolean().default(true),
|
|
2558
2421
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2578,7 +2441,7 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
2578
2441
|
Arguments
|
|
2579
2442
|
> = z.object({
|
|
2580
2443
|
type:
|
|
2581
|
-
|
|
2444
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
2582
2445
|
description: z.string(),
|
|
2583
2446
|
sendToModel: z.boolean().default(true),
|
|
2584
2447
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2664,17 +2527,17 @@ export function httpFromJSON(
|
|
|
2664
2527
|
}
|
|
2665
2528
|
|
|
2666
2529
|
/** @internal */
|
|
2667
|
-
export const
|
|
2668
|
-
|
|
2530
|
+
export const HTTPToolRun$inboundSchema: z.ZodType<
|
|
2531
|
+
HTTPToolRun,
|
|
2669
2532
|
z.ZodTypeDef,
|
|
2670
2533
|
unknown
|
|
2671
2534
|
> = z.object({
|
|
2672
|
-
|
|
2535
|
+
type:
|
|
2536
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2673
2537
|
key: z.string(),
|
|
2674
|
-
|
|
2538
|
+
_id: z.string().optional(),
|
|
2539
|
+
display_name: z.string().optional(),
|
|
2675
2540
|
description: z.string(),
|
|
2676
|
-
type:
|
|
2677
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2678
2541
|
http: z.lazy(() => Http$inboundSchema),
|
|
2679
2542
|
requires_approval: z.boolean().default(false),
|
|
2680
2543
|
}).transform((v) => {
|
|
@@ -2686,28 +2549,28 @@ export const HTTPTool$inboundSchema: z.ZodType<
|
|
|
2686
2549
|
});
|
|
2687
2550
|
|
|
2688
2551
|
/** @internal */
|
|
2689
|
-
export type
|
|
2690
|
-
|
|
2552
|
+
export type HTTPToolRun$Outbound = {
|
|
2553
|
+
type: string;
|
|
2691
2554
|
key: string;
|
|
2692
|
-
|
|
2555
|
+
_id?: string | undefined;
|
|
2556
|
+
display_name?: string | undefined;
|
|
2693
2557
|
description: string;
|
|
2694
|
-
type: string;
|
|
2695
2558
|
http: Http$Outbound;
|
|
2696
2559
|
requires_approval: boolean;
|
|
2697
2560
|
};
|
|
2698
2561
|
|
|
2699
2562
|
/** @internal */
|
|
2700
|
-
export const
|
|
2701
|
-
|
|
2563
|
+
export const HTTPToolRun$outboundSchema: z.ZodType<
|
|
2564
|
+
HTTPToolRun$Outbound,
|
|
2702
2565
|
z.ZodTypeDef,
|
|
2703
|
-
|
|
2566
|
+
HTTPToolRun
|
|
2704
2567
|
> = z.object({
|
|
2705
|
-
|
|
2568
|
+
type:
|
|
2569
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2706
2570
|
key: z.string(),
|
|
2707
|
-
|
|
2571
|
+
id: z.string().optional(),
|
|
2572
|
+
displayName: z.string().optional(),
|
|
2708
2573
|
description: z.string(),
|
|
2709
|
-
type:
|
|
2710
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2711
2574
|
http: z.lazy(() => Http$outboundSchema),
|
|
2712
2575
|
requiresApproval: z.boolean().default(false),
|
|
2713
2576
|
}).transform((v) => {
|
|
@@ -2722,65 +2585,65 @@ export const HTTPTool$outboundSchema: z.ZodType<
|
|
|
2722
2585
|
* @internal
|
|
2723
2586
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2724
2587
|
*/
|
|
2725
|
-
export namespace
|
|
2726
|
-
/** @deprecated use `
|
|
2727
|
-
export const inboundSchema =
|
|
2728
|
-
/** @deprecated use `
|
|
2729
|
-
export const outboundSchema =
|
|
2730
|
-
/** @deprecated use `
|
|
2731
|
-
export type Outbound =
|
|
2588
|
+
export namespace HTTPToolRun$ {
|
|
2589
|
+
/** @deprecated use `HTTPToolRun$inboundSchema` instead. */
|
|
2590
|
+
export const inboundSchema = HTTPToolRun$inboundSchema;
|
|
2591
|
+
/** @deprecated use `HTTPToolRun$outboundSchema` instead. */
|
|
2592
|
+
export const outboundSchema = HTTPToolRun$outboundSchema;
|
|
2593
|
+
/** @deprecated use `HTTPToolRun$Outbound` instead. */
|
|
2594
|
+
export type Outbound = HTTPToolRun$Outbound;
|
|
2732
2595
|
}
|
|
2733
2596
|
|
|
2734
|
-
export function
|
|
2735
|
-
return JSON.stringify(
|
|
2597
|
+
export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
|
|
2598
|
+
return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
|
|
2736
2599
|
}
|
|
2737
2600
|
|
|
2738
|
-
export function
|
|
2601
|
+
export function httpToolRunFromJSON(
|
|
2739
2602
|
jsonString: string,
|
|
2740
|
-
): SafeParseResult<
|
|
2603
|
+
): SafeParseResult<HTTPToolRun, SDKValidationError> {
|
|
2741
2604
|
return safeParse(
|
|
2742
2605
|
jsonString,
|
|
2743
|
-
(x) =>
|
|
2744
|
-
`Failed to parse '
|
|
2606
|
+
(x) => HTTPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2607
|
+
`Failed to parse 'HTTPToolRun' from JSON`,
|
|
2745
2608
|
);
|
|
2746
2609
|
}
|
|
2747
2610
|
|
|
2748
2611
|
/** @internal */
|
|
2749
|
-
export const
|
|
2612
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2750
2613
|
z.ZodNativeEnum<
|
|
2751
|
-
typeof
|
|
2614
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2752
2615
|
> = z.nativeEnum(
|
|
2753
|
-
|
|
2616
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
|
|
2754
2617
|
);
|
|
2755
2618
|
|
|
2756
2619
|
/** @internal */
|
|
2757
|
-
export const
|
|
2620
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2758
2621
|
z.ZodNativeEnum<
|
|
2759
|
-
typeof
|
|
2622
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2760
2623
|
> =
|
|
2761
|
-
|
|
2624
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2762
2625
|
|
|
2763
2626
|
/**
|
|
2764
2627
|
* @internal
|
|
2765
2628
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2766
2629
|
*/
|
|
2767
|
-
export namespace
|
|
2768
|
-
/** @deprecated use `
|
|
2630
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2631
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2769
2632
|
export const inboundSchema =
|
|
2770
|
-
|
|
2771
|
-
/** @deprecated use `
|
|
2633
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2634
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2772
2635
|
export const outboundSchema =
|
|
2773
|
-
|
|
2636
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2774
2637
|
}
|
|
2775
2638
|
|
|
2776
2639
|
/** @internal */
|
|
2777
|
-
export const
|
|
2778
|
-
|
|
2640
|
+
export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
|
|
2641
|
+
AgentToolInputRunCurrentDateTool,
|
|
2779
2642
|
z.ZodTypeDef,
|
|
2780
2643
|
unknown
|
|
2781
2644
|
> = z.object({
|
|
2782
2645
|
type:
|
|
2783
|
-
|
|
2646
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2784
2647
|
requires_approval: z.boolean().default(false),
|
|
2785
2648
|
}).transform((v) => {
|
|
2786
2649
|
return remap$(v, {
|
|
@@ -2789,19 +2652,19 @@ export const CurrentDateTool$inboundSchema: z.ZodType<
|
|
|
2789
2652
|
});
|
|
2790
2653
|
|
|
2791
2654
|
/** @internal */
|
|
2792
|
-
export type
|
|
2655
|
+
export type AgentToolInputRunCurrentDateTool$Outbound = {
|
|
2793
2656
|
type: string;
|
|
2794
2657
|
requires_approval: boolean;
|
|
2795
2658
|
};
|
|
2796
2659
|
|
|
2797
2660
|
/** @internal */
|
|
2798
|
-
export const
|
|
2799
|
-
|
|
2661
|
+
export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
|
|
2662
|
+
AgentToolInputRunCurrentDateTool$Outbound,
|
|
2800
2663
|
z.ZodTypeDef,
|
|
2801
|
-
|
|
2664
|
+
AgentToolInputRunCurrentDateTool
|
|
2802
2665
|
> = z.object({
|
|
2803
2666
|
type:
|
|
2804
|
-
|
|
2667
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2805
2668
|
requiresApproval: z.boolean().default(false),
|
|
2806
2669
|
}).transform((v) => {
|
|
2807
2670
|
return remap$(v, {
|
|
@@ -2813,67 +2676,71 @@ export const CurrentDateTool$outboundSchema: z.ZodType<
|
|
|
2813
2676
|
* @internal
|
|
2814
2677
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2815
2678
|
*/
|
|
2816
|
-
export namespace
|
|
2817
|
-
/** @deprecated use `
|
|
2818
|
-
export const inboundSchema =
|
|
2819
|
-
/** @deprecated use `
|
|
2820
|
-
export const outboundSchema =
|
|
2821
|
-
/** @deprecated use `
|
|
2822
|
-
export type Outbound =
|
|
2679
|
+
export namespace AgentToolInputRunCurrentDateTool$ {
|
|
2680
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
2681
|
+
export const inboundSchema = AgentToolInputRunCurrentDateTool$inboundSchema;
|
|
2682
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
2683
|
+
export const outboundSchema = AgentToolInputRunCurrentDateTool$outboundSchema;
|
|
2684
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
|
|
2685
|
+
export type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
|
|
2823
2686
|
}
|
|
2824
2687
|
|
|
2825
|
-
export function
|
|
2826
|
-
|
|
2688
|
+
export function agentToolInputRunCurrentDateToolToJSON(
|
|
2689
|
+
agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
|
|
2827
2690
|
): string {
|
|
2828
|
-
return JSON.stringify(
|
|
2691
|
+
return JSON.stringify(
|
|
2692
|
+
AgentToolInputRunCurrentDateTool$outboundSchema.parse(
|
|
2693
|
+
agentToolInputRunCurrentDateTool,
|
|
2694
|
+
),
|
|
2695
|
+
);
|
|
2829
2696
|
}
|
|
2830
2697
|
|
|
2831
|
-
export function
|
|
2698
|
+
export function agentToolInputRunCurrentDateToolFromJSON(
|
|
2832
2699
|
jsonString: string,
|
|
2833
|
-
): SafeParseResult<
|
|
2700
|
+
): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError> {
|
|
2834
2701
|
return safeParse(
|
|
2835
2702
|
jsonString,
|
|
2836
|
-
(x) =>
|
|
2837
|
-
`Failed to parse '
|
|
2703
|
+
(x) => AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
|
|
2704
|
+
`Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`,
|
|
2838
2705
|
);
|
|
2839
2706
|
}
|
|
2840
2707
|
|
|
2841
2708
|
/** @internal */
|
|
2842
|
-
export const
|
|
2709
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
2843
2710
|
z.ZodNativeEnum<
|
|
2844
|
-
typeof
|
|
2711
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2845
2712
|
> = z.nativeEnum(
|
|
2846
|
-
|
|
2713
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
|
|
2847
2714
|
);
|
|
2848
2715
|
|
|
2849
2716
|
/** @internal */
|
|
2850
|
-
export const
|
|
2717
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
2851
2718
|
z.ZodNativeEnum<
|
|
2852
|
-
typeof
|
|
2719
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2853
2720
|
> =
|
|
2854
|
-
|
|
2721
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2855
2722
|
|
|
2856
2723
|
/**
|
|
2857
2724
|
* @internal
|
|
2858
2725
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2859
2726
|
*/
|
|
2860
|
-
export namespace
|
|
2861
|
-
/** @deprecated use `
|
|
2727
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2728
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
2862
2729
|
export const inboundSchema =
|
|
2863
|
-
|
|
2864
|
-
/** @deprecated use `
|
|
2730
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2731
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
2865
2732
|
export const outboundSchema =
|
|
2866
|
-
|
|
2733
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
2867
2734
|
}
|
|
2868
2735
|
|
|
2869
2736
|
/** @internal */
|
|
2870
|
-
export const
|
|
2871
|
-
|
|
2737
|
+
export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
2738
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2872
2739
|
z.ZodTypeDef,
|
|
2873
2740
|
unknown
|
|
2874
2741
|
> = z.object({
|
|
2875
2742
|
type:
|
|
2876
|
-
|
|
2743
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2877
2744
|
requires_approval: z.boolean().default(false),
|
|
2878
2745
|
}).transform((v) => {
|
|
2879
2746
|
return remap$(v, {
|
|
@@ -2882,19 +2749,19 @@ export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
|
2882
2749
|
});
|
|
2883
2750
|
|
|
2884
2751
|
/** @internal */
|
|
2885
|
-
export type
|
|
2752
|
+
export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
|
|
2886
2753
|
type: string;
|
|
2887
2754
|
requires_approval: boolean;
|
|
2888
2755
|
};
|
|
2889
2756
|
|
|
2890
2757
|
/** @internal */
|
|
2891
|
-
export const
|
|
2892
|
-
|
|
2758
|
+
export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
2759
|
+
AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
|
|
2893
2760
|
z.ZodTypeDef,
|
|
2894
|
-
|
|
2761
|
+
AgentToolInputRunQueryKnowledgeBaseTool
|
|
2895
2762
|
> = z.object({
|
|
2896
2763
|
type:
|
|
2897
|
-
|
|
2764
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
2898
2765
|
requiresApproval: z.boolean().default(false),
|
|
2899
2766
|
}).transform((v) => {
|
|
2900
2767
|
return remap$(v, {
|
|
@@ -2906,164 +2773,188 @@ export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
|
2906
2773
|
* @internal
|
|
2907
2774
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2908
2775
|
*/
|
|
2909
|
-
export namespace
|
|
2910
|
-
/** @deprecated use `
|
|
2911
|
-
export const inboundSchema =
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2776
|
+
export namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
|
|
2777
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
2778
|
+
export const inboundSchema =
|
|
2779
|
+
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
2780
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
2781
|
+
export const outboundSchema =
|
|
2782
|
+
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
2783
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
|
|
2784
|
+
export type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
|
|
2916
2785
|
}
|
|
2917
2786
|
|
|
2918
|
-
export function
|
|
2919
|
-
|
|
2787
|
+
export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
|
|
2788
|
+
agentToolInputRunQueryKnowledgeBaseTool:
|
|
2789
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2920
2790
|
): string {
|
|
2921
2791
|
return JSON.stringify(
|
|
2922
|
-
|
|
2792
|
+
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
2793
|
+
agentToolInputRunQueryKnowledgeBaseTool,
|
|
2794
|
+
),
|
|
2923
2795
|
);
|
|
2924
2796
|
}
|
|
2925
2797
|
|
|
2926
|
-
export function
|
|
2798
|
+
export function agentToolInputRunQueryKnowledgeBaseToolFromJSON(
|
|
2927
2799
|
jsonString: string,
|
|
2928
|
-
): SafeParseResult<
|
|
2800
|
+
): SafeParseResult<
|
|
2801
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2802
|
+
SDKValidationError
|
|
2803
|
+
> {
|
|
2929
2804
|
return safeParse(
|
|
2930
2805
|
jsonString,
|
|
2931
|
-
(x) =>
|
|
2932
|
-
|
|
2806
|
+
(x) =>
|
|
2807
|
+
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
2808
|
+
JSON.parse(x),
|
|
2809
|
+
),
|
|
2810
|
+
`Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
|
|
2933
2811
|
);
|
|
2934
2812
|
}
|
|
2935
2813
|
|
|
2936
2814
|
/** @internal */
|
|
2937
|
-
export const
|
|
2815
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
2938
2816
|
z.ZodNativeEnum<
|
|
2939
|
-
typeof
|
|
2817
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
2940
2818
|
> = z.nativeEnum(
|
|
2941
|
-
|
|
2819
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
|
|
2942
2820
|
);
|
|
2943
2821
|
|
|
2944
2822
|
/** @internal */
|
|
2945
|
-
export const
|
|
2823
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
2946
2824
|
z.ZodNativeEnum<
|
|
2947
|
-
typeof
|
|
2825
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
2948
2826
|
> =
|
|
2949
|
-
|
|
2827
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2950
2828
|
|
|
2951
2829
|
/**
|
|
2952
2830
|
* @internal
|
|
2953
2831
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2954
2832
|
*/
|
|
2955
|
-
export namespace
|
|
2956
|
-
/** @deprecated use `
|
|
2833
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2834
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
2957
2835
|
export const inboundSchema =
|
|
2958
|
-
|
|
2959
|
-
/** @deprecated use `
|
|
2836
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2837
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
2960
2838
|
export const outboundSchema =
|
|
2961
|
-
|
|
2839
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
2962
2840
|
}
|
|
2963
2841
|
|
|
2964
2842
|
/** @internal */
|
|
2965
|
-
export const
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2843
|
+
export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
|
|
2844
|
+
z.ZodType<
|
|
2845
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2846
|
+
z.ZodTypeDef,
|
|
2847
|
+
unknown
|
|
2848
|
+
> = z.object({
|
|
2849
|
+
type:
|
|
2850
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
2851
|
+
requires_approval: z.boolean().default(false),
|
|
2852
|
+
}).transform((v) => {
|
|
2853
|
+
return remap$(v, {
|
|
2854
|
+
"requires_approval": "requiresApproval",
|
|
2855
|
+
});
|
|
2976
2856
|
});
|
|
2977
|
-
});
|
|
2978
2857
|
|
|
2979
2858
|
/** @internal */
|
|
2980
|
-
export type
|
|
2859
|
+
export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
|
|
2981
2860
|
type: string;
|
|
2982
2861
|
requires_approval: boolean;
|
|
2983
2862
|
};
|
|
2984
2863
|
|
|
2985
2864
|
/** @internal */
|
|
2986
|
-
export const
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2865
|
+
export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
|
|
2866
|
+
z.ZodType<
|
|
2867
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
|
|
2868
|
+
z.ZodTypeDef,
|
|
2869
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
2870
|
+
> = z.object({
|
|
2871
|
+
type:
|
|
2872
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
2873
|
+
requiresApproval: z.boolean().default(false),
|
|
2874
|
+
}).transform((v) => {
|
|
2875
|
+
return remap$(v, {
|
|
2876
|
+
requiresApproval: "requires_approval",
|
|
2877
|
+
});
|
|
2997
2878
|
});
|
|
2998
|
-
});
|
|
2999
2879
|
|
|
3000
2880
|
/**
|
|
3001
2881
|
* @internal
|
|
3002
2882
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3003
2883
|
*/
|
|
3004
|
-
export namespace
|
|
3005
|
-
/** @deprecated use `
|
|
3006
|
-
export const inboundSchema =
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
2884
|
+
export namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
|
|
2885
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
2886
|
+
export const inboundSchema =
|
|
2887
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
2888
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
2889
|
+
export const outboundSchema =
|
|
2890
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
2891
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2892
|
+
export type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
|
|
3011
2893
|
}
|
|
3012
2894
|
|
|
3013
|
-
export function
|
|
3014
|
-
|
|
2895
|
+
export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
|
|
2896
|
+
agentToolInputRunRetrieveKnowledgeBasesTool:
|
|
2897
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3015
2898
|
): string {
|
|
3016
2899
|
return JSON.stringify(
|
|
3017
|
-
|
|
2900
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
|
|
2901
|
+
agentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2902
|
+
),
|
|
3018
2903
|
);
|
|
3019
2904
|
}
|
|
3020
2905
|
|
|
3021
|
-
export function
|
|
2906
|
+
export function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
|
|
3022
2907
|
jsonString: string,
|
|
3023
|
-
): SafeParseResult<
|
|
2908
|
+
): SafeParseResult<
|
|
2909
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2910
|
+
SDKValidationError
|
|
2911
|
+
> {
|
|
3024
2912
|
return safeParse(
|
|
3025
2913
|
jsonString,
|
|
3026
|
-
(x) =>
|
|
3027
|
-
|
|
2914
|
+
(x) =>
|
|
2915
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(
|
|
2916
|
+
JSON.parse(x),
|
|
2917
|
+
),
|
|
2918
|
+
`Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
|
|
3028
2919
|
);
|
|
3029
2920
|
}
|
|
3030
2921
|
|
|
3031
2922
|
/** @internal */
|
|
3032
|
-
export const
|
|
2923
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
3033
2924
|
z.ZodNativeEnum<
|
|
3034
|
-
typeof
|
|
2925
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3035
2926
|
> = z.nativeEnum(
|
|
3036
|
-
|
|
2927
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
|
|
3037
2928
|
);
|
|
3038
2929
|
|
|
3039
2930
|
/** @internal */
|
|
3040
|
-
export const
|
|
2931
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
3041
2932
|
z.ZodNativeEnum<
|
|
3042
|
-
typeof
|
|
2933
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3043
2934
|
> =
|
|
3044
|
-
|
|
2935
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3045
2936
|
|
|
3046
2937
|
/**
|
|
3047
2938
|
* @internal
|
|
3048
2939
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3049
2940
|
*/
|
|
3050
|
-
export namespace
|
|
3051
|
-
/** @deprecated use `
|
|
2941
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
|
|
2942
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
3052
2943
|
export const inboundSchema =
|
|
3053
|
-
|
|
3054
|
-
/** @deprecated use `
|
|
2944
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2945
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
3055
2946
|
export const outboundSchema =
|
|
3056
|
-
|
|
2947
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
3057
2948
|
}
|
|
3058
2949
|
|
|
3059
2950
|
/** @internal */
|
|
3060
|
-
export const
|
|
3061
|
-
|
|
2951
|
+
export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
|
|
2952
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3062
2953
|
z.ZodTypeDef,
|
|
3063
2954
|
unknown
|
|
3064
2955
|
> = z.object({
|
|
3065
2956
|
type:
|
|
3066
|
-
|
|
2957
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
3067
2958
|
requires_approval: z.boolean().default(false),
|
|
3068
2959
|
}).transform((v) => {
|
|
3069
2960
|
return remap$(v, {
|
|
@@ -3072,93 +2963,105 @@ export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3072
2963
|
});
|
|
3073
2964
|
|
|
3074
2965
|
/** @internal */
|
|
3075
|
-
export type
|
|
2966
|
+
export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
|
|
3076
2967
|
type: string;
|
|
3077
2968
|
requires_approval: boolean;
|
|
3078
2969
|
};
|
|
3079
2970
|
|
|
3080
2971
|
/** @internal */
|
|
3081
|
-
export const
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
2972
|
+
export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
|
|
2973
|
+
z.ZodType<
|
|
2974
|
+
AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
|
|
2975
|
+
z.ZodTypeDef,
|
|
2976
|
+
AgentToolInputRunDeleteMemoryDocumentTool
|
|
2977
|
+
> = z.object({
|
|
2978
|
+
type:
|
|
2979
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
2980
|
+
requiresApproval: z.boolean().default(false),
|
|
2981
|
+
}).transform((v) => {
|
|
2982
|
+
return remap$(v, {
|
|
2983
|
+
requiresApproval: "requires_approval",
|
|
2984
|
+
});
|
|
3092
2985
|
});
|
|
3093
|
-
});
|
|
3094
2986
|
|
|
3095
2987
|
/**
|
|
3096
2988
|
* @internal
|
|
3097
2989
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3098
2990
|
*/
|
|
3099
|
-
export namespace
|
|
3100
|
-
/** @deprecated use `
|
|
3101
|
-
export const inboundSchema =
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
2991
|
+
export namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
|
|
2992
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
2993
|
+
export const inboundSchema =
|
|
2994
|
+
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
2995
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
2996
|
+
export const outboundSchema =
|
|
2997
|
+
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
2998
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
|
|
2999
|
+
export type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
|
|
3106
3000
|
}
|
|
3107
3001
|
|
|
3108
|
-
export function
|
|
3109
|
-
|
|
3002
|
+
export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
|
|
3003
|
+
agentToolInputRunDeleteMemoryDocumentTool:
|
|
3004
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3110
3005
|
): string {
|
|
3111
3006
|
return JSON.stringify(
|
|
3112
|
-
|
|
3007
|
+
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
|
|
3008
|
+
agentToolInputRunDeleteMemoryDocumentTool,
|
|
3009
|
+
),
|
|
3113
3010
|
);
|
|
3114
3011
|
}
|
|
3115
3012
|
|
|
3116
|
-
export function
|
|
3013
|
+
export function agentToolInputRunDeleteMemoryDocumentToolFromJSON(
|
|
3117
3014
|
jsonString: string,
|
|
3118
|
-
): SafeParseResult<
|
|
3015
|
+
): SafeParseResult<
|
|
3016
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3017
|
+
SDKValidationError
|
|
3018
|
+
> {
|
|
3119
3019
|
return safeParse(
|
|
3120
3020
|
jsonString,
|
|
3121
|
-
(x) =>
|
|
3122
|
-
|
|
3021
|
+
(x) =>
|
|
3022
|
+
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(
|
|
3023
|
+
JSON.parse(x),
|
|
3024
|
+
),
|
|
3025
|
+
`Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
|
|
3123
3026
|
);
|
|
3124
3027
|
}
|
|
3125
3028
|
|
|
3126
3029
|
/** @internal */
|
|
3127
|
-
export const
|
|
3030
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3128
3031
|
z.ZodNativeEnum<
|
|
3129
|
-
typeof
|
|
3032
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3130
3033
|
> = z.nativeEnum(
|
|
3131
|
-
|
|
3034
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
|
|
3132
3035
|
);
|
|
3133
3036
|
|
|
3134
3037
|
/** @internal */
|
|
3135
|
-
export const
|
|
3038
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3136
3039
|
z.ZodNativeEnum<
|
|
3137
|
-
typeof
|
|
3040
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3138
3041
|
> =
|
|
3139
|
-
|
|
3042
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3140
3043
|
|
|
3141
3044
|
/**
|
|
3142
3045
|
* @internal
|
|
3143
3046
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3144
3047
|
*/
|
|
3145
|
-
export namespace
|
|
3146
|
-
/** @deprecated use `
|
|
3048
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
|
|
3049
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3147
3050
|
export const inboundSchema =
|
|
3148
|
-
|
|
3149
|
-
/** @deprecated use `
|
|
3051
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3052
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3150
3053
|
export const outboundSchema =
|
|
3151
|
-
|
|
3054
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3152
3055
|
}
|
|
3153
3056
|
|
|
3154
3057
|
/** @internal */
|
|
3155
|
-
export const
|
|
3156
|
-
|
|
3058
|
+
export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
3059
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3157
3060
|
z.ZodTypeDef,
|
|
3158
3061
|
unknown
|
|
3159
3062
|
> = z.object({
|
|
3160
3063
|
type:
|
|
3161
|
-
|
|
3064
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3162
3065
|
requires_approval: z.boolean().default(false),
|
|
3163
3066
|
}).transform((v) => {
|
|
3164
3067
|
return remap$(v, {
|
|
@@ -3167,93 +3070,105 @@ export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
|
3167
3070
|
});
|
|
3168
3071
|
|
|
3169
3072
|
/** @internal */
|
|
3170
|
-
export type
|
|
3073
|
+
export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
|
|
3171
3074
|
type: string;
|
|
3172
3075
|
requires_approval: boolean;
|
|
3173
3076
|
};
|
|
3174
3077
|
|
|
3175
3078
|
/** @internal */
|
|
3176
|
-
export const
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3079
|
+
export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
|
|
3080
|
+
z.ZodType<
|
|
3081
|
+
AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
|
|
3082
|
+
z.ZodTypeDef,
|
|
3083
|
+
AgentToolInputRunRetrieveMemoryStoresTool
|
|
3084
|
+
> = z.object({
|
|
3085
|
+
type:
|
|
3086
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3087
|
+
requiresApproval: z.boolean().default(false),
|
|
3088
|
+
}).transform((v) => {
|
|
3089
|
+
return remap$(v, {
|
|
3090
|
+
requiresApproval: "requires_approval",
|
|
3091
|
+
});
|
|
3187
3092
|
});
|
|
3188
|
-
});
|
|
3189
3093
|
|
|
3190
3094
|
/**
|
|
3191
3095
|
* @internal
|
|
3192
3096
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3193
3097
|
*/
|
|
3194
|
-
export namespace
|
|
3195
|
-
/** @deprecated use `
|
|
3196
|
-
export const inboundSchema =
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3098
|
+
export namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
|
|
3099
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3100
|
+
export const inboundSchema =
|
|
3101
|
+
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
3102
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3103
|
+
export const outboundSchema =
|
|
3104
|
+
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
3105
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
|
|
3106
|
+
export type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
|
|
3201
3107
|
}
|
|
3202
3108
|
|
|
3203
|
-
export function
|
|
3204
|
-
|
|
3109
|
+
export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
|
|
3110
|
+
agentToolInputRunRetrieveMemoryStoresTool:
|
|
3111
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3205
3112
|
): string {
|
|
3206
3113
|
return JSON.stringify(
|
|
3207
|
-
|
|
3114
|
+
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
|
|
3115
|
+
agentToolInputRunRetrieveMemoryStoresTool,
|
|
3116
|
+
),
|
|
3208
3117
|
);
|
|
3209
3118
|
}
|
|
3210
3119
|
|
|
3211
|
-
export function
|
|
3120
|
+
export function agentToolInputRunRetrieveMemoryStoresToolFromJSON(
|
|
3212
3121
|
jsonString: string,
|
|
3213
|
-
): SafeParseResult<
|
|
3122
|
+
): SafeParseResult<
|
|
3123
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3124
|
+
SDKValidationError
|
|
3125
|
+
> {
|
|
3214
3126
|
return safeParse(
|
|
3215
3127
|
jsonString,
|
|
3216
|
-
(x) =>
|
|
3217
|
-
|
|
3128
|
+
(x) =>
|
|
3129
|
+
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(
|
|
3130
|
+
JSON.parse(x),
|
|
3131
|
+
),
|
|
3132
|
+
`Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
|
|
3218
3133
|
);
|
|
3219
3134
|
}
|
|
3220
3135
|
|
|
3221
3136
|
/** @internal */
|
|
3222
|
-
export const
|
|
3137
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3223
3138
|
z.ZodNativeEnum<
|
|
3224
|
-
typeof
|
|
3139
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3225
3140
|
> = z.nativeEnum(
|
|
3226
|
-
|
|
3141
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
|
|
3227
3142
|
);
|
|
3228
3143
|
|
|
3229
3144
|
/** @internal */
|
|
3230
|
-
export const
|
|
3145
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3231
3146
|
z.ZodNativeEnum<
|
|
3232
|
-
typeof
|
|
3147
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3233
3148
|
> =
|
|
3234
|
-
|
|
3149
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3235
3150
|
|
|
3236
3151
|
/**
|
|
3237
3152
|
* @internal
|
|
3238
3153
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3239
3154
|
*/
|
|
3240
|
-
export namespace
|
|
3241
|
-
/** @deprecated use `
|
|
3155
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
|
|
3156
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3242
3157
|
export const inboundSchema =
|
|
3243
|
-
|
|
3244
|
-
/** @deprecated use `
|
|
3158
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3159
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3245
3160
|
export const outboundSchema =
|
|
3246
|
-
|
|
3161
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3247
3162
|
}
|
|
3248
3163
|
|
|
3249
3164
|
/** @internal */
|
|
3250
|
-
export const
|
|
3251
|
-
|
|
3165
|
+
export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3166
|
+
AgentToolInputRunWriteMemoryStoreTool,
|
|
3252
3167
|
z.ZodTypeDef,
|
|
3253
3168
|
unknown
|
|
3254
3169
|
> = z.object({
|
|
3255
3170
|
type:
|
|
3256
|
-
|
|
3171
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3257
3172
|
requires_approval: z.boolean().default(false),
|
|
3258
3173
|
}).transform((v) => {
|
|
3259
3174
|
return remap$(v, {
|
|
@@ -3262,19 +3177,19 @@ export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3262
3177
|
});
|
|
3263
3178
|
|
|
3264
3179
|
/** @internal */
|
|
3265
|
-
export type
|
|
3180
|
+
export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
|
|
3266
3181
|
type: string;
|
|
3267
3182
|
requires_approval: boolean;
|
|
3268
3183
|
};
|
|
3269
3184
|
|
|
3270
3185
|
/** @internal */
|
|
3271
|
-
export const
|
|
3272
|
-
|
|
3186
|
+
export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3187
|
+
AgentToolInputRunWriteMemoryStoreTool$Outbound,
|
|
3273
3188
|
z.ZodTypeDef,
|
|
3274
|
-
|
|
3189
|
+
AgentToolInputRunWriteMemoryStoreTool
|
|
3275
3190
|
> = z.object({
|
|
3276
3191
|
type:
|
|
3277
|
-
|
|
3192
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3278
3193
|
requiresApproval: z.boolean().default(false),
|
|
3279
3194
|
}).transform((v) => {
|
|
3280
3195
|
return remap$(v, {
|
|
@@ -3286,65 +3201,70 @@ export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
3286
3201
|
* @internal
|
|
3287
3202
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3288
3203
|
*/
|
|
3289
|
-
export namespace
|
|
3290
|
-
/** @deprecated use `
|
|
3291
|
-
export const inboundSchema =
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3204
|
+
export namespace AgentToolInputRunWriteMemoryStoreTool$ {
|
|
3205
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
3206
|
+
export const inboundSchema =
|
|
3207
|
+
AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
3208
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
3209
|
+
export const outboundSchema =
|
|
3210
|
+
AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
3211
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
|
|
3212
|
+
export type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
|
|
3296
3213
|
}
|
|
3297
3214
|
|
|
3298
|
-
export function
|
|
3299
|
-
|
|
3215
|
+
export function agentToolInputRunWriteMemoryStoreToolToJSON(
|
|
3216
|
+
agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
|
|
3300
3217
|
): string {
|
|
3301
3218
|
return JSON.stringify(
|
|
3302
|
-
|
|
3219
|
+
AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
|
|
3220
|
+
agentToolInputRunWriteMemoryStoreTool,
|
|
3221
|
+
),
|
|
3303
3222
|
);
|
|
3304
3223
|
}
|
|
3305
3224
|
|
|
3306
|
-
export function
|
|
3225
|
+
export function agentToolInputRunWriteMemoryStoreToolFromJSON(
|
|
3307
3226
|
jsonString: string,
|
|
3308
|
-
): SafeParseResult<
|
|
3227
|
+
): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError> {
|
|
3309
3228
|
return safeParse(
|
|
3310
3229
|
jsonString,
|
|
3311
|
-
(x) =>
|
|
3312
|
-
|
|
3230
|
+
(x) =>
|
|
3231
|
+
AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3232
|
+
`Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`,
|
|
3313
3233
|
);
|
|
3314
3234
|
}
|
|
3315
3235
|
|
|
3316
3236
|
/** @internal */
|
|
3317
|
-
export const
|
|
3237
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
|
|
3318
3238
|
z.ZodNativeEnum<
|
|
3319
|
-
typeof
|
|
3320
|
-
> = z.nativeEnum(
|
|
3239
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3240
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
3321
3241
|
|
|
3322
3242
|
/** @internal */
|
|
3323
|
-
export const
|
|
3243
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
|
|
3324
3244
|
z.ZodNativeEnum<
|
|
3325
|
-
typeof
|
|
3326
|
-
> =
|
|
3245
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3246
|
+
> = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3327
3247
|
|
|
3328
3248
|
/**
|
|
3329
3249
|
* @internal
|
|
3330
3250
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3331
3251
|
*/
|
|
3332
|
-
export namespace
|
|
3333
|
-
/** @deprecated use `
|
|
3252
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
|
|
3253
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3334
3254
|
export const inboundSchema =
|
|
3335
|
-
|
|
3336
|
-
/** @deprecated use `
|
|
3255
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3256
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3337
3257
|
export const outboundSchema =
|
|
3338
|
-
|
|
3258
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
3339
3259
|
}
|
|
3340
3260
|
|
|
3341
3261
|
/** @internal */
|
|
3342
|
-
export const
|
|
3343
|
-
|
|
3262
|
+
export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3263
|
+
AgentToolInputRunQueryMemoryStoreTool,
|
|
3344
3264
|
z.ZodTypeDef,
|
|
3345
3265
|
unknown
|
|
3346
3266
|
> = z.object({
|
|
3347
|
-
type:
|
|
3267
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
3348
3268
|
requires_approval: z.boolean().default(false),
|
|
3349
3269
|
}).transform((v) => {
|
|
3350
3270
|
return remap$(v, {
|
|
@@ -3353,18 +3273,18 @@ export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3353
3273
|
});
|
|
3354
3274
|
|
|
3355
3275
|
/** @internal */
|
|
3356
|
-
export type
|
|
3276
|
+
export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
|
|
3357
3277
|
type: string;
|
|
3358
3278
|
requires_approval: boolean;
|
|
3359
3279
|
};
|
|
3360
3280
|
|
|
3361
3281
|
/** @internal */
|
|
3362
|
-
export const
|
|
3363
|
-
|
|
3282
|
+
export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3283
|
+
AgentToolInputRunQueryMemoryStoreTool$Outbound,
|
|
3364
3284
|
z.ZodTypeDef,
|
|
3365
|
-
|
|
3285
|
+
AgentToolInputRunQueryMemoryStoreTool
|
|
3366
3286
|
> = z.object({
|
|
3367
|
-
type:
|
|
3287
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
3368
3288
|
requiresApproval: z.boolean().default(false),
|
|
3369
3289
|
}).transform((v) => {
|
|
3370
3290
|
return remap$(v, {
|
|
@@ -3376,63 +3296,68 @@ export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
3376
3296
|
* @internal
|
|
3377
3297
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3378
3298
|
*/
|
|
3379
|
-
export namespace
|
|
3380
|
-
/** @deprecated use `
|
|
3381
|
-
export const inboundSchema =
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3299
|
+
export namespace AgentToolInputRunQueryMemoryStoreTool$ {
|
|
3300
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
3301
|
+
export const inboundSchema =
|
|
3302
|
+
AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
3303
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
3304
|
+
export const outboundSchema =
|
|
3305
|
+
AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
3306
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
|
|
3307
|
+
export type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
|
|
3386
3308
|
}
|
|
3387
3309
|
|
|
3388
|
-
export function
|
|
3389
|
-
|
|
3310
|
+
export function agentToolInputRunQueryMemoryStoreToolToJSON(
|
|
3311
|
+
agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
|
|
3390
3312
|
): string {
|
|
3391
3313
|
return JSON.stringify(
|
|
3392
|
-
|
|
3314
|
+
AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
|
|
3315
|
+
agentToolInputRunQueryMemoryStoreTool,
|
|
3316
|
+
),
|
|
3393
3317
|
);
|
|
3394
3318
|
}
|
|
3395
3319
|
|
|
3396
|
-
export function
|
|
3320
|
+
export function agentToolInputRunQueryMemoryStoreToolFromJSON(
|
|
3397
3321
|
jsonString: string,
|
|
3398
|
-
): SafeParseResult<
|
|
3322
|
+
): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError> {
|
|
3399
3323
|
return safeParse(
|
|
3400
3324
|
jsonString,
|
|
3401
|
-
(x) =>
|
|
3402
|
-
|
|
3325
|
+
(x) =>
|
|
3326
|
+
AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3327
|
+
`Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`,
|
|
3403
3328
|
);
|
|
3404
3329
|
}
|
|
3405
3330
|
|
|
3406
3331
|
/** @internal */
|
|
3407
|
-
export const
|
|
3408
|
-
z.ZodNativeEnum<typeof
|
|
3409
|
-
.nativeEnum(
|
|
3332
|
+
export const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
|
|
3333
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
|
|
3334
|
+
.nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
|
|
3410
3335
|
|
|
3411
3336
|
/** @internal */
|
|
3412
|
-
export const
|
|
3413
|
-
z.ZodNativeEnum<typeof
|
|
3414
|
-
|
|
3337
|
+
export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
|
|
3338
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> =
|
|
3339
|
+
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3415
3340
|
|
|
3416
3341
|
/**
|
|
3417
3342
|
* @internal
|
|
3418
3343
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3419
3344
|
*/
|
|
3420
|
-
export namespace
|
|
3421
|
-
/** @deprecated use `
|
|
3345
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestType$ {
|
|
3346
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
3422
3347
|
export const inboundSchema =
|
|
3423
|
-
|
|
3424
|
-
/** @deprecated use `
|
|
3348
|
+
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3349
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
3425
3350
|
export const outboundSchema =
|
|
3426
|
-
|
|
3351
|
+
RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
3427
3352
|
}
|
|
3428
3353
|
|
|
3429
3354
|
/** @internal */
|
|
3430
|
-
export const
|
|
3431
|
-
|
|
3355
|
+
export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
3356
|
+
AgentToolInputRunRetrieveAgentsTool,
|
|
3432
3357
|
z.ZodTypeDef,
|
|
3433
3358
|
unknown
|
|
3434
3359
|
> = z.object({
|
|
3435
|
-
type:
|
|
3360
|
+
type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
3436
3361
|
requires_approval: z.boolean().default(false),
|
|
3437
3362
|
}).transform((v) => {
|
|
3438
3363
|
return remap$(v, {
|
|
@@ -3441,18 +3366,18 @@ export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
|
3441
3366
|
});
|
|
3442
3367
|
|
|
3443
3368
|
/** @internal */
|
|
3444
|
-
export type
|
|
3369
|
+
export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
|
|
3445
3370
|
type: string;
|
|
3446
3371
|
requires_approval: boolean;
|
|
3447
3372
|
};
|
|
3448
3373
|
|
|
3449
3374
|
/** @internal */
|
|
3450
|
-
export const
|
|
3451
|
-
|
|
3375
|
+
export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
3376
|
+
AgentToolInputRunRetrieveAgentsTool$Outbound,
|
|
3452
3377
|
z.ZodTypeDef,
|
|
3453
|
-
|
|
3378
|
+
AgentToolInputRunRetrieveAgentsTool
|
|
3454
3379
|
> = z.object({
|
|
3455
|
-
type:
|
|
3380
|
+
type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
3456
3381
|
requiresApproval: z.boolean().default(false),
|
|
3457
3382
|
}).transform((v) => {
|
|
3458
3383
|
return remap$(v, {
|
|
@@ -3464,64 +3389,68 @@ export const RetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
|
3464
3389
|
* @internal
|
|
3465
3390
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3466
3391
|
*/
|
|
3467
|
-
export namespace
|
|
3468
|
-
/** @deprecated use `
|
|
3469
|
-
export const inboundSchema =
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3392
|
+
export namespace AgentToolInputRunRetrieveAgentsTool$ {
|
|
3393
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
3394
|
+
export const inboundSchema =
|
|
3395
|
+
AgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
3396
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
3397
|
+
export const outboundSchema =
|
|
3398
|
+
AgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
3399
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
|
|
3400
|
+
export type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
|
|
3474
3401
|
}
|
|
3475
3402
|
|
|
3476
|
-
export function
|
|
3477
|
-
|
|
3403
|
+
export function agentToolInputRunRetrieveAgentsToolToJSON(
|
|
3404
|
+
agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
|
|
3478
3405
|
): string {
|
|
3479
3406
|
return JSON.stringify(
|
|
3480
|
-
|
|
3407
|
+
AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
|
|
3408
|
+
agentToolInputRunRetrieveAgentsTool,
|
|
3409
|
+
),
|
|
3481
3410
|
);
|
|
3482
3411
|
}
|
|
3483
3412
|
|
|
3484
|
-
export function
|
|
3413
|
+
export function agentToolInputRunRetrieveAgentsToolFromJSON(
|
|
3485
3414
|
jsonString: string,
|
|
3486
|
-
): SafeParseResult<
|
|
3415
|
+
): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError> {
|
|
3487
3416
|
return safeParse(
|
|
3488
3417
|
jsonString,
|
|
3489
|
-
(x) =>
|
|
3490
|
-
|
|
3418
|
+
(x) =>
|
|
3419
|
+
AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
3420
|
+
`Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`,
|
|
3491
3421
|
);
|
|
3492
3422
|
}
|
|
3493
3423
|
|
|
3494
3424
|
/** @internal */
|
|
3495
|
-
export const
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
);
|
|
3425
|
+
export const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
3426
|
+
typeof RunAgentAgentToolInputRunAgentsType
|
|
3427
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsType);
|
|
3499
3428
|
|
|
3500
3429
|
/** @internal */
|
|
3501
|
-
export const
|
|
3502
|
-
z.ZodNativeEnum<typeof
|
|
3503
|
-
|
|
3430
|
+
export const RunAgentAgentToolInputRunAgentsType$outboundSchema:
|
|
3431
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType> =
|
|
3432
|
+
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3504
3433
|
|
|
3505
3434
|
/**
|
|
3506
3435
|
* @internal
|
|
3507
3436
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3508
3437
|
*/
|
|
3509
|
-
export namespace
|
|
3510
|
-
/** @deprecated use `
|
|
3438
|
+
export namespace RunAgentAgentToolInputRunAgentsType$ {
|
|
3439
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
3511
3440
|
export const inboundSchema =
|
|
3512
|
-
|
|
3513
|
-
/** @deprecated use `
|
|
3441
|
+
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3442
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
3514
3443
|
export const outboundSchema =
|
|
3515
|
-
|
|
3444
|
+
RunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
3516
3445
|
}
|
|
3517
3446
|
|
|
3518
3447
|
/** @internal */
|
|
3519
|
-
export const
|
|
3520
|
-
|
|
3448
|
+
export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
|
|
3449
|
+
AgentToolInputRunCallSubAgentTool,
|
|
3521
3450
|
z.ZodTypeDef,
|
|
3522
3451
|
unknown
|
|
3523
3452
|
> = z.object({
|
|
3524
|
-
type:
|
|
3453
|
+
type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
3525
3454
|
requires_approval: z.boolean().default(false),
|
|
3526
3455
|
}).transform((v) => {
|
|
3527
3456
|
return remap$(v, {
|
|
@@ -3530,18 +3459,18 @@ export const CallSubAgentTool$inboundSchema: z.ZodType<
|
|
|
3530
3459
|
});
|
|
3531
3460
|
|
|
3532
3461
|
/** @internal */
|
|
3533
|
-
export type
|
|
3462
|
+
export type AgentToolInputRunCallSubAgentTool$Outbound = {
|
|
3534
3463
|
type: string;
|
|
3535
3464
|
requires_approval: boolean;
|
|
3536
3465
|
};
|
|
3537
3466
|
|
|
3538
3467
|
/** @internal */
|
|
3539
|
-
export const
|
|
3540
|
-
|
|
3468
|
+
export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
|
|
3469
|
+
AgentToolInputRunCallSubAgentTool$Outbound,
|
|
3541
3470
|
z.ZodTypeDef,
|
|
3542
|
-
|
|
3471
|
+
AgentToolInputRunCallSubAgentTool
|
|
3543
3472
|
> = z.object({
|
|
3544
|
-
type:
|
|
3473
|
+
type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
3545
3474
|
requiresApproval: z.boolean().default(false),
|
|
3546
3475
|
}).transform((v) => {
|
|
3547
3476
|
return remap$(v, {
|
|
@@ -3553,61 +3482,64 @@ export const CallSubAgentTool$outboundSchema: z.ZodType<
|
|
|
3553
3482
|
* @internal
|
|
3554
3483
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3555
3484
|
*/
|
|
3556
|
-
export namespace
|
|
3557
|
-
/** @deprecated use `
|
|
3558
|
-
export const inboundSchema =
|
|
3559
|
-
/** @deprecated use `
|
|
3560
|
-
export const outboundSchema =
|
|
3561
|
-
|
|
3562
|
-
|
|
3485
|
+
export namespace AgentToolInputRunCallSubAgentTool$ {
|
|
3486
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
3487
|
+
export const inboundSchema = AgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
3488
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
3489
|
+
export const outboundSchema =
|
|
3490
|
+
AgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
3491
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
|
|
3492
|
+
export type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
|
|
3563
3493
|
}
|
|
3564
3494
|
|
|
3565
|
-
export function
|
|
3566
|
-
|
|
3495
|
+
export function agentToolInputRunCallSubAgentToolToJSON(
|
|
3496
|
+
agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
|
|
3567
3497
|
): string {
|
|
3568
3498
|
return JSON.stringify(
|
|
3569
|
-
|
|
3499
|
+
AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
|
|
3500
|
+
agentToolInputRunCallSubAgentTool,
|
|
3501
|
+
),
|
|
3570
3502
|
);
|
|
3571
3503
|
}
|
|
3572
3504
|
|
|
3573
|
-
export function
|
|
3505
|
+
export function agentToolInputRunCallSubAgentToolFromJSON(
|
|
3574
3506
|
jsonString: string,
|
|
3575
|
-
): SafeParseResult<
|
|
3507
|
+
): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError> {
|
|
3576
3508
|
return safeParse(
|
|
3577
3509
|
jsonString,
|
|
3578
|
-
(x) =>
|
|
3579
|
-
`Failed to parse '
|
|
3510
|
+
(x) => AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
|
|
3511
|
+
`Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`,
|
|
3580
3512
|
);
|
|
3581
3513
|
}
|
|
3582
3514
|
|
|
3583
3515
|
/** @internal */
|
|
3584
|
-
export const
|
|
3585
|
-
typeof
|
|
3586
|
-
> = z.nativeEnum(
|
|
3516
|
+
export const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3517
|
+
typeof RunAgentAgentToolInputRunType
|
|
3518
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunType);
|
|
3587
3519
|
|
|
3588
3520
|
/** @internal */
|
|
3589
|
-
export const
|
|
3590
|
-
typeof
|
|
3591
|
-
> =
|
|
3521
|
+
export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3522
|
+
typeof RunAgentAgentToolInputRunType
|
|
3523
|
+
> = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3592
3524
|
|
|
3593
3525
|
/**
|
|
3594
3526
|
* @internal
|
|
3595
3527
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3596
3528
|
*/
|
|
3597
|
-
export namespace
|
|
3598
|
-
/** @deprecated use `
|
|
3599
|
-
export const inboundSchema =
|
|
3600
|
-
/** @deprecated use `
|
|
3601
|
-
export const outboundSchema =
|
|
3529
|
+
export namespace RunAgentAgentToolInputRunType$ {
|
|
3530
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
3531
|
+
export const inboundSchema = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3532
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
3533
|
+
export const outboundSchema = RunAgentAgentToolInputRunType$outboundSchema;
|
|
3602
3534
|
}
|
|
3603
3535
|
|
|
3604
3536
|
/** @internal */
|
|
3605
|
-
export const
|
|
3606
|
-
|
|
3537
|
+
export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
|
|
3538
|
+
AgentToolInputRunWebScraperTool,
|
|
3607
3539
|
z.ZodTypeDef,
|
|
3608
3540
|
unknown
|
|
3609
3541
|
> = z.object({
|
|
3610
|
-
type:
|
|
3542
|
+
type: RunAgentAgentToolInputRunType$inboundSchema,
|
|
3611
3543
|
requires_approval: z.boolean().default(false),
|
|
3612
3544
|
}).transform((v) => {
|
|
3613
3545
|
return remap$(v, {
|
|
@@ -3616,18 +3548,18 @@ export const WebScraperTool$inboundSchema: z.ZodType<
|
|
|
3616
3548
|
});
|
|
3617
3549
|
|
|
3618
3550
|
/** @internal */
|
|
3619
|
-
export type
|
|
3551
|
+
export type AgentToolInputRunWebScraperTool$Outbound = {
|
|
3620
3552
|
type: string;
|
|
3621
3553
|
requires_approval: boolean;
|
|
3622
3554
|
};
|
|
3623
3555
|
|
|
3624
3556
|
/** @internal */
|
|
3625
|
-
export const
|
|
3626
|
-
|
|
3557
|
+
export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
|
|
3558
|
+
AgentToolInputRunWebScraperTool$Outbound,
|
|
3627
3559
|
z.ZodTypeDef,
|
|
3628
|
-
|
|
3560
|
+
AgentToolInputRunWebScraperTool
|
|
3629
3561
|
> = z.object({
|
|
3630
|
-
type:
|
|
3562
|
+
type: RunAgentAgentToolInputRunType$outboundSchema,
|
|
3631
3563
|
requiresApproval: z.boolean().default(false),
|
|
3632
3564
|
}).transform((v) => {
|
|
3633
3565
|
return remap$(v, {
|
|
@@ -3639,57 +3571,63 @@ export const WebScraperTool$outboundSchema: z.ZodType<
|
|
|
3639
3571
|
* @internal
|
|
3640
3572
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3641
3573
|
*/
|
|
3642
|
-
export namespace
|
|
3643
|
-
/** @deprecated use `
|
|
3644
|
-
export const inboundSchema =
|
|
3645
|
-
/** @deprecated use `
|
|
3646
|
-
export const outboundSchema =
|
|
3647
|
-
/** @deprecated use `
|
|
3648
|
-
export type Outbound =
|
|
3574
|
+
export namespace AgentToolInputRunWebScraperTool$ {
|
|
3575
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
3576
|
+
export const inboundSchema = AgentToolInputRunWebScraperTool$inboundSchema;
|
|
3577
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
3578
|
+
export const outboundSchema = AgentToolInputRunWebScraperTool$outboundSchema;
|
|
3579
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
|
|
3580
|
+
export type Outbound = AgentToolInputRunWebScraperTool$Outbound;
|
|
3649
3581
|
}
|
|
3650
3582
|
|
|
3651
|
-
export function
|
|
3652
|
-
|
|
3583
|
+
export function agentToolInputRunWebScraperToolToJSON(
|
|
3584
|
+
agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
|
|
3585
|
+
): string {
|
|
3586
|
+
return JSON.stringify(
|
|
3587
|
+
AgentToolInputRunWebScraperTool$outboundSchema.parse(
|
|
3588
|
+
agentToolInputRunWebScraperTool,
|
|
3589
|
+
),
|
|
3590
|
+
);
|
|
3653
3591
|
}
|
|
3654
3592
|
|
|
3655
|
-
export function
|
|
3593
|
+
export function agentToolInputRunWebScraperToolFromJSON(
|
|
3656
3594
|
jsonString: string,
|
|
3657
|
-
): SafeParseResult<
|
|
3595
|
+
): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError> {
|
|
3658
3596
|
return safeParse(
|
|
3659
3597
|
jsonString,
|
|
3660
|
-
(x) =>
|
|
3661
|
-
`Failed to parse '
|
|
3598
|
+
(x) => AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
3599
|
+
`Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`,
|
|
3662
3600
|
);
|
|
3663
3601
|
}
|
|
3664
3602
|
|
|
3665
3603
|
/** @internal */
|
|
3666
|
-
export const
|
|
3667
|
-
typeof
|
|
3668
|
-
> = z.nativeEnum(
|
|
3604
|
+
export const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3605
|
+
typeof AgentToolInputRunType
|
|
3606
|
+
> = z.nativeEnum(AgentToolInputRunType);
|
|
3669
3607
|
|
|
3670
3608
|
/** @internal */
|
|
3671
|
-
export const
|
|
3672
|
-
typeof
|
|
3673
|
-
> =
|
|
3609
|
+
export const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3610
|
+
typeof AgentToolInputRunType
|
|
3611
|
+
> = AgentToolInputRunType$inboundSchema;
|
|
3674
3612
|
|
|
3675
3613
|
/**
|
|
3676
3614
|
* @internal
|
|
3677
3615
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3678
3616
|
*/
|
|
3679
|
-
export namespace
|
|
3680
|
-
/** @deprecated use `
|
|
3681
|
-
export const inboundSchema =
|
|
3682
|
-
/** @deprecated use `
|
|
3683
|
-
export const outboundSchema =
|
|
3617
|
+
export namespace AgentToolInputRunType$ {
|
|
3618
|
+
/** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
|
|
3619
|
+
export const inboundSchema = AgentToolInputRunType$inboundSchema;
|
|
3620
|
+
/** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
|
|
3621
|
+
export const outboundSchema = AgentToolInputRunType$outboundSchema;
|
|
3684
3622
|
}
|
|
3685
3623
|
|
|
3686
3624
|
/** @internal */
|
|
3687
|
-
export const
|
|
3688
|
-
|
|
3625
|
+
export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
|
|
3626
|
+
AgentToolInputRunGoogleSearchTool,
|
|
3689
3627
|
z.ZodTypeDef,
|
|
3690
3628
|
unknown
|
|
3691
3629
|
> = z.object({
|
|
3692
|
-
type:
|
|
3630
|
+
type: AgentToolInputRunType$inboundSchema,
|
|
3693
3631
|
requires_approval: z.boolean().default(false),
|
|
3694
3632
|
}).transform((v) => {
|
|
3695
3633
|
return remap$(v, {
|
|
@@ -3698,18 +3636,18 @@ export const GoogleSearchTool$inboundSchema: z.ZodType<
|
|
|
3698
3636
|
});
|
|
3699
3637
|
|
|
3700
3638
|
/** @internal */
|
|
3701
|
-
export type
|
|
3639
|
+
export type AgentToolInputRunGoogleSearchTool$Outbound = {
|
|
3702
3640
|
type: string;
|
|
3703
3641
|
requires_approval: boolean;
|
|
3704
3642
|
};
|
|
3705
3643
|
|
|
3706
3644
|
/** @internal */
|
|
3707
|
-
export const
|
|
3708
|
-
|
|
3645
|
+
export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
|
|
3646
|
+
AgentToolInputRunGoogleSearchTool$Outbound,
|
|
3709
3647
|
z.ZodTypeDef,
|
|
3710
|
-
|
|
3648
|
+
AgentToolInputRunGoogleSearchTool
|
|
3711
3649
|
> = z.object({
|
|
3712
|
-
type:
|
|
3650
|
+
type: AgentToolInputRunType$outboundSchema,
|
|
3713
3651
|
requiresApproval: z.boolean().default(false),
|
|
3714
3652
|
}).transform((v) => {
|
|
3715
3653
|
return remap$(v, {
|
|
@@ -3721,171 +3659,176 @@ export const GoogleSearchTool$outboundSchema: z.ZodType<
|
|
|
3721
3659
|
* @internal
|
|
3722
3660
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3723
3661
|
*/
|
|
3724
|
-
export namespace
|
|
3725
|
-
/** @deprecated use `
|
|
3726
|
-
export const inboundSchema =
|
|
3727
|
-
/** @deprecated use `
|
|
3728
|
-
export const outboundSchema =
|
|
3729
|
-
|
|
3730
|
-
|
|
3662
|
+
export namespace AgentToolInputRunGoogleSearchTool$ {
|
|
3663
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
3664
|
+
export const inboundSchema = AgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
3665
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
3666
|
+
export const outboundSchema =
|
|
3667
|
+
AgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
3668
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
|
|
3669
|
+
export type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
|
|
3731
3670
|
}
|
|
3732
3671
|
|
|
3733
|
-
export function
|
|
3734
|
-
|
|
3672
|
+
export function agentToolInputRunGoogleSearchToolToJSON(
|
|
3673
|
+
agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
|
|
3735
3674
|
): string {
|
|
3736
3675
|
return JSON.stringify(
|
|
3737
|
-
|
|
3676
|
+
AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
|
|
3677
|
+
agentToolInputRunGoogleSearchTool,
|
|
3678
|
+
),
|
|
3738
3679
|
);
|
|
3739
3680
|
}
|
|
3740
3681
|
|
|
3741
|
-
export function
|
|
3682
|
+
export function agentToolInputRunGoogleSearchToolFromJSON(
|
|
3742
3683
|
jsonString: string,
|
|
3743
|
-
): SafeParseResult<
|
|
3684
|
+
): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError> {
|
|
3744
3685
|
return safeParse(
|
|
3745
3686
|
jsonString,
|
|
3746
|
-
(x) =>
|
|
3747
|
-
`Failed to parse '
|
|
3687
|
+
(x) => AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
|
|
3688
|
+
`Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`,
|
|
3748
3689
|
);
|
|
3749
3690
|
}
|
|
3750
3691
|
|
|
3751
3692
|
/** @internal */
|
|
3752
|
-
export const
|
|
3753
|
-
|
|
3693
|
+
export const AgentToolInputRun$inboundSchema: z.ZodType<
|
|
3694
|
+
AgentToolInputRun,
|
|
3754
3695
|
z.ZodTypeDef,
|
|
3755
3696
|
unknown
|
|
3756
3697
|
> = z.union([
|
|
3757
|
-
z.lazy(() =>
|
|
3758
|
-
z.lazy(() =>
|
|
3759
|
-
z.lazy(() =>
|
|
3760
|
-
z.lazy(() =>
|
|
3761
|
-
z.lazy(() =>
|
|
3762
|
-
z.lazy(() =>
|
|
3763
|
-
z.lazy(() =>
|
|
3764
|
-
z.lazy(() =>
|
|
3765
|
-
z.lazy(() =>
|
|
3766
|
-
z.lazy(() =>
|
|
3767
|
-
z.lazy(() =>
|
|
3768
|
-
z.lazy(() =>
|
|
3769
|
-
z.lazy(() =>
|
|
3770
|
-
z.lazy(() =>
|
|
3698
|
+
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3699
|
+
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3700
|
+
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3701
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3702
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3703
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3704
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3705
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3706
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3707
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3708
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3709
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3710
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3711
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3771
3712
|
]);
|
|
3772
3713
|
|
|
3773
3714
|
/** @internal */
|
|
3774
|
-
export type
|
|
3775
|
-
|
|
|
3776
|
-
|
|
|
3777
|
-
|
|
|
3778
|
-
|
|
|
3779
|
-
|
|
|
3780
|
-
|
|
|
3781
|
-
|
|
|
3782
|
-
|
|
|
3783
|
-
|
|
|
3784
|
-
|
|
|
3785
|
-
|
|
|
3786
|
-
|
|
|
3787
|
-
|
|
|
3788
|
-
|
|
|
3789
|
-
|
|
3790
|
-
/** @internal */
|
|
3791
|
-
export const
|
|
3792
|
-
|
|
3715
|
+
export type AgentToolInputRun$Outbound =
|
|
3716
|
+
| HTTPToolRun$Outbound
|
|
3717
|
+
| CodeToolRun$Outbound
|
|
3718
|
+
| FunctionToolRun$Outbound
|
|
3719
|
+
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3720
|
+
| AgentToolInputRunWebScraperTool$Outbound
|
|
3721
|
+
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3722
|
+
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3723
|
+
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3724
|
+
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3725
|
+
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3726
|
+
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3727
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3728
|
+
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3729
|
+
| AgentToolInputRunCurrentDateTool$Outbound;
|
|
3730
|
+
|
|
3731
|
+
/** @internal */
|
|
3732
|
+
export const AgentToolInputRun$outboundSchema: z.ZodType<
|
|
3733
|
+
AgentToolInputRun$Outbound,
|
|
3793
3734
|
z.ZodTypeDef,
|
|
3794
|
-
|
|
3735
|
+
AgentToolInputRun
|
|
3795
3736
|
> = z.union([
|
|
3796
|
-
z.lazy(() =>
|
|
3797
|
-
z.lazy(() =>
|
|
3798
|
-
z.lazy(() =>
|
|
3799
|
-
z.lazy(() =>
|
|
3800
|
-
z.lazy(() =>
|
|
3801
|
-
z.lazy(() =>
|
|
3802
|
-
z.lazy(() =>
|
|
3803
|
-
z.lazy(() =>
|
|
3804
|
-
z.lazy(() =>
|
|
3805
|
-
z.lazy(() =>
|
|
3806
|
-
z.lazy(() =>
|
|
3807
|
-
z.lazy(() =>
|
|
3808
|
-
z.lazy(() =>
|
|
3809
|
-
z.lazy(() =>
|
|
3737
|
+
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3738
|
+
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3739
|
+
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3740
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3741
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3742
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3743
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3744
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3745
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3746
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3747
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3748
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3749
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3750
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
3810
3751
|
]);
|
|
3811
3752
|
|
|
3812
3753
|
/**
|
|
3813
3754
|
* @internal
|
|
3814
3755
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3815
3756
|
*/
|
|
3816
|
-
export namespace
|
|
3817
|
-
/** @deprecated use `
|
|
3818
|
-
export const inboundSchema =
|
|
3819
|
-
/** @deprecated use `
|
|
3820
|
-
export const outboundSchema =
|
|
3821
|
-
/** @deprecated use `
|
|
3822
|
-
export type Outbound =
|
|
3757
|
+
export namespace AgentToolInputRun$ {
|
|
3758
|
+
/** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
|
|
3759
|
+
export const inboundSchema = AgentToolInputRun$inboundSchema;
|
|
3760
|
+
/** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
|
|
3761
|
+
export const outboundSchema = AgentToolInputRun$outboundSchema;
|
|
3762
|
+
/** @deprecated use `AgentToolInputRun$Outbound` instead. */
|
|
3763
|
+
export type Outbound = AgentToolInputRun$Outbound;
|
|
3823
3764
|
}
|
|
3824
3765
|
|
|
3825
|
-
export function
|
|
3826
|
-
|
|
3766
|
+
export function agentToolInputRunToJSON(
|
|
3767
|
+
agentToolInputRun: AgentToolInputRun,
|
|
3827
3768
|
): string {
|
|
3828
3769
|
return JSON.stringify(
|
|
3829
|
-
|
|
3770
|
+
AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
|
|
3830
3771
|
);
|
|
3831
3772
|
}
|
|
3832
3773
|
|
|
3833
|
-
export function
|
|
3774
|
+
export function agentToolInputRunFromJSON(
|
|
3834
3775
|
jsonString: string,
|
|
3835
|
-
): SafeParseResult<
|
|
3776
|
+
): SafeParseResult<AgentToolInputRun, SDKValidationError> {
|
|
3836
3777
|
return safeParse(
|
|
3837
3778
|
jsonString,
|
|
3838
|
-
(x) =>
|
|
3839
|
-
`Failed to parse '
|
|
3779
|
+
(x) => AgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
|
|
3780
|
+
`Failed to parse 'AgentToolInputRun' from JSON`,
|
|
3840
3781
|
);
|
|
3841
3782
|
}
|
|
3842
3783
|
|
|
3843
3784
|
/** @internal */
|
|
3844
|
-
export const
|
|
3845
|
-
typeof
|
|
3846
|
-
> = z.nativeEnum(
|
|
3785
|
+
export const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
3786
|
+
typeof RunAgentToolApprovalRequired
|
|
3787
|
+
> = z.nativeEnum(RunAgentToolApprovalRequired);
|
|
3847
3788
|
|
|
3848
3789
|
/** @internal */
|
|
3849
|
-
export const
|
|
3850
|
-
typeof
|
|
3851
|
-
> =
|
|
3790
|
+
export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
3791
|
+
typeof RunAgentToolApprovalRequired
|
|
3792
|
+
> = RunAgentToolApprovalRequired$inboundSchema;
|
|
3852
3793
|
|
|
3853
3794
|
/**
|
|
3854
3795
|
* @internal
|
|
3855
3796
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3856
3797
|
*/
|
|
3857
|
-
export namespace
|
|
3858
|
-
/** @deprecated use `
|
|
3859
|
-
export const inboundSchema =
|
|
3860
|
-
/** @deprecated use `
|
|
3861
|
-
export const outboundSchema =
|
|
3798
|
+
export namespace RunAgentToolApprovalRequired$ {
|
|
3799
|
+
/** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
|
|
3800
|
+
export const inboundSchema = RunAgentToolApprovalRequired$inboundSchema;
|
|
3801
|
+
/** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
|
|
3802
|
+
export const outboundSchema = RunAgentToolApprovalRequired$outboundSchema;
|
|
3862
3803
|
}
|
|
3863
3804
|
|
|
3864
3805
|
/** @internal */
|
|
3865
|
-
export const
|
|
3866
|
-
|
|
3806
|
+
export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
3807
|
+
RunAgentSettings,
|
|
3867
3808
|
z.ZodTypeDef,
|
|
3868
3809
|
unknown
|
|
3869
3810
|
> = z.object({
|
|
3870
3811
|
tools: z.array(
|
|
3871
3812
|
z.union([
|
|
3872
|
-
z.lazy(() =>
|
|
3873
|
-
z.lazy(() =>
|
|
3874
|
-
z.lazy(() =>
|
|
3875
|
-
z.lazy(() =>
|
|
3876
|
-
z.lazy(() =>
|
|
3877
|
-
z.lazy(() =>
|
|
3878
|
-
z.lazy(() =>
|
|
3879
|
-
z.lazy(() =>
|
|
3880
|
-
z.lazy(() =>
|
|
3881
|
-
z.lazy(() =>
|
|
3882
|
-
z.lazy(() =>
|
|
3883
|
-
z.lazy(() =>
|
|
3884
|
-
z.lazy(() =>
|
|
3885
|
-
z.lazy(() =>
|
|
3813
|
+
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3814
|
+
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3815
|
+
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3816
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3817
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3818
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3819
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3820
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3821
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3822
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3823
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3824
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3825
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3826
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3886
3827
|
]),
|
|
3887
3828
|
),
|
|
3888
|
-
tool_approval_required:
|
|
3829
|
+
tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
|
|
3830
|
+
"none",
|
|
3831
|
+
),
|
|
3889
3832
|
max_iterations: z.number().int().default(15),
|
|
3890
3833
|
max_execution_time: z.number().int().default(300),
|
|
3891
3834
|
}).transform((v) => {
|
|
@@ -3897,22 +3840,22 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
3897
3840
|
});
|
|
3898
3841
|
|
|
3899
3842
|
/** @internal */
|
|
3900
|
-
export type
|
|
3843
|
+
export type RunAgentSettings$Outbound = {
|
|
3901
3844
|
tools: Array<
|
|
3902
|
-
|
|
|
3903
|
-
|
|
|
3904
|
-
|
|
|
3905
|
-
|
|
|
3906
|
-
|
|
|
3907
|
-
|
|
|
3908
|
-
|
|
|
3909
|
-
|
|
|
3910
|
-
|
|
|
3911
|
-
|
|
|
3912
|
-
|
|
|
3913
|
-
|
|
|
3914
|
-
|
|
|
3915
|
-
|
|
|
3845
|
+
| HTTPToolRun$Outbound
|
|
3846
|
+
| CodeToolRun$Outbound
|
|
3847
|
+
| FunctionToolRun$Outbound
|
|
3848
|
+
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3849
|
+
| AgentToolInputRunWebScraperTool$Outbound
|
|
3850
|
+
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3851
|
+
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3852
|
+
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3853
|
+
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3854
|
+
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3855
|
+
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3856
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3857
|
+
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3858
|
+
| AgentToolInputRunCurrentDateTool$Outbound
|
|
3916
3859
|
>;
|
|
3917
3860
|
tool_approval_required: string;
|
|
3918
3861
|
max_iterations: number;
|
|
@@ -3920,30 +3863,32 @@ export type Settings$Outbound = {
|
|
|
3920
3863
|
};
|
|
3921
3864
|
|
|
3922
3865
|
/** @internal */
|
|
3923
|
-
export const
|
|
3924
|
-
|
|
3866
|
+
export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
3867
|
+
RunAgentSettings$Outbound,
|
|
3925
3868
|
z.ZodTypeDef,
|
|
3926
|
-
|
|
3869
|
+
RunAgentSettings
|
|
3927
3870
|
> = z.object({
|
|
3928
3871
|
tools: z.array(
|
|
3929
3872
|
z.union([
|
|
3930
|
-
z.lazy(() =>
|
|
3931
|
-
z.lazy(() =>
|
|
3932
|
-
z.lazy(() =>
|
|
3933
|
-
z.lazy(() =>
|
|
3934
|
-
z.lazy(() =>
|
|
3935
|
-
z.lazy(() =>
|
|
3936
|
-
z.lazy(() =>
|
|
3937
|
-
z.lazy(() =>
|
|
3938
|
-
z.lazy(() =>
|
|
3939
|
-
z.lazy(() =>
|
|
3940
|
-
z.lazy(() =>
|
|
3941
|
-
z.lazy(() =>
|
|
3942
|
-
z.lazy(() =>
|
|
3943
|
-
z.lazy(() =>
|
|
3873
|
+
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3874
|
+
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3875
|
+
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3876
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3877
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3878
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3879
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3880
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3881
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3882
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3883
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3884
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3885
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3886
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
3944
3887
|
]),
|
|
3945
3888
|
),
|
|
3946
|
-
toolApprovalRequired:
|
|
3889
|
+
toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
|
|
3890
|
+
"none",
|
|
3891
|
+
),
|
|
3947
3892
|
maxIterations: z.number().int().default(15),
|
|
3948
3893
|
maxExecutionTime: z.number().int().default(300),
|
|
3949
3894
|
}).transform((v) => {
|
|
@@ -3958,26 +3903,30 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
3958
3903
|
* @internal
|
|
3959
3904
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3960
3905
|
*/
|
|
3961
|
-
export namespace
|
|
3962
|
-
/** @deprecated use `
|
|
3963
|
-
export const inboundSchema =
|
|
3964
|
-
/** @deprecated use `
|
|
3965
|
-
export const outboundSchema =
|
|
3966
|
-
/** @deprecated use `
|
|
3967
|
-
export type Outbound =
|
|
3906
|
+
export namespace RunAgentSettings$ {
|
|
3907
|
+
/** @deprecated use `RunAgentSettings$inboundSchema` instead. */
|
|
3908
|
+
export const inboundSchema = RunAgentSettings$inboundSchema;
|
|
3909
|
+
/** @deprecated use `RunAgentSettings$outboundSchema` instead. */
|
|
3910
|
+
export const outboundSchema = RunAgentSettings$outboundSchema;
|
|
3911
|
+
/** @deprecated use `RunAgentSettings$Outbound` instead. */
|
|
3912
|
+
export type Outbound = RunAgentSettings$Outbound;
|
|
3968
3913
|
}
|
|
3969
3914
|
|
|
3970
|
-
export function
|
|
3971
|
-
|
|
3915
|
+
export function runAgentSettingsToJSON(
|
|
3916
|
+
runAgentSettings: RunAgentSettings,
|
|
3917
|
+
): string {
|
|
3918
|
+
return JSON.stringify(
|
|
3919
|
+
RunAgentSettings$outboundSchema.parse(runAgentSettings),
|
|
3920
|
+
);
|
|
3972
3921
|
}
|
|
3973
3922
|
|
|
3974
|
-
export function
|
|
3923
|
+
export function runAgentSettingsFromJSON(
|
|
3975
3924
|
jsonString: string,
|
|
3976
|
-
): SafeParseResult<
|
|
3925
|
+
): SafeParseResult<RunAgentSettings, SDKValidationError> {
|
|
3977
3926
|
return safeParse(
|
|
3978
3927
|
jsonString,
|
|
3979
|
-
(x) =>
|
|
3980
|
-
`Failed to parse '
|
|
3928
|
+
(x) => RunAgentSettings$inboundSchema.parse(JSON.parse(x)),
|
|
3929
|
+
`Failed to parse 'RunAgentSettings' from JSON`,
|
|
3981
3930
|
);
|
|
3982
3931
|
}
|
|
3983
3932
|
|
|
@@ -3988,27 +3937,28 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3988
3937
|
unknown
|
|
3989
3938
|
> = z.object({
|
|
3990
3939
|
key: z.string(),
|
|
3991
|
-
|
|
3940
|
+
task_id: z.string().optional(),
|
|
3992
3941
|
model: z.string(),
|
|
3993
3942
|
fallback_models: z.array(z.string()).optional(),
|
|
3994
3943
|
role: z.string(),
|
|
3995
3944
|
instructions: z.string(),
|
|
3996
|
-
message: z.lazy(() =>
|
|
3945
|
+
message: z.lazy(() => RunAgentMessage$inboundSchema),
|
|
3997
3946
|
variables: z.record(z.any()).optional(),
|
|
3998
|
-
contact: z.lazy(() =>
|
|
3947
|
+
contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
|
|
3999
3948
|
thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
|
|
4000
|
-
memory: z.lazy(() =>
|
|
3949
|
+
memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
|
|
4001
3950
|
path: z.string(),
|
|
4002
3951
|
description: z.string().optional(),
|
|
4003
3952
|
system_prompt: z.string().optional(),
|
|
4004
3953
|
memory_stores: z.array(z.string()).optional(),
|
|
4005
|
-
knowledge_bases: z.array(z.lazy(() =>
|
|
3954
|
+
knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
|
|
4006
3955
|
.optional(),
|
|
4007
3956
|
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
4008
|
-
settings: z.lazy(() =>
|
|
3957
|
+
settings: z.lazy(() => RunAgentSettings$inboundSchema),
|
|
4009
3958
|
metadata: z.record(z.any()).optional(),
|
|
4010
3959
|
}).transform((v) => {
|
|
4011
3960
|
return remap$(v, {
|
|
3961
|
+
"task_id": "taskId",
|
|
4012
3962
|
"fallback_models": "fallbackModels",
|
|
4013
3963
|
"system_prompt": "systemPrompt",
|
|
4014
3964
|
"memory_stores": "memoryStores",
|
|
@@ -4020,23 +3970,23 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4020
3970
|
/** @internal */
|
|
4021
3971
|
export type RunAgentRequestBody$Outbound = {
|
|
4022
3972
|
key: string;
|
|
4023
|
-
|
|
3973
|
+
task_id?: string | undefined;
|
|
4024
3974
|
model: string;
|
|
4025
3975
|
fallback_models?: Array<string> | undefined;
|
|
4026
3976
|
role: string;
|
|
4027
3977
|
instructions: string;
|
|
4028
|
-
message:
|
|
3978
|
+
message: RunAgentMessage$Outbound;
|
|
4029
3979
|
variables?: { [k: string]: any } | undefined;
|
|
4030
|
-
contact?:
|
|
3980
|
+
contact?: RunAgentContact$Outbound | undefined;
|
|
4031
3981
|
thread?: RunAgentThread$Outbound | undefined;
|
|
4032
|
-
memory?:
|
|
3982
|
+
memory?: RunAgentMemory$Outbound | undefined;
|
|
4033
3983
|
path: string;
|
|
4034
3984
|
description?: string | undefined;
|
|
4035
3985
|
system_prompt?: string | undefined;
|
|
4036
3986
|
memory_stores?: Array<string> | undefined;
|
|
4037
|
-
knowledge_bases?: Array<
|
|
3987
|
+
knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
|
|
4038
3988
|
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
4039
|
-
settings:
|
|
3989
|
+
settings: RunAgentSettings$Outbound;
|
|
4040
3990
|
metadata?: { [k: string]: any } | undefined;
|
|
4041
3991
|
};
|
|
4042
3992
|
|
|
@@ -4052,22 +4002,23 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4052
4002
|
fallbackModels: z.array(z.string()).optional(),
|
|
4053
4003
|
role: z.string(),
|
|
4054
4004
|
instructions: z.string(),
|
|
4055
|
-
message: z.lazy(() =>
|
|
4005
|
+
message: z.lazy(() => RunAgentMessage$outboundSchema),
|
|
4056
4006
|
variables: z.record(z.any()).optional(),
|
|
4057
|
-
contact: z.lazy(() =>
|
|
4007
|
+
contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
|
|
4058
4008
|
thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
|
|
4059
|
-
memory: z.lazy(() =>
|
|
4009
|
+
memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
|
|
4060
4010
|
path: z.string(),
|
|
4061
4011
|
description: z.string().optional(),
|
|
4062
4012
|
systemPrompt: z.string().optional(),
|
|
4063
4013
|
memoryStores: z.array(z.string()).optional(),
|
|
4064
|
-
knowledgeBases: z.array(z.lazy(() =>
|
|
4014
|
+
knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
|
|
4065
4015
|
.optional(),
|
|
4066
4016
|
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
4067
|
-
settings: z.lazy(() =>
|
|
4017
|
+
settings: z.lazy(() => RunAgentSettings$outboundSchema),
|
|
4068
4018
|
metadata: z.record(z.any()).optional(),
|
|
4069
4019
|
}).transform((v) => {
|
|
4070
4020
|
return remap$(v, {
|
|
4021
|
+
taskId: "task_id",
|
|
4071
4022
|
fallbackModels: "fallback_models",
|
|
4072
4023
|
systemPrompt: "system_prompt",
|
|
4073
4024
|
memoryStores: "memory_stores",
|
|
@@ -4190,8 +4141,8 @@ export namespace RunAgentAgentsRole$ {
|
|
|
4190
4141
|
}
|
|
4191
4142
|
|
|
4192
4143
|
/** @internal */
|
|
4193
|
-
export const
|
|
4194
|
-
|
|
4144
|
+
export const RunAgentAgentsMessage$inboundSchema: z.ZodType<
|
|
4145
|
+
RunAgentAgentsMessage,
|
|
4195
4146
|
z.ZodTypeDef,
|
|
4196
4147
|
unknown
|
|
4197
4148
|
> = z.object({
|
|
@@ -4202,7 +4153,7 @@ export const RunAgentMessage$inboundSchema: z.ZodType<
|
|
|
4202
4153
|
});
|
|
4203
4154
|
|
|
4204
4155
|
/** @internal */
|
|
4205
|
-
export type
|
|
4156
|
+
export type RunAgentAgentsMessage$Outbound = {
|
|
4206
4157
|
kind: string;
|
|
4207
4158
|
messageId: string;
|
|
4208
4159
|
role: string;
|
|
@@ -4210,10 +4161,10 @@ export type RunAgentMessage$Outbound = {
|
|
|
4210
4161
|
};
|
|
4211
4162
|
|
|
4212
4163
|
/** @internal */
|
|
4213
|
-
export const
|
|
4214
|
-
|
|
4164
|
+
export const RunAgentAgentsMessage$outboundSchema: z.ZodType<
|
|
4165
|
+
RunAgentAgentsMessage$Outbound,
|
|
4215
4166
|
z.ZodTypeDef,
|
|
4216
|
-
|
|
4167
|
+
RunAgentAgentsMessage
|
|
4217
4168
|
> = z.object({
|
|
4218
4169
|
kind: RunAgentAgentsKind$outboundSchema,
|
|
4219
4170
|
messageId: z.string(),
|
|
@@ -4225,28 +4176,30 @@ export const RunAgentMessage$outboundSchema: z.ZodType<
|
|
|
4225
4176
|
* @internal
|
|
4226
4177
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4227
4178
|
*/
|
|
4228
|
-
export namespace
|
|
4229
|
-
/** @deprecated use `
|
|
4230
|
-
export const inboundSchema =
|
|
4231
|
-
/** @deprecated use `
|
|
4232
|
-
export const outboundSchema =
|
|
4233
|
-
/** @deprecated use `
|
|
4234
|
-
export type Outbound =
|
|
4179
|
+
export namespace RunAgentAgentsMessage$ {
|
|
4180
|
+
/** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
|
|
4181
|
+
export const inboundSchema = RunAgentAgentsMessage$inboundSchema;
|
|
4182
|
+
/** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
|
|
4183
|
+
export const outboundSchema = RunAgentAgentsMessage$outboundSchema;
|
|
4184
|
+
/** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
|
|
4185
|
+
export type Outbound = RunAgentAgentsMessage$Outbound;
|
|
4235
4186
|
}
|
|
4236
4187
|
|
|
4237
|
-
export function
|
|
4238
|
-
|
|
4188
|
+
export function runAgentAgentsMessageToJSON(
|
|
4189
|
+
runAgentAgentsMessage: RunAgentAgentsMessage,
|
|
4239
4190
|
): string {
|
|
4240
|
-
return JSON.stringify(
|
|
4191
|
+
return JSON.stringify(
|
|
4192
|
+
RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage),
|
|
4193
|
+
);
|
|
4241
4194
|
}
|
|
4242
4195
|
|
|
4243
|
-
export function
|
|
4196
|
+
export function runAgentAgentsMessageFromJSON(
|
|
4244
4197
|
jsonString: string,
|
|
4245
|
-
): SafeParseResult<
|
|
4198
|
+
): SafeParseResult<RunAgentAgentsMessage, SDKValidationError> {
|
|
4246
4199
|
return safeParse(
|
|
4247
4200
|
jsonString,
|
|
4248
|
-
(x) =>
|
|
4249
|
-
`Failed to parse '
|
|
4201
|
+
(x) => RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4202
|
+
`Failed to parse 'RunAgentAgentsMessage' from JSON`,
|
|
4250
4203
|
);
|
|
4251
4204
|
}
|
|
4252
4205
|
|
|
@@ -4258,14 +4211,14 @@ export const RunAgentStatus$inboundSchema: z.ZodType<
|
|
|
4258
4211
|
> = z.object({
|
|
4259
4212
|
state: RunAgentState$inboundSchema,
|
|
4260
4213
|
timestamp: z.string().optional(),
|
|
4261
|
-
message: z.lazy(() =>
|
|
4214
|
+
message: z.lazy(() => RunAgentAgentsMessage$inboundSchema).optional(),
|
|
4262
4215
|
});
|
|
4263
4216
|
|
|
4264
4217
|
/** @internal */
|
|
4265
4218
|
export type RunAgentStatus$Outbound = {
|
|
4266
4219
|
state: string;
|
|
4267
4220
|
timestamp?: string | undefined;
|
|
4268
|
-
message?:
|
|
4221
|
+
message?: RunAgentAgentsMessage$Outbound | undefined;
|
|
4269
4222
|
};
|
|
4270
4223
|
|
|
4271
4224
|
/** @internal */
|
|
@@ -4276,7 +4229,7 @@ export const RunAgentStatus$outboundSchema: z.ZodType<
|
|
|
4276
4229
|
> = z.object({
|
|
4277
4230
|
state: RunAgentState$outboundSchema,
|
|
4278
4231
|
timestamp: z.string().optional(),
|
|
4279
|
-
message: z.lazy(() =>
|
|
4232
|
+
message: z.lazy(() => RunAgentAgentsMessage$outboundSchema).optional(),
|
|
4280
4233
|
});
|
|
4281
4234
|
|
|
4282
4235
|
/**
|