@orq-ai/node 3.12.19 → 3.12.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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/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 +16 -16
- package/package.json +1 -1
- 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/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +39 -44
- package/packages/orq-rc/src/models/components/index.ts +0 -13
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +56 -60
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +18 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +34 -30
- package/packages/orq-rc/src/models/operations/createtool.ts +42 -68
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +27 -36
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- 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 +203 -141
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- 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/listagents.ts +202 -141
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +22 -29
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +2292 -1130
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +2590 -1252
- 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 +2 -2
- 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 +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +17 -21
- package/packages/orq-rc/src/models/operations/updatetool.ts +43 -69
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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/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 +16 -16
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +0 -109
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +0 -293
- package/packages/orq-rc/src/models/components/currentdatetool.ts +0 -107
- package/packages/orq-rc/src/models/components/functiontool.ts +0 -195
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +0 -108
- package/packages/orq-rc/src/models/components/httptool.ts +0 -532
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +0 -111
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +0 -109
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +0 -111
- package/packages/orq-rc/src/models/components/webscrapertool.ts +0 -105
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +0 -111
|
@@ -7,59 +7,61 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Tool message
|
|
14
|
+
*/
|
|
15
|
+
export const RoleToolMessage = {
|
|
14
16
|
Tool: "tool",
|
|
15
17
|
} as const;
|
|
16
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Tool message
|
|
20
|
+
*/
|
|
21
|
+
export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
/**
|
|
24
|
+
* User message
|
|
25
|
+
*/
|
|
26
|
+
export const RoleUserMessage = {
|
|
19
27
|
User: "user",
|
|
20
28
|
} as const;
|
|
21
|
-
|
|
29
|
+
/**
|
|
30
|
+
* User message
|
|
31
|
+
*/
|
|
32
|
+
export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
|
|
22
33
|
|
|
23
34
|
/**
|
|
24
35
|
* Message role (user or tool for continuing executions)
|
|
25
36
|
*/
|
|
26
|
-
export type RunAgentRole =
|
|
37
|
+
export type RunAgentRole = RoleUserMessage | RoleToolMessage;
|
|
27
38
|
|
|
28
|
-
export const
|
|
39
|
+
export const RunAgentPublicMessagePartKind = {
|
|
29
40
|
ToolResult: "tool_result",
|
|
30
41
|
} as const;
|
|
31
|
-
export type
|
|
32
|
-
typeof
|
|
42
|
+
export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
43
|
+
typeof RunAgentPublicMessagePartKind
|
|
33
44
|
>;
|
|
34
45
|
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
/**
|
|
47
|
+
* 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
|
+
*/
|
|
49
|
+
export type ToolResultPart = {
|
|
50
|
+
kind: RunAgentPublicMessagePartKind;
|
|
37
51
|
toolCallId: string;
|
|
38
52
|
result?: any | undefined;
|
|
39
53
|
metadata?: { [k: string]: any } | undefined;
|
|
40
54
|
};
|
|
41
55
|
|
|
42
|
-
export const
|
|
43
|
-
ToolCall: "tool_call",
|
|
44
|
-
} as const;
|
|
45
|
-
export type RunAgentPartsAgentsKind = ClosedEnum<
|
|
46
|
-
typeof RunAgentPartsAgentsKind
|
|
47
|
-
>;
|
|
48
|
-
|
|
49
|
-
export type Parts4 = {
|
|
50
|
-
kind: RunAgentPartsAgentsKind;
|
|
51
|
-
toolName: string;
|
|
52
|
-
toolCallId: string;
|
|
53
|
-
arguments: { [k: string]: any };
|
|
54
|
-
metadata?: { [k: string]: any } | undefined;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const RunAgentPartsKind = {
|
|
56
|
+
export const PublicMessagePartKind = {
|
|
58
57
|
File: "file",
|
|
59
58
|
} as const;
|
|
60
|
-
export type
|
|
59
|
+
export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
|
|
61
60
|
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
63
|
+
*/
|
|
64
|
+
export type FileInURIFormat = {
|
|
63
65
|
/**
|
|
64
66
|
* URL for the File content
|
|
65
67
|
*/
|
|
@@ -74,7 +76,10 @@ export type File2 = {
|
|
|
74
76
|
name?: string | undefined;
|
|
75
77
|
};
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
81
|
+
*/
|
|
82
|
+
export type BinaryFormat = {
|
|
78
83
|
/**
|
|
79
84
|
* base64 encoded content of the file
|
|
80
85
|
*/
|
|
@@ -89,22 +94,14 @@ export type File1 = {
|
|
|
89
94
|
name?: string | undefined;
|
|
90
95
|
};
|
|
91
96
|
|
|
92
|
-
export type
|
|
93
|
-
|
|
94
|
-
export type Parts3 = {
|
|
95
|
-
kind: RunAgentPartsKind;
|
|
96
|
-
file: File1 | File2;
|
|
97
|
-
metadata?: { [k: string]: any } | undefined;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export const PartsKind = {
|
|
101
|
-
Data: "data",
|
|
102
|
-
} as const;
|
|
103
|
-
export type PartsKind = ClosedEnum<typeof PartsKind>;
|
|
97
|
+
export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
|
|
104
98
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
/**
|
|
100
|
+
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
101
|
+
*/
|
|
102
|
+
export type FilePart = {
|
|
103
|
+
kind: PublicMessagePartKind;
|
|
104
|
+
file: BinaryFormat | FileInURIFormat;
|
|
108
105
|
metadata?: { [k: string]: any } | undefined;
|
|
109
106
|
};
|
|
110
107
|
|
|
@@ -113,12 +110,18 @@ export const Kind = {
|
|
|
113
110
|
} as const;
|
|
114
111
|
export type Kind = ClosedEnum<typeof Kind>;
|
|
115
112
|
|
|
116
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Text content part. Use this to send text messages to the agent.
|
|
115
|
+
*/
|
|
116
|
+
export type TextPart = {
|
|
117
117
|
kind: Kind;
|
|
118
118
|
text: string;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
+
*/
|
|
124
|
+
export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
|
|
122
125
|
|
|
123
126
|
/**
|
|
124
127
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -131,15 +134,11 @@ export type Message = {
|
|
|
131
134
|
/**
|
|
132
135
|
* Message role (user or tool for continuing executions)
|
|
133
136
|
*/
|
|
134
|
-
role:
|
|
137
|
+
role: RoleUserMessage | RoleToolMessage;
|
|
135
138
|
/**
|
|
136
|
-
* A2A message parts
|
|
139
|
+
* A2A message parts (text, file, or tool_result only)
|
|
137
140
|
*/
|
|
138
|
-
parts: Array<
|
|
139
|
-
/**
|
|
140
|
-
* Optional message metadata
|
|
141
|
-
*/
|
|
142
|
-
metadata?: { [k: string]: any } | undefined;
|
|
141
|
+
parts: Array<TextPart | FilePart | ToolResultPart>;
|
|
143
142
|
};
|
|
144
143
|
|
|
145
144
|
/**
|
|
@@ -196,37 +195,47 @@ export type Memory = {
|
|
|
196
195
|
entityId: string;
|
|
197
196
|
};
|
|
198
197
|
|
|
199
|
-
export const
|
|
198
|
+
export const RunAgentKnowledgeBaseConfigurationType = {
|
|
200
199
|
Query: "query",
|
|
201
200
|
} as const;
|
|
202
|
-
export type
|
|
203
|
-
typeof
|
|
201
|
+
export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<
|
|
202
|
+
typeof RunAgentKnowledgeBaseConfigurationType
|
|
204
203
|
>;
|
|
205
204
|
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Defines the configuration settings for a static query.
|
|
207
|
+
*/
|
|
208
|
+
export type KnowledgeBaseStaticQuery = {
|
|
209
|
+
type: RunAgentKnowledgeBaseConfigurationType;
|
|
208
210
|
query: string;
|
|
209
211
|
};
|
|
210
212
|
|
|
211
|
-
export const
|
|
213
|
+
export const KnowledgeBaseConfigurationType = {
|
|
212
214
|
LastUserMessage: "last_user_message",
|
|
213
215
|
} as const;
|
|
214
|
-
export type
|
|
216
|
+
export type KnowledgeBaseConfigurationType = ClosedEnum<
|
|
217
|
+
typeof KnowledgeBaseConfigurationType
|
|
218
|
+
>;
|
|
215
219
|
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Defines the configuration settings for a last user message type retrieval.
|
|
222
|
+
*/
|
|
223
|
+
export type KnowledgeBaseLastUserMessage = {
|
|
224
|
+
type: KnowledgeBaseConfigurationType;
|
|
218
225
|
};
|
|
219
226
|
|
|
220
227
|
/**
|
|
221
228
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
222
229
|
*/
|
|
223
|
-
export type
|
|
230
|
+
export type KnowledgeBaseConfiguration =
|
|
231
|
+
| KnowledgeBaseStaticQuery
|
|
232
|
+
| KnowledgeBaseLastUserMessage;
|
|
224
233
|
|
|
225
234
|
export type KnowledgeBases = {
|
|
226
235
|
/**
|
|
227
236
|
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
228
237
|
*/
|
|
229
|
-
configuration:
|
|
238
|
+
configuration: KnowledgeBaseStaticQuery | KnowledgeBaseLastUserMessage;
|
|
230
239
|
};
|
|
231
240
|
|
|
232
241
|
export type TeamOfAgents = {
|
|
@@ -237,24 +246,91 @@ export type TeamOfAgents = {
|
|
|
237
246
|
role?: string | undefined;
|
|
238
247
|
};
|
|
239
248
|
|
|
249
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
|
|
250
|
+
{
|
|
251
|
+
Function: "function",
|
|
252
|
+
} as const;
|
|
253
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
|
|
254
|
+
ClosedEnum<
|
|
255
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
|
|
256
|
+
>;
|
|
257
|
+
|
|
258
|
+
export type RunAgentRequestToolFunction = {
|
|
259
|
+
name: string;
|
|
260
|
+
description?: string | undefined;
|
|
261
|
+
strict?: boolean | undefined;
|
|
262
|
+
parameters?: { [k: string]: any } | undefined;
|
|
263
|
+
};
|
|
264
|
+
|
|
240
265
|
/**
|
|
241
|
-
*
|
|
266
|
+
* Custom function tool with configurable parameters
|
|
242
267
|
*/
|
|
243
|
-
export
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
268
|
+
export type FunctionTool = {
|
|
269
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
|
|
270
|
+
id?: string | undefined;
|
|
271
|
+
key: string;
|
|
272
|
+
displayName?: string | undefined;
|
|
273
|
+
description?: string | undefined;
|
|
274
|
+
requiresApproval?: boolean | undefined;
|
|
275
|
+
function: RunAgentRequestToolFunction;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
|
|
279
|
+
{
|
|
280
|
+
Code: "code",
|
|
281
|
+
} as const;
|
|
282
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
|
|
283
|
+
ClosedEnum<
|
|
284
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
|
|
285
|
+
>;
|
|
286
|
+
|
|
287
|
+
export const Language = {
|
|
288
|
+
Python: "python",
|
|
248
289
|
} as const;
|
|
290
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
291
|
+
|
|
292
|
+
export type CodeTool = {
|
|
293
|
+
/**
|
|
294
|
+
* 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.
|
|
295
|
+
*/
|
|
296
|
+
parameters?: { [k: string]: any } | undefined;
|
|
297
|
+
language: Language;
|
|
298
|
+
/**
|
|
299
|
+
* The code to execute.
|
|
300
|
+
*/
|
|
301
|
+
code: string;
|
|
302
|
+
};
|
|
303
|
+
|
|
249
304
|
/**
|
|
250
|
-
*
|
|
305
|
+
* Executes code in a secure sandbox environment
|
|
251
306
|
*/
|
|
252
|
-
export type
|
|
307
|
+
export type CodeExecutionTool = {
|
|
308
|
+
/**
|
|
309
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
310
|
+
*/
|
|
311
|
+
key: string;
|
|
312
|
+
/**
|
|
313
|
+
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
314
|
+
*/
|
|
315
|
+
displayName: string;
|
|
316
|
+
/**
|
|
317
|
+
* 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.
|
|
318
|
+
*/
|
|
319
|
+
description: string;
|
|
320
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
|
|
321
|
+
codeTool: CodeTool;
|
|
322
|
+
id?: string | undefined;
|
|
323
|
+
requiresApproval?: boolean | undefined;
|
|
324
|
+
};
|
|
253
325
|
|
|
254
|
-
export const
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
326
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
|
|
327
|
+
{
|
|
328
|
+
Http: "http",
|
|
329
|
+
} as const;
|
|
330
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
|
|
331
|
+
ClosedEnum<
|
|
332
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
|
|
333
|
+
>;
|
|
258
334
|
|
|
259
335
|
/**
|
|
260
336
|
* The HTTP method to use.
|
|
@@ -295,15 +371,19 @@ export type Blueprint = {
|
|
|
295
371
|
/**
|
|
296
372
|
* The type of the argument.
|
|
297
373
|
*/
|
|
298
|
-
export const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
374
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType =
|
|
375
|
+
{
|
|
376
|
+
String: "string",
|
|
377
|
+
Number: "number",
|
|
378
|
+
Boolean: "boolean",
|
|
379
|
+
} as const;
|
|
303
380
|
/**
|
|
304
381
|
* The type of the argument.
|
|
305
382
|
*/
|
|
306
|
-
export type
|
|
383
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType =
|
|
384
|
+
ClosedEnum<
|
|
385
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType
|
|
386
|
+
>;
|
|
307
387
|
|
|
308
388
|
/**
|
|
309
389
|
* The default value of the argument.
|
|
@@ -314,7 +394,8 @@ export type Arguments = {
|
|
|
314
394
|
/**
|
|
315
395
|
* The type of the argument.
|
|
316
396
|
*/
|
|
317
|
-
type:
|
|
397
|
+
type:
|
|
398
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType;
|
|
318
399
|
/**
|
|
319
400
|
* A description of the argument.
|
|
320
401
|
*/
|
|
@@ -343,12 +424,8 @@ export type Http = {
|
|
|
343
424
|
/**
|
|
344
425
|
* Makes HTTP requests to external APIs
|
|
345
426
|
*/
|
|
346
|
-
export type
|
|
427
|
+
export type HTTPTool = {
|
|
347
428
|
id?: string | undefined;
|
|
348
|
-
/**
|
|
349
|
-
* 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.
|
|
350
|
-
*/
|
|
351
|
-
path: string;
|
|
352
429
|
/**
|
|
353
430
|
* Unique key of the tool as it will be displayed in the UI
|
|
354
431
|
*/
|
|
@@ -361,35 +438,186 @@ export type TwentyFour = {
|
|
|
361
438
|
* 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.
|
|
362
439
|
*/
|
|
363
440
|
description: string;
|
|
364
|
-
|
|
365
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
366
|
-
*/
|
|
367
|
-
status?: Status | undefined;
|
|
368
|
-
versionHash?: string | undefined;
|
|
369
|
-
type: ToolsType;
|
|
441
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
|
|
370
442
|
http: Http;
|
|
371
443
|
requiresApproval?: boolean | undefined;
|
|
372
444
|
};
|
|
373
445
|
|
|
446
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
|
|
447
|
+
{
|
|
448
|
+
CurrentDate: "current_date",
|
|
449
|
+
} as const;
|
|
450
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
|
|
451
|
+
ClosedEnum<
|
|
452
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
|
|
453
|
+
>;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Provides the current date and time
|
|
457
|
+
*/
|
|
458
|
+
export type CurrentDateTool = {
|
|
459
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
|
|
460
|
+
requiresApproval?: boolean | undefined;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
|
|
464
|
+
{
|
|
465
|
+
QueryKnowledgeBase: "query_knowledge_base",
|
|
466
|
+
} as const;
|
|
467
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
|
|
468
|
+
ClosedEnum<
|
|
469
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
|
|
470
|
+
>;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Queries knowledge bases for information
|
|
474
|
+
*/
|
|
475
|
+
export type QueryKnowledgeBaseTool = {
|
|
476
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
|
|
477
|
+
requiresApproval?: boolean | undefined;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
|
|
481
|
+
{
|
|
482
|
+
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
483
|
+
} as const;
|
|
484
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
|
|
485
|
+
ClosedEnum<
|
|
486
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
|
|
487
|
+
>;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Lists available knowledge bases
|
|
491
|
+
*/
|
|
492
|
+
export type RetrieveKnowledgeBasesTool = {
|
|
493
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
|
|
494
|
+
requiresApproval?: boolean | undefined;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
|
|
498
|
+
{
|
|
499
|
+
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
500
|
+
} as const;
|
|
501
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
|
|
502
|
+
ClosedEnum<
|
|
503
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
|
|
504
|
+
>;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Lists available memory stores
|
|
508
|
+
*/
|
|
509
|
+
export type RetrieveMemoryStoresTool = {
|
|
510
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
|
|
511
|
+
requiresApproval?: boolean | undefined;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType = {
|
|
515
|
+
WriteMemoryStore: "write_memory_store",
|
|
516
|
+
} as const;
|
|
517
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
|
|
518
|
+
ClosedEnum<
|
|
519
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
|
|
520
|
+
>;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Writes information to agent memory stores
|
|
524
|
+
*/
|
|
525
|
+
export type WriteMemoryStoreTool = {
|
|
526
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
|
|
527
|
+
requiresApproval?: boolean | undefined;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType = {
|
|
531
|
+
QueryMemoryStore: "query_memory_store",
|
|
532
|
+
} as const;
|
|
533
|
+
export type RunAgentRunAgentRequestToolAgentsRequestRequestBodyType =
|
|
534
|
+
ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Queries agent memory stores for context
|
|
538
|
+
*/
|
|
539
|
+
export type QueryMemoryStoreTool = {
|
|
540
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
|
|
541
|
+
requiresApproval?: boolean | undefined;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
export const RunAgentRunAgentRequestToolAgentsRequestType = {
|
|
545
|
+
RetrieveAgents: "retrieve_agents",
|
|
546
|
+
} as const;
|
|
547
|
+
export type RunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<
|
|
548
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestType
|
|
549
|
+
>;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Retrieves available agents in the system
|
|
553
|
+
*/
|
|
554
|
+
export type RetrieveAgentsTool = {
|
|
555
|
+
type: RunAgentRunAgentRequestToolAgentsRequestType;
|
|
556
|
+
requiresApproval?: boolean | undefined;
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
export const RunAgentRunAgentRequestToolAgentsType = {
|
|
560
|
+
CallSubAgent: "call_sub_agent",
|
|
561
|
+
} as const;
|
|
562
|
+
export type RunAgentRunAgentRequestToolAgentsType = ClosedEnum<
|
|
563
|
+
typeof RunAgentRunAgentRequestToolAgentsType
|
|
564
|
+
>;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Delegates tasks to specialized sub-agents
|
|
568
|
+
*/
|
|
569
|
+
export type CallSubAgentTool = {
|
|
570
|
+
type: RunAgentRunAgentRequestToolAgentsType;
|
|
571
|
+
requiresApproval?: boolean | undefined;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export const RunAgentRunAgentRequestToolType = {
|
|
575
|
+
WebScraper: "web_scraper",
|
|
576
|
+
} as const;
|
|
577
|
+
export type RunAgentRunAgentRequestToolType = ClosedEnum<
|
|
578
|
+
typeof RunAgentRunAgentRequestToolType
|
|
579
|
+
>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Scrapes and extracts content from web pages
|
|
583
|
+
*/
|
|
584
|
+
export type WebScraperTool = {
|
|
585
|
+
type: RunAgentRunAgentRequestToolType;
|
|
586
|
+
requiresApproval?: boolean | undefined;
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
export const RunAgentRequestToolType = {
|
|
590
|
+
GoogleSearch: "google_search",
|
|
591
|
+
} as const;
|
|
592
|
+
export type RunAgentRequestToolType = ClosedEnum<
|
|
593
|
+
typeof RunAgentRequestToolType
|
|
594
|
+
>;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Performs Google searches to retrieve web content
|
|
598
|
+
*/
|
|
599
|
+
export type GoogleSearchTool = {
|
|
600
|
+
type: RunAgentRequestToolType;
|
|
601
|
+
requiresApproval?: boolean | undefined;
|
|
602
|
+
};
|
|
603
|
+
|
|
374
604
|
/**
|
|
375
605
|
* Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
|
|
376
606
|
*/
|
|
377
|
-
export type
|
|
378
|
-
|
|
|
379
|
-
|
|
|
380
|
-
|
|
|
381
|
-
|
|
|
382
|
-
|
|
|
383
|
-
|
|
|
384
|
-
|
|
|
385
|
-
|
|
|
386
|
-
|
|
|
387
|
-
|
|
|
388
|
-
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
| (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
|
|
392
|
-
| (components.CurrentDateTool & { type: "current_date" });
|
|
607
|
+
export type RunAgentRequestTool =
|
|
608
|
+
| HTTPTool
|
|
609
|
+
| CodeExecutionTool
|
|
610
|
+
| FunctionTool
|
|
611
|
+
| GoogleSearchTool
|
|
612
|
+
| WebScraperTool
|
|
613
|
+
| CallSubAgentTool
|
|
614
|
+
| RetrieveAgentsTool
|
|
615
|
+
| QueryMemoryStoreTool
|
|
616
|
+
| WriteMemoryStoreTool
|
|
617
|
+
| RetrieveMemoryStoresTool
|
|
618
|
+
| RetrieveKnowledgeBasesTool
|
|
619
|
+
| QueryKnowledgeBaseTool
|
|
620
|
+
| CurrentDateTool;
|
|
393
621
|
|
|
394
622
|
/**
|
|
395
623
|
* 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.
|
|
@@ -405,33 +633,34 @@ export const ToolApprovalRequired = {
|
|
|
405
633
|
export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
406
634
|
|
|
407
635
|
export type Settings = {
|
|
636
|
+
/**
|
|
637
|
+
* Tools available to the agent
|
|
638
|
+
*/
|
|
408
639
|
tools: Array<
|
|
409
|
-
|
|
|
410
|
-
|
|
|
411
|
-
|
|
|
412
|
-
|
|
|
413
|
-
|
|
|
414
|
-
|
|
|
415
|
-
|
|
|
416
|
-
|
|
|
417
|
-
|
|
|
418
|
-
|
|
|
419
|
-
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
| (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
|
|
423
|
-
| (components.CurrentDateTool & { type: "current_date" })
|
|
640
|
+
| HTTPTool
|
|
641
|
+
| CodeExecutionTool
|
|
642
|
+
| FunctionTool
|
|
643
|
+
| GoogleSearchTool
|
|
644
|
+
| WebScraperTool
|
|
645
|
+
| CallSubAgentTool
|
|
646
|
+
| RetrieveAgentsTool
|
|
647
|
+
| QueryMemoryStoreTool
|
|
648
|
+
| WriteMemoryStoreTool
|
|
649
|
+
| RetrieveMemoryStoresTool
|
|
650
|
+
| RetrieveKnowledgeBasesTool
|
|
651
|
+
| QueryKnowledgeBaseTool
|
|
652
|
+
| CurrentDateTool
|
|
424
653
|
>;
|
|
425
654
|
/**
|
|
426
655
|
* 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.
|
|
427
656
|
*/
|
|
428
657
|
toolApprovalRequired?: ToolApprovalRequired | undefined;
|
|
429
658
|
/**
|
|
430
|
-
* Maximum iterations before the agent
|
|
659
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
431
660
|
*/
|
|
432
661
|
maxIterations?: number | undefined;
|
|
433
662
|
/**
|
|
434
|
-
* Maximum time (in seconds) for
|
|
663
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
435
664
|
*/
|
|
436
665
|
maxExecutionTime?: number | undefined;
|
|
437
666
|
};
|
|
@@ -493,6 +722,9 @@ export type RunAgentRequestBody = {
|
|
|
493
722
|
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
494
723
|
*/
|
|
495
724
|
systemPrompt?: string | undefined;
|
|
725
|
+
/**
|
|
726
|
+
* The list of keys of the memory stores that are accessible to the agent.
|
|
727
|
+
*/
|
|
496
728
|
memoryStores?: Array<string> | undefined;
|
|
497
729
|
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
498
730
|
/**
|
|
@@ -613,43 +845,45 @@ export type RunAgentResponseBody = {
|
|
|
613
845
|
};
|
|
614
846
|
|
|
615
847
|
/** @internal */
|
|
616
|
-
export const
|
|
617
|
-
|
|
618
|
-
);
|
|
848
|
+
export const RoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
849
|
+
typeof RoleToolMessage
|
|
850
|
+
> = z.nativeEnum(RoleToolMessage);
|
|
619
851
|
|
|
620
852
|
/** @internal */
|
|
621
|
-
export const
|
|
622
|
-
|
|
853
|
+
export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
854
|
+
typeof RoleToolMessage
|
|
855
|
+
> = RoleToolMessage$inboundSchema;
|
|
623
856
|
|
|
624
857
|
/**
|
|
625
858
|
* @internal
|
|
626
859
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
627
860
|
*/
|
|
628
|
-
export namespace
|
|
629
|
-
/** @deprecated use `
|
|
630
|
-
export const inboundSchema =
|
|
631
|
-
/** @deprecated use `
|
|
632
|
-
export const outboundSchema =
|
|
861
|
+
export namespace RoleToolMessage$ {
|
|
862
|
+
/** @deprecated use `RoleToolMessage$inboundSchema` instead. */
|
|
863
|
+
export const inboundSchema = RoleToolMessage$inboundSchema;
|
|
864
|
+
/** @deprecated use `RoleToolMessage$outboundSchema` instead. */
|
|
865
|
+
export const outboundSchema = RoleToolMessage$outboundSchema;
|
|
633
866
|
}
|
|
634
867
|
|
|
635
868
|
/** @internal */
|
|
636
|
-
export const
|
|
637
|
-
|
|
638
|
-
);
|
|
869
|
+
export const RoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
870
|
+
typeof RoleUserMessage
|
|
871
|
+
> = z.nativeEnum(RoleUserMessage);
|
|
639
872
|
|
|
640
873
|
/** @internal */
|
|
641
|
-
export const
|
|
642
|
-
|
|
874
|
+
export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
875
|
+
typeof RoleUserMessage
|
|
876
|
+
> = RoleUserMessage$inboundSchema;
|
|
643
877
|
|
|
644
878
|
/**
|
|
645
879
|
* @internal
|
|
646
880
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
647
881
|
*/
|
|
648
|
-
export namespace
|
|
649
|
-
/** @deprecated use `
|
|
650
|
-
export const inboundSchema =
|
|
651
|
-
/** @deprecated use `
|
|
652
|
-
export const outboundSchema =
|
|
882
|
+
export namespace RoleUserMessage$ {
|
|
883
|
+
/** @deprecated use `RoleUserMessage$inboundSchema` instead. */
|
|
884
|
+
export const inboundSchema = RoleUserMessage$inboundSchema;
|
|
885
|
+
/** @deprecated use `RoleUserMessage$outboundSchema` instead. */
|
|
886
|
+
export const outboundSchema = RoleUserMessage$outboundSchema;
|
|
653
887
|
}
|
|
654
888
|
|
|
655
889
|
/** @internal */
|
|
@@ -657,7 +891,7 @@ export const RunAgentRole$inboundSchema: z.ZodType<
|
|
|
657
891
|
RunAgentRole,
|
|
658
892
|
z.ZodTypeDef,
|
|
659
893
|
unknown
|
|
660
|
-
> = z.union([
|
|
894
|
+
> = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
|
|
661
895
|
|
|
662
896
|
/** @internal */
|
|
663
897
|
export type RunAgentRole$Outbound = string | string;
|
|
@@ -667,7 +901,7 @@ export const RunAgentRole$outboundSchema: z.ZodType<
|
|
|
667
901
|
RunAgentRole$Outbound,
|
|
668
902
|
z.ZodTypeDef,
|
|
669
903
|
RunAgentRole
|
|
670
|
-
> = z.union([
|
|
904
|
+
> = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
|
|
671
905
|
|
|
672
906
|
/**
|
|
673
907
|
* @internal
|
|
@@ -697,41 +931,44 @@ export function runAgentRoleFromJSON(
|
|
|
697
931
|
}
|
|
698
932
|
|
|
699
933
|
/** @internal */
|
|
700
|
-
export const
|
|
701
|
-
typeof
|
|
702
|
-
> = z.nativeEnum(
|
|
934
|
+
export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
935
|
+
typeof RunAgentPublicMessagePartKind
|
|
936
|
+
> = z.nativeEnum(RunAgentPublicMessagePartKind);
|
|
703
937
|
|
|
704
938
|
/** @internal */
|
|
705
|
-
export const
|
|
706
|
-
typeof
|
|
707
|
-
> =
|
|
939
|
+
export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
940
|
+
typeof RunAgentPublicMessagePartKind
|
|
941
|
+
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
708
942
|
|
|
709
943
|
/**
|
|
710
944
|
* @internal
|
|
711
945
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
712
946
|
*/
|
|
713
|
-
export namespace
|
|
714
|
-
/** @deprecated use `
|
|
715
|
-
export const inboundSchema =
|
|
716
|
-
/** @deprecated use `
|
|
717
|
-
export const outboundSchema =
|
|
947
|
+
export namespace RunAgentPublicMessagePartKind$ {
|
|
948
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
949
|
+
export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
|
|
950
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
951
|
+
export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
|
|
718
952
|
}
|
|
719
953
|
|
|
720
954
|
/** @internal */
|
|
721
|
-
export const
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
955
|
+
export const ToolResultPart$inboundSchema: z.ZodType<
|
|
956
|
+
ToolResultPart,
|
|
957
|
+
z.ZodTypeDef,
|
|
958
|
+
unknown
|
|
959
|
+
> = z.object({
|
|
960
|
+
kind: RunAgentPublicMessagePartKind$inboundSchema,
|
|
961
|
+
tool_call_id: z.string(),
|
|
962
|
+
result: z.any().optional(),
|
|
963
|
+
metadata: z.record(z.any()).optional(),
|
|
964
|
+
}).transform((v) => {
|
|
965
|
+
return remap$(v, {
|
|
966
|
+
"tool_call_id": "toolCallId",
|
|
731
967
|
});
|
|
968
|
+
});
|
|
732
969
|
|
|
733
970
|
/** @internal */
|
|
734
|
-
export type
|
|
971
|
+
export type ToolResultPart$Outbound = {
|
|
735
972
|
kind: string;
|
|
736
973
|
tool_call_id: string;
|
|
737
974
|
result?: any | undefined;
|
|
@@ -739,104 +976,17 @@ export type Five$Outbound = {
|
|
|
739
976
|
};
|
|
740
977
|
|
|
741
978
|
/** @internal */
|
|
742
|
-
export const
|
|
743
|
-
|
|
744
|
-
kind: RunAgentPartsAgentsRequestKind$outboundSchema,
|
|
745
|
-
toolCallId: z.string(),
|
|
746
|
-
result: z.any().optional(),
|
|
747
|
-
metadata: z.record(z.any()).optional(),
|
|
748
|
-
}).transform((v) => {
|
|
749
|
-
return remap$(v, {
|
|
750
|
-
toolCallId: "tool_call_id",
|
|
751
|
-
});
|
|
752
|
-
});
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* @internal
|
|
756
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
757
|
-
*/
|
|
758
|
-
export namespace Five$ {
|
|
759
|
-
/** @deprecated use `Five$inboundSchema` instead. */
|
|
760
|
-
export const inboundSchema = Five$inboundSchema;
|
|
761
|
-
/** @deprecated use `Five$outboundSchema` instead. */
|
|
762
|
-
export const outboundSchema = Five$outboundSchema;
|
|
763
|
-
/** @deprecated use `Five$Outbound` instead. */
|
|
764
|
-
export type Outbound = Five$Outbound;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export function fiveToJSON(five: Five): string {
|
|
768
|
-
return JSON.stringify(Five$outboundSchema.parse(five));
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
export function fiveFromJSON(
|
|
772
|
-
jsonString: string,
|
|
773
|
-
): SafeParseResult<Five, SDKValidationError> {
|
|
774
|
-
return safeParse(
|
|
775
|
-
jsonString,
|
|
776
|
-
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
777
|
-
`Failed to parse 'Five' from JSON`,
|
|
778
|
-
);
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
/** @internal */
|
|
782
|
-
export const RunAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
783
|
-
typeof RunAgentPartsAgentsKind
|
|
784
|
-
> = z.nativeEnum(RunAgentPartsAgentsKind);
|
|
785
|
-
|
|
786
|
-
/** @internal */
|
|
787
|
-
export const RunAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
788
|
-
typeof RunAgentPartsAgentsKind
|
|
789
|
-
> = RunAgentPartsAgentsKind$inboundSchema;
|
|
790
|
-
|
|
791
|
-
/**
|
|
792
|
-
* @internal
|
|
793
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
794
|
-
*/
|
|
795
|
-
export namespace RunAgentPartsAgentsKind$ {
|
|
796
|
-
/** @deprecated use `RunAgentPartsAgentsKind$inboundSchema` instead. */
|
|
797
|
-
export const inboundSchema = RunAgentPartsAgentsKind$inboundSchema;
|
|
798
|
-
/** @deprecated use `RunAgentPartsAgentsKind$outboundSchema` instead. */
|
|
799
|
-
export const outboundSchema = RunAgentPartsAgentsKind$outboundSchema;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
/** @internal */
|
|
803
|
-
export const Parts4$inboundSchema: z.ZodType<Parts4, z.ZodTypeDef, unknown> = z
|
|
804
|
-
.object({
|
|
805
|
-
kind: RunAgentPartsAgentsKind$inboundSchema,
|
|
806
|
-
tool_name: z.string(),
|
|
807
|
-
tool_call_id: z.string(),
|
|
808
|
-
arguments: z.record(z.any()),
|
|
809
|
-
metadata: z.record(z.any()).optional(),
|
|
810
|
-
}).transform((v) => {
|
|
811
|
-
return remap$(v, {
|
|
812
|
-
"tool_name": "toolName",
|
|
813
|
-
"tool_call_id": "toolCallId",
|
|
814
|
-
});
|
|
815
|
-
});
|
|
816
|
-
|
|
817
|
-
/** @internal */
|
|
818
|
-
export type Parts4$Outbound = {
|
|
819
|
-
kind: string;
|
|
820
|
-
tool_name: string;
|
|
821
|
-
tool_call_id: string;
|
|
822
|
-
arguments: { [k: string]: any };
|
|
823
|
-
metadata?: { [k: string]: any } | undefined;
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
/** @internal */
|
|
827
|
-
export const Parts4$outboundSchema: z.ZodType<
|
|
828
|
-
Parts4$Outbound,
|
|
979
|
+
export const ToolResultPart$outboundSchema: z.ZodType<
|
|
980
|
+
ToolResultPart$Outbound,
|
|
829
981
|
z.ZodTypeDef,
|
|
830
|
-
|
|
982
|
+
ToolResultPart
|
|
831
983
|
> = z.object({
|
|
832
|
-
kind:
|
|
833
|
-
toolName: z.string(),
|
|
984
|
+
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
834
985
|
toolCallId: z.string(),
|
|
835
|
-
|
|
986
|
+
result: z.any().optional(),
|
|
836
987
|
metadata: z.record(z.any()).optional(),
|
|
837
988
|
}).transform((v) => {
|
|
838
989
|
return remap$(v, {
|
|
839
|
-
toolName: "tool_name",
|
|
840
990
|
toolCallId: "tool_call_id",
|
|
841
991
|
});
|
|
842
992
|
});
|
|
@@ -845,70 +995,73 @@ export const Parts4$outboundSchema: z.ZodType<
|
|
|
845
995
|
* @internal
|
|
846
996
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
847
997
|
*/
|
|
848
|
-
export namespace
|
|
849
|
-
/** @deprecated use `
|
|
850
|
-
export const inboundSchema =
|
|
851
|
-
/** @deprecated use `
|
|
852
|
-
export const outboundSchema =
|
|
853
|
-
/** @deprecated use `
|
|
854
|
-
export type Outbound =
|
|
998
|
+
export namespace ToolResultPart$ {
|
|
999
|
+
/** @deprecated use `ToolResultPart$inboundSchema` instead. */
|
|
1000
|
+
export const inboundSchema = ToolResultPart$inboundSchema;
|
|
1001
|
+
/** @deprecated use `ToolResultPart$outboundSchema` instead. */
|
|
1002
|
+
export const outboundSchema = ToolResultPart$outboundSchema;
|
|
1003
|
+
/** @deprecated use `ToolResultPart$Outbound` instead. */
|
|
1004
|
+
export type Outbound = ToolResultPart$Outbound;
|
|
855
1005
|
}
|
|
856
1006
|
|
|
857
|
-
export function
|
|
858
|
-
return JSON.stringify(
|
|
1007
|
+
export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
|
|
1008
|
+
return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
|
|
859
1009
|
}
|
|
860
1010
|
|
|
861
|
-
export function
|
|
1011
|
+
export function toolResultPartFromJSON(
|
|
862
1012
|
jsonString: string,
|
|
863
|
-
): SafeParseResult<
|
|
1013
|
+
): SafeParseResult<ToolResultPart, SDKValidationError> {
|
|
864
1014
|
return safeParse(
|
|
865
1015
|
jsonString,
|
|
866
|
-
(x) =>
|
|
867
|
-
`Failed to parse '
|
|
1016
|
+
(x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
1017
|
+
`Failed to parse 'ToolResultPart' from JSON`,
|
|
868
1018
|
);
|
|
869
1019
|
}
|
|
870
1020
|
|
|
871
1021
|
/** @internal */
|
|
872
|
-
export const
|
|
873
|
-
typeof
|
|
874
|
-
> = z.nativeEnum(
|
|
1022
|
+
export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
1023
|
+
typeof PublicMessagePartKind
|
|
1024
|
+
> = z.nativeEnum(PublicMessagePartKind);
|
|
875
1025
|
|
|
876
1026
|
/** @internal */
|
|
877
|
-
export const
|
|
878
|
-
typeof
|
|
879
|
-
> =
|
|
1027
|
+
export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
1028
|
+
typeof PublicMessagePartKind
|
|
1029
|
+
> = PublicMessagePartKind$inboundSchema;
|
|
880
1030
|
|
|
881
1031
|
/**
|
|
882
1032
|
* @internal
|
|
883
1033
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
884
1034
|
*/
|
|
885
|
-
export namespace
|
|
886
|
-
/** @deprecated use `
|
|
887
|
-
export const inboundSchema =
|
|
888
|
-
/** @deprecated use `
|
|
889
|
-
export const outboundSchema =
|
|
1035
|
+
export namespace PublicMessagePartKind$ {
|
|
1036
|
+
/** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
|
|
1037
|
+
export const inboundSchema = PublicMessagePartKind$inboundSchema;
|
|
1038
|
+
/** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
|
|
1039
|
+
export const outboundSchema = PublicMessagePartKind$outboundSchema;
|
|
890
1040
|
}
|
|
891
1041
|
|
|
892
1042
|
/** @internal */
|
|
893
|
-
export const
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1043
|
+
export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
1044
|
+
FileInURIFormat,
|
|
1045
|
+
z.ZodTypeDef,
|
|
1046
|
+
unknown
|
|
1047
|
+
> = z.object({
|
|
1048
|
+
uri: z.string(),
|
|
1049
|
+
mimeType: z.string().optional(),
|
|
1050
|
+
name: z.string().optional(),
|
|
1051
|
+
});
|
|
899
1052
|
|
|
900
1053
|
/** @internal */
|
|
901
|
-
export type
|
|
1054
|
+
export type FileInURIFormat$Outbound = {
|
|
902
1055
|
uri: string;
|
|
903
1056
|
mimeType?: string | undefined;
|
|
904
1057
|
name?: string | undefined;
|
|
905
1058
|
};
|
|
906
1059
|
|
|
907
1060
|
/** @internal */
|
|
908
|
-
export const
|
|
909
|
-
|
|
1061
|
+
export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
1062
|
+
FileInURIFormat$Outbound,
|
|
910
1063
|
z.ZodTypeDef,
|
|
911
|
-
|
|
1064
|
+
FileInURIFormat
|
|
912
1065
|
> = z.object({
|
|
913
1066
|
uri: z.string(),
|
|
914
1067
|
mimeType: z.string().optional(),
|
|
@@ -919,49 +1072,54 @@ export const File2$outboundSchema: z.ZodType<
|
|
|
919
1072
|
* @internal
|
|
920
1073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
921
1074
|
*/
|
|
922
|
-
export namespace
|
|
923
|
-
/** @deprecated use `
|
|
924
|
-
export const inboundSchema =
|
|
925
|
-
/** @deprecated use `
|
|
926
|
-
export const outboundSchema =
|
|
927
|
-
/** @deprecated use `
|
|
928
|
-
export type Outbound =
|
|
1075
|
+
export namespace FileInURIFormat$ {
|
|
1076
|
+
/** @deprecated use `FileInURIFormat$inboundSchema` instead. */
|
|
1077
|
+
export const inboundSchema = FileInURIFormat$inboundSchema;
|
|
1078
|
+
/** @deprecated use `FileInURIFormat$outboundSchema` instead. */
|
|
1079
|
+
export const outboundSchema = FileInURIFormat$outboundSchema;
|
|
1080
|
+
/** @deprecated use `FileInURIFormat$Outbound` instead. */
|
|
1081
|
+
export type Outbound = FileInURIFormat$Outbound;
|
|
929
1082
|
}
|
|
930
1083
|
|
|
931
|
-
export function
|
|
932
|
-
|
|
1084
|
+
export function fileInURIFormatToJSON(
|
|
1085
|
+
fileInURIFormat: FileInURIFormat,
|
|
1086
|
+
): string {
|
|
1087
|
+
return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
933
1088
|
}
|
|
934
1089
|
|
|
935
|
-
export function
|
|
1090
|
+
export function fileInURIFormatFromJSON(
|
|
936
1091
|
jsonString: string,
|
|
937
|
-
): SafeParseResult<
|
|
1092
|
+
): SafeParseResult<FileInURIFormat, SDKValidationError> {
|
|
938
1093
|
return safeParse(
|
|
939
1094
|
jsonString,
|
|
940
|
-
(x) =>
|
|
941
|
-
`Failed to parse '
|
|
1095
|
+
(x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1096
|
+
`Failed to parse 'FileInURIFormat' from JSON`,
|
|
942
1097
|
);
|
|
943
1098
|
}
|
|
944
1099
|
|
|
945
1100
|
/** @internal */
|
|
946
|
-
export const
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1101
|
+
export const BinaryFormat$inboundSchema: z.ZodType<
|
|
1102
|
+
BinaryFormat,
|
|
1103
|
+
z.ZodTypeDef,
|
|
1104
|
+
unknown
|
|
1105
|
+
> = z.object({
|
|
1106
|
+
bytes: z.string(),
|
|
1107
|
+
mimeType: z.string().optional(),
|
|
1108
|
+
name: z.string().optional(),
|
|
1109
|
+
});
|
|
952
1110
|
|
|
953
1111
|
/** @internal */
|
|
954
|
-
export type
|
|
1112
|
+
export type BinaryFormat$Outbound = {
|
|
955
1113
|
bytes: string;
|
|
956
1114
|
mimeType?: string | undefined;
|
|
957
1115
|
name?: string | undefined;
|
|
958
1116
|
};
|
|
959
1117
|
|
|
960
1118
|
/** @internal */
|
|
961
|
-
export const
|
|
962
|
-
|
|
1119
|
+
export const BinaryFormat$outboundSchema: z.ZodType<
|
|
1120
|
+
BinaryFormat$Outbound,
|
|
963
1121
|
z.ZodTypeDef,
|
|
964
|
-
|
|
1122
|
+
BinaryFormat
|
|
965
1123
|
> = z.object({
|
|
966
1124
|
bytes: z.string(),
|
|
967
1125
|
mimeType: z.string().optional(),
|
|
@@ -972,107 +1130,116 @@ export const File1$outboundSchema: z.ZodType<
|
|
|
972
1130
|
* @internal
|
|
973
1131
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
1132
|
*/
|
|
975
|
-
export namespace
|
|
976
|
-
/** @deprecated use `
|
|
977
|
-
export const inboundSchema =
|
|
978
|
-
/** @deprecated use `
|
|
979
|
-
export const outboundSchema =
|
|
980
|
-
/** @deprecated use `
|
|
981
|
-
export type Outbound =
|
|
1133
|
+
export namespace BinaryFormat$ {
|
|
1134
|
+
/** @deprecated use `BinaryFormat$inboundSchema` instead. */
|
|
1135
|
+
export const inboundSchema = BinaryFormat$inboundSchema;
|
|
1136
|
+
/** @deprecated use `BinaryFormat$outboundSchema` instead. */
|
|
1137
|
+
export const outboundSchema = BinaryFormat$outboundSchema;
|
|
1138
|
+
/** @deprecated use `BinaryFormat$Outbound` instead. */
|
|
1139
|
+
export type Outbound = BinaryFormat$Outbound;
|
|
982
1140
|
}
|
|
983
1141
|
|
|
984
|
-
export function
|
|
985
|
-
return JSON.stringify(
|
|
1142
|
+
export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
|
|
1143
|
+
return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
986
1144
|
}
|
|
987
1145
|
|
|
988
|
-
export function
|
|
1146
|
+
export function binaryFormatFromJSON(
|
|
989
1147
|
jsonString: string,
|
|
990
|
-
): SafeParseResult<
|
|
1148
|
+
): SafeParseResult<BinaryFormat, SDKValidationError> {
|
|
991
1149
|
return safeParse(
|
|
992
1150
|
jsonString,
|
|
993
|
-
(x) =>
|
|
994
|
-
`Failed to parse '
|
|
1151
|
+
(x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1152
|
+
`Failed to parse 'BinaryFormat' from JSON`,
|
|
995
1153
|
);
|
|
996
1154
|
}
|
|
997
1155
|
|
|
998
1156
|
/** @internal */
|
|
999
|
-
export const
|
|
1000
|
-
|
|
1157
|
+
export const PublicMessagePartFile$inboundSchema: z.ZodType<
|
|
1158
|
+
PublicMessagePartFile,
|
|
1001
1159
|
z.ZodTypeDef,
|
|
1002
1160
|
unknown
|
|
1003
1161
|
> = z.union([
|
|
1004
|
-
z.lazy(() =>
|
|
1005
|
-
z.lazy(() =>
|
|
1162
|
+
z.lazy(() => BinaryFormat$inboundSchema),
|
|
1163
|
+
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
1006
1164
|
]);
|
|
1007
1165
|
|
|
1008
1166
|
/** @internal */
|
|
1009
|
-
export type
|
|
1167
|
+
export type PublicMessagePartFile$Outbound =
|
|
1168
|
+
| BinaryFormat$Outbound
|
|
1169
|
+
| FileInURIFormat$Outbound;
|
|
1010
1170
|
|
|
1011
1171
|
/** @internal */
|
|
1012
|
-
export const
|
|
1013
|
-
|
|
1172
|
+
export const PublicMessagePartFile$outboundSchema: z.ZodType<
|
|
1173
|
+
PublicMessagePartFile$Outbound,
|
|
1014
1174
|
z.ZodTypeDef,
|
|
1015
|
-
|
|
1175
|
+
PublicMessagePartFile
|
|
1016
1176
|
> = z.union([
|
|
1017
|
-
z.lazy(() =>
|
|
1018
|
-
z.lazy(() =>
|
|
1177
|
+
z.lazy(() => BinaryFormat$outboundSchema),
|
|
1178
|
+
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
1019
1179
|
]);
|
|
1020
1180
|
|
|
1021
1181
|
/**
|
|
1022
1182
|
* @internal
|
|
1023
1183
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1024
1184
|
*/
|
|
1025
|
-
export namespace
|
|
1026
|
-
/** @deprecated use `
|
|
1027
|
-
export const inboundSchema =
|
|
1028
|
-
/** @deprecated use `
|
|
1029
|
-
export const outboundSchema =
|
|
1030
|
-
/** @deprecated use `
|
|
1031
|
-
export type Outbound =
|
|
1185
|
+
export namespace PublicMessagePartFile$ {
|
|
1186
|
+
/** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
|
|
1187
|
+
export const inboundSchema = PublicMessagePartFile$inboundSchema;
|
|
1188
|
+
/** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
|
|
1189
|
+
export const outboundSchema = PublicMessagePartFile$outboundSchema;
|
|
1190
|
+
/** @deprecated use `PublicMessagePartFile$Outbound` instead. */
|
|
1191
|
+
export type Outbound = PublicMessagePartFile$Outbound;
|
|
1032
1192
|
}
|
|
1033
1193
|
|
|
1034
|
-
export function
|
|
1035
|
-
|
|
1194
|
+
export function publicMessagePartFileToJSON(
|
|
1195
|
+
publicMessagePartFile: PublicMessagePartFile,
|
|
1196
|
+
): string {
|
|
1197
|
+
return JSON.stringify(
|
|
1198
|
+
PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
|
|
1199
|
+
);
|
|
1036
1200
|
}
|
|
1037
1201
|
|
|
1038
|
-
export function
|
|
1202
|
+
export function publicMessagePartFileFromJSON(
|
|
1039
1203
|
jsonString: string,
|
|
1040
|
-
): SafeParseResult<
|
|
1204
|
+
): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
|
|
1041
1205
|
return safeParse(
|
|
1042
1206
|
jsonString,
|
|
1043
|
-
(x) =>
|
|
1044
|
-
`Failed to parse '
|
|
1207
|
+
(x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
1208
|
+
`Failed to parse 'PublicMessagePartFile' from JSON`,
|
|
1045
1209
|
);
|
|
1046
1210
|
}
|
|
1047
1211
|
|
|
1048
1212
|
/** @internal */
|
|
1049
|
-
export const
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1213
|
+
export const FilePart$inboundSchema: z.ZodType<
|
|
1214
|
+
FilePart,
|
|
1215
|
+
z.ZodTypeDef,
|
|
1216
|
+
unknown
|
|
1217
|
+
> = z.object({
|
|
1218
|
+
kind: PublicMessagePartKind$inboundSchema,
|
|
1219
|
+
file: z.union([
|
|
1220
|
+
z.lazy(() => BinaryFormat$inboundSchema),
|
|
1221
|
+
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
1222
|
+
]),
|
|
1223
|
+
metadata: z.record(z.any()).optional(),
|
|
1224
|
+
});
|
|
1058
1225
|
|
|
1059
1226
|
/** @internal */
|
|
1060
|
-
export type
|
|
1227
|
+
export type FilePart$Outbound = {
|
|
1061
1228
|
kind: string;
|
|
1062
|
-
file:
|
|
1229
|
+
file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
1063
1230
|
metadata?: { [k: string]: any } | undefined;
|
|
1064
1231
|
};
|
|
1065
1232
|
|
|
1066
1233
|
/** @internal */
|
|
1067
|
-
export const
|
|
1068
|
-
|
|
1234
|
+
export const FilePart$outboundSchema: z.ZodType<
|
|
1235
|
+
FilePart$Outbound,
|
|
1069
1236
|
z.ZodTypeDef,
|
|
1070
|
-
|
|
1237
|
+
FilePart
|
|
1071
1238
|
> = z.object({
|
|
1072
|
-
kind:
|
|
1239
|
+
kind: PublicMessagePartKind$outboundSchema,
|
|
1073
1240
|
file: z.union([
|
|
1074
|
-
z.lazy(() =>
|
|
1075
|
-
z.lazy(() =>
|
|
1241
|
+
z.lazy(() => BinaryFormat$outboundSchema),
|
|
1242
|
+
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
1076
1243
|
]),
|
|
1077
1244
|
metadata: z.record(z.any()).optional(),
|
|
1078
1245
|
});
|
|
@@ -1081,98 +1248,26 @@ export const Parts3$outboundSchema: z.ZodType<
|
|
|
1081
1248
|
* @internal
|
|
1082
1249
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1083
1250
|
*/
|
|
1084
|
-
export namespace
|
|
1085
|
-
/** @deprecated use `
|
|
1086
|
-
export const inboundSchema =
|
|
1087
|
-
/** @deprecated use `
|
|
1088
|
-
export const outboundSchema =
|
|
1089
|
-
/** @deprecated use `
|
|
1090
|
-
export type Outbound =
|
|
1251
|
+
export namespace FilePart$ {
|
|
1252
|
+
/** @deprecated use `FilePart$inboundSchema` instead. */
|
|
1253
|
+
export const inboundSchema = FilePart$inboundSchema;
|
|
1254
|
+
/** @deprecated use `FilePart$outboundSchema` instead. */
|
|
1255
|
+
export const outboundSchema = FilePart$outboundSchema;
|
|
1256
|
+
/** @deprecated use `FilePart$Outbound` instead. */
|
|
1257
|
+
export type Outbound = FilePart$Outbound;
|
|
1091
1258
|
}
|
|
1092
1259
|
|
|
1093
|
-
export function
|
|
1094
|
-
return JSON.stringify(
|
|
1260
|
+
export function filePartToJSON(filePart: FilePart): string {
|
|
1261
|
+
return JSON.stringify(FilePart$outboundSchema.parse(filePart));
|
|
1095
1262
|
}
|
|
1096
1263
|
|
|
1097
|
-
export function
|
|
1264
|
+
export function filePartFromJSON(
|
|
1098
1265
|
jsonString: string,
|
|
1099
|
-
): SafeParseResult<
|
|
1266
|
+
): SafeParseResult<FilePart, SDKValidationError> {
|
|
1100
1267
|
return safeParse(
|
|
1101
1268
|
jsonString,
|
|
1102
|
-
(x) =>
|
|
1103
|
-
`Failed to parse '
|
|
1104
|
-
);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
/** @internal */
|
|
1108
|
-
export const PartsKind$inboundSchema: z.ZodNativeEnum<typeof PartsKind> = z
|
|
1109
|
-
.nativeEnum(PartsKind);
|
|
1110
|
-
|
|
1111
|
-
/** @internal */
|
|
1112
|
-
export const PartsKind$outboundSchema: z.ZodNativeEnum<typeof PartsKind> =
|
|
1113
|
-
PartsKind$inboundSchema;
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* @internal
|
|
1117
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1118
|
-
*/
|
|
1119
|
-
export namespace PartsKind$ {
|
|
1120
|
-
/** @deprecated use `PartsKind$inboundSchema` instead. */
|
|
1121
|
-
export const inboundSchema = PartsKind$inboundSchema;
|
|
1122
|
-
/** @deprecated use `PartsKind$outboundSchema` instead. */
|
|
1123
|
-
export const outboundSchema = PartsKind$outboundSchema;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/** @internal */
|
|
1127
|
-
export const Parts2$inboundSchema: z.ZodType<Parts2, z.ZodTypeDef, unknown> = z
|
|
1128
|
-
.object({
|
|
1129
|
-
kind: PartsKind$inboundSchema,
|
|
1130
|
-
data: z.record(z.any()),
|
|
1131
|
-
metadata: z.record(z.any()).optional(),
|
|
1132
|
-
});
|
|
1133
|
-
|
|
1134
|
-
/** @internal */
|
|
1135
|
-
export type Parts2$Outbound = {
|
|
1136
|
-
kind: string;
|
|
1137
|
-
data: { [k: string]: any };
|
|
1138
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1139
|
-
};
|
|
1140
|
-
|
|
1141
|
-
/** @internal */
|
|
1142
|
-
export const Parts2$outboundSchema: z.ZodType<
|
|
1143
|
-
Parts2$Outbound,
|
|
1144
|
-
z.ZodTypeDef,
|
|
1145
|
-
Parts2
|
|
1146
|
-
> = z.object({
|
|
1147
|
-
kind: PartsKind$outboundSchema,
|
|
1148
|
-
data: z.record(z.any()),
|
|
1149
|
-
metadata: z.record(z.any()).optional(),
|
|
1150
|
-
});
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* @internal
|
|
1154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1155
|
-
*/
|
|
1156
|
-
export namespace Parts2$ {
|
|
1157
|
-
/** @deprecated use `Parts2$inboundSchema` instead. */
|
|
1158
|
-
export const inboundSchema = Parts2$inboundSchema;
|
|
1159
|
-
/** @deprecated use `Parts2$outboundSchema` instead. */
|
|
1160
|
-
export const outboundSchema = Parts2$outboundSchema;
|
|
1161
|
-
/** @deprecated use `Parts2$Outbound` instead. */
|
|
1162
|
-
export type Outbound = Parts2$Outbound;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
export function parts2ToJSON(parts2: Parts2): string {
|
|
1166
|
-
return JSON.stringify(Parts2$outboundSchema.parse(parts2));
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
export function parts2FromJSON(
|
|
1170
|
-
jsonString: string,
|
|
1171
|
-
): SafeParseResult<Parts2, SDKValidationError> {
|
|
1172
|
-
return safeParse(
|
|
1173
|
-
jsonString,
|
|
1174
|
-
(x) => Parts2$inboundSchema.parse(JSON.parse(x)),
|
|
1175
|
-
`Failed to parse 'Parts2' from JSON`,
|
|
1269
|
+
(x) => FilePart$inboundSchema.parse(JSON.parse(x)),
|
|
1270
|
+
`Failed to parse 'FilePart' from JSON`,
|
|
1176
1271
|
);
|
|
1177
1272
|
}
|
|
1178
1273
|
|
|
@@ -1197,23 +1292,26 @@ export namespace Kind$ {
|
|
|
1197
1292
|
}
|
|
1198
1293
|
|
|
1199
1294
|
/** @internal */
|
|
1200
|
-
export const
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1295
|
+
export const TextPart$inboundSchema: z.ZodType<
|
|
1296
|
+
TextPart,
|
|
1297
|
+
z.ZodTypeDef,
|
|
1298
|
+
unknown
|
|
1299
|
+
> = z.object({
|
|
1300
|
+
kind: Kind$inboundSchema,
|
|
1301
|
+
text: z.string(),
|
|
1302
|
+
});
|
|
1205
1303
|
|
|
1206
1304
|
/** @internal */
|
|
1207
|
-
export type
|
|
1305
|
+
export type TextPart$Outbound = {
|
|
1208
1306
|
kind: string;
|
|
1209
1307
|
text: string;
|
|
1210
1308
|
};
|
|
1211
1309
|
|
|
1212
1310
|
/** @internal */
|
|
1213
|
-
export const
|
|
1214
|
-
|
|
1311
|
+
export const TextPart$outboundSchema: z.ZodType<
|
|
1312
|
+
TextPart$Outbound,
|
|
1215
1313
|
z.ZodTypeDef,
|
|
1216
|
-
|
|
1314
|
+
TextPart
|
|
1217
1315
|
> = z.object({
|
|
1218
1316
|
kind: Kind$outboundSchema,
|
|
1219
1317
|
text: z.string(),
|
|
@@ -1223,84 +1321,85 @@ export const Parts1$outboundSchema: z.ZodType<
|
|
|
1223
1321
|
* @internal
|
|
1224
1322
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1225
1323
|
*/
|
|
1226
|
-
export namespace
|
|
1227
|
-
/** @deprecated use `
|
|
1228
|
-
export const inboundSchema =
|
|
1229
|
-
/** @deprecated use `
|
|
1230
|
-
export const outboundSchema =
|
|
1231
|
-
/** @deprecated use `
|
|
1232
|
-
export type Outbound =
|
|
1324
|
+
export namespace TextPart$ {
|
|
1325
|
+
/** @deprecated use `TextPart$inboundSchema` instead. */
|
|
1326
|
+
export const inboundSchema = TextPart$inboundSchema;
|
|
1327
|
+
/** @deprecated use `TextPart$outboundSchema` instead. */
|
|
1328
|
+
export const outboundSchema = TextPart$outboundSchema;
|
|
1329
|
+
/** @deprecated use `TextPart$Outbound` instead. */
|
|
1330
|
+
export type Outbound = TextPart$Outbound;
|
|
1233
1331
|
}
|
|
1234
1332
|
|
|
1235
|
-
export function
|
|
1236
|
-
return JSON.stringify(
|
|
1333
|
+
export function textPartToJSON(textPart: TextPart): string {
|
|
1334
|
+
return JSON.stringify(TextPart$outboundSchema.parse(textPart));
|
|
1237
1335
|
}
|
|
1238
1336
|
|
|
1239
|
-
export function
|
|
1337
|
+
export function textPartFromJSON(
|
|
1240
1338
|
jsonString: string,
|
|
1241
|
-
): SafeParseResult<
|
|
1339
|
+
): SafeParseResult<TextPart, SDKValidationError> {
|
|
1242
1340
|
return safeParse(
|
|
1243
1341
|
jsonString,
|
|
1244
|
-
(x) =>
|
|
1245
|
-
`Failed to parse '
|
|
1342
|
+
(x) => TextPart$inboundSchema.parse(JSON.parse(x)),
|
|
1343
|
+
`Failed to parse 'TextPart' from JSON`,
|
|
1246
1344
|
);
|
|
1247
1345
|
}
|
|
1248
1346
|
|
|
1249
1347
|
/** @internal */
|
|
1250
|
-
export const
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1348
|
+
export const PublicMessagePart$inboundSchema: z.ZodType<
|
|
1349
|
+
PublicMessagePart,
|
|
1350
|
+
z.ZodTypeDef,
|
|
1351
|
+
unknown
|
|
1352
|
+
> = z.union([
|
|
1353
|
+
z.lazy(() => TextPart$inboundSchema),
|
|
1354
|
+
z.lazy(() => FilePart$inboundSchema),
|
|
1355
|
+
z.lazy(() => ToolResultPart$inboundSchema),
|
|
1356
|
+
]);
|
|
1258
1357
|
|
|
1259
1358
|
/** @internal */
|
|
1260
|
-
export type
|
|
1261
|
-
|
|
|
1262
|
-
|
|
|
1263
|
-
|
|
|
1264
|
-
| Parts3$Outbound
|
|
1265
|
-
| Five$Outbound;
|
|
1359
|
+
export type PublicMessagePart$Outbound =
|
|
1360
|
+
| TextPart$Outbound
|
|
1361
|
+
| FilePart$Outbound
|
|
1362
|
+
| ToolResultPart$Outbound;
|
|
1266
1363
|
|
|
1267
1364
|
/** @internal */
|
|
1268
|
-
export const
|
|
1269
|
-
|
|
1365
|
+
export const PublicMessagePart$outboundSchema: z.ZodType<
|
|
1366
|
+
PublicMessagePart$Outbound,
|
|
1270
1367
|
z.ZodTypeDef,
|
|
1271
|
-
|
|
1368
|
+
PublicMessagePart
|
|
1272
1369
|
> = z.union([
|
|
1273
|
-
z.lazy(() =>
|
|
1274
|
-
z.lazy(() =>
|
|
1275
|
-
z.lazy(() =>
|
|
1276
|
-
z.lazy(() => Parts3$outboundSchema),
|
|
1277
|
-
z.lazy(() => Five$outboundSchema),
|
|
1370
|
+
z.lazy(() => TextPart$outboundSchema),
|
|
1371
|
+
z.lazy(() => FilePart$outboundSchema),
|
|
1372
|
+
z.lazy(() => ToolResultPart$outboundSchema),
|
|
1278
1373
|
]);
|
|
1279
1374
|
|
|
1280
1375
|
/**
|
|
1281
1376
|
* @internal
|
|
1282
1377
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1283
1378
|
*/
|
|
1284
|
-
export namespace
|
|
1285
|
-
/** @deprecated use `
|
|
1286
|
-
export const inboundSchema =
|
|
1287
|
-
/** @deprecated use `
|
|
1288
|
-
export const outboundSchema =
|
|
1289
|
-
/** @deprecated use `
|
|
1290
|
-
export type Outbound =
|
|
1379
|
+
export namespace PublicMessagePart$ {
|
|
1380
|
+
/** @deprecated use `PublicMessagePart$inboundSchema` instead. */
|
|
1381
|
+
export const inboundSchema = PublicMessagePart$inboundSchema;
|
|
1382
|
+
/** @deprecated use `PublicMessagePart$outboundSchema` instead. */
|
|
1383
|
+
export const outboundSchema = PublicMessagePart$outboundSchema;
|
|
1384
|
+
/** @deprecated use `PublicMessagePart$Outbound` instead. */
|
|
1385
|
+
export type Outbound = PublicMessagePart$Outbound;
|
|
1291
1386
|
}
|
|
1292
1387
|
|
|
1293
|
-
export function
|
|
1294
|
-
|
|
1388
|
+
export function publicMessagePartToJSON(
|
|
1389
|
+
publicMessagePart: PublicMessagePart,
|
|
1390
|
+
): string {
|
|
1391
|
+
return JSON.stringify(
|
|
1392
|
+
PublicMessagePart$outboundSchema.parse(publicMessagePart),
|
|
1393
|
+
);
|
|
1295
1394
|
}
|
|
1296
1395
|
|
|
1297
|
-
export function
|
|
1396
|
+
export function publicMessagePartFromJSON(
|
|
1298
1397
|
jsonString: string,
|
|
1299
|
-
): SafeParseResult<
|
|
1398
|
+
): SafeParseResult<PublicMessagePart, SDKValidationError> {
|
|
1300
1399
|
return safeParse(
|
|
1301
1400
|
jsonString,
|
|
1302
|
-
(x) =>
|
|
1303
|
-
`Failed to parse '
|
|
1401
|
+
(x) => PublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
1402
|
+
`Failed to parse 'PublicMessagePart' from JSON`,
|
|
1304
1403
|
);
|
|
1305
1404
|
}
|
|
1306
1405
|
|
|
@@ -1308,31 +1407,24 @@ export function partsFromJSON(
|
|
|
1308
1407
|
export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
|
|
1309
1408
|
z.object({
|
|
1310
1409
|
messageId: z.string().optional(),
|
|
1311
|
-
role: z.union([
|
|
1410
|
+
role: z.union([
|
|
1411
|
+
RoleUserMessage$inboundSchema,
|
|
1412
|
+
RoleToolMessage$inboundSchema,
|
|
1413
|
+
]),
|
|
1312
1414
|
parts: z.array(
|
|
1313
1415
|
z.union([
|
|
1314
|
-
z.lazy(() =>
|
|
1315
|
-
z.lazy(() =>
|
|
1316
|
-
z.lazy(() =>
|
|
1317
|
-
z.lazy(() => Parts3$inboundSchema),
|
|
1318
|
-
z.lazy(() => Five$inboundSchema),
|
|
1416
|
+
z.lazy(() => TextPart$inboundSchema),
|
|
1417
|
+
z.lazy(() => FilePart$inboundSchema),
|
|
1418
|
+
z.lazy(() => ToolResultPart$inboundSchema),
|
|
1319
1419
|
]),
|
|
1320
1420
|
),
|
|
1321
|
-
metadata: z.record(z.any()).optional(),
|
|
1322
1421
|
});
|
|
1323
1422
|
|
|
1324
1423
|
/** @internal */
|
|
1325
1424
|
export type Message$Outbound = {
|
|
1326
1425
|
messageId?: string | undefined;
|
|
1327
1426
|
role: string | string;
|
|
1328
|
-
parts: Array<
|
|
1329
|
-
| Parts4$Outbound
|
|
1330
|
-
| Parts1$Outbound
|
|
1331
|
-
| Parts2$Outbound
|
|
1332
|
-
| Parts3$Outbound
|
|
1333
|
-
| Five$Outbound
|
|
1334
|
-
>;
|
|
1335
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1427
|
+
parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
|
|
1336
1428
|
};
|
|
1337
1429
|
|
|
1338
1430
|
/** @internal */
|
|
@@ -1342,17 +1434,17 @@ export const Message$outboundSchema: z.ZodType<
|
|
|
1342
1434
|
Message
|
|
1343
1435
|
> = z.object({
|
|
1344
1436
|
messageId: z.string().optional(),
|
|
1345
|
-
role: z.union([
|
|
1437
|
+
role: z.union([
|
|
1438
|
+
RoleUserMessage$outboundSchema,
|
|
1439
|
+
RoleToolMessage$outboundSchema,
|
|
1440
|
+
]),
|
|
1346
1441
|
parts: z.array(
|
|
1347
1442
|
z.union([
|
|
1348
|
-
z.lazy(() =>
|
|
1349
|
-
z.lazy(() =>
|
|
1350
|
-
z.lazy(() =>
|
|
1351
|
-
z.lazy(() => Parts3$outboundSchema),
|
|
1352
|
-
z.lazy(() => Five$outboundSchema),
|
|
1443
|
+
z.lazy(() => TextPart$outboundSchema),
|
|
1444
|
+
z.lazy(() => FilePart$outboundSchema),
|
|
1445
|
+
z.lazy(() => ToolResultPart$outboundSchema),
|
|
1353
1446
|
]),
|
|
1354
1447
|
),
|
|
1355
|
-
metadata: z.record(z.any()).optional(),
|
|
1356
1448
|
});
|
|
1357
1449
|
|
|
1358
1450
|
/**
|
|
@@ -1563,49 +1655,52 @@ export function memoryFromJSON(
|
|
|
1563
1655
|
}
|
|
1564
1656
|
|
|
1565
1657
|
/** @internal */
|
|
1566
|
-
export const
|
|
1567
|
-
typeof
|
|
1568
|
-
|
|
1658
|
+
export const RunAgentKnowledgeBaseConfigurationType$inboundSchema:
|
|
1659
|
+
z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
|
|
1660
|
+
RunAgentKnowledgeBaseConfigurationType,
|
|
1661
|
+
);
|
|
1569
1662
|
|
|
1570
1663
|
/** @internal */
|
|
1571
|
-
export const
|
|
1572
|
-
typeof
|
|
1573
|
-
|
|
1664
|
+
export const RunAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
1665
|
+
z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> =
|
|
1666
|
+
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1574
1667
|
|
|
1575
1668
|
/**
|
|
1576
1669
|
* @internal
|
|
1577
1670
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1578
1671
|
*/
|
|
1579
|
-
export namespace
|
|
1580
|
-
/** @deprecated use `
|
|
1581
|
-
export const inboundSchema =
|
|
1582
|
-
|
|
1583
|
-
|
|
1672
|
+
export namespace RunAgentKnowledgeBaseConfigurationType$ {
|
|
1673
|
+
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1674
|
+
export const inboundSchema =
|
|
1675
|
+
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1676
|
+
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1677
|
+
export const outboundSchema =
|
|
1678
|
+
RunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
1584
1679
|
}
|
|
1585
1680
|
|
|
1586
1681
|
/** @internal */
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1682
|
+
export const KnowledgeBaseStaticQuery$inboundSchema: z.ZodType<
|
|
1683
|
+
KnowledgeBaseStaticQuery,
|
|
1589
1684
|
z.ZodTypeDef,
|
|
1590
1685
|
unknown
|
|
1591
1686
|
> = z.object({
|
|
1592
|
-
type:
|
|
1687
|
+
type: RunAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
1593
1688
|
query: z.string(),
|
|
1594
1689
|
});
|
|
1595
1690
|
|
|
1596
1691
|
/** @internal */
|
|
1597
|
-
export type
|
|
1692
|
+
export type KnowledgeBaseStaticQuery$Outbound = {
|
|
1598
1693
|
type: string;
|
|
1599
1694
|
query: string;
|
|
1600
1695
|
};
|
|
1601
1696
|
|
|
1602
1697
|
/** @internal */
|
|
1603
|
-
export const
|
|
1604
|
-
|
|
1698
|
+
export const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<
|
|
1699
|
+
KnowledgeBaseStaticQuery$Outbound,
|
|
1605
1700
|
z.ZodTypeDef,
|
|
1606
|
-
|
|
1701
|
+
KnowledgeBaseStaticQuery
|
|
1607
1702
|
> = z.object({
|
|
1608
|
-
type:
|
|
1703
|
+
type: RunAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
1609
1704
|
query: z.string(),
|
|
1610
1705
|
});
|
|
1611
1706
|
|
|
@@ -1613,149 +1708,163 @@ export const Configuration2$outboundSchema: z.ZodType<
|
|
|
1613
1708
|
* @internal
|
|
1614
1709
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1615
1710
|
*/
|
|
1616
|
-
export namespace
|
|
1617
|
-
/** @deprecated use `
|
|
1618
|
-
export const inboundSchema =
|
|
1619
|
-
/** @deprecated use `
|
|
1620
|
-
export const outboundSchema =
|
|
1621
|
-
/** @deprecated use `
|
|
1622
|
-
export type Outbound =
|
|
1711
|
+
export namespace KnowledgeBaseStaticQuery$ {
|
|
1712
|
+
/** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
1713
|
+
export const inboundSchema = KnowledgeBaseStaticQuery$inboundSchema;
|
|
1714
|
+
/** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
1715
|
+
export const outboundSchema = KnowledgeBaseStaticQuery$outboundSchema;
|
|
1716
|
+
/** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
|
|
1717
|
+
export type Outbound = KnowledgeBaseStaticQuery$Outbound;
|
|
1623
1718
|
}
|
|
1624
1719
|
|
|
1625
|
-
export function
|
|
1626
|
-
|
|
1720
|
+
export function knowledgeBaseStaticQueryToJSON(
|
|
1721
|
+
knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery,
|
|
1722
|
+
): string {
|
|
1723
|
+
return JSON.stringify(
|
|
1724
|
+
KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery),
|
|
1725
|
+
);
|
|
1627
1726
|
}
|
|
1628
1727
|
|
|
1629
|
-
export function
|
|
1728
|
+
export function knowledgeBaseStaticQueryFromJSON(
|
|
1630
1729
|
jsonString: string,
|
|
1631
|
-
): SafeParseResult<
|
|
1730
|
+
): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError> {
|
|
1632
1731
|
return safeParse(
|
|
1633
1732
|
jsonString,
|
|
1634
|
-
(x) =>
|
|
1635
|
-
`Failed to parse '
|
|
1733
|
+
(x) => KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)),
|
|
1734
|
+
`Failed to parse 'KnowledgeBaseStaticQuery' from JSON`,
|
|
1636
1735
|
);
|
|
1637
1736
|
}
|
|
1638
1737
|
|
|
1639
1738
|
/** @internal */
|
|
1640
|
-
export const
|
|
1641
|
-
typeof
|
|
1642
|
-
> = z.nativeEnum(
|
|
1739
|
+
export const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1740
|
+
typeof KnowledgeBaseConfigurationType
|
|
1741
|
+
> = z.nativeEnum(KnowledgeBaseConfigurationType);
|
|
1643
1742
|
|
|
1644
1743
|
/** @internal */
|
|
1645
|
-
export const
|
|
1646
|
-
typeof
|
|
1647
|
-
> =
|
|
1744
|
+
export const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1745
|
+
typeof KnowledgeBaseConfigurationType
|
|
1746
|
+
> = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1648
1747
|
|
|
1649
1748
|
/**
|
|
1650
1749
|
* @internal
|
|
1651
1750
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1652
1751
|
*/
|
|
1653
|
-
export namespace
|
|
1654
|
-
/** @deprecated use `
|
|
1655
|
-
export const inboundSchema =
|
|
1656
|
-
/** @deprecated use `
|
|
1657
|
-
export const outboundSchema =
|
|
1752
|
+
export namespace KnowledgeBaseConfigurationType$ {
|
|
1753
|
+
/** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1754
|
+
export const inboundSchema = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1755
|
+
/** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1756
|
+
export const outboundSchema = KnowledgeBaseConfigurationType$outboundSchema;
|
|
1658
1757
|
}
|
|
1659
1758
|
|
|
1660
1759
|
/** @internal */
|
|
1661
|
-
export const
|
|
1662
|
-
|
|
1760
|
+
export const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<
|
|
1761
|
+
KnowledgeBaseLastUserMessage,
|
|
1663
1762
|
z.ZodTypeDef,
|
|
1664
1763
|
unknown
|
|
1665
1764
|
> = z.object({
|
|
1666
|
-
type:
|
|
1765
|
+
type: KnowledgeBaseConfigurationType$inboundSchema,
|
|
1667
1766
|
});
|
|
1668
1767
|
|
|
1669
1768
|
/** @internal */
|
|
1670
|
-
export type
|
|
1769
|
+
export type KnowledgeBaseLastUserMessage$Outbound = {
|
|
1671
1770
|
type: string;
|
|
1672
1771
|
};
|
|
1673
1772
|
|
|
1674
1773
|
/** @internal */
|
|
1675
|
-
export const
|
|
1676
|
-
|
|
1774
|
+
export const KnowledgeBaseLastUserMessage$outboundSchema: z.ZodType<
|
|
1775
|
+
KnowledgeBaseLastUserMessage$Outbound,
|
|
1677
1776
|
z.ZodTypeDef,
|
|
1678
|
-
|
|
1777
|
+
KnowledgeBaseLastUserMessage
|
|
1679
1778
|
> = z.object({
|
|
1680
|
-
type:
|
|
1779
|
+
type: KnowledgeBaseConfigurationType$outboundSchema,
|
|
1681
1780
|
});
|
|
1682
1781
|
|
|
1683
1782
|
/**
|
|
1684
1783
|
* @internal
|
|
1685
1784
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1686
1785
|
*/
|
|
1687
|
-
export namespace
|
|
1688
|
-
/** @deprecated use `
|
|
1689
|
-
export const inboundSchema =
|
|
1690
|
-
/** @deprecated use `
|
|
1691
|
-
export const outboundSchema =
|
|
1692
|
-
/** @deprecated use `
|
|
1693
|
-
export type Outbound =
|
|
1786
|
+
export namespace KnowledgeBaseLastUserMessage$ {
|
|
1787
|
+
/** @deprecated use `KnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
1788
|
+
export const inboundSchema = KnowledgeBaseLastUserMessage$inboundSchema;
|
|
1789
|
+
/** @deprecated use `KnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
1790
|
+
export const outboundSchema = KnowledgeBaseLastUserMessage$outboundSchema;
|
|
1791
|
+
/** @deprecated use `KnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
1792
|
+
export type Outbound = KnowledgeBaseLastUserMessage$Outbound;
|
|
1694
1793
|
}
|
|
1695
1794
|
|
|
1696
|
-
export function
|
|
1697
|
-
|
|
1795
|
+
export function knowledgeBaseLastUserMessageToJSON(
|
|
1796
|
+
knowledgeBaseLastUserMessage: KnowledgeBaseLastUserMessage,
|
|
1797
|
+
): string {
|
|
1798
|
+
return JSON.stringify(
|
|
1799
|
+
KnowledgeBaseLastUserMessage$outboundSchema.parse(
|
|
1800
|
+
knowledgeBaseLastUserMessage,
|
|
1801
|
+
),
|
|
1802
|
+
);
|
|
1698
1803
|
}
|
|
1699
1804
|
|
|
1700
|
-
export function
|
|
1805
|
+
export function knowledgeBaseLastUserMessageFromJSON(
|
|
1701
1806
|
jsonString: string,
|
|
1702
|
-
): SafeParseResult<
|
|
1807
|
+
): SafeParseResult<KnowledgeBaseLastUserMessage, SDKValidationError> {
|
|
1703
1808
|
return safeParse(
|
|
1704
1809
|
jsonString,
|
|
1705
|
-
(x) =>
|
|
1706
|
-
`Failed to parse '
|
|
1810
|
+
(x) => KnowledgeBaseLastUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1811
|
+
`Failed to parse 'KnowledgeBaseLastUserMessage' from JSON`,
|
|
1707
1812
|
);
|
|
1708
1813
|
}
|
|
1709
1814
|
|
|
1710
1815
|
/** @internal */
|
|
1711
|
-
export const
|
|
1712
|
-
|
|
1816
|
+
export const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
1817
|
+
KnowledgeBaseConfiguration,
|
|
1713
1818
|
z.ZodTypeDef,
|
|
1714
1819
|
unknown
|
|
1715
1820
|
> = z.union([
|
|
1716
|
-
z.lazy(() =>
|
|
1717
|
-
z.lazy(() =>
|
|
1821
|
+
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1822
|
+
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1718
1823
|
]);
|
|
1719
1824
|
|
|
1720
1825
|
/** @internal */
|
|
1721
|
-
export type
|
|
1722
|
-
|
|
|
1723
|
-
|
|
|
1826
|
+
export type KnowledgeBaseConfiguration$Outbound =
|
|
1827
|
+
| KnowledgeBaseStaticQuery$Outbound
|
|
1828
|
+
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1724
1829
|
|
|
1725
1830
|
/** @internal */
|
|
1726
|
-
export const
|
|
1727
|
-
|
|
1831
|
+
export const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1832
|
+
KnowledgeBaseConfiguration$Outbound,
|
|
1728
1833
|
z.ZodTypeDef,
|
|
1729
|
-
|
|
1834
|
+
KnowledgeBaseConfiguration
|
|
1730
1835
|
> = z.union([
|
|
1731
|
-
z.lazy(() =>
|
|
1732
|
-
z.lazy(() =>
|
|
1836
|
+
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1837
|
+
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1733
1838
|
]);
|
|
1734
1839
|
|
|
1735
1840
|
/**
|
|
1736
1841
|
* @internal
|
|
1737
1842
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1738
1843
|
*/
|
|
1739
|
-
export namespace
|
|
1740
|
-
/** @deprecated use `
|
|
1741
|
-
export const inboundSchema =
|
|
1742
|
-
/** @deprecated use `
|
|
1743
|
-
export const outboundSchema =
|
|
1744
|
-
/** @deprecated use `
|
|
1745
|
-
export type Outbound =
|
|
1844
|
+
export namespace KnowledgeBaseConfiguration$ {
|
|
1845
|
+
/** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1846
|
+
export const inboundSchema = KnowledgeBaseConfiguration$inboundSchema;
|
|
1847
|
+
/** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1848
|
+
export const outboundSchema = KnowledgeBaseConfiguration$outboundSchema;
|
|
1849
|
+
/** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
|
|
1850
|
+
export type Outbound = KnowledgeBaseConfiguration$Outbound;
|
|
1746
1851
|
}
|
|
1747
1852
|
|
|
1748
|
-
export function
|
|
1749
|
-
|
|
1853
|
+
export function knowledgeBaseConfigurationToJSON(
|
|
1854
|
+
knowledgeBaseConfiguration: KnowledgeBaseConfiguration,
|
|
1855
|
+
): string {
|
|
1856
|
+
return JSON.stringify(
|
|
1857
|
+
KnowledgeBaseConfiguration$outboundSchema.parse(knowledgeBaseConfiguration),
|
|
1858
|
+
);
|
|
1750
1859
|
}
|
|
1751
1860
|
|
|
1752
|
-
export function
|
|
1861
|
+
export function knowledgeBaseConfigurationFromJSON(
|
|
1753
1862
|
jsonString: string,
|
|
1754
|
-
): SafeParseResult<
|
|
1863
|
+
): SafeParseResult<KnowledgeBaseConfiguration, SDKValidationError> {
|
|
1755
1864
|
return safeParse(
|
|
1756
1865
|
jsonString,
|
|
1757
|
-
(x) =>
|
|
1758
|
-
`Failed to parse '
|
|
1866
|
+
(x) => KnowledgeBaseConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
1867
|
+
`Failed to parse 'KnowledgeBaseConfiguration' from JSON`,
|
|
1759
1868
|
);
|
|
1760
1869
|
}
|
|
1761
1870
|
|
|
@@ -1766,14 +1875,16 @@ export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1766
1875
|
unknown
|
|
1767
1876
|
> = z.object({
|
|
1768
1877
|
configuration: z.union([
|
|
1769
|
-
z.lazy(() =>
|
|
1770
|
-
z.lazy(() =>
|
|
1878
|
+
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1879
|
+
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1771
1880
|
]),
|
|
1772
1881
|
});
|
|
1773
1882
|
|
|
1774
1883
|
/** @internal */
|
|
1775
1884
|
export type KnowledgeBases$Outbound = {
|
|
1776
|
-
configuration:
|
|
1885
|
+
configuration:
|
|
1886
|
+
| KnowledgeBaseStaticQuery$Outbound
|
|
1887
|
+
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1777
1888
|
};
|
|
1778
1889
|
|
|
1779
1890
|
/** @internal */
|
|
@@ -1783,8 +1894,8 @@ export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1783
1894
|
KnowledgeBases
|
|
1784
1895
|
> = z.object({
|
|
1785
1896
|
configuration: z.union([
|
|
1786
|
-
z.lazy(() =>
|
|
1787
|
-
z.lazy(() =>
|
|
1897
|
+
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1898
|
+
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1788
1899
|
]),
|
|
1789
1900
|
});
|
|
1790
1901
|
|
|
@@ -1877,225 +1988,337 @@ export function teamOfAgentsFromJSON(
|
|
|
1877
1988
|
}
|
|
1878
1989
|
|
|
1879
1990
|
/** @internal */
|
|
1880
|
-
export const
|
|
1881
|
-
.
|
|
1991
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
1992
|
+
z.ZodNativeEnum<
|
|
1993
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
|
|
1994
|
+
> = z.nativeEnum(
|
|
1995
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type,
|
|
1996
|
+
);
|
|
1882
1997
|
|
|
1883
1998
|
/** @internal */
|
|
1884
|
-
export const
|
|
1885
|
-
|
|
1999
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2000
|
+
z.ZodNativeEnum<
|
|
2001
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
|
|
2002
|
+
> =
|
|
2003
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
1886
2004
|
|
|
1887
2005
|
/**
|
|
1888
2006
|
* @internal
|
|
1889
2007
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1890
2008
|
*/
|
|
1891
|
-
export namespace
|
|
1892
|
-
/** @deprecated use `
|
|
1893
|
-
export const inboundSchema =
|
|
1894
|
-
|
|
1895
|
-
|
|
2009
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2010
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2011
|
+
export const inboundSchema =
|
|
2012
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2013
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2014
|
+
export const outboundSchema =
|
|
2015
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
1896
2016
|
}
|
|
1897
2017
|
|
|
1898
2018
|
/** @internal */
|
|
1899
|
-
export const
|
|
1900
|
-
|
|
2019
|
+
export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
|
|
2020
|
+
RunAgentRequestToolFunction,
|
|
2021
|
+
z.ZodTypeDef,
|
|
2022
|
+
unknown
|
|
2023
|
+
> = z.object({
|
|
2024
|
+
name: z.string(),
|
|
2025
|
+
description: z.string().optional(),
|
|
2026
|
+
strict: z.boolean().optional(),
|
|
2027
|
+
parameters: z.record(z.any()).optional(),
|
|
2028
|
+
});
|
|
2029
|
+
|
|
2030
|
+
/** @internal */
|
|
2031
|
+
export type RunAgentRequestToolFunction$Outbound = {
|
|
2032
|
+
name: string;
|
|
2033
|
+
description?: string | undefined;
|
|
2034
|
+
strict?: boolean | undefined;
|
|
2035
|
+
parameters?: { [k: string]: any } | undefined;
|
|
2036
|
+
};
|
|
1901
2037
|
|
|
1902
2038
|
/** @internal */
|
|
1903
|
-
export const
|
|
1904
|
-
|
|
2039
|
+
export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
|
|
2040
|
+
RunAgentRequestToolFunction$Outbound,
|
|
2041
|
+
z.ZodTypeDef,
|
|
2042
|
+
RunAgentRequestToolFunction
|
|
2043
|
+
> = z.object({
|
|
2044
|
+
name: z.string(),
|
|
2045
|
+
description: z.string().optional(),
|
|
2046
|
+
strict: z.boolean().optional(),
|
|
2047
|
+
parameters: z.record(z.any()).optional(),
|
|
2048
|
+
});
|
|
1905
2049
|
|
|
1906
2050
|
/**
|
|
1907
2051
|
* @internal
|
|
1908
2052
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1909
2053
|
*/
|
|
1910
|
-
export namespace
|
|
1911
|
-
/** @deprecated use `
|
|
1912
|
-
export const inboundSchema =
|
|
1913
|
-
/** @deprecated use `
|
|
1914
|
-
export const outboundSchema =
|
|
2054
|
+
export namespace RunAgentRequestToolFunction$ {
|
|
2055
|
+
/** @deprecated use `RunAgentRequestToolFunction$inboundSchema` instead. */
|
|
2056
|
+
export const inboundSchema = RunAgentRequestToolFunction$inboundSchema;
|
|
2057
|
+
/** @deprecated use `RunAgentRequestToolFunction$outboundSchema` instead. */
|
|
2058
|
+
export const outboundSchema = RunAgentRequestToolFunction$outboundSchema;
|
|
2059
|
+
/** @deprecated use `RunAgentRequestToolFunction$Outbound` instead. */
|
|
2060
|
+
export type Outbound = RunAgentRequestToolFunction$Outbound;
|
|
1915
2061
|
}
|
|
1916
2062
|
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2063
|
+
export function runAgentRequestToolFunctionToJSON(
|
|
2064
|
+
runAgentRequestToolFunction: RunAgentRequestToolFunction,
|
|
2065
|
+
): string {
|
|
2066
|
+
return JSON.stringify(
|
|
2067
|
+
RunAgentRequestToolFunction$outboundSchema.parse(
|
|
2068
|
+
runAgentRequestToolFunction,
|
|
2069
|
+
),
|
|
2070
|
+
);
|
|
2071
|
+
}
|
|
1924
2072
|
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
export const outboundSchema = Method$outboundSchema;
|
|
2073
|
+
export function runAgentRequestToolFunctionFromJSON(
|
|
2074
|
+
jsonString: string,
|
|
2075
|
+
): SafeParseResult<RunAgentRequestToolFunction, SDKValidationError> {
|
|
2076
|
+
return safeParse(
|
|
2077
|
+
jsonString,
|
|
2078
|
+
(x) => RunAgentRequestToolFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2079
|
+
`Failed to parse 'RunAgentRequestToolFunction' from JSON`,
|
|
2080
|
+
);
|
|
1934
2081
|
}
|
|
1935
2082
|
|
|
1936
2083
|
/** @internal */
|
|
1937
|
-
export const
|
|
1938
|
-
|
|
2084
|
+
export const FunctionTool$inboundSchema: z.ZodType<
|
|
2085
|
+
FunctionTool,
|
|
1939
2086
|
z.ZodTypeDef,
|
|
1940
2087
|
unknown
|
|
1941
2088
|
> = z.object({
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2089
|
+
type:
|
|
2090
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2091
|
+
_id: z.string().optional(),
|
|
2092
|
+
key: z.string(),
|
|
2093
|
+
display_name: z.string().optional(),
|
|
2094
|
+
description: z.string().optional(),
|
|
2095
|
+
requires_approval: z.boolean().default(false),
|
|
2096
|
+
function: z.lazy(() => RunAgentRequestToolFunction$inboundSchema),
|
|
2097
|
+
}).transform((v) => {
|
|
2098
|
+
return remap$(v, {
|
|
2099
|
+
"_id": "id",
|
|
2100
|
+
"display_name": "displayName",
|
|
2101
|
+
"requires_approval": "requiresApproval",
|
|
2102
|
+
});
|
|
1946
2103
|
});
|
|
1947
2104
|
|
|
1948
2105
|
/** @internal */
|
|
1949
|
-
export type
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2106
|
+
export type FunctionTool$Outbound = {
|
|
2107
|
+
type: string;
|
|
2108
|
+
_id?: string | undefined;
|
|
2109
|
+
key: string;
|
|
2110
|
+
display_name?: string | undefined;
|
|
2111
|
+
description?: string | undefined;
|
|
2112
|
+
requires_approval: boolean;
|
|
2113
|
+
function: RunAgentRequestToolFunction$Outbound;
|
|
1954
2114
|
};
|
|
1955
2115
|
|
|
1956
2116
|
/** @internal */
|
|
1957
|
-
export const
|
|
1958
|
-
|
|
2117
|
+
export const FunctionTool$outboundSchema: z.ZodType<
|
|
2118
|
+
FunctionTool$Outbound,
|
|
1959
2119
|
z.ZodTypeDef,
|
|
1960
|
-
|
|
2120
|
+
FunctionTool
|
|
1961
2121
|
> = z.object({
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
2122
|
+
type:
|
|
2123
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2124
|
+
id: z.string().optional(),
|
|
2125
|
+
key: z.string(),
|
|
2126
|
+
displayName: z.string().optional(),
|
|
2127
|
+
description: z.string().optional(),
|
|
2128
|
+
requiresApproval: z.boolean().default(false),
|
|
2129
|
+
function: z.lazy(() => RunAgentRequestToolFunction$outboundSchema),
|
|
2130
|
+
}).transform((v) => {
|
|
2131
|
+
return remap$(v, {
|
|
2132
|
+
id: "_id",
|
|
2133
|
+
displayName: "display_name",
|
|
2134
|
+
requiresApproval: "requires_approval",
|
|
2135
|
+
});
|
|
1966
2136
|
});
|
|
1967
2137
|
|
|
1968
2138
|
/**
|
|
1969
2139
|
* @internal
|
|
1970
2140
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1971
2141
|
*/
|
|
1972
|
-
export namespace
|
|
1973
|
-
/** @deprecated use `
|
|
1974
|
-
export const inboundSchema =
|
|
1975
|
-
/** @deprecated use `
|
|
1976
|
-
export const outboundSchema =
|
|
1977
|
-
/** @deprecated use `
|
|
1978
|
-
export type Outbound =
|
|
2142
|
+
export namespace FunctionTool$ {
|
|
2143
|
+
/** @deprecated use `FunctionTool$inboundSchema` instead. */
|
|
2144
|
+
export const inboundSchema = FunctionTool$inboundSchema;
|
|
2145
|
+
/** @deprecated use `FunctionTool$outboundSchema` instead. */
|
|
2146
|
+
export const outboundSchema = FunctionTool$outboundSchema;
|
|
2147
|
+
/** @deprecated use `FunctionTool$Outbound` instead. */
|
|
2148
|
+
export type Outbound = FunctionTool$Outbound;
|
|
1979
2149
|
}
|
|
1980
2150
|
|
|
1981
|
-
export function
|
|
1982
|
-
return JSON.stringify(
|
|
2151
|
+
export function functionToolToJSON(functionTool: FunctionTool): string {
|
|
2152
|
+
return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
|
|
1983
2153
|
}
|
|
1984
2154
|
|
|
1985
|
-
export function
|
|
2155
|
+
export function functionToolFromJSON(
|
|
1986
2156
|
jsonString: string,
|
|
1987
|
-
): SafeParseResult<
|
|
2157
|
+
): SafeParseResult<FunctionTool, SDKValidationError> {
|
|
1988
2158
|
return safeParse(
|
|
1989
2159
|
jsonString,
|
|
1990
|
-
(x) =>
|
|
1991
|
-
`Failed to parse '
|
|
2160
|
+
(x) => FunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2161
|
+
`Failed to parse 'FunctionTool' from JSON`,
|
|
1992
2162
|
);
|
|
1993
2163
|
}
|
|
1994
2164
|
|
|
1995
2165
|
/** @internal */
|
|
1996
|
-
export const
|
|
1997
|
-
|
|
1998
|
-
|
|
2166
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2167
|
+
z.ZodNativeEnum<
|
|
2168
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
|
|
2169
|
+
> = z.nativeEnum(
|
|
2170
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type,
|
|
2171
|
+
);
|
|
1999
2172
|
|
|
2000
2173
|
/** @internal */
|
|
2001
|
-
export const
|
|
2002
|
-
|
|
2003
|
-
|
|
2174
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2175
|
+
z.ZodNativeEnum<
|
|
2176
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
|
|
2177
|
+
> =
|
|
2178
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2004
2179
|
|
|
2005
2180
|
/**
|
|
2006
2181
|
* @internal
|
|
2007
2182
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2008
2183
|
*/
|
|
2009
|
-
export namespace
|
|
2010
|
-
/** @deprecated use `
|
|
2011
|
-
export const inboundSchema =
|
|
2012
|
-
|
|
2013
|
-
|
|
2184
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2185
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2186
|
+
export const inboundSchema =
|
|
2187
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2188
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2189
|
+
export const outboundSchema =
|
|
2190
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2014
2191
|
}
|
|
2015
2192
|
|
|
2016
2193
|
/** @internal */
|
|
2017
|
-
export const
|
|
2018
|
-
|
|
2194
|
+
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2195
|
+
.nativeEnum(Language);
|
|
2196
|
+
|
|
2197
|
+
/** @internal */
|
|
2198
|
+
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2199
|
+
Language$inboundSchema;
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* @internal
|
|
2203
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2204
|
+
*/
|
|
2205
|
+
export namespace Language$ {
|
|
2206
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2207
|
+
export const inboundSchema = Language$inboundSchema;
|
|
2208
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2209
|
+
export const outboundSchema = Language$outboundSchema;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/** @internal */
|
|
2213
|
+
export const CodeTool$inboundSchema: z.ZodType<
|
|
2214
|
+
CodeTool,
|
|
2019
2215
|
z.ZodTypeDef,
|
|
2020
2216
|
unknown
|
|
2021
|
-
> = z.
|
|
2217
|
+
> = z.object({
|
|
2218
|
+
parameters: z.record(z.any()).optional(),
|
|
2219
|
+
language: Language$inboundSchema,
|
|
2220
|
+
code: z.string(),
|
|
2221
|
+
});
|
|
2022
2222
|
|
|
2023
2223
|
/** @internal */
|
|
2024
|
-
export type
|
|
2224
|
+
export type CodeTool$Outbound = {
|
|
2225
|
+
parameters?: { [k: string]: any } | undefined;
|
|
2226
|
+
language: string;
|
|
2227
|
+
code: string;
|
|
2228
|
+
};
|
|
2025
2229
|
|
|
2026
2230
|
/** @internal */
|
|
2027
|
-
export const
|
|
2028
|
-
|
|
2231
|
+
export const CodeTool$outboundSchema: z.ZodType<
|
|
2232
|
+
CodeTool$Outbound,
|
|
2029
2233
|
z.ZodTypeDef,
|
|
2030
|
-
|
|
2031
|
-
> = z.
|
|
2234
|
+
CodeTool
|
|
2235
|
+
> = z.object({
|
|
2236
|
+
parameters: z.record(z.any()).optional(),
|
|
2237
|
+
language: Language$outboundSchema,
|
|
2238
|
+
code: z.string(),
|
|
2239
|
+
});
|
|
2032
2240
|
|
|
2033
2241
|
/**
|
|
2034
2242
|
* @internal
|
|
2035
2243
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2036
2244
|
*/
|
|
2037
|
-
export namespace
|
|
2038
|
-
/** @deprecated use `
|
|
2039
|
-
export const inboundSchema =
|
|
2040
|
-
/** @deprecated use `
|
|
2041
|
-
export const outboundSchema =
|
|
2042
|
-
/** @deprecated use `
|
|
2043
|
-
export type Outbound =
|
|
2245
|
+
export namespace CodeTool$ {
|
|
2246
|
+
/** @deprecated use `CodeTool$inboundSchema` instead. */
|
|
2247
|
+
export const inboundSchema = CodeTool$inboundSchema;
|
|
2248
|
+
/** @deprecated use `CodeTool$outboundSchema` instead. */
|
|
2249
|
+
export const outboundSchema = CodeTool$outboundSchema;
|
|
2250
|
+
/** @deprecated use `CodeTool$Outbound` instead. */
|
|
2251
|
+
export type Outbound = CodeTool$Outbound;
|
|
2044
2252
|
}
|
|
2045
2253
|
|
|
2046
|
-
export function
|
|
2047
|
-
return JSON.stringify(
|
|
2254
|
+
export function codeToolToJSON(codeTool: CodeTool): string {
|
|
2255
|
+
return JSON.stringify(CodeTool$outboundSchema.parse(codeTool));
|
|
2048
2256
|
}
|
|
2049
2257
|
|
|
2050
|
-
export function
|
|
2258
|
+
export function codeToolFromJSON(
|
|
2051
2259
|
jsonString: string,
|
|
2052
|
-
): SafeParseResult<
|
|
2260
|
+
): SafeParseResult<CodeTool, SDKValidationError> {
|
|
2053
2261
|
return safeParse(
|
|
2054
2262
|
jsonString,
|
|
2055
|
-
(x) =>
|
|
2056
|
-
`Failed to parse '
|
|
2263
|
+
(x) => CodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
2264
|
+
`Failed to parse 'CodeTool' from JSON`,
|
|
2057
2265
|
);
|
|
2058
2266
|
}
|
|
2059
2267
|
|
|
2060
2268
|
/** @internal */
|
|
2061
|
-
export const
|
|
2062
|
-
|
|
2269
|
+
export const CodeExecutionTool$inboundSchema: z.ZodType<
|
|
2270
|
+
CodeExecutionTool,
|
|
2063
2271
|
z.ZodTypeDef,
|
|
2064
2272
|
unknown
|
|
2065
2273
|
> = z.object({
|
|
2066
|
-
|
|
2274
|
+
key: z.string(),
|
|
2275
|
+
display_name: z.string(),
|
|
2067
2276
|
description: z.string(),
|
|
2068
|
-
|
|
2069
|
-
|
|
2277
|
+
type:
|
|
2278
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2279
|
+
code_tool: z.lazy(() => CodeTool$inboundSchema),
|
|
2280
|
+
_id: z.string().optional(),
|
|
2281
|
+
requires_approval: z.boolean().default(false),
|
|
2070
2282
|
}).transform((v) => {
|
|
2071
2283
|
return remap$(v, {
|
|
2072
|
-
"
|
|
2073
|
-
"
|
|
2284
|
+
"display_name": "displayName",
|
|
2285
|
+
"code_tool": "codeTool",
|
|
2286
|
+
"_id": "id",
|
|
2287
|
+
"requires_approval": "requiresApproval",
|
|
2074
2288
|
});
|
|
2075
2289
|
});
|
|
2076
2290
|
|
|
2077
2291
|
/** @internal */
|
|
2078
|
-
export type
|
|
2079
|
-
|
|
2292
|
+
export type CodeExecutionTool$Outbound = {
|
|
2293
|
+
key: string;
|
|
2294
|
+
display_name: string;
|
|
2080
2295
|
description: string;
|
|
2081
|
-
|
|
2082
|
-
|
|
2296
|
+
type: string;
|
|
2297
|
+
code_tool: CodeTool$Outbound;
|
|
2298
|
+
_id?: string | undefined;
|
|
2299
|
+
requires_approval: boolean;
|
|
2083
2300
|
};
|
|
2084
2301
|
|
|
2085
2302
|
/** @internal */
|
|
2086
|
-
export const
|
|
2087
|
-
|
|
2303
|
+
export const CodeExecutionTool$outboundSchema: z.ZodType<
|
|
2304
|
+
CodeExecutionTool$Outbound,
|
|
2088
2305
|
z.ZodTypeDef,
|
|
2089
|
-
|
|
2306
|
+
CodeExecutionTool
|
|
2090
2307
|
> = z.object({
|
|
2091
|
-
|
|
2308
|
+
key: z.string(),
|
|
2309
|
+
displayName: z.string(),
|
|
2092
2310
|
description: z.string(),
|
|
2093
|
-
|
|
2094
|
-
|
|
2311
|
+
type:
|
|
2312
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2313
|
+
codeTool: z.lazy(() => CodeTool$outboundSchema),
|
|
2314
|
+
id: z.string().optional(),
|
|
2315
|
+
requiresApproval: z.boolean().default(false),
|
|
2095
2316
|
}).transform((v) => {
|
|
2096
2317
|
return remap$(v, {
|
|
2097
|
-
|
|
2098
|
-
|
|
2318
|
+
displayName: "display_name",
|
|
2319
|
+
codeTool: "code_tool",
|
|
2320
|
+
id: "_id",
|
|
2321
|
+
requiresApproval: "requires_approval",
|
|
2099
2322
|
});
|
|
2100
2323
|
});
|
|
2101
2324
|
|
|
@@ -2103,40 +2326,293 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
2103
2326
|
* @internal
|
|
2104
2327
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2105
2328
|
*/
|
|
2106
|
-
export namespace
|
|
2107
|
-
/** @deprecated use `
|
|
2108
|
-
export const inboundSchema =
|
|
2109
|
-
/** @deprecated use `
|
|
2110
|
-
export const outboundSchema =
|
|
2111
|
-
/** @deprecated use `
|
|
2112
|
-
export type Outbound =
|
|
2329
|
+
export namespace CodeExecutionTool$ {
|
|
2330
|
+
/** @deprecated use `CodeExecutionTool$inboundSchema` instead. */
|
|
2331
|
+
export const inboundSchema = CodeExecutionTool$inboundSchema;
|
|
2332
|
+
/** @deprecated use `CodeExecutionTool$outboundSchema` instead. */
|
|
2333
|
+
export const outboundSchema = CodeExecutionTool$outboundSchema;
|
|
2334
|
+
/** @deprecated use `CodeExecutionTool$Outbound` instead. */
|
|
2335
|
+
export type Outbound = CodeExecutionTool$Outbound;
|
|
2113
2336
|
}
|
|
2114
2337
|
|
|
2115
|
-
export function
|
|
2116
|
-
|
|
2338
|
+
export function codeExecutionToolToJSON(
|
|
2339
|
+
codeExecutionTool: CodeExecutionTool,
|
|
2340
|
+
): string {
|
|
2341
|
+
return JSON.stringify(
|
|
2342
|
+
CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
|
|
2343
|
+
);
|
|
2117
2344
|
}
|
|
2118
2345
|
|
|
2119
|
-
export function
|
|
2346
|
+
export function codeExecutionToolFromJSON(
|
|
2120
2347
|
jsonString: string,
|
|
2121
|
-
): SafeParseResult<
|
|
2348
|
+
): SafeParseResult<CodeExecutionTool, SDKValidationError> {
|
|
2122
2349
|
return safeParse(
|
|
2123
2350
|
jsonString,
|
|
2124
|
-
(x) =>
|
|
2125
|
-
`Failed to parse '
|
|
2351
|
+
(x) => CodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2352
|
+
`Failed to parse 'CodeExecutionTool' from JSON`,
|
|
2126
2353
|
);
|
|
2127
2354
|
}
|
|
2128
2355
|
|
|
2129
2356
|
/** @internal */
|
|
2130
|
-
export const
|
|
2131
|
-
.
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2357
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2358
|
+
z.ZodNativeEnum<
|
|
2359
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
|
|
2360
|
+
> = z.nativeEnum(
|
|
2361
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type,
|
|
2362
|
+
);
|
|
2135
2363
|
|
|
2136
2364
|
/** @internal */
|
|
2137
|
-
export
|
|
2138
|
-
|
|
2139
|
-
|
|
2365
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2366
|
+
z.ZodNativeEnum<
|
|
2367
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
|
|
2368
|
+
> =
|
|
2369
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* @internal
|
|
2373
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2374
|
+
*/
|
|
2375
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2376
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2377
|
+
export const inboundSchema =
|
|
2378
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2379
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2380
|
+
export const outboundSchema =
|
|
2381
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
/** @internal */
|
|
2385
|
+
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
2386
|
+
.nativeEnum(Method);
|
|
2387
|
+
|
|
2388
|
+
/** @internal */
|
|
2389
|
+
export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
2390
|
+
Method$inboundSchema;
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* @internal
|
|
2394
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2395
|
+
*/
|
|
2396
|
+
export namespace Method$ {
|
|
2397
|
+
/** @deprecated use `Method$inboundSchema` instead. */
|
|
2398
|
+
export const inboundSchema = Method$inboundSchema;
|
|
2399
|
+
/** @deprecated use `Method$outboundSchema` instead. */
|
|
2400
|
+
export const outboundSchema = Method$outboundSchema;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
/** @internal */
|
|
2404
|
+
export const Blueprint$inboundSchema: z.ZodType<
|
|
2405
|
+
Blueprint,
|
|
2406
|
+
z.ZodTypeDef,
|
|
2407
|
+
unknown
|
|
2408
|
+
> = z.object({
|
|
2409
|
+
url: z.string(),
|
|
2410
|
+
method: Method$inboundSchema,
|
|
2411
|
+
headers: z.record(z.string()).optional(),
|
|
2412
|
+
body: z.record(z.any()).optional(),
|
|
2413
|
+
});
|
|
2414
|
+
|
|
2415
|
+
/** @internal */
|
|
2416
|
+
export type Blueprint$Outbound = {
|
|
2417
|
+
url: string;
|
|
2418
|
+
method: string;
|
|
2419
|
+
headers?: { [k: string]: string } | undefined;
|
|
2420
|
+
body?: { [k: string]: any } | undefined;
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
/** @internal */
|
|
2424
|
+
export const Blueprint$outboundSchema: z.ZodType<
|
|
2425
|
+
Blueprint$Outbound,
|
|
2426
|
+
z.ZodTypeDef,
|
|
2427
|
+
Blueprint
|
|
2428
|
+
> = z.object({
|
|
2429
|
+
url: z.string(),
|
|
2430
|
+
method: Method$outboundSchema,
|
|
2431
|
+
headers: z.record(z.string()).optional(),
|
|
2432
|
+
body: z.record(z.any()).optional(),
|
|
2433
|
+
});
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* @internal
|
|
2437
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2438
|
+
*/
|
|
2439
|
+
export namespace Blueprint$ {
|
|
2440
|
+
/** @deprecated use `Blueprint$inboundSchema` instead. */
|
|
2441
|
+
export const inboundSchema = Blueprint$inboundSchema;
|
|
2442
|
+
/** @deprecated use `Blueprint$outboundSchema` instead. */
|
|
2443
|
+
export const outboundSchema = Blueprint$outboundSchema;
|
|
2444
|
+
/** @deprecated use `Blueprint$Outbound` instead. */
|
|
2445
|
+
export type Outbound = Blueprint$Outbound;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
export function blueprintToJSON(blueprint: Blueprint): string {
|
|
2449
|
+
return JSON.stringify(Blueprint$outboundSchema.parse(blueprint));
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
export function blueprintFromJSON(
|
|
2453
|
+
jsonString: string,
|
|
2454
|
+
): SafeParseResult<Blueprint, SDKValidationError> {
|
|
2455
|
+
return safeParse(
|
|
2456
|
+
jsonString,
|
|
2457
|
+
(x) => Blueprint$inboundSchema.parse(JSON.parse(x)),
|
|
2458
|
+
`Failed to parse 'Blueprint' from JSON`,
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
/** @internal */
|
|
2463
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$inboundSchema:
|
|
2464
|
+
z.ZodNativeEnum<
|
|
2465
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType
|
|
2466
|
+
> = z.nativeEnum(
|
|
2467
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType,
|
|
2468
|
+
);
|
|
2469
|
+
|
|
2470
|
+
/** @internal */
|
|
2471
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$outboundSchema:
|
|
2472
|
+
z.ZodNativeEnum<
|
|
2473
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType
|
|
2474
|
+
> =
|
|
2475
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$inboundSchema;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* @internal
|
|
2479
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2480
|
+
*/
|
|
2481
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$ {
|
|
2482
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$inboundSchema` instead. */
|
|
2483
|
+
export const inboundSchema =
|
|
2484
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$inboundSchema;
|
|
2485
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$outboundSchema` instead. */
|
|
2486
|
+
export const outboundSchema =
|
|
2487
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$outboundSchema;
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
/** @internal */
|
|
2491
|
+
export const DefaultValue$inboundSchema: z.ZodType<
|
|
2492
|
+
DefaultValue,
|
|
2493
|
+
z.ZodTypeDef,
|
|
2494
|
+
unknown
|
|
2495
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2496
|
+
|
|
2497
|
+
/** @internal */
|
|
2498
|
+
export type DefaultValue$Outbound = string | number | boolean;
|
|
2499
|
+
|
|
2500
|
+
/** @internal */
|
|
2501
|
+
export const DefaultValue$outboundSchema: z.ZodType<
|
|
2502
|
+
DefaultValue$Outbound,
|
|
2503
|
+
z.ZodTypeDef,
|
|
2504
|
+
DefaultValue
|
|
2505
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* @internal
|
|
2509
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2510
|
+
*/
|
|
2511
|
+
export namespace DefaultValue$ {
|
|
2512
|
+
/** @deprecated use `DefaultValue$inboundSchema` instead. */
|
|
2513
|
+
export const inboundSchema = DefaultValue$inboundSchema;
|
|
2514
|
+
/** @deprecated use `DefaultValue$outboundSchema` instead. */
|
|
2515
|
+
export const outboundSchema = DefaultValue$outboundSchema;
|
|
2516
|
+
/** @deprecated use `DefaultValue$Outbound` instead. */
|
|
2517
|
+
export type Outbound = DefaultValue$Outbound;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
export function defaultValueToJSON(defaultValue: DefaultValue): string {
|
|
2521
|
+
return JSON.stringify(DefaultValue$outboundSchema.parse(defaultValue));
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
export function defaultValueFromJSON(
|
|
2525
|
+
jsonString: string,
|
|
2526
|
+
): SafeParseResult<DefaultValue, SDKValidationError> {
|
|
2527
|
+
return safeParse(
|
|
2528
|
+
jsonString,
|
|
2529
|
+
(x) => DefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
2530
|
+
`Failed to parse 'DefaultValue' from JSON`,
|
|
2531
|
+
);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/** @internal */
|
|
2535
|
+
export const Arguments$inboundSchema: z.ZodType<
|
|
2536
|
+
Arguments,
|
|
2537
|
+
z.ZodTypeDef,
|
|
2538
|
+
unknown
|
|
2539
|
+
> = z.object({
|
|
2540
|
+
type:
|
|
2541
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$inboundSchema,
|
|
2542
|
+
description: z.string(),
|
|
2543
|
+
send_to_model: z.boolean().default(true),
|
|
2544
|
+
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
2545
|
+
}).transform((v) => {
|
|
2546
|
+
return remap$(v, {
|
|
2547
|
+
"send_to_model": "sendToModel",
|
|
2548
|
+
"default_value": "defaultValue",
|
|
2549
|
+
});
|
|
2550
|
+
});
|
|
2551
|
+
|
|
2552
|
+
/** @internal */
|
|
2553
|
+
export type Arguments$Outbound = {
|
|
2554
|
+
type: string;
|
|
2555
|
+
description: string;
|
|
2556
|
+
send_to_model: boolean;
|
|
2557
|
+
default_value?: string | number | boolean | undefined;
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
/** @internal */
|
|
2561
|
+
export const Arguments$outboundSchema: z.ZodType<
|
|
2562
|
+
Arguments$Outbound,
|
|
2563
|
+
z.ZodTypeDef,
|
|
2564
|
+
Arguments
|
|
2565
|
+
> = z.object({
|
|
2566
|
+
type:
|
|
2567
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11HttpType$outboundSchema,
|
|
2568
|
+
description: z.string(),
|
|
2569
|
+
sendToModel: z.boolean().default(true),
|
|
2570
|
+
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
2571
|
+
}).transform((v) => {
|
|
2572
|
+
return remap$(v, {
|
|
2573
|
+
sendToModel: "send_to_model",
|
|
2574
|
+
defaultValue: "default_value",
|
|
2575
|
+
});
|
|
2576
|
+
});
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* @internal
|
|
2580
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2581
|
+
*/
|
|
2582
|
+
export namespace Arguments$ {
|
|
2583
|
+
/** @deprecated use `Arguments$inboundSchema` instead. */
|
|
2584
|
+
export const inboundSchema = Arguments$inboundSchema;
|
|
2585
|
+
/** @deprecated use `Arguments$outboundSchema` instead. */
|
|
2586
|
+
export const outboundSchema = Arguments$outboundSchema;
|
|
2587
|
+
/** @deprecated use `Arguments$Outbound` instead. */
|
|
2588
|
+
export type Outbound = Arguments$Outbound;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export function argumentsToJSON(value: Arguments): string {
|
|
2592
|
+
return JSON.stringify(Arguments$outboundSchema.parse(value));
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
export function argumentsFromJSON(
|
|
2596
|
+
jsonString: string,
|
|
2597
|
+
): SafeParseResult<Arguments, SDKValidationError> {
|
|
2598
|
+
return safeParse(
|
|
2599
|
+
jsonString,
|
|
2600
|
+
(x) => Arguments$inboundSchema.parse(JSON.parse(x)),
|
|
2601
|
+
`Failed to parse 'Arguments' from JSON`,
|
|
2602
|
+
);
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
/** @internal */
|
|
2606
|
+
export const Http$inboundSchema: z.ZodType<Http, z.ZodTypeDef, unknown> = z
|
|
2607
|
+
.object({
|
|
2608
|
+
blueprint: z.lazy(() => Blueprint$inboundSchema),
|
|
2609
|
+
arguments: z.record(z.lazy(() => Arguments$inboundSchema)).optional(),
|
|
2610
|
+
});
|
|
2611
|
+
|
|
2612
|
+
/** @internal */
|
|
2613
|
+
export type Http$Outbound = {
|
|
2614
|
+
blueprint: Blueprint$Outbound;
|
|
2615
|
+
arguments?: { [k: string]: Arguments$Outbound } | undefined;
|
|
2140
2616
|
};
|
|
2141
2617
|
|
|
2142
2618
|
/** @internal */
|
|
@@ -2174,65 +2650,56 @@ export function httpFromJSON(
|
|
|
2174
2650
|
}
|
|
2175
2651
|
|
|
2176
2652
|
/** @internal */
|
|
2177
|
-
export const
|
|
2178
|
-
|
|
2653
|
+
export const HTTPTool$inboundSchema: z.ZodType<
|
|
2654
|
+
HTTPTool,
|
|
2179
2655
|
z.ZodTypeDef,
|
|
2180
2656
|
unknown
|
|
2181
2657
|
> = z.object({
|
|
2182
|
-
_id: z.string().default("
|
|
2183
|
-
path: z.string(),
|
|
2658
|
+
_id: z.string().default("01K6B3TVWQRGGQ37MWVXXVDPCP"),
|
|
2184
2659
|
key: z.string(),
|
|
2185
2660
|
display_name: z.string(),
|
|
2186
2661
|
description: z.string(),
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
type: ToolsType$inboundSchema,
|
|
2662
|
+
type:
|
|
2663
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2190
2664
|
http: z.lazy(() => Http$inboundSchema),
|
|
2191
2665
|
requires_approval: z.boolean().default(false),
|
|
2192
2666
|
}).transform((v) => {
|
|
2193
2667
|
return remap$(v, {
|
|
2194
2668
|
"_id": "id",
|
|
2195
2669
|
"display_name": "displayName",
|
|
2196
|
-
"version_hash": "versionHash",
|
|
2197
2670
|
"requires_approval": "requiresApproval",
|
|
2198
2671
|
});
|
|
2199
2672
|
});
|
|
2200
2673
|
|
|
2201
2674
|
/** @internal */
|
|
2202
|
-
export type
|
|
2675
|
+
export type HTTPTool$Outbound = {
|
|
2203
2676
|
_id: string;
|
|
2204
|
-
path: string;
|
|
2205
2677
|
key: string;
|
|
2206
2678
|
display_name: string;
|
|
2207
2679
|
description: string;
|
|
2208
|
-
status: string;
|
|
2209
|
-
version_hash?: string | undefined;
|
|
2210
2680
|
type: string;
|
|
2211
2681
|
http: Http$Outbound;
|
|
2212
2682
|
requires_approval: boolean;
|
|
2213
2683
|
};
|
|
2214
2684
|
|
|
2215
2685
|
/** @internal */
|
|
2216
|
-
export const
|
|
2217
|
-
|
|
2686
|
+
export const HTTPTool$outboundSchema: z.ZodType<
|
|
2687
|
+
HTTPTool$Outbound,
|
|
2218
2688
|
z.ZodTypeDef,
|
|
2219
|
-
|
|
2689
|
+
HTTPTool
|
|
2220
2690
|
> = z.object({
|
|
2221
|
-
id: z.string().default("
|
|
2222
|
-
path: z.string(),
|
|
2691
|
+
id: z.string().default("01K6B3TVWQRGGQ37MWVXXVDPCP"),
|
|
2223
2692
|
key: z.string(),
|
|
2224
2693
|
displayName: z.string(),
|
|
2225
2694
|
description: z.string(),
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
type: ToolsType$outboundSchema,
|
|
2695
|
+
type:
|
|
2696
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2229
2697
|
http: z.lazy(() => Http$outboundSchema),
|
|
2230
2698
|
requiresApproval: z.boolean().default(false),
|
|
2231
2699
|
}).transform((v) => {
|
|
2232
2700
|
return remap$(v, {
|
|
2233
2701
|
id: "_id",
|
|
2234
2702
|
displayName: "display_name",
|
|
2235
|
-
versionHash: "version_hash",
|
|
2236
2703
|
requiresApproval: "requires_approval",
|
|
2237
2704
|
});
|
|
2238
2705
|
});
|
|
@@ -2241,214 +2708,1023 @@ export const TwentyFour$outboundSchema: z.ZodType<
|
|
|
2241
2708
|
* @internal
|
|
2242
2709
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2243
2710
|
*/
|
|
2244
|
-
export namespace
|
|
2245
|
-
/** @deprecated use `
|
|
2246
|
-
export const inboundSchema =
|
|
2247
|
-
/** @deprecated use `
|
|
2248
|
-
export const outboundSchema =
|
|
2249
|
-
/** @deprecated use `
|
|
2250
|
-
export type Outbound =
|
|
2711
|
+
export namespace HTTPTool$ {
|
|
2712
|
+
/** @deprecated use `HTTPTool$inboundSchema` instead. */
|
|
2713
|
+
export const inboundSchema = HTTPTool$inboundSchema;
|
|
2714
|
+
/** @deprecated use `HTTPTool$outboundSchema` instead. */
|
|
2715
|
+
export const outboundSchema = HTTPTool$outboundSchema;
|
|
2716
|
+
/** @deprecated use `HTTPTool$Outbound` instead. */
|
|
2717
|
+
export type Outbound = HTTPTool$Outbound;
|
|
2251
2718
|
}
|
|
2252
2719
|
|
|
2253
|
-
export function
|
|
2254
|
-
return JSON.stringify(
|
|
2720
|
+
export function httpToolToJSON(httpTool: HTTPTool): string {
|
|
2721
|
+
return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
|
|
2255
2722
|
}
|
|
2256
2723
|
|
|
2257
|
-
export function
|
|
2724
|
+
export function httpToolFromJSON(
|
|
2258
2725
|
jsonString: string,
|
|
2259
|
-
): SafeParseResult<
|
|
2726
|
+
): SafeParseResult<HTTPTool, SDKValidationError> {
|
|
2260
2727
|
return safeParse(
|
|
2261
2728
|
jsonString,
|
|
2262
|
-
(x) =>
|
|
2263
|
-
`Failed to parse '
|
|
2729
|
+
(x) => HTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
2730
|
+
`Failed to parse 'HTTPTool' from JSON`,
|
|
2264
2731
|
);
|
|
2265
2732
|
}
|
|
2266
2733
|
|
|
2267
2734
|
/** @internal */
|
|
2268
|
-
export const
|
|
2269
|
-
.
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2282
|
-
type: v.type,
|
|
2283
|
-
})),
|
|
2284
|
-
),
|
|
2285
|
-
components.GoogleSearchTool$inboundSchema.and(
|
|
2286
|
-
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2287
|
-
type: v.type,
|
|
2288
|
-
})),
|
|
2289
|
-
),
|
|
2290
|
-
components.WebScraperTool$inboundSchema.and(
|
|
2291
|
-
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2292
|
-
type: v.type,
|
|
2293
|
-
})),
|
|
2294
|
-
),
|
|
2295
|
-
components.CallSubAgentTool$inboundSchema.and(
|
|
2296
|
-
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2297
|
-
type: v.type,
|
|
2298
|
-
})),
|
|
2299
|
-
),
|
|
2300
|
-
components.RetrieveAgentsTool$inboundSchema.and(
|
|
2301
|
-
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2302
|
-
type: v.type,
|
|
2303
|
-
})),
|
|
2304
|
-
),
|
|
2305
|
-
components.QueryMemoryStoreTool$inboundSchema.and(
|
|
2306
|
-
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2307
|
-
type: v.type,
|
|
2308
|
-
})),
|
|
2309
|
-
),
|
|
2310
|
-
components.WriteMemoryStoreTool$inboundSchema.and(
|
|
2311
|
-
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2312
|
-
type: v.type,
|
|
2313
|
-
})),
|
|
2314
|
-
),
|
|
2315
|
-
components.RetrieveMemoryStoresTool$inboundSchema.and(
|
|
2316
|
-
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2317
|
-
v,
|
|
2318
|
-
) => ({ type: v.type })),
|
|
2319
|
-
),
|
|
2320
|
-
components.RetrieveKnowledgeBasesTool$inboundSchema.and(
|
|
2321
|
-
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2322
|
-
v,
|
|
2323
|
-
) => ({ type: v.type })),
|
|
2324
|
-
),
|
|
2325
|
-
components.QueryKnowledgeBaseTool$inboundSchema.and(
|
|
2326
|
-
z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
|
|
2327
|
-
type: v.type,
|
|
2328
|
-
})),
|
|
2329
|
-
),
|
|
2330
|
-
components.CurrentDateTool$inboundSchema.and(
|
|
2331
|
-
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2332
|
-
type: v.type,
|
|
2333
|
-
})),
|
|
2334
|
-
),
|
|
2335
|
-
]);
|
|
2336
|
-
|
|
2337
|
-
/** @internal */
|
|
2338
|
-
export type Tools$Outbound =
|
|
2339
|
-
| (components.HttpTool$Outbound & { type: "http" })
|
|
2340
|
-
| (components.CodeExecutionTool$Outbound & { type: "code" })
|
|
2341
|
-
| (components.FunctionTool$Outbound & { type: "function" })
|
|
2342
|
-
| (components.GoogleSearchTool$Outbound & { type: "google_search" })
|
|
2343
|
-
| (components.WebScraperTool$Outbound & { type: "web_scraper" })
|
|
2344
|
-
| (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
|
|
2345
|
-
| (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
|
|
2346
|
-
| (components.QueryMemoryStoreTool$Outbound & { type: "query_memory_store" })
|
|
2347
|
-
| (components.WriteMemoryStoreTool$Outbound & { type: "write_memory_store" })
|
|
2348
|
-
| (components.RetrieveMemoryStoresTool$Outbound & {
|
|
2349
|
-
type: "retrieve_memory_stores";
|
|
2350
|
-
})
|
|
2351
|
-
| (components.RetrieveKnowledgeBasesTool$Outbound & {
|
|
2352
|
-
type: "retrieve_knowledge_bases";
|
|
2353
|
-
})
|
|
2354
|
-
| (components.QueryKnowledgeBaseTool$Outbound & {
|
|
2355
|
-
type: "query_knowledge_base";
|
|
2356
|
-
})
|
|
2357
|
-
| (components.CurrentDateTool$Outbound & { type: "current_date" });
|
|
2358
|
-
|
|
2359
|
-
/** @internal */
|
|
2360
|
-
export const Tools$outboundSchema: z.ZodType<
|
|
2361
|
-
Tools$Outbound,
|
|
2362
|
-
z.ZodTypeDef,
|
|
2363
|
-
Tools
|
|
2364
|
-
> = z.union([
|
|
2365
|
-
components.HttpTool$outboundSchema.and(
|
|
2366
|
-
z.object({ type: z.literal("http") }).transform((v) => ({ type: v.type })),
|
|
2367
|
-
),
|
|
2368
|
-
components.CodeExecutionTool$outboundSchema.and(
|
|
2369
|
-
z.object({ type: z.literal("code") }).transform((v) => ({ type: v.type })),
|
|
2370
|
-
),
|
|
2371
|
-
components.FunctionTool$outboundSchema.and(
|
|
2372
|
-
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2373
|
-
type: v.type,
|
|
2374
|
-
})),
|
|
2375
|
-
),
|
|
2376
|
-
components.GoogleSearchTool$outboundSchema.and(
|
|
2377
|
-
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2378
|
-
type: v.type,
|
|
2379
|
-
})),
|
|
2380
|
-
),
|
|
2381
|
-
components.WebScraperTool$outboundSchema.and(
|
|
2382
|
-
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2383
|
-
type: v.type,
|
|
2384
|
-
})),
|
|
2385
|
-
),
|
|
2386
|
-
components.CallSubAgentTool$outboundSchema.and(
|
|
2387
|
-
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2388
|
-
type: v.type,
|
|
2389
|
-
})),
|
|
2390
|
-
),
|
|
2391
|
-
components.RetrieveAgentsTool$outboundSchema.and(
|
|
2392
|
-
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2393
|
-
type: v.type,
|
|
2394
|
-
})),
|
|
2395
|
-
),
|
|
2396
|
-
components.QueryMemoryStoreTool$outboundSchema.and(
|
|
2397
|
-
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2398
|
-
type: v.type,
|
|
2399
|
-
})),
|
|
2400
|
-
),
|
|
2401
|
-
components.WriteMemoryStoreTool$outboundSchema.and(
|
|
2402
|
-
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2403
|
-
type: v.type,
|
|
2404
|
-
})),
|
|
2405
|
-
),
|
|
2406
|
-
components.RetrieveMemoryStoresTool$outboundSchema.and(
|
|
2407
|
-
z.object({ type: z.literal("retrieve_memory_stores") }).transform((v) => ({
|
|
2408
|
-
type: v.type,
|
|
2409
|
-
})),
|
|
2410
|
-
),
|
|
2411
|
-
components.RetrieveKnowledgeBasesTool$outboundSchema.and(
|
|
2412
|
-
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2413
|
-
v,
|
|
2414
|
-
) => ({ type: v.type })),
|
|
2415
|
-
),
|
|
2416
|
-
components.QueryKnowledgeBaseTool$outboundSchema.and(
|
|
2417
|
-
z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
|
|
2418
|
-
type: v.type,
|
|
2419
|
-
})),
|
|
2420
|
-
),
|
|
2421
|
-
components.CurrentDateTool$outboundSchema.and(
|
|
2422
|
-
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2423
|
-
type: v.type,
|
|
2424
|
-
})),
|
|
2425
|
-
),
|
|
2426
|
-
]);
|
|
2735
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
2736
|
+
z.ZodNativeEnum<
|
|
2737
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
|
|
2738
|
+
> = z.nativeEnum(
|
|
2739
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type,
|
|
2740
|
+
);
|
|
2741
|
+
|
|
2742
|
+
/** @internal */
|
|
2743
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
2744
|
+
z.ZodNativeEnum<
|
|
2745
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
|
|
2746
|
+
> =
|
|
2747
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2427
2748
|
|
|
2428
2749
|
/**
|
|
2429
2750
|
* @internal
|
|
2430
2751
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2431
2752
|
*/
|
|
2432
|
-
export namespace
|
|
2433
|
-
/** @deprecated use `
|
|
2434
|
-
export const inboundSchema =
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2753
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2754
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
2755
|
+
export const inboundSchema =
|
|
2756
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2757
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
2758
|
+
export const outboundSchema =
|
|
2759
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
2439
2760
|
}
|
|
2440
2761
|
|
|
2441
|
-
|
|
2442
|
-
|
|
2762
|
+
/** @internal */
|
|
2763
|
+
export const CurrentDateTool$inboundSchema: z.ZodType<
|
|
2764
|
+
CurrentDateTool,
|
|
2765
|
+
z.ZodTypeDef,
|
|
2766
|
+
unknown
|
|
2767
|
+
> = z.object({
|
|
2768
|
+
type:
|
|
2769
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2770
|
+
requires_approval: z.boolean().default(false),
|
|
2771
|
+
}).transform((v) => {
|
|
2772
|
+
return remap$(v, {
|
|
2773
|
+
"requires_approval": "requiresApproval",
|
|
2774
|
+
});
|
|
2775
|
+
});
|
|
2776
|
+
|
|
2777
|
+
/** @internal */
|
|
2778
|
+
export type CurrentDateTool$Outbound = {
|
|
2779
|
+
type: string;
|
|
2780
|
+
requires_approval: boolean;
|
|
2781
|
+
};
|
|
2782
|
+
|
|
2783
|
+
/** @internal */
|
|
2784
|
+
export const CurrentDateTool$outboundSchema: z.ZodType<
|
|
2785
|
+
CurrentDateTool$Outbound,
|
|
2786
|
+
z.ZodTypeDef,
|
|
2787
|
+
CurrentDateTool
|
|
2788
|
+
> = z.object({
|
|
2789
|
+
type:
|
|
2790
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
2791
|
+
requiresApproval: z.boolean().default(false),
|
|
2792
|
+
}).transform((v) => {
|
|
2793
|
+
return remap$(v, {
|
|
2794
|
+
requiresApproval: "requires_approval",
|
|
2795
|
+
});
|
|
2796
|
+
});
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* @internal
|
|
2800
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2801
|
+
*/
|
|
2802
|
+
export namespace CurrentDateTool$ {
|
|
2803
|
+
/** @deprecated use `CurrentDateTool$inboundSchema` instead. */
|
|
2804
|
+
export const inboundSchema = CurrentDateTool$inboundSchema;
|
|
2805
|
+
/** @deprecated use `CurrentDateTool$outboundSchema` instead. */
|
|
2806
|
+
export const outboundSchema = CurrentDateTool$outboundSchema;
|
|
2807
|
+
/** @deprecated use `CurrentDateTool$Outbound` instead. */
|
|
2808
|
+
export type Outbound = CurrentDateTool$Outbound;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
export function currentDateToolToJSON(
|
|
2812
|
+
currentDateTool: CurrentDateTool,
|
|
2813
|
+
): string {
|
|
2814
|
+
return JSON.stringify(CurrentDateTool$outboundSchema.parse(currentDateTool));
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
export function currentDateToolFromJSON(
|
|
2818
|
+
jsonString: string,
|
|
2819
|
+
): SafeParseResult<CurrentDateTool, SDKValidationError> {
|
|
2820
|
+
return safeParse(
|
|
2821
|
+
jsonString,
|
|
2822
|
+
(x) => CurrentDateTool$inboundSchema.parse(JSON.parse(x)),
|
|
2823
|
+
`Failed to parse 'CurrentDateTool' from JSON`,
|
|
2824
|
+
);
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
/** @internal */
|
|
2828
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
2829
|
+
z.ZodNativeEnum<
|
|
2830
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
|
|
2831
|
+
> = z.nativeEnum(
|
|
2832
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type,
|
|
2833
|
+
);
|
|
2834
|
+
|
|
2835
|
+
/** @internal */
|
|
2836
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
2837
|
+
z.ZodNativeEnum<
|
|
2838
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
|
|
2839
|
+
> =
|
|
2840
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* @internal
|
|
2844
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2845
|
+
*/
|
|
2846
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2847
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
2848
|
+
export const inboundSchema =
|
|
2849
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2850
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
2851
|
+
export const outboundSchema =
|
|
2852
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
/** @internal */
|
|
2856
|
+
export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
2857
|
+
QueryKnowledgeBaseTool,
|
|
2858
|
+
z.ZodTypeDef,
|
|
2859
|
+
unknown
|
|
2860
|
+
> = z.object({
|
|
2861
|
+
type:
|
|
2862
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
2863
|
+
requires_approval: z.boolean().default(false),
|
|
2864
|
+
}).transform((v) => {
|
|
2865
|
+
return remap$(v, {
|
|
2866
|
+
"requires_approval": "requiresApproval",
|
|
2867
|
+
});
|
|
2868
|
+
});
|
|
2869
|
+
|
|
2870
|
+
/** @internal */
|
|
2871
|
+
export type QueryKnowledgeBaseTool$Outbound = {
|
|
2872
|
+
type: string;
|
|
2873
|
+
requires_approval: boolean;
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
/** @internal */
|
|
2877
|
+
export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
2878
|
+
QueryKnowledgeBaseTool$Outbound,
|
|
2879
|
+
z.ZodTypeDef,
|
|
2880
|
+
QueryKnowledgeBaseTool
|
|
2881
|
+
> = z.object({
|
|
2882
|
+
type:
|
|
2883
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
2884
|
+
requiresApproval: z.boolean().default(false),
|
|
2885
|
+
}).transform((v) => {
|
|
2886
|
+
return remap$(v, {
|
|
2887
|
+
requiresApproval: "requires_approval",
|
|
2888
|
+
});
|
|
2889
|
+
});
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* @internal
|
|
2893
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2894
|
+
*/
|
|
2895
|
+
export namespace QueryKnowledgeBaseTool$ {
|
|
2896
|
+
/** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
2897
|
+
export const inboundSchema = QueryKnowledgeBaseTool$inboundSchema;
|
|
2898
|
+
/** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
2899
|
+
export const outboundSchema = QueryKnowledgeBaseTool$outboundSchema;
|
|
2900
|
+
/** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
|
|
2901
|
+
export type Outbound = QueryKnowledgeBaseTool$Outbound;
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
export function queryKnowledgeBaseToolToJSON(
|
|
2905
|
+
queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
|
|
2906
|
+
): string {
|
|
2907
|
+
return JSON.stringify(
|
|
2908
|
+
QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
|
|
2909
|
+
);
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
export function queryKnowledgeBaseToolFromJSON(
|
|
2913
|
+
jsonString: string,
|
|
2914
|
+
): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError> {
|
|
2915
|
+
return safeParse(
|
|
2916
|
+
jsonString,
|
|
2917
|
+
(x) => QueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)),
|
|
2918
|
+
`Failed to parse 'QueryKnowledgeBaseTool' from JSON`,
|
|
2919
|
+
);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/** @internal */
|
|
2923
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
2924
|
+
z.ZodNativeEnum<
|
|
2925
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
|
|
2926
|
+
> = z.nativeEnum(
|
|
2927
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type,
|
|
2928
|
+
);
|
|
2929
|
+
|
|
2930
|
+
/** @internal */
|
|
2931
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
2932
|
+
z.ZodNativeEnum<
|
|
2933
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
|
|
2934
|
+
> =
|
|
2935
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2936
|
+
|
|
2937
|
+
/**
|
|
2938
|
+
* @internal
|
|
2939
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2940
|
+
*/
|
|
2941
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
|
|
2942
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
2943
|
+
export const inboundSchema =
|
|
2944
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2945
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
2946
|
+
export const outboundSchema =
|
|
2947
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
/** @internal */
|
|
2951
|
+
export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
|
|
2952
|
+
RetrieveKnowledgeBasesTool,
|
|
2953
|
+
z.ZodTypeDef,
|
|
2954
|
+
unknown
|
|
2955
|
+
> = z.object({
|
|
2956
|
+
type:
|
|
2957
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
2958
|
+
requires_approval: z.boolean().default(false),
|
|
2959
|
+
}).transform((v) => {
|
|
2960
|
+
return remap$(v, {
|
|
2961
|
+
"requires_approval": "requiresApproval",
|
|
2962
|
+
});
|
|
2963
|
+
});
|
|
2964
|
+
|
|
2965
|
+
/** @internal */
|
|
2966
|
+
export type RetrieveKnowledgeBasesTool$Outbound = {
|
|
2967
|
+
type: string;
|
|
2968
|
+
requires_approval: boolean;
|
|
2969
|
+
};
|
|
2970
|
+
|
|
2971
|
+
/** @internal */
|
|
2972
|
+
export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
|
|
2973
|
+
RetrieveKnowledgeBasesTool$Outbound,
|
|
2974
|
+
z.ZodTypeDef,
|
|
2975
|
+
RetrieveKnowledgeBasesTool
|
|
2976
|
+
> = z.object({
|
|
2977
|
+
type:
|
|
2978
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
2979
|
+
requiresApproval: z.boolean().default(false),
|
|
2980
|
+
}).transform((v) => {
|
|
2981
|
+
return remap$(v, {
|
|
2982
|
+
requiresApproval: "requires_approval",
|
|
2983
|
+
});
|
|
2984
|
+
});
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* @internal
|
|
2988
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2989
|
+
*/
|
|
2990
|
+
export namespace RetrieveKnowledgeBasesTool$ {
|
|
2991
|
+
/** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
2992
|
+
export const inboundSchema = RetrieveKnowledgeBasesTool$inboundSchema;
|
|
2993
|
+
/** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
2994
|
+
export const outboundSchema = RetrieveKnowledgeBasesTool$outboundSchema;
|
|
2995
|
+
/** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2996
|
+
export type Outbound = RetrieveKnowledgeBasesTool$Outbound;
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
export function retrieveKnowledgeBasesToolToJSON(
|
|
3000
|
+
retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
|
|
3001
|
+
): string {
|
|
3002
|
+
return JSON.stringify(
|
|
3003
|
+
RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
|
|
3004
|
+
);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
export function retrieveKnowledgeBasesToolFromJSON(
|
|
3008
|
+
jsonString: string,
|
|
3009
|
+
): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError> {
|
|
3010
|
+
return safeParse(
|
|
3011
|
+
jsonString,
|
|
3012
|
+
(x) => RetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)),
|
|
3013
|
+
`Failed to parse 'RetrieveKnowledgeBasesTool' from JSON`,
|
|
3014
|
+
);
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
/** @internal */
|
|
3018
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3019
|
+
z.ZodNativeEnum<
|
|
3020
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
|
|
3021
|
+
> = z.nativeEnum(
|
|
3022
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType,
|
|
3023
|
+
);
|
|
3024
|
+
|
|
3025
|
+
/** @internal */
|
|
3026
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3027
|
+
z.ZodNativeEnum<
|
|
3028
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
|
|
3029
|
+
> =
|
|
3030
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* @internal
|
|
3034
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3035
|
+
*/
|
|
3036
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
|
|
3037
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3038
|
+
export const inboundSchema =
|
|
3039
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3040
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3041
|
+
export const outboundSchema =
|
|
3042
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
/** @internal */
|
|
3046
|
+
export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
3047
|
+
RetrieveMemoryStoresTool,
|
|
3048
|
+
z.ZodTypeDef,
|
|
3049
|
+
unknown
|
|
3050
|
+
> = z.object({
|
|
3051
|
+
type:
|
|
3052
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3053
|
+
requires_approval: z.boolean().default(false),
|
|
3054
|
+
}).transform((v) => {
|
|
3055
|
+
return remap$(v, {
|
|
3056
|
+
"requires_approval": "requiresApproval",
|
|
3057
|
+
});
|
|
3058
|
+
});
|
|
3059
|
+
|
|
3060
|
+
/** @internal */
|
|
3061
|
+
export type RetrieveMemoryStoresTool$Outbound = {
|
|
3062
|
+
type: string;
|
|
3063
|
+
requires_approval: boolean;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
/** @internal */
|
|
3067
|
+
export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
|
|
3068
|
+
RetrieveMemoryStoresTool$Outbound,
|
|
3069
|
+
z.ZodTypeDef,
|
|
3070
|
+
RetrieveMemoryStoresTool
|
|
3071
|
+
> = z.object({
|
|
3072
|
+
type:
|
|
3073
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3074
|
+
requiresApproval: z.boolean().default(false),
|
|
3075
|
+
}).transform((v) => {
|
|
3076
|
+
return remap$(v, {
|
|
3077
|
+
requiresApproval: "requires_approval",
|
|
3078
|
+
});
|
|
3079
|
+
});
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* @internal
|
|
3083
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3084
|
+
*/
|
|
3085
|
+
export namespace RetrieveMemoryStoresTool$ {
|
|
3086
|
+
/** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3087
|
+
export const inboundSchema = RetrieveMemoryStoresTool$inboundSchema;
|
|
3088
|
+
/** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3089
|
+
export const outboundSchema = RetrieveMemoryStoresTool$outboundSchema;
|
|
3090
|
+
/** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
|
|
3091
|
+
export type Outbound = RetrieveMemoryStoresTool$Outbound;
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
export function retrieveMemoryStoresToolToJSON(
|
|
3095
|
+
retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
|
|
3096
|
+
): string {
|
|
3097
|
+
return JSON.stringify(
|
|
3098
|
+
RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
|
|
3099
|
+
);
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
export function retrieveMemoryStoresToolFromJSON(
|
|
3103
|
+
jsonString: string,
|
|
3104
|
+
): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError> {
|
|
3105
|
+
return safeParse(
|
|
3106
|
+
jsonString,
|
|
3107
|
+
(x) => RetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)),
|
|
3108
|
+
`Failed to parse 'RetrieveMemoryStoresTool' from JSON`,
|
|
3109
|
+
);
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
/** @internal */
|
|
3113
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3114
|
+
z.ZodNativeEnum<
|
|
3115
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
|
|
3116
|
+
> = z.nativeEnum(
|
|
3117
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType,
|
|
3118
|
+
);
|
|
3119
|
+
|
|
3120
|
+
/** @internal */
|
|
3121
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3122
|
+
z.ZodNativeEnum<
|
|
3123
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
|
|
3124
|
+
> =
|
|
3125
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* @internal
|
|
3129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3130
|
+
*/
|
|
3131
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
|
|
3132
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3133
|
+
export const inboundSchema =
|
|
3134
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3135
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3136
|
+
export const outboundSchema =
|
|
3137
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
/** @internal */
|
|
3141
|
+
export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3142
|
+
WriteMemoryStoreTool,
|
|
3143
|
+
z.ZodTypeDef,
|
|
3144
|
+
unknown
|
|
3145
|
+
> = z.object({
|
|
3146
|
+
type:
|
|
3147
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3148
|
+
requires_approval: z.boolean().default(false),
|
|
3149
|
+
}).transform((v) => {
|
|
3150
|
+
return remap$(v, {
|
|
3151
|
+
"requires_approval": "requiresApproval",
|
|
3152
|
+
});
|
|
3153
|
+
});
|
|
3154
|
+
|
|
3155
|
+
/** @internal */
|
|
3156
|
+
export type WriteMemoryStoreTool$Outbound = {
|
|
3157
|
+
type: string;
|
|
3158
|
+
requires_approval: boolean;
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
/** @internal */
|
|
3162
|
+
export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3163
|
+
WriteMemoryStoreTool$Outbound,
|
|
3164
|
+
z.ZodTypeDef,
|
|
3165
|
+
WriteMemoryStoreTool
|
|
3166
|
+
> = z.object({
|
|
3167
|
+
type:
|
|
3168
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3169
|
+
requiresApproval: z.boolean().default(false),
|
|
3170
|
+
}).transform((v) => {
|
|
3171
|
+
return remap$(v, {
|
|
3172
|
+
requiresApproval: "requires_approval",
|
|
3173
|
+
});
|
|
3174
|
+
});
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* @internal
|
|
3178
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3179
|
+
*/
|
|
3180
|
+
export namespace WriteMemoryStoreTool$ {
|
|
3181
|
+
/** @deprecated use `WriteMemoryStoreTool$inboundSchema` instead. */
|
|
3182
|
+
export const inboundSchema = WriteMemoryStoreTool$inboundSchema;
|
|
3183
|
+
/** @deprecated use `WriteMemoryStoreTool$outboundSchema` instead. */
|
|
3184
|
+
export const outboundSchema = WriteMemoryStoreTool$outboundSchema;
|
|
3185
|
+
/** @deprecated use `WriteMemoryStoreTool$Outbound` instead. */
|
|
3186
|
+
export type Outbound = WriteMemoryStoreTool$Outbound;
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
export function writeMemoryStoreToolToJSON(
|
|
3190
|
+
writeMemoryStoreTool: WriteMemoryStoreTool,
|
|
3191
|
+
): string {
|
|
3192
|
+
return JSON.stringify(
|
|
3193
|
+
WriteMemoryStoreTool$outboundSchema.parse(writeMemoryStoreTool),
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
export function writeMemoryStoreToolFromJSON(
|
|
3198
|
+
jsonString: string,
|
|
3199
|
+
): SafeParseResult<WriteMemoryStoreTool, SDKValidationError> {
|
|
3200
|
+
return safeParse(
|
|
3201
|
+
jsonString,
|
|
3202
|
+
(x) => WriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3203
|
+
`Failed to parse 'WriteMemoryStoreTool' from JSON`,
|
|
3204
|
+
);
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
/** @internal */
|
|
3208
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema:
|
|
3209
|
+
z.ZodNativeEnum<
|
|
3210
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
|
|
3211
|
+
> = z.nativeEnum(RunAgentRunAgentRequestToolAgentsRequestRequestBodyType);
|
|
3212
|
+
|
|
3213
|
+
/** @internal */
|
|
3214
|
+
export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema:
|
|
3215
|
+
z.ZodNativeEnum<
|
|
3216
|
+
typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
|
|
3217
|
+
> = RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* @internal
|
|
3221
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3222
|
+
*/
|
|
3223
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
|
|
3224
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3225
|
+
export const inboundSchema =
|
|
3226
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
|
|
3227
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3228
|
+
export const outboundSchema =
|
|
3229
|
+
RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
/** @internal */
|
|
3233
|
+
export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3234
|
+
QueryMemoryStoreTool,
|
|
3235
|
+
z.ZodTypeDef,
|
|
3236
|
+
unknown
|
|
3237
|
+
> = z.object({
|
|
3238
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema,
|
|
3239
|
+
requires_approval: z.boolean().default(false),
|
|
3240
|
+
}).transform((v) => {
|
|
3241
|
+
return remap$(v, {
|
|
3242
|
+
"requires_approval": "requiresApproval",
|
|
3243
|
+
});
|
|
3244
|
+
});
|
|
3245
|
+
|
|
3246
|
+
/** @internal */
|
|
3247
|
+
export type QueryMemoryStoreTool$Outbound = {
|
|
3248
|
+
type: string;
|
|
3249
|
+
requires_approval: boolean;
|
|
3250
|
+
};
|
|
3251
|
+
|
|
3252
|
+
/** @internal */
|
|
3253
|
+
export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3254
|
+
QueryMemoryStoreTool$Outbound,
|
|
3255
|
+
z.ZodTypeDef,
|
|
3256
|
+
QueryMemoryStoreTool
|
|
3257
|
+
> = z.object({
|
|
3258
|
+
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema,
|
|
3259
|
+
requiresApproval: z.boolean().default(false),
|
|
3260
|
+
}).transform((v) => {
|
|
3261
|
+
return remap$(v, {
|
|
3262
|
+
requiresApproval: "requires_approval",
|
|
3263
|
+
});
|
|
3264
|
+
});
|
|
3265
|
+
|
|
3266
|
+
/**
|
|
3267
|
+
* @internal
|
|
3268
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3269
|
+
*/
|
|
3270
|
+
export namespace QueryMemoryStoreTool$ {
|
|
3271
|
+
/** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
|
|
3272
|
+
export const inboundSchema = QueryMemoryStoreTool$inboundSchema;
|
|
3273
|
+
/** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
|
|
3274
|
+
export const outboundSchema = QueryMemoryStoreTool$outboundSchema;
|
|
3275
|
+
/** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
|
|
3276
|
+
export type Outbound = QueryMemoryStoreTool$Outbound;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
export function queryMemoryStoreToolToJSON(
|
|
3280
|
+
queryMemoryStoreTool: QueryMemoryStoreTool,
|
|
3281
|
+
): string {
|
|
3282
|
+
return JSON.stringify(
|
|
3283
|
+
QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
|
|
3284
|
+
);
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
export function queryMemoryStoreToolFromJSON(
|
|
3288
|
+
jsonString: string,
|
|
3289
|
+
): SafeParseResult<QueryMemoryStoreTool, SDKValidationError> {
|
|
3290
|
+
return safeParse(
|
|
3291
|
+
jsonString,
|
|
3292
|
+
(x) => QueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3293
|
+
`Failed to parse 'QueryMemoryStoreTool' from JSON`,
|
|
3294
|
+
);
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
/** @internal */
|
|
3298
|
+
export const RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema:
|
|
3299
|
+
z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> = z
|
|
3300
|
+
.nativeEnum(RunAgentRunAgentRequestToolAgentsRequestType);
|
|
3301
|
+
|
|
3302
|
+
/** @internal */
|
|
3303
|
+
export const RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema:
|
|
3304
|
+
z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> =
|
|
3305
|
+
RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* @internal
|
|
3309
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3310
|
+
*/
|
|
3311
|
+
export namespace RunAgentRunAgentRequestToolAgentsRequestType$ {
|
|
3312
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
|
|
3313
|
+
export const inboundSchema =
|
|
3314
|
+
RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
|
|
3315
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
|
|
3316
|
+
export const outboundSchema =
|
|
3317
|
+
RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
/** @internal */
|
|
3321
|
+
export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
3322
|
+
RetrieveAgentsTool,
|
|
3323
|
+
z.ZodTypeDef,
|
|
3324
|
+
unknown
|
|
3325
|
+
> = z.object({
|
|
3326
|
+
type: RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema,
|
|
3327
|
+
requires_approval: z.boolean().default(false),
|
|
3328
|
+
}).transform((v) => {
|
|
3329
|
+
return remap$(v, {
|
|
3330
|
+
"requires_approval": "requiresApproval",
|
|
3331
|
+
});
|
|
3332
|
+
});
|
|
3333
|
+
|
|
3334
|
+
/** @internal */
|
|
3335
|
+
export type RetrieveAgentsTool$Outbound = {
|
|
3336
|
+
type: string;
|
|
3337
|
+
requires_approval: boolean;
|
|
3338
|
+
};
|
|
3339
|
+
|
|
3340
|
+
/** @internal */
|
|
3341
|
+
export const RetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
3342
|
+
RetrieveAgentsTool$Outbound,
|
|
3343
|
+
z.ZodTypeDef,
|
|
3344
|
+
RetrieveAgentsTool
|
|
3345
|
+
> = z.object({
|
|
3346
|
+
type: RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema,
|
|
3347
|
+
requiresApproval: z.boolean().default(false),
|
|
3348
|
+
}).transform((v) => {
|
|
3349
|
+
return remap$(v, {
|
|
3350
|
+
requiresApproval: "requires_approval",
|
|
3351
|
+
});
|
|
3352
|
+
});
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* @internal
|
|
3356
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3357
|
+
*/
|
|
3358
|
+
export namespace RetrieveAgentsTool$ {
|
|
3359
|
+
/** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
|
|
3360
|
+
export const inboundSchema = RetrieveAgentsTool$inboundSchema;
|
|
3361
|
+
/** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
|
|
3362
|
+
export const outboundSchema = RetrieveAgentsTool$outboundSchema;
|
|
3363
|
+
/** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
|
|
3364
|
+
export type Outbound = RetrieveAgentsTool$Outbound;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
export function retrieveAgentsToolToJSON(
|
|
3368
|
+
retrieveAgentsTool: RetrieveAgentsTool,
|
|
3369
|
+
): string {
|
|
3370
|
+
return JSON.stringify(
|
|
3371
|
+
RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
|
|
3372
|
+
);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
export function retrieveAgentsToolFromJSON(
|
|
3376
|
+
jsonString: string,
|
|
3377
|
+
): SafeParseResult<RetrieveAgentsTool, SDKValidationError> {
|
|
3378
|
+
return safeParse(
|
|
3379
|
+
jsonString,
|
|
3380
|
+
(x) => RetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
3381
|
+
`Failed to parse 'RetrieveAgentsTool' from JSON`,
|
|
3382
|
+
);
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
/** @internal */
|
|
3386
|
+
export const RunAgentRunAgentRequestToolAgentsType$inboundSchema:
|
|
3387
|
+
z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> = z.nativeEnum(
|
|
3388
|
+
RunAgentRunAgentRequestToolAgentsType,
|
|
3389
|
+
);
|
|
3390
|
+
|
|
3391
|
+
/** @internal */
|
|
3392
|
+
export const RunAgentRunAgentRequestToolAgentsType$outboundSchema:
|
|
3393
|
+
z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> =
|
|
3394
|
+
RunAgentRunAgentRequestToolAgentsType$inboundSchema;
|
|
3395
|
+
|
|
3396
|
+
/**
|
|
3397
|
+
* @internal
|
|
3398
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3399
|
+
*/
|
|
3400
|
+
export namespace RunAgentRunAgentRequestToolAgentsType$ {
|
|
3401
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
|
|
3402
|
+
export const inboundSchema =
|
|
3403
|
+
RunAgentRunAgentRequestToolAgentsType$inboundSchema;
|
|
3404
|
+
/** @deprecated use `RunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
|
|
3405
|
+
export const outboundSchema =
|
|
3406
|
+
RunAgentRunAgentRequestToolAgentsType$outboundSchema;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
/** @internal */
|
|
3410
|
+
export const CallSubAgentTool$inboundSchema: z.ZodType<
|
|
3411
|
+
CallSubAgentTool,
|
|
3412
|
+
z.ZodTypeDef,
|
|
3413
|
+
unknown
|
|
3414
|
+
> = z.object({
|
|
3415
|
+
type: RunAgentRunAgentRequestToolAgentsType$inboundSchema,
|
|
3416
|
+
requires_approval: z.boolean().default(false),
|
|
3417
|
+
}).transform((v) => {
|
|
3418
|
+
return remap$(v, {
|
|
3419
|
+
"requires_approval": "requiresApproval",
|
|
3420
|
+
});
|
|
3421
|
+
});
|
|
3422
|
+
|
|
3423
|
+
/** @internal */
|
|
3424
|
+
export type CallSubAgentTool$Outbound = {
|
|
3425
|
+
type: string;
|
|
3426
|
+
requires_approval: boolean;
|
|
3427
|
+
};
|
|
3428
|
+
|
|
3429
|
+
/** @internal */
|
|
3430
|
+
export const CallSubAgentTool$outboundSchema: z.ZodType<
|
|
3431
|
+
CallSubAgentTool$Outbound,
|
|
3432
|
+
z.ZodTypeDef,
|
|
3433
|
+
CallSubAgentTool
|
|
3434
|
+
> = z.object({
|
|
3435
|
+
type: RunAgentRunAgentRequestToolAgentsType$outboundSchema,
|
|
3436
|
+
requiresApproval: z.boolean().default(false),
|
|
3437
|
+
}).transform((v) => {
|
|
3438
|
+
return remap$(v, {
|
|
3439
|
+
requiresApproval: "requires_approval",
|
|
3440
|
+
});
|
|
3441
|
+
});
|
|
3442
|
+
|
|
3443
|
+
/**
|
|
3444
|
+
* @internal
|
|
3445
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3446
|
+
*/
|
|
3447
|
+
export namespace CallSubAgentTool$ {
|
|
3448
|
+
/** @deprecated use `CallSubAgentTool$inboundSchema` instead. */
|
|
3449
|
+
export const inboundSchema = CallSubAgentTool$inboundSchema;
|
|
3450
|
+
/** @deprecated use `CallSubAgentTool$outboundSchema` instead. */
|
|
3451
|
+
export const outboundSchema = CallSubAgentTool$outboundSchema;
|
|
3452
|
+
/** @deprecated use `CallSubAgentTool$Outbound` instead. */
|
|
3453
|
+
export type Outbound = CallSubAgentTool$Outbound;
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
export function callSubAgentToolToJSON(
|
|
3457
|
+
callSubAgentTool: CallSubAgentTool,
|
|
3458
|
+
): string {
|
|
3459
|
+
return JSON.stringify(
|
|
3460
|
+
CallSubAgentTool$outboundSchema.parse(callSubAgentTool),
|
|
3461
|
+
);
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export function callSubAgentToolFromJSON(
|
|
3465
|
+
jsonString: string,
|
|
3466
|
+
): SafeParseResult<CallSubAgentTool, SDKValidationError> {
|
|
3467
|
+
return safeParse(
|
|
3468
|
+
jsonString,
|
|
3469
|
+
(x) => CallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
|
|
3470
|
+
`Failed to parse 'CallSubAgentTool' from JSON`,
|
|
3471
|
+
);
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
/** @internal */
|
|
3475
|
+
export const RunAgentRunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
|
|
3476
|
+
typeof RunAgentRunAgentRequestToolType
|
|
3477
|
+
> = z.nativeEnum(RunAgentRunAgentRequestToolType);
|
|
3478
|
+
|
|
3479
|
+
/** @internal */
|
|
3480
|
+
export const RunAgentRunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
|
|
3481
|
+
typeof RunAgentRunAgentRequestToolType
|
|
3482
|
+
> = RunAgentRunAgentRequestToolType$inboundSchema;
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* @internal
|
|
3486
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3487
|
+
*/
|
|
3488
|
+
export namespace RunAgentRunAgentRequestToolType$ {
|
|
3489
|
+
/** @deprecated use `RunAgentRunAgentRequestToolType$inboundSchema` instead. */
|
|
3490
|
+
export const inboundSchema = RunAgentRunAgentRequestToolType$inboundSchema;
|
|
3491
|
+
/** @deprecated use `RunAgentRunAgentRequestToolType$outboundSchema` instead. */
|
|
3492
|
+
export const outboundSchema = RunAgentRunAgentRequestToolType$outboundSchema;
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
/** @internal */
|
|
3496
|
+
export const WebScraperTool$inboundSchema: z.ZodType<
|
|
3497
|
+
WebScraperTool,
|
|
3498
|
+
z.ZodTypeDef,
|
|
3499
|
+
unknown
|
|
3500
|
+
> = z.object({
|
|
3501
|
+
type: RunAgentRunAgentRequestToolType$inboundSchema,
|
|
3502
|
+
requires_approval: z.boolean().default(false),
|
|
3503
|
+
}).transform((v) => {
|
|
3504
|
+
return remap$(v, {
|
|
3505
|
+
"requires_approval": "requiresApproval",
|
|
3506
|
+
});
|
|
3507
|
+
});
|
|
3508
|
+
|
|
3509
|
+
/** @internal */
|
|
3510
|
+
export type WebScraperTool$Outbound = {
|
|
3511
|
+
type: string;
|
|
3512
|
+
requires_approval: boolean;
|
|
3513
|
+
};
|
|
3514
|
+
|
|
3515
|
+
/** @internal */
|
|
3516
|
+
export const WebScraperTool$outboundSchema: z.ZodType<
|
|
3517
|
+
WebScraperTool$Outbound,
|
|
3518
|
+
z.ZodTypeDef,
|
|
3519
|
+
WebScraperTool
|
|
3520
|
+
> = z.object({
|
|
3521
|
+
type: RunAgentRunAgentRequestToolType$outboundSchema,
|
|
3522
|
+
requiresApproval: z.boolean().default(false),
|
|
3523
|
+
}).transform((v) => {
|
|
3524
|
+
return remap$(v, {
|
|
3525
|
+
requiresApproval: "requires_approval",
|
|
3526
|
+
});
|
|
3527
|
+
});
|
|
3528
|
+
|
|
3529
|
+
/**
|
|
3530
|
+
* @internal
|
|
3531
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3532
|
+
*/
|
|
3533
|
+
export namespace WebScraperTool$ {
|
|
3534
|
+
/** @deprecated use `WebScraperTool$inboundSchema` instead. */
|
|
3535
|
+
export const inboundSchema = WebScraperTool$inboundSchema;
|
|
3536
|
+
/** @deprecated use `WebScraperTool$outboundSchema` instead. */
|
|
3537
|
+
export const outboundSchema = WebScraperTool$outboundSchema;
|
|
3538
|
+
/** @deprecated use `WebScraperTool$Outbound` instead. */
|
|
3539
|
+
export type Outbound = WebScraperTool$Outbound;
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
|
|
3543
|
+
return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
export function webScraperToolFromJSON(
|
|
3547
|
+
jsonString: string,
|
|
3548
|
+
): SafeParseResult<WebScraperTool, SDKValidationError> {
|
|
3549
|
+
return safeParse(
|
|
3550
|
+
jsonString,
|
|
3551
|
+
(x) => WebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
3552
|
+
`Failed to parse 'WebScraperTool' from JSON`,
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
/** @internal */
|
|
3557
|
+
export const RunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
|
|
3558
|
+
typeof RunAgentRequestToolType
|
|
3559
|
+
> = z.nativeEnum(RunAgentRequestToolType);
|
|
3560
|
+
|
|
3561
|
+
/** @internal */
|
|
3562
|
+
export const RunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
|
|
3563
|
+
typeof RunAgentRequestToolType
|
|
3564
|
+
> = RunAgentRequestToolType$inboundSchema;
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* @internal
|
|
3568
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3569
|
+
*/
|
|
3570
|
+
export namespace RunAgentRequestToolType$ {
|
|
3571
|
+
/** @deprecated use `RunAgentRequestToolType$inboundSchema` instead. */
|
|
3572
|
+
export const inboundSchema = RunAgentRequestToolType$inboundSchema;
|
|
3573
|
+
/** @deprecated use `RunAgentRequestToolType$outboundSchema` instead. */
|
|
3574
|
+
export const outboundSchema = RunAgentRequestToolType$outboundSchema;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
/** @internal */
|
|
3578
|
+
export const GoogleSearchTool$inboundSchema: z.ZodType<
|
|
3579
|
+
GoogleSearchTool,
|
|
3580
|
+
z.ZodTypeDef,
|
|
3581
|
+
unknown
|
|
3582
|
+
> = z.object({
|
|
3583
|
+
type: RunAgentRequestToolType$inboundSchema,
|
|
3584
|
+
requires_approval: z.boolean().default(false),
|
|
3585
|
+
}).transform((v) => {
|
|
3586
|
+
return remap$(v, {
|
|
3587
|
+
"requires_approval": "requiresApproval",
|
|
3588
|
+
});
|
|
3589
|
+
});
|
|
3590
|
+
|
|
3591
|
+
/** @internal */
|
|
3592
|
+
export type GoogleSearchTool$Outbound = {
|
|
3593
|
+
type: string;
|
|
3594
|
+
requires_approval: boolean;
|
|
3595
|
+
};
|
|
3596
|
+
|
|
3597
|
+
/** @internal */
|
|
3598
|
+
export const GoogleSearchTool$outboundSchema: z.ZodType<
|
|
3599
|
+
GoogleSearchTool$Outbound,
|
|
3600
|
+
z.ZodTypeDef,
|
|
3601
|
+
GoogleSearchTool
|
|
3602
|
+
> = z.object({
|
|
3603
|
+
type: RunAgentRequestToolType$outboundSchema,
|
|
3604
|
+
requiresApproval: z.boolean().default(false),
|
|
3605
|
+
}).transform((v) => {
|
|
3606
|
+
return remap$(v, {
|
|
3607
|
+
requiresApproval: "requires_approval",
|
|
3608
|
+
});
|
|
3609
|
+
});
|
|
3610
|
+
|
|
3611
|
+
/**
|
|
3612
|
+
* @internal
|
|
3613
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3614
|
+
*/
|
|
3615
|
+
export namespace GoogleSearchTool$ {
|
|
3616
|
+
/** @deprecated use `GoogleSearchTool$inboundSchema` instead. */
|
|
3617
|
+
export const inboundSchema = GoogleSearchTool$inboundSchema;
|
|
3618
|
+
/** @deprecated use `GoogleSearchTool$outboundSchema` instead. */
|
|
3619
|
+
export const outboundSchema = GoogleSearchTool$outboundSchema;
|
|
3620
|
+
/** @deprecated use `GoogleSearchTool$Outbound` instead. */
|
|
3621
|
+
export type Outbound = GoogleSearchTool$Outbound;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
export function googleSearchToolToJSON(
|
|
3625
|
+
googleSearchTool: GoogleSearchTool,
|
|
3626
|
+
): string {
|
|
3627
|
+
return JSON.stringify(
|
|
3628
|
+
GoogleSearchTool$outboundSchema.parse(googleSearchTool),
|
|
3629
|
+
);
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
export function googleSearchToolFromJSON(
|
|
3633
|
+
jsonString: string,
|
|
3634
|
+
): SafeParseResult<GoogleSearchTool, SDKValidationError> {
|
|
3635
|
+
return safeParse(
|
|
3636
|
+
jsonString,
|
|
3637
|
+
(x) => GoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
|
|
3638
|
+
`Failed to parse 'GoogleSearchTool' from JSON`,
|
|
3639
|
+
);
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
/** @internal */
|
|
3643
|
+
export const RunAgentRequestTool$inboundSchema: z.ZodType<
|
|
3644
|
+
RunAgentRequestTool,
|
|
3645
|
+
z.ZodTypeDef,
|
|
3646
|
+
unknown
|
|
3647
|
+
> = z.union([
|
|
3648
|
+
z.lazy(() => HTTPTool$inboundSchema),
|
|
3649
|
+
z.lazy(() => CodeExecutionTool$inboundSchema),
|
|
3650
|
+
z.lazy(() => FunctionTool$inboundSchema),
|
|
3651
|
+
z.lazy(() => GoogleSearchTool$inboundSchema),
|
|
3652
|
+
z.lazy(() => WebScraperTool$inboundSchema),
|
|
3653
|
+
z.lazy(() => CallSubAgentTool$inboundSchema),
|
|
3654
|
+
z.lazy(() => RetrieveAgentsTool$inboundSchema),
|
|
3655
|
+
z.lazy(() => QueryMemoryStoreTool$inboundSchema),
|
|
3656
|
+
z.lazy(() => WriteMemoryStoreTool$inboundSchema),
|
|
3657
|
+
z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
|
|
3658
|
+
z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
|
|
3659
|
+
z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
|
|
3660
|
+
z.lazy(() => CurrentDateTool$inboundSchema),
|
|
3661
|
+
]);
|
|
3662
|
+
|
|
3663
|
+
/** @internal */
|
|
3664
|
+
export type RunAgentRequestTool$Outbound =
|
|
3665
|
+
| HTTPTool$Outbound
|
|
3666
|
+
| CodeExecutionTool$Outbound
|
|
3667
|
+
| FunctionTool$Outbound
|
|
3668
|
+
| GoogleSearchTool$Outbound
|
|
3669
|
+
| WebScraperTool$Outbound
|
|
3670
|
+
| CallSubAgentTool$Outbound
|
|
3671
|
+
| RetrieveAgentsTool$Outbound
|
|
3672
|
+
| QueryMemoryStoreTool$Outbound
|
|
3673
|
+
| WriteMemoryStoreTool$Outbound
|
|
3674
|
+
| RetrieveMemoryStoresTool$Outbound
|
|
3675
|
+
| RetrieveKnowledgeBasesTool$Outbound
|
|
3676
|
+
| QueryKnowledgeBaseTool$Outbound
|
|
3677
|
+
| CurrentDateTool$Outbound;
|
|
3678
|
+
|
|
3679
|
+
/** @internal */
|
|
3680
|
+
export const RunAgentRequestTool$outboundSchema: z.ZodType<
|
|
3681
|
+
RunAgentRequestTool$Outbound,
|
|
3682
|
+
z.ZodTypeDef,
|
|
3683
|
+
RunAgentRequestTool
|
|
3684
|
+
> = z.union([
|
|
3685
|
+
z.lazy(() => HTTPTool$outboundSchema),
|
|
3686
|
+
z.lazy(() => CodeExecutionTool$outboundSchema),
|
|
3687
|
+
z.lazy(() => FunctionTool$outboundSchema),
|
|
3688
|
+
z.lazy(() => GoogleSearchTool$outboundSchema),
|
|
3689
|
+
z.lazy(() => WebScraperTool$outboundSchema),
|
|
3690
|
+
z.lazy(() => CallSubAgentTool$outboundSchema),
|
|
3691
|
+
z.lazy(() => RetrieveAgentsTool$outboundSchema),
|
|
3692
|
+
z.lazy(() => QueryMemoryStoreTool$outboundSchema),
|
|
3693
|
+
z.lazy(() => WriteMemoryStoreTool$outboundSchema),
|
|
3694
|
+
z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
|
|
3695
|
+
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
3696
|
+
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
3697
|
+
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
3698
|
+
]);
|
|
3699
|
+
|
|
3700
|
+
/**
|
|
3701
|
+
* @internal
|
|
3702
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3703
|
+
*/
|
|
3704
|
+
export namespace RunAgentRequestTool$ {
|
|
3705
|
+
/** @deprecated use `RunAgentRequestTool$inboundSchema` instead. */
|
|
3706
|
+
export const inboundSchema = RunAgentRequestTool$inboundSchema;
|
|
3707
|
+
/** @deprecated use `RunAgentRequestTool$outboundSchema` instead. */
|
|
3708
|
+
export const outboundSchema = RunAgentRequestTool$outboundSchema;
|
|
3709
|
+
/** @deprecated use `RunAgentRequestTool$Outbound` instead. */
|
|
3710
|
+
export type Outbound = RunAgentRequestTool$Outbound;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
export function runAgentRequestToolToJSON(
|
|
3714
|
+
runAgentRequestTool: RunAgentRequestTool,
|
|
3715
|
+
): string {
|
|
3716
|
+
return JSON.stringify(
|
|
3717
|
+
RunAgentRequestTool$outboundSchema.parse(runAgentRequestTool),
|
|
3718
|
+
);
|
|
2443
3719
|
}
|
|
2444
3720
|
|
|
2445
|
-
export function
|
|
3721
|
+
export function runAgentRequestToolFromJSON(
|
|
2446
3722
|
jsonString: string,
|
|
2447
|
-
): SafeParseResult<
|
|
3723
|
+
): SafeParseResult<RunAgentRequestTool, SDKValidationError> {
|
|
2448
3724
|
return safeParse(
|
|
2449
3725
|
jsonString,
|
|
2450
|
-
(x) =>
|
|
2451
|
-
`Failed to parse '
|
|
3726
|
+
(x) => RunAgentRequestTool$inboundSchema.parse(JSON.parse(x)),
|
|
3727
|
+
`Failed to parse 'RunAgentRequestTool' from JSON`,
|
|
2452
3728
|
);
|
|
2453
3729
|
}
|
|
2454
3730
|
|
|
@@ -2481,76 +3757,24 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2481
3757
|
> = z.object({
|
|
2482
3758
|
tools: z.array(
|
|
2483
3759
|
z.union([
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
),
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
),
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
})),
|
|
2498
|
-
),
|
|
2499
|
-
components.GoogleSearchTool$inboundSchema.and(
|
|
2500
|
-
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2501
|
-
type: v.type,
|
|
2502
|
-
})),
|
|
2503
|
-
),
|
|
2504
|
-
components.WebScraperTool$inboundSchema.and(
|
|
2505
|
-
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2506
|
-
type: v.type,
|
|
2507
|
-
})),
|
|
2508
|
-
),
|
|
2509
|
-
components.CallSubAgentTool$inboundSchema.and(
|
|
2510
|
-
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2511
|
-
type: v.type,
|
|
2512
|
-
})),
|
|
2513
|
-
),
|
|
2514
|
-
components.RetrieveAgentsTool$inboundSchema.and(
|
|
2515
|
-
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2516
|
-
type: v.type,
|
|
2517
|
-
})),
|
|
2518
|
-
),
|
|
2519
|
-
components.QueryMemoryStoreTool$inboundSchema.and(
|
|
2520
|
-
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2521
|
-
type: v.type,
|
|
2522
|
-
})),
|
|
2523
|
-
),
|
|
2524
|
-
components.WriteMemoryStoreTool$inboundSchema.and(
|
|
2525
|
-
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2526
|
-
type: v.type,
|
|
2527
|
-
})),
|
|
2528
|
-
),
|
|
2529
|
-
components.RetrieveMemoryStoresTool$inboundSchema.and(
|
|
2530
|
-
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2531
|
-
v,
|
|
2532
|
-
) => ({ type: v.type })),
|
|
2533
|
-
),
|
|
2534
|
-
components.RetrieveKnowledgeBasesTool$inboundSchema.and(
|
|
2535
|
-
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2536
|
-
v,
|
|
2537
|
-
) => ({ type: v.type })),
|
|
2538
|
-
),
|
|
2539
|
-
components.QueryKnowledgeBaseTool$inboundSchema.and(
|
|
2540
|
-
z.object({ type: z.literal("query_knowledge_base") }).transform((
|
|
2541
|
-
v,
|
|
2542
|
-
) => ({ type: v.type })),
|
|
2543
|
-
),
|
|
2544
|
-
components.CurrentDateTool$inboundSchema.and(
|
|
2545
|
-
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2546
|
-
type: v.type,
|
|
2547
|
-
})),
|
|
2548
|
-
),
|
|
3760
|
+
z.lazy(() => HTTPTool$inboundSchema),
|
|
3761
|
+
z.lazy(() => CodeExecutionTool$inboundSchema),
|
|
3762
|
+
z.lazy(() => FunctionTool$inboundSchema),
|
|
3763
|
+
z.lazy(() => GoogleSearchTool$inboundSchema),
|
|
3764
|
+
z.lazy(() => WebScraperTool$inboundSchema),
|
|
3765
|
+
z.lazy(() => CallSubAgentTool$inboundSchema),
|
|
3766
|
+
z.lazy(() => RetrieveAgentsTool$inboundSchema),
|
|
3767
|
+
z.lazy(() => QueryMemoryStoreTool$inboundSchema),
|
|
3768
|
+
z.lazy(() => WriteMemoryStoreTool$inboundSchema),
|
|
3769
|
+
z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
|
|
3770
|
+
z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
|
|
3771
|
+
z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
|
|
3772
|
+
z.lazy(() => CurrentDateTool$inboundSchema),
|
|
2549
3773
|
]),
|
|
2550
3774
|
),
|
|
2551
3775
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
|
|
2552
3776
|
max_iterations: z.number().int().default(15),
|
|
2553
|
-
max_execution_time: z.number().int().default(
|
|
3777
|
+
max_execution_time: z.number().int().default(300),
|
|
2554
3778
|
}).transform((v) => {
|
|
2555
3779
|
return remap$(v, {
|
|
2556
3780
|
"tool_approval_required": "toolApprovalRequired",
|
|
@@ -2562,29 +3786,19 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2562
3786
|
/** @internal */
|
|
2563
3787
|
export type Settings$Outbound = {
|
|
2564
3788
|
tools: Array<
|
|
2565
|
-
|
|
|
2566
|
-
|
|
|
2567
|
-
|
|
|
2568
|
-
|
|
|
2569
|
-
|
|
|
2570
|
-
|
|
|
2571
|
-
|
|
|
2572
|
-
|
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
| (components.RetrieveMemoryStoresTool$Outbound & {
|
|
2579
|
-
type: "retrieve_memory_stores";
|
|
2580
|
-
})
|
|
2581
|
-
| (components.RetrieveKnowledgeBasesTool$Outbound & {
|
|
2582
|
-
type: "retrieve_knowledge_bases";
|
|
2583
|
-
})
|
|
2584
|
-
| (components.QueryKnowledgeBaseTool$Outbound & {
|
|
2585
|
-
type: "query_knowledge_base";
|
|
2586
|
-
})
|
|
2587
|
-
| (components.CurrentDateTool$Outbound & { type: "current_date" })
|
|
3789
|
+
| HTTPTool$Outbound
|
|
3790
|
+
| CodeExecutionTool$Outbound
|
|
3791
|
+
| FunctionTool$Outbound
|
|
3792
|
+
| GoogleSearchTool$Outbound
|
|
3793
|
+
| WebScraperTool$Outbound
|
|
3794
|
+
| CallSubAgentTool$Outbound
|
|
3795
|
+
| RetrieveAgentsTool$Outbound
|
|
3796
|
+
| QueryMemoryStoreTool$Outbound
|
|
3797
|
+
| WriteMemoryStoreTool$Outbound
|
|
3798
|
+
| RetrieveMemoryStoresTool$Outbound
|
|
3799
|
+
| RetrieveKnowledgeBasesTool$Outbound
|
|
3800
|
+
| QueryKnowledgeBaseTool$Outbound
|
|
3801
|
+
| CurrentDateTool$Outbound
|
|
2588
3802
|
>;
|
|
2589
3803
|
tool_approval_required: string;
|
|
2590
3804
|
max_iterations: number;
|
|
@@ -2599,76 +3813,24 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
2599
3813
|
> = z.object({
|
|
2600
3814
|
tools: z.array(
|
|
2601
3815
|
z.union([
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
),
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
),
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
})),
|
|
2616
|
-
),
|
|
2617
|
-
components.GoogleSearchTool$outboundSchema.and(
|
|
2618
|
-
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2619
|
-
type: v.type,
|
|
2620
|
-
})),
|
|
2621
|
-
),
|
|
2622
|
-
components.WebScraperTool$outboundSchema.and(
|
|
2623
|
-
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2624
|
-
type: v.type,
|
|
2625
|
-
})),
|
|
2626
|
-
),
|
|
2627
|
-
components.CallSubAgentTool$outboundSchema.and(
|
|
2628
|
-
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2629
|
-
type: v.type,
|
|
2630
|
-
})),
|
|
2631
|
-
),
|
|
2632
|
-
components.RetrieveAgentsTool$outboundSchema.and(
|
|
2633
|
-
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2634
|
-
type: v.type,
|
|
2635
|
-
})),
|
|
2636
|
-
),
|
|
2637
|
-
components.QueryMemoryStoreTool$outboundSchema.and(
|
|
2638
|
-
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2639
|
-
type: v.type,
|
|
2640
|
-
})),
|
|
2641
|
-
),
|
|
2642
|
-
components.WriteMemoryStoreTool$outboundSchema.and(
|
|
2643
|
-
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2644
|
-
type: v.type,
|
|
2645
|
-
})),
|
|
2646
|
-
),
|
|
2647
|
-
components.RetrieveMemoryStoresTool$outboundSchema.and(
|
|
2648
|
-
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2649
|
-
v,
|
|
2650
|
-
) => ({ type: v.type })),
|
|
2651
|
-
),
|
|
2652
|
-
components.RetrieveKnowledgeBasesTool$outboundSchema.and(
|
|
2653
|
-
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2654
|
-
v,
|
|
2655
|
-
) => ({ type: v.type })),
|
|
2656
|
-
),
|
|
2657
|
-
components.QueryKnowledgeBaseTool$outboundSchema.and(
|
|
2658
|
-
z.object({ type: z.literal("query_knowledge_base") }).transform((
|
|
2659
|
-
v,
|
|
2660
|
-
) => ({ type: v.type })),
|
|
2661
|
-
),
|
|
2662
|
-
components.CurrentDateTool$outboundSchema.and(
|
|
2663
|
-
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2664
|
-
type: v.type,
|
|
2665
|
-
})),
|
|
2666
|
-
),
|
|
3816
|
+
z.lazy(() => HTTPTool$outboundSchema),
|
|
3817
|
+
z.lazy(() => CodeExecutionTool$outboundSchema),
|
|
3818
|
+
z.lazy(() => FunctionTool$outboundSchema),
|
|
3819
|
+
z.lazy(() => GoogleSearchTool$outboundSchema),
|
|
3820
|
+
z.lazy(() => WebScraperTool$outboundSchema),
|
|
3821
|
+
z.lazy(() => CallSubAgentTool$outboundSchema),
|
|
3822
|
+
z.lazy(() => RetrieveAgentsTool$outboundSchema),
|
|
3823
|
+
z.lazy(() => QueryMemoryStoreTool$outboundSchema),
|
|
3824
|
+
z.lazy(() => WriteMemoryStoreTool$outboundSchema),
|
|
3825
|
+
z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
|
|
3826
|
+
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
3827
|
+
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
3828
|
+
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
2667
3829
|
]),
|
|
2668
3830
|
),
|
|
2669
3831
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
|
|
2670
3832
|
maxIterations: z.number().int().default(15),
|
|
2671
|
-
maxExecutionTime: z.number().int().default(
|
|
3833
|
+
maxExecutionTime: z.number().int().default(300),
|
|
2672
3834
|
}).transform((v) => {
|
|
2673
3835
|
return remap$(v, {
|
|
2674
3836
|
toolApprovalRequired: "tool_approval_required",
|