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