@orq-ai/node 3.12.9 → 3.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +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/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +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 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- 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 +28 -28
- package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
- 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 +139 -117
- package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +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/retrievememory.ts +7 -4
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +577 -122
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +606 -109
- 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 +28 -28
- package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
- package/packages/orq-rc/src/sdk/agents.ts +2 -2
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- 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/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -141,6 +141,49 @@ export type Message = {
|
|
|
141
141
|
metadata?: { [k: string]: any } | undefined;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
146
|
+
*/
|
|
147
|
+
export type Memory = {
|
|
148
|
+
/**
|
|
149
|
+
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
150
|
+
*/
|
|
151
|
+
entityId: string;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const RunAgentConfigurationType = {
|
|
155
|
+
Query: "query",
|
|
156
|
+
} as const;
|
|
157
|
+
export type RunAgentConfigurationType = ClosedEnum<
|
|
158
|
+
typeof RunAgentConfigurationType
|
|
159
|
+
>;
|
|
160
|
+
|
|
161
|
+
export type Configuration2 = {
|
|
162
|
+
type: RunAgentConfigurationType;
|
|
163
|
+
query: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export const ConfigurationType = {
|
|
167
|
+
LastUserMessage: "last_user_message",
|
|
168
|
+
} as const;
|
|
169
|
+
export type ConfigurationType = ClosedEnum<typeof ConfigurationType>;
|
|
170
|
+
|
|
171
|
+
export type Configuration1 = {
|
|
172
|
+
type: ConfigurationType;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
177
|
+
*/
|
|
178
|
+
export type Configuration = Configuration2 | Configuration1;
|
|
179
|
+
|
|
180
|
+
export type KnowledgeBases = {
|
|
181
|
+
/**
|
|
182
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
183
|
+
*/
|
|
184
|
+
configuration: Configuration2 | Configuration1;
|
|
185
|
+
};
|
|
186
|
+
|
|
144
187
|
export type TeamOfAgents = {
|
|
145
188
|
id: string;
|
|
146
189
|
/**
|
|
@@ -149,11 +192,11 @@ export type TeamOfAgents = {
|
|
|
149
192
|
role?: string | undefined;
|
|
150
193
|
};
|
|
151
194
|
|
|
152
|
-
export const
|
|
195
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings13Type = {
|
|
153
196
|
Function: "function",
|
|
154
197
|
} as const;
|
|
155
|
-
export type
|
|
156
|
-
typeof
|
|
198
|
+
export type RunAgentToolsAgentsRequestRequestBodySettings13Type = ClosedEnum<
|
|
199
|
+
typeof RunAgentToolsAgentsRequestRequestBodySettings13Type
|
|
157
200
|
>;
|
|
158
201
|
|
|
159
202
|
export type ToolsFunction = {
|
|
@@ -163,8 +206,8 @@ export type ToolsFunction = {
|
|
|
163
206
|
parameters?: { [k: string]: any } | undefined;
|
|
164
207
|
};
|
|
165
208
|
|
|
166
|
-
export type
|
|
167
|
-
type:
|
|
209
|
+
export type Thirteen = {
|
|
210
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings13Type;
|
|
168
211
|
id?: string | undefined;
|
|
169
212
|
key: string;
|
|
170
213
|
displayName?: string | undefined;
|
|
@@ -187,11 +230,11 @@ export const Status = {
|
|
|
187
230
|
*/
|
|
188
231
|
export type Status = ClosedEnum<typeof Status>;
|
|
189
232
|
|
|
190
|
-
export const
|
|
233
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12Type = {
|
|
191
234
|
Http: "http",
|
|
192
235
|
} as const;
|
|
193
|
-
export type
|
|
194
|
-
typeof
|
|
236
|
+
export type RunAgentToolsAgentsRequestRequestBodySettings12Type = ClosedEnum<
|
|
237
|
+
typeof RunAgentToolsAgentsRequestRequestBodySettings12Type
|
|
195
238
|
>;
|
|
196
239
|
|
|
197
240
|
/**
|
|
@@ -233,7 +276,7 @@ export type Blueprint = {
|
|
|
233
276
|
/**
|
|
234
277
|
* The type of the argument.
|
|
235
278
|
*/
|
|
236
|
-
export const
|
|
279
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
|
|
237
280
|
String: "string",
|
|
238
281
|
Number: "number",
|
|
239
282
|
Boolean: "boolean",
|
|
@@ -241,8 +284,8 @@ export const RunAgentToolsAgentsRequestRequestBodySettings11HttpType = {
|
|
|
241
284
|
/**
|
|
242
285
|
* The type of the argument.
|
|
243
286
|
*/
|
|
244
|
-
export type
|
|
245
|
-
ClosedEnum<typeof
|
|
287
|
+
export type RunAgentToolsAgentsRequestRequestBodySettings12HttpType =
|
|
288
|
+
ClosedEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType>;
|
|
246
289
|
|
|
247
290
|
/**
|
|
248
291
|
* The default value of the argument.
|
|
@@ -253,7 +296,7 @@ export type Arguments = {
|
|
|
253
296
|
/**
|
|
254
297
|
* The type of the argument.
|
|
255
298
|
*/
|
|
256
|
-
type:
|
|
299
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType;
|
|
257
300
|
/**
|
|
258
301
|
* A description of the argument.
|
|
259
302
|
*/
|
|
@@ -279,7 +322,7 @@ export type Http = {
|
|
|
279
322
|
arguments?: { [k: string]: Arguments } | undefined;
|
|
280
323
|
};
|
|
281
324
|
|
|
282
|
-
export type
|
|
325
|
+
export type Twelve = {
|
|
283
326
|
id?: string | undefined;
|
|
284
327
|
/**
|
|
285
328
|
* 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.
|
|
@@ -302,14 +345,26 @@ export type Eleven = {
|
|
|
302
345
|
*/
|
|
303
346
|
status?: Status | undefined;
|
|
304
347
|
versionHash?: string | undefined;
|
|
305
|
-
type:
|
|
348
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12Type;
|
|
306
349
|
http: Http;
|
|
307
350
|
requiresApproval?: boolean | undefined;
|
|
308
351
|
};
|
|
309
352
|
|
|
310
|
-
export const
|
|
353
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings11Type = {
|
|
311
354
|
CurrentDate: "current_date",
|
|
312
355
|
} as const;
|
|
356
|
+
export type RunAgentToolsAgentsRequestRequestBodySettings11Type = ClosedEnum<
|
|
357
|
+
typeof RunAgentToolsAgentsRequestRequestBodySettings11Type
|
|
358
|
+
>;
|
|
359
|
+
|
|
360
|
+
export type Eleven = {
|
|
361
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings11Type;
|
|
362
|
+
requiresApproval?: boolean | undefined;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings10Type = {
|
|
366
|
+
QueryKnowledgeBase: "query_knowledge_base",
|
|
367
|
+
} as const;
|
|
313
368
|
export type RunAgentToolsAgentsRequestRequestBodySettings10Type = ClosedEnum<
|
|
314
369
|
typeof RunAgentToolsAgentsRequestRequestBodySettings10Type
|
|
315
370
|
>;
|
|
@@ -320,7 +375,7 @@ export type Ten = {
|
|
|
320
375
|
};
|
|
321
376
|
|
|
322
377
|
export const RunAgentToolsAgentsRequestRequestBodySettings9Type = {
|
|
323
|
-
|
|
378
|
+
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
324
379
|
} as const;
|
|
325
380
|
export type RunAgentToolsAgentsRequestRequestBodySettings9Type = ClosedEnum<
|
|
326
381
|
typeof RunAgentToolsAgentsRequestRequestBodySettings9Type
|
|
@@ -332,7 +387,7 @@ export type Nine = {
|
|
|
332
387
|
};
|
|
333
388
|
|
|
334
389
|
export const RunAgentToolsAgentsRequestRequestBodySettings8Type = {
|
|
335
|
-
|
|
390
|
+
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
336
391
|
} as const;
|
|
337
392
|
export type RunAgentToolsAgentsRequestRequestBodySettings8Type = ClosedEnum<
|
|
338
393
|
typeof RunAgentToolsAgentsRequestRequestBodySettings8Type
|
|
@@ -344,7 +399,7 @@ export type Eight = {
|
|
|
344
399
|
};
|
|
345
400
|
|
|
346
401
|
export const RunAgentToolsAgentsRequestRequestBodySettings7Type = {
|
|
347
|
-
|
|
402
|
+
DeleteMemoryDocument: "delete_memory_document",
|
|
348
403
|
} as const;
|
|
349
404
|
export type RunAgentToolsAgentsRequestRequestBodySettings7Type = ClosedEnum<
|
|
350
405
|
typeof RunAgentToolsAgentsRequestRequestBodySettings7Type
|
|
@@ -424,8 +479,8 @@ export type Tools1 = {
|
|
|
424
479
|
};
|
|
425
480
|
|
|
426
481
|
export type Tools =
|
|
427
|
-
| Eleven
|
|
428
482
|
| Twelve
|
|
483
|
+
| Thirteen
|
|
429
484
|
| Tools1
|
|
430
485
|
| Tools2
|
|
431
486
|
| Tools3
|
|
@@ -435,7 +490,8 @@ export type Tools =
|
|
|
435
490
|
| Seven
|
|
436
491
|
| Eight
|
|
437
492
|
| Nine
|
|
438
|
-
| Ten
|
|
493
|
+
| Ten
|
|
494
|
+
| Eleven;
|
|
439
495
|
|
|
440
496
|
/**
|
|
441
497
|
* 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.
|
|
@@ -452,8 +508,8 @@ export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
|
452
508
|
|
|
453
509
|
export type Settings = {
|
|
454
510
|
tools: Array<
|
|
455
|
-
| Eleven
|
|
456
511
|
| Twelve
|
|
512
|
+
| Thirteen
|
|
457
513
|
| Tools1
|
|
458
514
|
| Tools2
|
|
459
515
|
| Tools3
|
|
@@ -464,6 +520,7 @@ export type Settings = {
|
|
|
464
520
|
| Eight
|
|
465
521
|
| Nine
|
|
466
522
|
| Ten
|
|
523
|
+
| Eleven
|
|
467
524
|
>;
|
|
468
525
|
/**
|
|
469
526
|
* 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.
|
|
@@ -481,7 +538,7 @@ export type Settings = {
|
|
|
481
538
|
|
|
482
539
|
export type RunAgentRequestBody = {
|
|
483
540
|
/**
|
|
484
|
-
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
541
|
+
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
485
542
|
*/
|
|
486
543
|
key: string;
|
|
487
544
|
/**
|
|
@@ -489,7 +546,7 @@ export type RunAgentRequestBody = {
|
|
|
489
546
|
*/
|
|
490
547
|
taskId?: string | undefined;
|
|
491
548
|
/**
|
|
492
|
-
* The language model that powers the agent.
|
|
549
|
+
* The language model that powers the agent. The model must support tool calling capabilities.
|
|
493
550
|
*/
|
|
494
551
|
model: string;
|
|
495
552
|
/**
|
|
@@ -517,9 +574,9 @@ export type RunAgentRequestBody = {
|
|
|
517
574
|
*/
|
|
518
575
|
contextId?: string | undefined;
|
|
519
576
|
/**
|
|
520
|
-
*
|
|
577
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
521
578
|
*/
|
|
522
|
-
|
|
579
|
+
memory?: Memory | undefined;
|
|
523
580
|
/**
|
|
524
581
|
* 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.
|
|
525
582
|
*/
|
|
@@ -537,7 +594,7 @@ export type RunAgentRequestBody = {
|
|
|
537
594
|
*/
|
|
538
595
|
systemPrompt?: string | undefined;
|
|
539
596
|
memoryStores?: Array<string> | undefined;
|
|
540
|
-
knowledgeBases?: Array<
|
|
597
|
+
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
541
598
|
/**
|
|
542
599
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
543
600
|
*/
|
|
@@ -1421,6 +1478,314 @@ export function messageFromJSON(
|
|
|
1421
1478
|
);
|
|
1422
1479
|
}
|
|
1423
1480
|
|
|
1481
|
+
/** @internal */
|
|
1482
|
+
export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
|
|
1483
|
+
.object({
|
|
1484
|
+
entity_id: z.string(),
|
|
1485
|
+
}).transform((v) => {
|
|
1486
|
+
return remap$(v, {
|
|
1487
|
+
"entity_id": "entityId",
|
|
1488
|
+
});
|
|
1489
|
+
});
|
|
1490
|
+
|
|
1491
|
+
/** @internal */
|
|
1492
|
+
export type Memory$Outbound = {
|
|
1493
|
+
entity_id: string;
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
/** @internal */
|
|
1497
|
+
export const Memory$outboundSchema: z.ZodType<
|
|
1498
|
+
Memory$Outbound,
|
|
1499
|
+
z.ZodTypeDef,
|
|
1500
|
+
Memory
|
|
1501
|
+
> = z.object({
|
|
1502
|
+
entityId: z.string(),
|
|
1503
|
+
}).transform((v) => {
|
|
1504
|
+
return remap$(v, {
|
|
1505
|
+
entityId: "entity_id",
|
|
1506
|
+
});
|
|
1507
|
+
});
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* @internal
|
|
1511
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1512
|
+
*/
|
|
1513
|
+
export namespace Memory$ {
|
|
1514
|
+
/** @deprecated use `Memory$inboundSchema` instead. */
|
|
1515
|
+
export const inboundSchema = Memory$inboundSchema;
|
|
1516
|
+
/** @deprecated use `Memory$outboundSchema` instead. */
|
|
1517
|
+
export const outboundSchema = Memory$outboundSchema;
|
|
1518
|
+
/** @deprecated use `Memory$Outbound` instead. */
|
|
1519
|
+
export type Outbound = Memory$Outbound;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export function memoryToJSON(memory: Memory): string {
|
|
1523
|
+
return JSON.stringify(Memory$outboundSchema.parse(memory));
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export function memoryFromJSON(
|
|
1527
|
+
jsonString: string,
|
|
1528
|
+
): SafeParseResult<Memory, SDKValidationError> {
|
|
1529
|
+
return safeParse(
|
|
1530
|
+
jsonString,
|
|
1531
|
+
(x) => Memory$inboundSchema.parse(JSON.parse(x)),
|
|
1532
|
+
`Failed to parse 'Memory' from JSON`,
|
|
1533
|
+
);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/** @internal */
|
|
1537
|
+
export const RunAgentConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1538
|
+
typeof RunAgentConfigurationType
|
|
1539
|
+
> = z.nativeEnum(RunAgentConfigurationType);
|
|
1540
|
+
|
|
1541
|
+
/** @internal */
|
|
1542
|
+
export const RunAgentConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1543
|
+
typeof RunAgentConfigurationType
|
|
1544
|
+
> = RunAgentConfigurationType$inboundSchema;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* @internal
|
|
1548
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1549
|
+
*/
|
|
1550
|
+
export namespace RunAgentConfigurationType$ {
|
|
1551
|
+
/** @deprecated use `RunAgentConfigurationType$inboundSchema` instead. */
|
|
1552
|
+
export const inboundSchema = RunAgentConfigurationType$inboundSchema;
|
|
1553
|
+
/** @deprecated use `RunAgentConfigurationType$outboundSchema` instead. */
|
|
1554
|
+
export const outboundSchema = RunAgentConfigurationType$outboundSchema;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
/** @internal */
|
|
1558
|
+
export const Configuration2$inboundSchema: z.ZodType<
|
|
1559
|
+
Configuration2,
|
|
1560
|
+
z.ZodTypeDef,
|
|
1561
|
+
unknown
|
|
1562
|
+
> = z.object({
|
|
1563
|
+
type: RunAgentConfigurationType$inboundSchema,
|
|
1564
|
+
query: z.string(),
|
|
1565
|
+
});
|
|
1566
|
+
|
|
1567
|
+
/** @internal */
|
|
1568
|
+
export type Configuration2$Outbound = {
|
|
1569
|
+
type: string;
|
|
1570
|
+
query: string;
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
export const Configuration2$outboundSchema: z.ZodType<
|
|
1575
|
+
Configuration2$Outbound,
|
|
1576
|
+
z.ZodTypeDef,
|
|
1577
|
+
Configuration2
|
|
1578
|
+
> = z.object({
|
|
1579
|
+
type: RunAgentConfigurationType$outboundSchema,
|
|
1580
|
+
query: z.string(),
|
|
1581
|
+
});
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* @internal
|
|
1585
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1586
|
+
*/
|
|
1587
|
+
export namespace Configuration2$ {
|
|
1588
|
+
/** @deprecated use `Configuration2$inboundSchema` instead. */
|
|
1589
|
+
export const inboundSchema = Configuration2$inboundSchema;
|
|
1590
|
+
/** @deprecated use `Configuration2$outboundSchema` instead. */
|
|
1591
|
+
export const outboundSchema = Configuration2$outboundSchema;
|
|
1592
|
+
/** @deprecated use `Configuration2$Outbound` instead. */
|
|
1593
|
+
export type Outbound = Configuration2$Outbound;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
export function configuration2ToJSON(configuration2: Configuration2): string {
|
|
1597
|
+
return JSON.stringify(Configuration2$outboundSchema.parse(configuration2));
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
export function configuration2FromJSON(
|
|
1601
|
+
jsonString: string,
|
|
1602
|
+
): SafeParseResult<Configuration2, SDKValidationError> {
|
|
1603
|
+
return safeParse(
|
|
1604
|
+
jsonString,
|
|
1605
|
+
(x) => Configuration2$inboundSchema.parse(JSON.parse(x)),
|
|
1606
|
+
`Failed to parse 'Configuration2' from JSON`,
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
/** @internal */
|
|
1611
|
+
export const ConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1612
|
+
typeof ConfigurationType
|
|
1613
|
+
> = z.nativeEnum(ConfigurationType);
|
|
1614
|
+
|
|
1615
|
+
/** @internal */
|
|
1616
|
+
export const ConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1617
|
+
typeof ConfigurationType
|
|
1618
|
+
> = ConfigurationType$inboundSchema;
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* @internal
|
|
1622
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1623
|
+
*/
|
|
1624
|
+
export namespace ConfigurationType$ {
|
|
1625
|
+
/** @deprecated use `ConfigurationType$inboundSchema` instead. */
|
|
1626
|
+
export const inboundSchema = ConfigurationType$inboundSchema;
|
|
1627
|
+
/** @deprecated use `ConfigurationType$outboundSchema` instead. */
|
|
1628
|
+
export const outboundSchema = ConfigurationType$outboundSchema;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export const Configuration1$inboundSchema: z.ZodType<
|
|
1633
|
+
Configuration1,
|
|
1634
|
+
z.ZodTypeDef,
|
|
1635
|
+
unknown
|
|
1636
|
+
> = z.object({
|
|
1637
|
+
type: ConfigurationType$inboundSchema,
|
|
1638
|
+
});
|
|
1639
|
+
|
|
1640
|
+
/** @internal */
|
|
1641
|
+
export type Configuration1$Outbound = {
|
|
1642
|
+
type: string;
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
/** @internal */
|
|
1646
|
+
export const Configuration1$outboundSchema: z.ZodType<
|
|
1647
|
+
Configuration1$Outbound,
|
|
1648
|
+
z.ZodTypeDef,
|
|
1649
|
+
Configuration1
|
|
1650
|
+
> = z.object({
|
|
1651
|
+
type: ConfigurationType$outboundSchema,
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* @internal
|
|
1656
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1657
|
+
*/
|
|
1658
|
+
export namespace Configuration1$ {
|
|
1659
|
+
/** @deprecated use `Configuration1$inboundSchema` instead. */
|
|
1660
|
+
export const inboundSchema = Configuration1$inboundSchema;
|
|
1661
|
+
/** @deprecated use `Configuration1$outboundSchema` instead. */
|
|
1662
|
+
export const outboundSchema = Configuration1$outboundSchema;
|
|
1663
|
+
/** @deprecated use `Configuration1$Outbound` instead. */
|
|
1664
|
+
export type Outbound = Configuration1$Outbound;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
export function configuration1ToJSON(configuration1: Configuration1): string {
|
|
1668
|
+
return JSON.stringify(Configuration1$outboundSchema.parse(configuration1));
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
export function configuration1FromJSON(
|
|
1672
|
+
jsonString: string,
|
|
1673
|
+
): SafeParseResult<Configuration1, SDKValidationError> {
|
|
1674
|
+
return safeParse(
|
|
1675
|
+
jsonString,
|
|
1676
|
+
(x) => Configuration1$inboundSchema.parse(JSON.parse(x)),
|
|
1677
|
+
`Failed to parse 'Configuration1' from JSON`,
|
|
1678
|
+
);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/** @internal */
|
|
1682
|
+
export const Configuration$inboundSchema: z.ZodType<
|
|
1683
|
+
Configuration,
|
|
1684
|
+
z.ZodTypeDef,
|
|
1685
|
+
unknown
|
|
1686
|
+
> = z.union([
|
|
1687
|
+
z.lazy(() => Configuration2$inboundSchema),
|
|
1688
|
+
z.lazy(() => Configuration1$inboundSchema),
|
|
1689
|
+
]);
|
|
1690
|
+
|
|
1691
|
+
/** @internal */
|
|
1692
|
+
export type Configuration$Outbound =
|
|
1693
|
+
| Configuration2$Outbound
|
|
1694
|
+
| Configuration1$Outbound;
|
|
1695
|
+
|
|
1696
|
+
/** @internal */
|
|
1697
|
+
export const Configuration$outboundSchema: z.ZodType<
|
|
1698
|
+
Configuration$Outbound,
|
|
1699
|
+
z.ZodTypeDef,
|
|
1700
|
+
Configuration
|
|
1701
|
+
> = z.union([
|
|
1702
|
+
z.lazy(() => Configuration2$outboundSchema),
|
|
1703
|
+
z.lazy(() => Configuration1$outboundSchema),
|
|
1704
|
+
]);
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* @internal
|
|
1708
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1709
|
+
*/
|
|
1710
|
+
export namespace Configuration$ {
|
|
1711
|
+
/** @deprecated use `Configuration$inboundSchema` instead. */
|
|
1712
|
+
export const inboundSchema = Configuration$inboundSchema;
|
|
1713
|
+
/** @deprecated use `Configuration$outboundSchema` instead. */
|
|
1714
|
+
export const outboundSchema = Configuration$outboundSchema;
|
|
1715
|
+
/** @deprecated use `Configuration$Outbound` instead. */
|
|
1716
|
+
export type Outbound = Configuration$Outbound;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
export function configurationToJSON(configuration: Configuration): string {
|
|
1720
|
+
return JSON.stringify(Configuration$outboundSchema.parse(configuration));
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
export function configurationFromJSON(
|
|
1724
|
+
jsonString: string,
|
|
1725
|
+
): SafeParseResult<Configuration, SDKValidationError> {
|
|
1726
|
+
return safeParse(
|
|
1727
|
+
jsonString,
|
|
1728
|
+
(x) => Configuration$inboundSchema.parse(JSON.parse(x)),
|
|
1729
|
+
`Failed to parse 'Configuration' from JSON`,
|
|
1730
|
+
);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
1735
|
+
KnowledgeBases,
|
|
1736
|
+
z.ZodTypeDef,
|
|
1737
|
+
unknown
|
|
1738
|
+
> = z.object({
|
|
1739
|
+
configuration: z.union([
|
|
1740
|
+
z.lazy(() => Configuration2$inboundSchema),
|
|
1741
|
+
z.lazy(() => Configuration1$inboundSchema),
|
|
1742
|
+
]),
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
/** @internal */
|
|
1746
|
+
export type KnowledgeBases$Outbound = {
|
|
1747
|
+
configuration: Configuration2$Outbound | Configuration1$Outbound;
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
/** @internal */
|
|
1751
|
+
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
1752
|
+
KnowledgeBases$Outbound,
|
|
1753
|
+
z.ZodTypeDef,
|
|
1754
|
+
KnowledgeBases
|
|
1755
|
+
> = z.object({
|
|
1756
|
+
configuration: z.union([
|
|
1757
|
+
z.lazy(() => Configuration2$outboundSchema),
|
|
1758
|
+
z.lazy(() => Configuration1$outboundSchema),
|
|
1759
|
+
]),
|
|
1760
|
+
});
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* @internal
|
|
1764
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1765
|
+
*/
|
|
1766
|
+
export namespace KnowledgeBases$ {
|
|
1767
|
+
/** @deprecated use `KnowledgeBases$inboundSchema` instead. */
|
|
1768
|
+
export const inboundSchema = KnowledgeBases$inboundSchema;
|
|
1769
|
+
/** @deprecated use `KnowledgeBases$outboundSchema` instead. */
|
|
1770
|
+
export const outboundSchema = KnowledgeBases$outboundSchema;
|
|
1771
|
+
/** @deprecated use `KnowledgeBases$Outbound` instead. */
|
|
1772
|
+
export type Outbound = KnowledgeBases$Outbound;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
1776
|
+
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
export function knowledgeBasesFromJSON(
|
|
1780
|
+
jsonString: string,
|
|
1781
|
+
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
1782
|
+
return safeParse(
|
|
1783
|
+
jsonString,
|
|
1784
|
+
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1785
|
+
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
1786
|
+
);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1424
1789
|
/** @internal */
|
|
1425
1790
|
export const TeamOfAgents$inboundSchema: z.ZodType<
|
|
1426
1791
|
TeamOfAgents,
|
|
@@ -1483,26 +1848,26 @@ export function teamOfAgentsFromJSON(
|
|
|
1483
1848
|
}
|
|
1484
1849
|
|
|
1485
1850
|
/** @internal */
|
|
1486
|
-
export const
|
|
1487
|
-
z.ZodNativeEnum<typeof
|
|
1488
|
-
z.nativeEnum(
|
|
1851
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
|
|
1852
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
|
|
1853
|
+
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings13Type);
|
|
1489
1854
|
|
|
1490
1855
|
/** @internal */
|
|
1491
|
-
export const
|
|
1492
|
-
z.ZodNativeEnum<typeof
|
|
1493
|
-
|
|
1856
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
|
|
1857
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
|
|
1858
|
+
RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
1494
1859
|
|
|
1495
1860
|
/**
|
|
1496
1861
|
* @internal
|
|
1497
1862
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1498
1863
|
*/
|
|
1499
|
-
export namespace
|
|
1500
|
-
/** @deprecated use `
|
|
1864
|
+
export namespace RunAgentToolsAgentsRequestRequestBodySettings13Type$ {
|
|
1865
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
|
|
1501
1866
|
export const inboundSchema =
|
|
1502
|
-
|
|
1503
|
-
/** @deprecated use `
|
|
1867
|
+
RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
1868
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
|
|
1504
1869
|
export const outboundSchema =
|
|
1505
|
-
|
|
1870
|
+
RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
|
|
1506
1871
|
}
|
|
1507
1872
|
|
|
1508
1873
|
/** @internal */
|
|
@@ -1565,25 +1930,28 @@ export function toolsFunctionFromJSON(
|
|
|
1565
1930
|
}
|
|
1566
1931
|
|
|
1567
1932
|
/** @internal */
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1933
|
+
export const Thirteen$inboundSchema: z.ZodType<
|
|
1934
|
+
Thirteen,
|
|
1935
|
+
z.ZodTypeDef,
|
|
1936
|
+
unknown
|
|
1937
|
+
> = z.object({
|
|
1938
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
|
|
1939
|
+
_id: z.string().optional(),
|
|
1940
|
+
key: z.string(),
|
|
1941
|
+
display_name: z.string().optional(),
|
|
1942
|
+
description: z.string().optional(),
|
|
1943
|
+
requires_approval: z.boolean().default(false),
|
|
1944
|
+
function: z.lazy(() => ToolsFunction$inboundSchema),
|
|
1945
|
+
}).transform((v) => {
|
|
1946
|
+
return remap$(v, {
|
|
1947
|
+
"_id": "id",
|
|
1948
|
+
"display_name": "displayName",
|
|
1949
|
+
"requires_approval": "requiresApproval",
|
|
1583
1950
|
});
|
|
1951
|
+
});
|
|
1584
1952
|
|
|
1585
1953
|
/** @internal */
|
|
1586
|
-
export type
|
|
1954
|
+
export type Thirteen$Outbound = {
|
|
1587
1955
|
type: string;
|
|
1588
1956
|
_id?: string | undefined;
|
|
1589
1957
|
key: string;
|
|
@@ -1594,12 +1962,12 @@ export type Twelve$Outbound = {
|
|
|
1594
1962
|
};
|
|
1595
1963
|
|
|
1596
1964
|
/** @internal */
|
|
1597
|
-
export const
|
|
1598
|
-
|
|
1965
|
+
export const Thirteen$outboundSchema: z.ZodType<
|
|
1966
|
+
Thirteen$Outbound,
|
|
1599
1967
|
z.ZodTypeDef,
|
|
1600
|
-
|
|
1968
|
+
Thirteen
|
|
1601
1969
|
> = z.object({
|
|
1602
|
-
type:
|
|
1970
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
|
|
1603
1971
|
id: z.string().optional(),
|
|
1604
1972
|
key: z.string(),
|
|
1605
1973
|
displayName: z.string().optional(),
|
|
@@ -1618,26 +1986,26 @@ export const Twelve$outboundSchema: z.ZodType<
|
|
|
1618
1986
|
* @internal
|
|
1619
1987
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1620
1988
|
*/
|
|
1621
|
-
export namespace
|
|
1622
|
-
/** @deprecated use `
|
|
1623
|
-
export const inboundSchema =
|
|
1624
|
-
/** @deprecated use `
|
|
1625
|
-
export const outboundSchema =
|
|
1626
|
-
/** @deprecated use `
|
|
1627
|
-
export type Outbound =
|
|
1989
|
+
export namespace Thirteen$ {
|
|
1990
|
+
/** @deprecated use `Thirteen$inboundSchema` instead. */
|
|
1991
|
+
export const inboundSchema = Thirteen$inboundSchema;
|
|
1992
|
+
/** @deprecated use `Thirteen$outboundSchema` instead. */
|
|
1993
|
+
export const outboundSchema = Thirteen$outboundSchema;
|
|
1994
|
+
/** @deprecated use `Thirteen$Outbound` instead. */
|
|
1995
|
+
export type Outbound = Thirteen$Outbound;
|
|
1628
1996
|
}
|
|
1629
1997
|
|
|
1630
|
-
export function
|
|
1631
|
-
return JSON.stringify(
|
|
1998
|
+
export function thirteenToJSON(thirteen: Thirteen): string {
|
|
1999
|
+
return JSON.stringify(Thirteen$outboundSchema.parse(thirteen));
|
|
1632
2000
|
}
|
|
1633
2001
|
|
|
1634
|
-
export function
|
|
2002
|
+
export function thirteenFromJSON(
|
|
1635
2003
|
jsonString: string,
|
|
1636
|
-
): SafeParseResult<
|
|
2004
|
+
): SafeParseResult<Thirteen, SDKValidationError> {
|
|
1637
2005
|
return safeParse(
|
|
1638
2006
|
jsonString,
|
|
1639
|
-
(x) =>
|
|
1640
|
-
`Failed to parse '
|
|
2007
|
+
(x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
|
|
2008
|
+
`Failed to parse 'Thirteen' from JSON`,
|
|
1641
2009
|
);
|
|
1642
2010
|
}
|
|
1643
2011
|
|
|
@@ -1661,26 +2029,26 @@ export namespace Status$ {
|
|
|
1661
2029
|
}
|
|
1662
2030
|
|
|
1663
2031
|
/** @internal */
|
|
1664
|
-
export const
|
|
1665
|
-
z.ZodNativeEnum<typeof
|
|
1666
|
-
z.nativeEnum(
|
|
2032
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema:
|
|
2033
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12Type> =
|
|
2034
|
+
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12Type);
|
|
1667
2035
|
|
|
1668
2036
|
/** @internal */
|
|
1669
|
-
export const
|
|
1670
|
-
z.ZodNativeEnum<typeof
|
|
1671
|
-
|
|
2037
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema:
|
|
2038
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12Type> =
|
|
2039
|
+
RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
|
|
1672
2040
|
|
|
1673
2041
|
/**
|
|
1674
2042
|
* @internal
|
|
1675
2043
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1676
2044
|
*/
|
|
1677
|
-
export namespace
|
|
1678
|
-
/** @deprecated use `
|
|
2045
|
+
export namespace RunAgentToolsAgentsRequestRequestBodySettings12Type$ {
|
|
2046
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema` instead. */
|
|
1679
2047
|
export const inboundSchema =
|
|
1680
|
-
|
|
1681
|
-
/** @deprecated use `
|
|
2048
|
+
RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
|
|
2049
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema` instead. */
|
|
1682
2050
|
export const outboundSchema =
|
|
1683
|
-
|
|
2051
|
+
RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema;
|
|
1684
2052
|
}
|
|
1685
2053
|
|
|
1686
2054
|
/** @internal */
|
|
@@ -1762,28 +2130,28 @@ export function blueprintFromJSON(
|
|
|
1762
2130
|
}
|
|
1763
2131
|
|
|
1764
2132
|
/** @internal */
|
|
1765
|
-
export const
|
|
2133
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema:
|
|
1766
2134
|
z.ZodNativeEnum<
|
|
1767
|
-
typeof
|
|
1768
|
-
> = z.nativeEnum(
|
|
2135
|
+
typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType
|
|
2136
|
+
> = z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12HttpType);
|
|
1769
2137
|
|
|
1770
2138
|
/** @internal */
|
|
1771
|
-
export const
|
|
2139
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema:
|
|
1772
2140
|
z.ZodNativeEnum<
|
|
1773
|
-
typeof
|
|
1774
|
-
> =
|
|
2141
|
+
typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType
|
|
2142
|
+
> = RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
|
|
1775
2143
|
|
|
1776
2144
|
/**
|
|
1777
2145
|
* @internal
|
|
1778
2146
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1779
2147
|
*/
|
|
1780
|
-
export namespace
|
|
1781
|
-
/** @deprecated use `
|
|
2148
|
+
export namespace RunAgentToolsAgentsRequestRequestBodySettings12HttpType$ {
|
|
2149
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema` instead. */
|
|
1782
2150
|
export const inboundSchema =
|
|
1783
|
-
|
|
1784
|
-
/** @deprecated use `
|
|
2151
|
+
RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
|
|
2152
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema` instead. */
|
|
1785
2153
|
export const outboundSchema =
|
|
1786
|
-
|
|
2154
|
+
RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema;
|
|
1787
2155
|
}
|
|
1788
2156
|
|
|
1789
2157
|
/** @internal */
|
|
@@ -1836,7 +2204,7 @@ export const Arguments$inboundSchema: z.ZodType<
|
|
|
1836
2204
|
z.ZodTypeDef,
|
|
1837
2205
|
unknown
|
|
1838
2206
|
> = z.object({
|
|
1839
|
-
type:
|
|
2207
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema,
|
|
1840
2208
|
description: z.string(),
|
|
1841
2209
|
send_to_model: z.boolean().default(true),
|
|
1842
2210
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1861,7 +2229,7 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
1861
2229
|
z.ZodTypeDef,
|
|
1862
2230
|
Arguments
|
|
1863
2231
|
> = z.object({
|
|
1864
|
-
type:
|
|
2232
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema,
|
|
1865
2233
|
description: z.string(),
|
|
1866
2234
|
sendToModel: z.boolean().default(true),
|
|
1867
2235
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1947,16 +2315,16 @@ export function httpFromJSON(
|
|
|
1947
2315
|
}
|
|
1948
2316
|
|
|
1949
2317
|
/** @internal */
|
|
1950
|
-
export const
|
|
2318
|
+
export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
|
|
1951
2319
|
.object({
|
|
1952
|
-
_id: z.string().default("
|
|
2320
|
+
_id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
|
|
1953
2321
|
path: z.string(),
|
|
1954
2322
|
key: z.string(),
|
|
1955
2323
|
display_name: z.string(),
|
|
1956
2324
|
description: z.string(),
|
|
1957
2325
|
status: Status$inboundSchema.default("live"),
|
|
1958
2326
|
version_hash: z.string().optional(),
|
|
1959
|
-
type:
|
|
2327
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema,
|
|
1960
2328
|
http: z.lazy(() => Http$inboundSchema),
|
|
1961
2329
|
requires_approval: z.boolean().default(false),
|
|
1962
2330
|
}).transform((v) => {
|
|
@@ -1969,7 +2337,7 @@ export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
|
|
|
1969
2337
|
});
|
|
1970
2338
|
|
|
1971
2339
|
/** @internal */
|
|
1972
|
-
export type
|
|
2340
|
+
export type Twelve$Outbound = {
|
|
1973
2341
|
_id: string;
|
|
1974
2342
|
path: string;
|
|
1975
2343
|
key: string;
|
|
@@ -1983,19 +2351,19 @@ export type Eleven$Outbound = {
|
|
|
1983
2351
|
};
|
|
1984
2352
|
|
|
1985
2353
|
/** @internal */
|
|
1986
|
-
export const
|
|
1987
|
-
|
|
2354
|
+
export const Twelve$outboundSchema: z.ZodType<
|
|
2355
|
+
Twelve$Outbound,
|
|
1988
2356
|
z.ZodTypeDef,
|
|
1989
|
-
|
|
2357
|
+
Twelve
|
|
1990
2358
|
> = z.object({
|
|
1991
|
-
id: z.string().default("
|
|
2359
|
+
id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
|
|
1992
2360
|
path: z.string(),
|
|
1993
2361
|
key: z.string(),
|
|
1994
2362
|
displayName: z.string(),
|
|
1995
2363
|
description: z.string(),
|
|
1996
2364
|
status: Status$outboundSchema.default("live"),
|
|
1997
2365
|
versionHash: z.string().optional(),
|
|
1998
|
-
type:
|
|
2366
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema,
|
|
1999
2367
|
http: z.lazy(() => Http$outboundSchema),
|
|
2000
2368
|
requiresApproval: z.boolean().default(false),
|
|
2001
2369
|
}).transform((v) => {
|
|
@@ -2007,6 +2375,87 @@ export const Eleven$outboundSchema: z.ZodType<
|
|
|
2007
2375
|
});
|
|
2008
2376
|
});
|
|
2009
2377
|
|
|
2378
|
+
/**
|
|
2379
|
+
* @internal
|
|
2380
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2381
|
+
*/
|
|
2382
|
+
export namespace Twelve$ {
|
|
2383
|
+
/** @deprecated use `Twelve$inboundSchema` instead. */
|
|
2384
|
+
export const inboundSchema = Twelve$inboundSchema;
|
|
2385
|
+
/** @deprecated use `Twelve$outboundSchema` instead. */
|
|
2386
|
+
export const outboundSchema = Twelve$outboundSchema;
|
|
2387
|
+
/** @deprecated use `Twelve$Outbound` instead. */
|
|
2388
|
+
export type Outbound = Twelve$Outbound;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
export function twelveToJSON(twelve: Twelve): string {
|
|
2392
|
+
return JSON.stringify(Twelve$outboundSchema.parse(twelve));
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
export function twelveFromJSON(
|
|
2396
|
+
jsonString: string,
|
|
2397
|
+
): SafeParseResult<Twelve, SDKValidationError> {
|
|
2398
|
+
return safeParse(
|
|
2399
|
+
jsonString,
|
|
2400
|
+
(x) => Twelve$inboundSchema.parse(JSON.parse(x)),
|
|
2401
|
+
`Failed to parse 'Twelve' from JSON`,
|
|
2402
|
+
);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/** @internal */
|
|
2406
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema:
|
|
2407
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings11Type> =
|
|
2408
|
+
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings11Type);
|
|
2409
|
+
|
|
2410
|
+
/** @internal */
|
|
2411
|
+
export const RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema:
|
|
2412
|
+
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings11Type> =
|
|
2413
|
+
RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* @internal
|
|
2417
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2418
|
+
*/
|
|
2419
|
+
export namespace RunAgentToolsAgentsRequestRequestBodySettings11Type$ {
|
|
2420
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema` instead. */
|
|
2421
|
+
export const inboundSchema =
|
|
2422
|
+
RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema;
|
|
2423
|
+
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema` instead. */
|
|
2424
|
+
export const outboundSchema =
|
|
2425
|
+
RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
/** @internal */
|
|
2429
|
+
export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
|
|
2430
|
+
.object({
|
|
2431
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
|
|
2432
|
+
requires_approval: z.boolean().default(false),
|
|
2433
|
+
}).transform((v) => {
|
|
2434
|
+
return remap$(v, {
|
|
2435
|
+
"requires_approval": "requiresApproval",
|
|
2436
|
+
});
|
|
2437
|
+
});
|
|
2438
|
+
|
|
2439
|
+
/** @internal */
|
|
2440
|
+
export type Eleven$Outbound = {
|
|
2441
|
+
type: string;
|
|
2442
|
+
requires_approval: boolean;
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
/** @internal */
|
|
2446
|
+
export const Eleven$outboundSchema: z.ZodType<
|
|
2447
|
+
Eleven$Outbound,
|
|
2448
|
+
z.ZodTypeDef,
|
|
2449
|
+
Eleven
|
|
2450
|
+
> = z.object({
|
|
2451
|
+
type: RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
|
|
2452
|
+
requiresApproval: z.boolean().default(false),
|
|
2453
|
+
}).transform((v) => {
|
|
2454
|
+
return remap$(v, {
|
|
2455
|
+
requiresApproval: "requires_approval",
|
|
2456
|
+
});
|
|
2457
|
+
});
|
|
2458
|
+
|
|
2010
2459
|
/**
|
|
2011
2460
|
* @internal
|
|
2012
2461
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -2828,8 +3277,8 @@ export function tools1FromJSON(
|
|
|
2828
3277
|
/** @internal */
|
|
2829
3278
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
2830
3279
|
.union([
|
|
2831
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
2832
3280
|
z.lazy(() => Twelve$inboundSchema),
|
|
3281
|
+
z.lazy(() => Thirteen$inboundSchema),
|
|
2833
3282
|
z.lazy(() => Tools1$inboundSchema),
|
|
2834
3283
|
z.lazy(() => Tools2$inboundSchema),
|
|
2835
3284
|
z.lazy(() => Tools3$inboundSchema),
|
|
@@ -2840,12 +3289,13 @@ export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
|
2840
3289
|
z.lazy(() => Eight$inboundSchema),
|
|
2841
3290
|
z.lazy(() => Nine$inboundSchema),
|
|
2842
3291
|
z.lazy(() => Ten$inboundSchema),
|
|
3292
|
+
z.lazy(() => Eleven$inboundSchema),
|
|
2843
3293
|
]);
|
|
2844
3294
|
|
|
2845
3295
|
/** @internal */
|
|
2846
3296
|
export type Tools$Outbound =
|
|
2847
|
-
| Eleven$Outbound
|
|
2848
3297
|
| Twelve$Outbound
|
|
3298
|
+
| Thirteen$Outbound
|
|
2849
3299
|
| Tools1$Outbound
|
|
2850
3300
|
| Tools2$Outbound
|
|
2851
3301
|
| Tools3$Outbound
|
|
@@ -2855,7 +3305,8 @@ export type Tools$Outbound =
|
|
|
2855
3305
|
| Seven$Outbound
|
|
2856
3306
|
| Eight$Outbound
|
|
2857
3307
|
| Nine$Outbound
|
|
2858
|
-
| Ten$Outbound
|
|
3308
|
+
| Ten$Outbound
|
|
3309
|
+
| Eleven$Outbound;
|
|
2859
3310
|
|
|
2860
3311
|
/** @internal */
|
|
2861
3312
|
export const Tools$outboundSchema: z.ZodType<
|
|
@@ -2863,8 +3314,8 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
2863
3314
|
z.ZodTypeDef,
|
|
2864
3315
|
Tools
|
|
2865
3316
|
> = z.union([
|
|
2866
|
-
z.lazy(() => Eleven$outboundSchema),
|
|
2867
3317
|
z.lazy(() => Twelve$outboundSchema),
|
|
3318
|
+
z.lazy(() => Thirteen$outboundSchema),
|
|
2868
3319
|
z.lazy(() => Tools1$outboundSchema),
|
|
2869
3320
|
z.lazy(() => Tools2$outboundSchema),
|
|
2870
3321
|
z.lazy(() => Tools3$outboundSchema),
|
|
@@ -2875,6 +3326,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
2875
3326
|
z.lazy(() => Eight$outboundSchema),
|
|
2876
3327
|
z.lazy(() => Nine$outboundSchema),
|
|
2877
3328
|
z.lazy(() => Ten$outboundSchema),
|
|
3329
|
+
z.lazy(() => Eleven$outboundSchema),
|
|
2878
3330
|
]);
|
|
2879
3331
|
|
|
2880
3332
|
/**
|
|
@@ -2933,8 +3385,8 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2933
3385
|
> = z.object({
|
|
2934
3386
|
tools: z.array(
|
|
2935
3387
|
z.union([
|
|
2936
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
2937
3388
|
z.lazy(() => Twelve$inboundSchema),
|
|
3389
|
+
z.lazy(() => Thirteen$inboundSchema),
|
|
2938
3390
|
z.lazy(() => Tools1$inboundSchema),
|
|
2939
3391
|
z.lazy(() => Tools2$inboundSchema),
|
|
2940
3392
|
z.lazy(() => Tools3$inboundSchema),
|
|
@@ -2945,11 +3397,12 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2945
3397
|
z.lazy(() => Eight$inboundSchema),
|
|
2946
3398
|
z.lazy(() => Nine$inboundSchema),
|
|
2947
3399
|
z.lazy(() => Ten$inboundSchema),
|
|
3400
|
+
z.lazy(() => Eleven$inboundSchema),
|
|
2948
3401
|
]),
|
|
2949
3402
|
),
|
|
2950
3403
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
|
|
2951
|
-
max_iterations: z.number().default(15),
|
|
2952
|
-
max_execution_time: z.number().default(120),
|
|
3404
|
+
max_iterations: z.number().int().default(15),
|
|
3405
|
+
max_execution_time: z.number().int().default(120),
|
|
2953
3406
|
}).transform((v) => {
|
|
2954
3407
|
return remap$(v, {
|
|
2955
3408
|
"tool_approval_required": "toolApprovalRequired",
|
|
@@ -2961,8 +3414,8 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2961
3414
|
/** @internal */
|
|
2962
3415
|
export type Settings$Outbound = {
|
|
2963
3416
|
tools: Array<
|
|
2964
|
-
| Eleven$Outbound
|
|
2965
3417
|
| Twelve$Outbound
|
|
3418
|
+
| Thirteen$Outbound
|
|
2966
3419
|
| Tools1$Outbound
|
|
2967
3420
|
| Tools2$Outbound
|
|
2968
3421
|
| Tools3$Outbound
|
|
@@ -2973,6 +3426,7 @@ export type Settings$Outbound = {
|
|
|
2973
3426
|
| Eight$Outbound
|
|
2974
3427
|
| Nine$Outbound
|
|
2975
3428
|
| Ten$Outbound
|
|
3429
|
+
| Eleven$Outbound
|
|
2976
3430
|
>;
|
|
2977
3431
|
tool_approval_required: string;
|
|
2978
3432
|
max_iterations: number;
|
|
@@ -2987,8 +3441,8 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
2987
3441
|
> = z.object({
|
|
2988
3442
|
tools: z.array(
|
|
2989
3443
|
z.union([
|
|
2990
|
-
z.lazy(() => Eleven$outboundSchema),
|
|
2991
3444
|
z.lazy(() => Twelve$outboundSchema),
|
|
3445
|
+
z.lazy(() => Thirteen$outboundSchema),
|
|
2992
3446
|
z.lazy(() => Tools1$outboundSchema),
|
|
2993
3447
|
z.lazy(() => Tools2$outboundSchema),
|
|
2994
3448
|
z.lazy(() => Tools3$outboundSchema),
|
|
@@ -2999,11 +3453,12 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
2999
3453
|
z.lazy(() => Eight$outboundSchema),
|
|
3000
3454
|
z.lazy(() => Nine$outboundSchema),
|
|
3001
3455
|
z.lazy(() => Ten$outboundSchema),
|
|
3456
|
+
z.lazy(() => Eleven$outboundSchema),
|
|
3002
3457
|
]),
|
|
3003
3458
|
),
|
|
3004
3459
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
|
|
3005
|
-
maxIterations: z.number().default(15),
|
|
3006
|
-
maxExecutionTime: z.number().default(120),
|
|
3460
|
+
maxIterations: z.number().int().default(15),
|
|
3461
|
+
maxExecutionTime: z.number().int().default(120),
|
|
3007
3462
|
}).transform((v) => {
|
|
3008
3463
|
return remap$(v, {
|
|
3009
3464
|
toolApprovalRequired: "tool_approval_required",
|
|
@@ -3054,19 +3509,19 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3054
3509
|
message: z.lazy(() => Message$inboundSchema),
|
|
3055
3510
|
variables: z.record(z.any()).optional(),
|
|
3056
3511
|
contextId: z.string().optional(),
|
|
3057
|
-
|
|
3512
|
+
memory: z.lazy(() => Memory$inboundSchema).optional(),
|
|
3058
3513
|
path: z.string(),
|
|
3059
3514
|
description: z.string().optional(),
|
|
3060
3515
|
iconUrl: z.string().optional(),
|
|
3061
3516
|
system_prompt: z.string().optional(),
|
|
3062
3517
|
memory_stores: z.array(z.string()).optional(),
|
|
3063
|
-
knowledge_bases: z.array(z.
|
|
3518
|
+
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
3519
|
+
.optional(),
|
|
3064
3520
|
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
3065
3521
|
settings: z.lazy(() => Settings$inboundSchema),
|
|
3066
3522
|
}).transform((v) => {
|
|
3067
3523
|
return remap$(v, {
|
|
3068
3524
|
"fallback_models": "fallbackModels",
|
|
3069
|
-
"external_id": "externalId",
|
|
3070
3525
|
"system_prompt": "systemPrompt",
|
|
3071
3526
|
"memory_stores": "memoryStores",
|
|
3072
3527
|
"knowledge_bases": "knowledgeBases",
|
|
@@ -3085,13 +3540,13 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
3085
3540
|
message: Message$Outbound;
|
|
3086
3541
|
variables?: { [k: string]: any } | undefined;
|
|
3087
3542
|
contextId?: string | undefined;
|
|
3088
|
-
|
|
3543
|
+
memory?: Memory$Outbound | undefined;
|
|
3089
3544
|
path: string;
|
|
3090
3545
|
description?: string | undefined;
|
|
3091
3546
|
iconUrl?: string | undefined;
|
|
3092
3547
|
system_prompt?: string | undefined;
|
|
3093
3548
|
memory_stores?: Array<string> | undefined;
|
|
3094
|
-
knowledge_bases?: Array<
|
|
3549
|
+
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
3095
3550
|
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
3096
3551
|
settings: Settings$Outbound;
|
|
3097
3552
|
};
|
|
@@ -3111,19 +3566,19 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3111
3566
|
message: z.lazy(() => Message$outboundSchema),
|
|
3112
3567
|
variables: z.record(z.any()).optional(),
|
|
3113
3568
|
contextId: z.string().optional(),
|
|
3114
|
-
|
|
3569
|
+
memory: z.lazy(() => Memory$outboundSchema).optional(),
|
|
3115
3570
|
path: z.string(),
|
|
3116
3571
|
description: z.string().optional(),
|
|
3117
3572
|
iconUrl: z.string().optional(),
|
|
3118
3573
|
systemPrompt: z.string().optional(),
|
|
3119
3574
|
memoryStores: z.array(z.string()).optional(),
|
|
3120
|
-
knowledgeBases: z.array(z.
|
|
3575
|
+
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
3576
|
+
.optional(),
|
|
3121
3577
|
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
3122
3578
|
settings: z.lazy(() => Settings$outboundSchema),
|
|
3123
3579
|
}).transform((v) => {
|
|
3124
3580
|
return remap$(v, {
|
|
3125
3581
|
fallbackModels: "fallback_models",
|
|
3126
|
-
externalId: "external_id",
|
|
3127
3582
|
systemPrompt: "system_prompt",
|
|
3128
3583
|
memoryStores: "memory_stores",
|
|
3129
3584
|
knowledgeBases: "knowledge_bases",
|