@orq-ai/node 4.0.0-rc.49 → 4.0.0-rc.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -29
- package/bin/mcp-server.js +1502 -4133
- package/bin/mcp-server.js.map +40 -51
- package/docs/sdks/agents/README.md +0 -76
- package/docs/sdks/tools/README.md +1 -152
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +1 -7
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +0 -7
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +0 -10
- package/sdk/agents.js.map +1 -1
- package/sdk/tools.d.ts +0 -14
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +0 -20
- package/sdk/tools.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- 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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.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 +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +0 -18
- package/src/sdk/tools.ts +0 -36
- package/funcs/agentsDuplicate.d.ts +0 -18
- package/funcs/agentsDuplicate.d.ts.map +0 -1
- package/funcs/agentsDuplicate.js +0 -124
- package/funcs/agentsDuplicate.js.map +0 -1
- package/funcs/toolsDuplicate.d.ts +0 -18
- package/funcs/toolsDuplicate.d.ts.map +0 -1
- package/funcs/toolsDuplicate.js +0 -124
- package/funcs/toolsDuplicate.js.map +0 -1
- package/funcs/toolsSync.d.ts +0 -18
- package/funcs/toolsSync.d.ts.map +0 -1
- package/funcs/toolsSync.js +0 -123
- package/funcs/toolsSync.js.map +0 -1
- package/mcp-server/tools/agentsDuplicate.d.ts +0 -8
- package/mcp-server/tools/agentsDuplicate.d.ts.map +0 -1
- package/mcp-server/tools/agentsDuplicate.js +0 -64
- package/mcp-server/tools/agentsDuplicate.js.map +0 -1
- package/mcp-server/tools/toolsDuplicate.d.ts +0 -8
- package/mcp-server/tools/toolsDuplicate.d.ts.map +0 -1
- package/mcp-server/tools/toolsDuplicate.js +0 -64
- package/mcp-server/tools/toolsDuplicate.js.map +0 -1
- package/mcp-server/tools/toolsSync.d.ts +0 -8
- package/mcp-server/tools/toolsSync.d.ts.map +0 -1
- package/mcp-server/tools/toolsSync.js +0 -64
- package/mcp-server/tools/toolsSync.js.map +0 -1
- package/models/errors/duplicateagent.d.ts +0 -55
- package/models/errors/duplicateagent.d.ts.map +0 -1
- package/models/errors/duplicateagent.js +0 -106
- package/models/errors/duplicateagent.js.map +0 -1
- package/models/errors/duplicatetool.d.ts +0 -36
- package/models/errors/duplicatetool.d.ts.map +0 -1
- package/models/errors/duplicatetool.js +0 -77
- package/models/errors/duplicatetool.js.map +0 -1
- package/models/operations/duplicateagent.d.ts +0 -1436
- package/models/operations/duplicateagent.d.ts.map +0 -1
- package/models/operations/duplicateagent.js +0 -1456
- package/models/operations/duplicateagent.js.map +0 -1
- package/models/operations/duplicatetool.d.ts +0 -1038
- package/models/operations/duplicatetool.d.ts.map +0 -1
- package/models/operations/duplicatetool.js +0 -982
- package/models/operations/duplicatetool.js.map +0 -1
- package/models/operations/syncmcptool.d.ts +0 -1115
- package/models/operations/syncmcptool.d.ts.map +0 -1
- package/models/operations/syncmcptool.js +0 -1072
- package/models/operations/syncmcptool.js.map +0 -1
- package/src/funcs/agentsDuplicate.ts +0 -180
- package/src/funcs/toolsDuplicate.ts +0 -176
- package/src/funcs/toolsSync.ts +0 -176
- package/src/mcp-server/tools/agentsDuplicate.ts +0 -37
- package/src/mcp-server/tools/toolsDuplicate.ts +0 -37
- package/src/mcp-server/tools/toolsSync.ts +0 -37
- package/src/models/errors/duplicateagent.ts +0 -128
- package/src/models/errors/duplicatetool.ts +0 -78
- package/src/models/operations/duplicateagent.ts +0 -3674
- package/src/models/operations/duplicatetool.ts +0 -2395
- package/src/models/operations/syncmcptool.ts +0 -2603
|
@@ -1,3674 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type DuplicateAgentRequestBody = {
|
|
13
|
-
/**
|
|
14
|
-
* The unique key for the duplicated agent
|
|
15
|
-
*/
|
|
16
|
-
key: string;
|
|
17
|
-
/**
|
|
18
|
-
* The display name for the duplicated agent
|
|
19
|
-
*/
|
|
20
|
-
displayName?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export type DuplicateAgentRequest = {
|
|
24
|
-
/**
|
|
25
|
-
* The key of the agent to duplicate
|
|
26
|
-
*/
|
|
27
|
-
agentKey: string;
|
|
28
|
-
requestBody?: DuplicateAgentRequestBody | undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
33
|
-
*/
|
|
34
|
-
export const DuplicateAgentStatus = {
|
|
35
|
-
Live: "live",
|
|
36
|
-
Draft: "draft",
|
|
37
|
-
Pending: "pending",
|
|
38
|
-
Published: "published",
|
|
39
|
-
} as const;
|
|
40
|
-
/**
|
|
41
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
42
|
-
*/
|
|
43
|
-
export type DuplicateAgentStatus = ClosedEnum<typeof DuplicateAgentStatus>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 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.
|
|
47
|
-
*/
|
|
48
|
-
export const DuplicateAgentToolApprovalRequired = {
|
|
49
|
-
All: "all",
|
|
50
|
-
RespectTool: "respect_tool",
|
|
51
|
-
None: "none",
|
|
52
|
-
} as const;
|
|
53
|
-
/**
|
|
54
|
-
* 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.
|
|
55
|
-
*/
|
|
56
|
-
export type DuplicateAgentToolApprovalRequired = ClosedEnum<
|
|
57
|
-
typeof DuplicateAgentToolApprovalRequired
|
|
58
|
-
>;
|
|
59
|
-
|
|
60
|
-
export type DuplicateAgentConditions = {
|
|
61
|
-
/**
|
|
62
|
-
* The argument of the tool call to evaluate
|
|
63
|
-
*/
|
|
64
|
-
condition: string;
|
|
65
|
-
/**
|
|
66
|
-
* The operator to use
|
|
67
|
-
*/
|
|
68
|
-
operator: string;
|
|
69
|
-
/**
|
|
70
|
-
* The value to compare against
|
|
71
|
-
*/
|
|
72
|
-
value: string;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export type DuplicateAgentTools = {
|
|
76
|
-
/**
|
|
77
|
-
* The id of the resource
|
|
78
|
-
*/
|
|
79
|
-
id: string;
|
|
80
|
-
/**
|
|
81
|
-
* Optional tool key for custom tools
|
|
82
|
-
*/
|
|
83
|
-
key?: string | undefined;
|
|
84
|
-
actionType: string;
|
|
85
|
-
displayName?: string | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Optional tool description
|
|
88
|
-
*/
|
|
89
|
-
description?: string | undefined;
|
|
90
|
-
requiresApproval?: boolean | undefined;
|
|
91
|
-
conditions?: Array<DuplicateAgentConditions> | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
94
|
-
*/
|
|
95
|
-
timeout?: number | undefined;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
100
|
-
*/
|
|
101
|
-
export const DuplicateAgentExecuteOn = {
|
|
102
|
-
Input: "input",
|
|
103
|
-
Output: "output",
|
|
104
|
-
} as const;
|
|
105
|
-
/**
|
|
106
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
107
|
-
*/
|
|
108
|
-
export type DuplicateAgentExecuteOn = ClosedEnum<
|
|
109
|
-
typeof DuplicateAgentExecuteOn
|
|
110
|
-
>;
|
|
111
|
-
|
|
112
|
-
export type DuplicateAgentEvaluators = {
|
|
113
|
-
/**
|
|
114
|
-
* Unique key or identifier of the evaluator
|
|
115
|
-
*/
|
|
116
|
-
id: string;
|
|
117
|
-
/**
|
|
118
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
119
|
-
*/
|
|
120
|
-
sampleRate?: number | undefined;
|
|
121
|
-
/**
|
|
122
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
123
|
-
*/
|
|
124
|
-
executeOn: DuplicateAgentExecuteOn;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
129
|
-
*/
|
|
130
|
-
export const DuplicateAgentAgentsExecuteOn = {
|
|
131
|
-
Input: "input",
|
|
132
|
-
Output: "output",
|
|
133
|
-
} as const;
|
|
134
|
-
/**
|
|
135
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
136
|
-
*/
|
|
137
|
-
export type DuplicateAgentAgentsExecuteOn = ClosedEnum<
|
|
138
|
-
typeof DuplicateAgentAgentsExecuteOn
|
|
139
|
-
>;
|
|
140
|
-
|
|
141
|
-
export type DuplicateAgentGuardrails = {
|
|
142
|
-
/**
|
|
143
|
-
* Unique key or identifier of the evaluator
|
|
144
|
-
*/
|
|
145
|
-
id: string;
|
|
146
|
-
/**
|
|
147
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
148
|
-
*/
|
|
149
|
-
sampleRate?: number | undefined;
|
|
150
|
-
/**
|
|
151
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
152
|
-
*/
|
|
153
|
-
executeOn: DuplicateAgentAgentsExecuteOn;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export type DuplicateAgentSettings = {
|
|
157
|
-
/**
|
|
158
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
159
|
-
*/
|
|
160
|
-
maxIterations?: number | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* 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.
|
|
163
|
-
*/
|
|
164
|
-
maxExecutionTime?: number | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* 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.
|
|
167
|
-
*/
|
|
168
|
-
toolApprovalRequired?: DuplicateAgentToolApprovalRequired | undefined;
|
|
169
|
-
tools?: Array<DuplicateAgentTools> | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* Configuration for an evaluator applied to the agent
|
|
172
|
-
*/
|
|
173
|
-
evaluators?: Array<DuplicateAgentEvaluators> | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Configuration for a guardrail applied to the agent
|
|
176
|
-
*/
|
|
177
|
-
guardrails?: Array<DuplicateAgentGuardrails> | undefined;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
182
|
-
*/
|
|
183
|
-
export const DuplicateAgentVoice = {
|
|
184
|
-
Alloy: "alloy",
|
|
185
|
-
Echo: "echo",
|
|
186
|
-
Fable: "fable",
|
|
187
|
-
Onyx: "onyx",
|
|
188
|
-
Nova: "nova",
|
|
189
|
-
Shimmer: "shimmer",
|
|
190
|
-
} as const;
|
|
191
|
-
/**
|
|
192
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
193
|
-
*/
|
|
194
|
-
export type DuplicateAgentVoice = ClosedEnum<typeof DuplicateAgentVoice>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
198
|
-
*/
|
|
199
|
-
export const DuplicateAgentFormat = {
|
|
200
|
-
Wav: "wav",
|
|
201
|
-
Mp3: "mp3",
|
|
202
|
-
Flac: "flac",
|
|
203
|
-
Opus: "opus",
|
|
204
|
-
Pcm16: "pcm16",
|
|
205
|
-
} as const;
|
|
206
|
-
/**
|
|
207
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
208
|
-
*/
|
|
209
|
-
export type DuplicateAgentFormat = ClosedEnum<typeof DuplicateAgentFormat>;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
213
|
-
*/
|
|
214
|
-
export type DuplicateAgentAudio = {
|
|
215
|
-
/**
|
|
216
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
217
|
-
*/
|
|
218
|
-
voice: DuplicateAgentVoice;
|
|
219
|
-
/**
|
|
220
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
221
|
-
*/
|
|
222
|
-
format: DuplicateAgentFormat;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export const DuplicateAgentResponseFormatAgentsResponseType = {
|
|
226
|
-
JsonSchema: "json_schema",
|
|
227
|
-
} as const;
|
|
228
|
-
export type DuplicateAgentResponseFormatAgentsResponseType = ClosedEnum<
|
|
229
|
-
typeof DuplicateAgentResponseFormatAgentsResponseType
|
|
230
|
-
>;
|
|
231
|
-
|
|
232
|
-
export type DuplicateAgentResponseFormatJsonSchema = {
|
|
233
|
-
/**
|
|
234
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
235
|
-
*/
|
|
236
|
-
description?: string | undefined;
|
|
237
|
-
/**
|
|
238
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
239
|
-
*/
|
|
240
|
-
name: string;
|
|
241
|
-
/**
|
|
242
|
-
* The schema for the response format, described as a JSON Schema object.
|
|
243
|
-
*/
|
|
244
|
-
schema?: any | undefined;
|
|
245
|
-
/**
|
|
246
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
247
|
-
*/
|
|
248
|
-
strict?: boolean | null | undefined;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @remarks
|
|
253
|
-
*
|
|
254
|
-
* JSON Schema response format. Used to generate structured JSON responses
|
|
255
|
-
*/
|
|
256
|
-
export type DuplicateAgentResponseFormatAgentsJSONSchema = {
|
|
257
|
-
type: DuplicateAgentResponseFormatAgentsResponseType;
|
|
258
|
-
jsonSchema: DuplicateAgentResponseFormatJsonSchema;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
export const DuplicateAgentResponseFormatAgentsType = {
|
|
262
|
-
JsonObject: "json_object",
|
|
263
|
-
} as const;
|
|
264
|
-
export type DuplicateAgentResponseFormatAgentsType = ClosedEnum<
|
|
265
|
-
typeof DuplicateAgentResponseFormatAgentsType
|
|
266
|
-
>;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @remarks
|
|
270
|
-
*
|
|
271
|
-
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
272
|
-
*/
|
|
273
|
-
export type DuplicateAgentResponseFormatJSONObject = {
|
|
274
|
-
type: DuplicateAgentResponseFormatAgentsType;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export const DuplicateAgentResponseFormatType = {
|
|
278
|
-
Text: "text",
|
|
279
|
-
} as const;
|
|
280
|
-
export type DuplicateAgentResponseFormatType = ClosedEnum<
|
|
281
|
-
typeof DuplicateAgentResponseFormatType
|
|
282
|
-
>;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @remarks
|
|
286
|
-
*
|
|
287
|
-
* Default response format. Used to generate text responses
|
|
288
|
-
*/
|
|
289
|
-
export type DuplicateAgentResponseFormatText = {
|
|
290
|
-
type: DuplicateAgentResponseFormatType;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* An object specifying the format that the model must output
|
|
295
|
-
*/
|
|
296
|
-
export type DuplicateAgentResponseFormat =
|
|
297
|
-
| DuplicateAgentResponseFormatAgentsJSONSchema
|
|
298
|
-
| DuplicateAgentResponseFormatText
|
|
299
|
-
| DuplicateAgentResponseFormatJSONObject;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
303
|
-
*/
|
|
304
|
-
export type DuplicateAgentStop = string | Array<string>;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
308
|
-
*/
|
|
309
|
-
export type DuplicateAgentStreamOptions = {
|
|
310
|
-
/**
|
|
311
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
312
|
-
*/
|
|
313
|
-
includeUsage?: boolean | undefined;
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Enables or disables the thinking mode capability
|
|
318
|
-
*/
|
|
319
|
-
export const DuplicateAgentType = {
|
|
320
|
-
Enabled: "enabled",
|
|
321
|
-
Disabled: "disabled",
|
|
322
|
-
} as const;
|
|
323
|
-
/**
|
|
324
|
-
* Enables or disables the thinking mode capability
|
|
325
|
-
*/
|
|
326
|
-
export type DuplicateAgentType = ClosedEnum<typeof DuplicateAgentType>;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
330
|
-
*/
|
|
331
|
-
export const DuplicateAgentThinkingLevel = {
|
|
332
|
-
Low: "low",
|
|
333
|
-
High: "high",
|
|
334
|
-
} as const;
|
|
335
|
-
/**
|
|
336
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
337
|
-
*/
|
|
338
|
-
export type DuplicateAgentThinkingLevel = ClosedEnum<
|
|
339
|
-
typeof DuplicateAgentThinkingLevel
|
|
340
|
-
>;
|
|
341
|
-
|
|
342
|
-
export type DuplicateAgentThinking = {
|
|
343
|
-
/**
|
|
344
|
-
* Enables or disables the thinking mode capability
|
|
345
|
-
*/
|
|
346
|
-
type: DuplicateAgentType;
|
|
347
|
-
/**
|
|
348
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
349
|
-
*/
|
|
350
|
-
budgetTokens: number;
|
|
351
|
-
/**
|
|
352
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
353
|
-
*/
|
|
354
|
-
thinkingLevel?: DuplicateAgentThinkingLevel | undefined;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* The type of the tool. Currently, only function is supported.
|
|
359
|
-
*/
|
|
360
|
-
export const DuplicateAgentToolChoiceType = {
|
|
361
|
-
Function: "function",
|
|
362
|
-
} as const;
|
|
363
|
-
/**
|
|
364
|
-
* The type of the tool. Currently, only function is supported.
|
|
365
|
-
*/
|
|
366
|
-
export type DuplicateAgentToolChoiceType = ClosedEnum<
|
|
367
|
-
typeof DuplicateAgentToolChoiceType
|
|
368
|
-
>;
|
|
369
|
-
|
|
370
|
-
export type DuplicateAgentToolChoiceFunction = {
|
|
371
|
-
/**
|
|
372
|
-
* The name of the function to call.
|
|
373
|
-
*/
|
|
374
|
-
name?: string | undefined;
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
export type DuplicateAgentToolChoice2 = {
|
|
378
|
-
/**
|
|
379
|
-
* The type of the tool. Currently, only function is supported.
|
|
380
|
-
*/
|
|
381
|
-
type?: DuplicateAgentToolChoiceType | undefined;
|
|
382
|
-
function: DuplicateAgentToolChoiceFunction;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export const DuplicateAgentToolChoice1 = {
|
|
386
|
-
None: "none",
|
|
387
|
-
Auto: "auto",
|
|
388
|
-
Required: "required",
|
|
389
|
-
} as const;
|
|
390
|
-
export type DuplicateAgentToolChoice1 = ClosedEnum<
|
|
391
|
-
typeof DuplicateAgentToolChoice1
|
|
392
|
-
>;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Controls which (if any) tool is called by the model.
|
|
396
|
-
*/
|
|
397
|
-
export type DuplicateAgentToolChoice =
|
|
398
|
-
| DuplicateAgentToolChoice2
|
|
399
|
-
| DuplicateAgentToolChoice1;
|
|
400
|
-
|
|
401
|
-
export const DuplicateAgentModalities = {
|
|
402
|
-
Text: "text",
|
|
403
|
-
Audio: "audio",
|
|
404
|
-
} as const;
|
|
405
|
-
export type DuplicateAgentModalities = ClosedEnum<
|
|
406
|
-
typeof DuplicateAgentModalities
|
|
407
|
-
>;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
411
|
-
*/
|
|
412
|
-
export type DuplicateAgentParameters = {
|
|
413
|
-
/**
|
|
414
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
415
|
-
*/
|
|
416
|
-
audio?: DuplicateAgentAudio | null | undefined;
|
|
417
|
-
/**
|
|
418
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
419
|
-
*/
|
|
420
|
-
frequencyPenalty?: number | null | undefined;
|
|
421
|
-
/**
|
|
422
|
-
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
423
|
-
*
|
|
424
|
-
* @remarks
|
|
425
|
-
*
|
|
426
|
-
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
427
|
-
*/
|
|
428
|
-
maxTokens?: number | null | undefined;
|
|
429
|
-
/**
|
|
430
|
-
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
431
|
-
*/
|
|
432
|
-
maxCompletionTokens?: number | null | undefined;
|
|
433
|
-
/**
|
|
434
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
435
|
-
*/
|
|
436
|
-
logprobs?: boolean | null | undefined;
|
|
437
|
-
/**
|
|
438
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
439
|
-
*/
|
|
440
|
-
topLogprobs?: number | null | undefined;
|
|
441
|
-
/**
|
|
442
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
443
|
-
*/
|
|
444
|
-
n?: number | null | undefined;
|
|
445
|
-
/**
|
|
446
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
447
|
-
*/
|
|
448
|
-
presencePenalty?: number | null | undefined;
|
|
449
|
-
/**
|
|
450
|
-
* An object specifying the format that the model must output
|
|
451
|
-
*/
|
|
452
|
-
responseFormat?:
|
|
453
|
-
| DuplicateAgentResponseFormatAgentsJSONSchema
|
|
454
|
-
| DuplicateAgentResponseFormatText
|
|
455
|
-
| DuplicateAgentResponseFormatJSONObject
|
|
456
|
-
| undefined;
|
|
457
|
-
/**
|
|
458
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
459
|
-
*/
|
|
460
|
-
reasoningEffort?: string | undefined;
|
|
461
|
-
/**
|
|
462
|
-
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
463
|
-
*/
|
|
464
|
-
verbosity?: string | undefined;
|
|
465
|
-
/**
|
|
466
|
-
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
467
|
-
*/
|
|
468
|
-
seed?: number | null | undefined;
|
|
469
|
-
/**
|
|
470
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
471
|
-
*/
|
|
472
|
-
stop?: string | Array<string> | null | undefined;
|
|
473
|
-
/**
|
|
474
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
475
|
-
*/
|
|
476
|
-
streamOptions?: DuplicateAgentStreamOptions | null | undefined;
|
|
477
|
-
thinking?: DuplicateAgentThinking | undefined;
|
|
478
|
-
/**
|
|
479
|
-
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
480
|
-
*/
|
|
481
|
-
temperature?: number | null | undefined;
|
|
482
|
-
/**
|
|
483
|
-
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
484
|
-
*/
|
|
485
|
-
topP?: number | null | undefined;
|
|
486
|
-
/**
|
|
487
|
-
* Limits the model to consider only the top k most likely tokens at each step.
|
|
488
|
-
*/
|
|
489
|
-
topK?: number | null | undefined;
|
|
490
|
-
/**
|
|
491
|
-
* Controls which (if any) tool is called by the model.
|
|
492
|
-
*/
|
|
493
|
-
toolChoice?:
|
|
494
|
-
| DuplicateAgentToolChoice2
|
|
495
|
-
| DuplicateAgentToolChoice1
|
|
496
|
-
| undefined;
|
|
497
|
-
/**
|
|
498
|
-
* Whether to enable parallel function calling during tool use.
|
|
499
|
-
*/
|
|
500
|
-
parallelToolCalls?: boolean | undefined;
|
|
501
|
-
/**
|
|
502
|
-
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
503
|
-
*/
|
|
504
|
-
modalities?: Array<DuplicateAgentModalities> | null | undefined;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
509
|
-
*/
|
|
510
|
-
export type DuplicateAgentRetry = {
|
|
511
|
-
/**
|
|
512
|
-
* Number of retry attempts (1-5)
|
|
513
|
-
*/
|
|
514
|
-
count?: number | undefined;
|
|
515
|
-
/**
|
|
516
|
-
* HTTP status codes that trigger retry logic
|
|
517
|
-
*/
|
|
518
|
-
onCodes?: Array<number> | undefined;
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
523
|
-
*/
|
|
524
|
-
export const DuplicateAgentFallbackModelConfigurationVoice = {
|
|
525
|
-
Alloy: "alloy",
|
|
526
|
-
Echo: "echo",
|
|
527
|
-
Fable: "fable",
|
|
528
|
-
Onyx: "onyx",
|
|
529
|
-
Nova: "nova",
|
|
530
|
-
Shimmer: "shimmer",
|
|
531
|
-
} as const;
|
|
532
|
-
/**
|
|
533
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
534
|
-
*/
|
|
535
|
-
export type DuplicateAgentFallbackModelConfigurationVoice = ClosedEnum<
|
|
536
|
-
typeof DuplicateAgentFallbackModelConfigurationVoice
|
|
537
|
-
>;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
541
|
-
*/
|
|
542
|
-
export const DuplicateAgentFallbackModelConfigurationFormat = {
|
|
543
|
-
Wav: "wav",
|
|
544
|
-
Mp3: "mp3",
|
|
545
|
-
Flac: "flac",
|
|
546
|
-
Opus: "opus",
|
|
547
|
-
Pcm16: "pcm16",
|
|
548
|
-
} as const;
|
|
549
|
-
/**
|
|
550
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
551
|
-
*/
|
|
552
|
-
export type DuplicateAgentFallbackModelConfigurationFormat = ClosedEnum<
|
|
553
|
-
typeof DuplicateAgentFallbackModelConfigurationFormat
|
|
554
|
-
>;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
558
|
-
*/
|
|
559
|
-
export type DuplicateAgentFallbackModelConfigurationAudio = {
|
|
560
|
-
/**
|
|
561
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
562
|
-
*/
|
|
563
|
-
voice: DuplicateAgentFallbackModelConfigurationVoice;
|
|
564
|
-
/**
|
|
565
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
566
|
-
*/
|
|
567
|
-
format: DuplicateAgentFallbackModelConfigurationFormat;
|
|
568
|
-
};
|
|
569
|
-
|
|
570
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType =
|
|
571
|
-
{
|
|
572
|
-
JsonSchema: "json_schema",
|
|
573
|
-
} as const;
|
|
574
|
-
export type DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType =
|
|
575
|
-
ClosedEnum<
|
|
576
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType
|
|
577
|
-
>;
|
|
578
|
-
|
|
579
|
-
export type DuplicateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
580
|
-
/**
|
|
581
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
582
|
-
*/
|
|
583
|
-
description?: string | undefined;
|
|
584
|
-
/**
|
|
585
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
586
|
-
*/
|
|
587
|
-
name: string;
|
|
588
|
-
/**
|
|
589
|
-
* The schema for the response format, described as a JSON Schema object.
|
|
590
|
-
*/
|
|
591
|
-
schema?: any | undefined;
|
|
592
|
-
/**
|
|
593
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
594
|
-
*/
|
|
595
|
-
strict?: boolean | null | undefined;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* @remarks
|
|
600
|
-
*
|
|
601
|
-
* JSON Schema response format. Used to generate structured JSON responses
|
|
602
|
-
*/
|
|
603
|
-
export type DuplicateAgentResponseFormatAgentsResponse201JSONSchema = {
|
|
604
|
-
type:
|
|
605
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType;
|
|
606
|
-
jsonSchema: DuplicateAgentResponseFormatAgentsResponseJsonSchema;
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType =
|
|
610
|
-
{
|
|
611
|
-
JsonObject: "json_object",
|
|
612
|
-
} as const;
|
|
613
|
-
export type DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType =
|
|
614
|
-
ClosedEnum<
|
|
615
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType
|
|
616
|
-
>;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* @remarks
|
|
620
|
-
*
|
|
621
|
-
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
622
|
-
*/
|
|
623
|
-
export type DuplicateAgentResponseFormatAgentsJSONObject = {
|
|
624
|
-
type: DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
export const DuplicateAgentResponseFormatAgentsResponse201Type = {
|
|
628
|
-
Text: "text",
|
|
629
|
-
} as const;
|
|
630
|
-
export type DuplicateAgentResponseFormatAgentsResponse201Type = ClosedEnum<
|
|
631
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201Type
|
|
632
|
-
>;
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* @remarks
|
|
636
|
-
*
|
|
637
|
-
* Default response format. Used to generate text responses
|
|
638
|
-
*/
|
|
639
|
-
export type DuplicateAgentResponseFormatAgentsText = {
|
|
640
|
-
type: DuplicateAgentResponseFormatAgentsResponse201Type;
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* An object specifying the format that the model must output
|
|
645
|
-
*/
|
|
646
|
-
export type DuplicateAgentFallbackModelConfigurationResponseFormat =
|
|
647
|
-
| DuplicateAgentResponseFormatAgentsResponse201JSONSchema
|
|
648
|
-
| DuplicateAgentResponseFormatAgentsText
|
|
649
|
-
| DuplicateAgentResponseFormatAgentsJSONObject;
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
653
|
-
*/
|
|
654
|
-
export type DuplicateAgentFallbackModelConfigurationStop =
|
|
655
|
-
| string
|
|
656
|
-
| Array<string>;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
660
|
-
*/
|
|
661
|
-
export type DuplicateAgentFallbackModelConfigurationStreamOptions = {
|
|
662
|
-
/**
|
|
663
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
664
|
-
*/
|
|
665
|
-
includeUsage?: boolean | undefined;
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* Enables or disables the thinking mode capability
|
|
670
|
-
*/
|
|
671
|
-
export const DuplicateAgentFallbackModelConfigurationType = {
|
|
672
|
-
Enabled: "enabled",
|
|
673
|
-
Disabled: "disabled",
|
|
674
|
-
} as const;
|
|
675
|
-
/**
|
|
676
|
-
* Enables or disables the thinking mode capability
|
|
677
|
-
*/
|
|
678
|
-
export type DuplicateAgentFallbackModelConfigurationType = ClosedEnum<
|
|
679
|
-
typeof DuplicateAgentFallbackModelConfigurationType
|
|
680
|
-
>;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
684
|
-
*/
|
|
685
|
-
export const DuplicateAgentFallbackModelConfigurationThinkingLevel = {
|
|
686
|
-
Low: "low",
|
|
687
|
-
High: "high",
|
|
688
|
-
} as const;
|
|
689
|
-
/**
|
|
690
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
691
|
-
*/
|
|
692
|
-
export type DuplicateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
693
|
-
typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
|
|
694
|
-
>;
|
|
695
|
-
|
|
696
|
-
export type DuplicateAgentFallbackModelConfigurationThinking = {
|
|
697
|
-
/**
|
|
698
|
-
* Enables or disables the thinking mode capability
|
|
699
|
-
*/
|
|
700
|
-
type: DuplicateAgentFallbackModelConfigurationType;
|
|
701
|
-
/**
|
|
702
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
703
|
-
*/
|
|
704
|
-
budgetTokens: number;
|
|
705
|
-
/**
|
|
706
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
707
|
-
*/
|
|
708
|
-
thinkingLevel?:
|
|
709
|
-
| DuplicateAgentFallbackModelConfigurationThinkingLevel
|
|
710
|
-
| undefined;
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* The type of the tool. Currently, only function is supported.
|
|
715
|
-
*/
|
|
716
|
-
export const DuplicateAgentToolChoiceAgentsType = {
|
|
717
|
-
Function: "function",
|
|
718
|
-
} as const;
|
|
719
|
-
/**
|
|
720
|
-
* The type of the tool. Currently, only function is supported.
|
|
721
|
-
*/
|
|
722
|
-
export type DuplicateAgentToolChoiceAgentsType = ClosedEnum<
|
|
723
|
-
typeof DuplicateAgentToolChoiceAgentsType
|
|
724
|
-
>;
|
|
725
|
-
|
|
726
|
-
export type DuplicateAgentToolChoiceAgentsFunction = {
|
|
727
|
-
/**
|
|
728
|
-
* The name of the function to call.
|
|
729
|
-
*/
|
|
730
|
-
name?: string | undefined;
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
export type DuplicateAgentToolChoiceAgents2 = {
|
|
734
|
-
/**
|
|
735
|
-
* The type of the tool. Currently, only function is supported.
|
|
736
|
-
*/
|
|
737
|
-
type?: DuplicateAgentToolChoiceAgentsType | undefined;
|
|
738
|
-
function: DuplicateAgentToolChoiceAgentsFunction;
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
export const DuplicateAgentToolChoiceAgents1 = {
|
|
742
|
-
None: "none",
|
|
743
|
-
Auto: "auto",
|
|
744
|
-
Required: "required",
|
|
745
|
-
} as const;
|
|
746
|
-
export type DuplicateAgentToolChoiceAgents1 = ClosedEnum<
|
|
747
|
-
typeof DuplicateAgentToolChoiceAgents1
|
|
748
|
-
>;
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* Controls which (if any) tool is called by the model.
|
|
752
|
-
*/
|
|
753
|
-
export type DuplicateAgentFallbackModelConfigurationToolChoice =
|
|
754
|
-
| DuplicateAgentToolChoiceAgents2
|
|
755
|
-
| DuplicateAgentToolChoiceAgents1;
|
|
756
|
-
|
|
757
|
-
export const DuplicateAgentFallbackModelConfigurationModalities = {
|
|
758
|
-
Text: "text",
|
|
759
|
-
Audio: "audio",
|
|
760
|
-
} as const;
|
|
761
|
-
export type DuplicateAgentFallbackModelConfigurationModalities = ClosedEnum<
|
|
762
|
-
typeof DuplicateAgentFallbackModelConfigurationModalities
|
|
763
|
-
>;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
767
|
-
*/
|
|
768
|
-
export type DuplicateAgentFallbackModelConfigurationParameters = {
|
|
769
|
-
/**
|
|
770
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
771
|
-
*/
|
|
772
|
-
audio?: DuplicateAgentFallbackModelConfigurationAudio | null | undefined;
|
|
773
|
-
/**
|
|
774
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
775
|
-
*/
|
|
776
|
-
frequencyPenalty?: number | null | undefined;
|
|
777
|
-
/**
|
|
778
|
-
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
779
|
-
*
|
|
780
|
-
* @remarks
|
|
781
|
-
*
|
|
782
|
-
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
783
|
-
*/
|
|
784
|
-
maxTokens?: number | null | undefined;
|
|
785
|
-
/**
|
|
786
|
-
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
787
|
-
*/
|
|
788
|
-
maxCompletionTokens?: number | null | undefined;
|
|
789
|
-
/**
|
|
790
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
791
|
-
*/
|
|
792
|
-
logprobs?: boolean | null | undefined;
|
|
793
|
-
/**
|
|
794
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
795
|
-
*/
|
|
796
|
-
topLogprobs?: number | null | undefined;
|
|
797
|
-
/**
|
|
798
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
799
|
-
*/
|
|
800
|
-
n?: number | null | undefined;
|
|
801
|
-
/**
|
|
802
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
803
|
-
*/
|
|
804
|
-
presencePenalty?: number | null | undefined;
|
|
805
|
-
/**
|
|
806
|
-
* An object specifying the format that the model must output
|
|
807
|
-
*/
|
|
808
|
-
responseFormat?:
|
|
809
|
-
| DuplicateAgentResponseFormatAgentsResponse201JSONSchema
|
|
810
|
-
| DuplicateAgentResponseFormatAgentsText
|
|
811
|
-
| DuplicateAgentResponseFormatAgentsJSONObject
|
|
812
|
-
| undefined;
|
|
813
|
-
/**
|
|
814
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
815
|
-
*/
|
|
816
|
-
reasoningEffort?: string | undefined;
|
|
817
|
-
/**
|
|
818
|
-
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
819
|
-
*/
|
|
820
|
-
verbosity?: string | undefined;
|
|
821
|
-
/**
|
|
822
|
-
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
823
|
-
*/
|
|
824
|
-
seed?: number | null | undefined;
|
|
825
|
-
/**
|
|
826
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
827
|
-
*/
|
|
828
|
-
stop?: string | Array<string> | null | undefined;
|
|
829
|
-
/**
|
|
830
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
831
|
-
*/
|
|
832
|
-
streamOptions?:
|
|
833
|
-
| DuplicateAgentFallbackModelConfigurationStreamOptions
|
|
834
|
-
| null
|
|
835
|
-
| undefined;
|
|
836
|
-
thinking?: DuplicateAgentFallbackModelConfigurationThinking | undefined;
|
|
837
|
-
/**
|
|
838
|
-
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
839
|
-
*/
|
|
840
|
-
temperature?: number | null | undefined;
|
|
841
|
-
/**
|
|
842
|
-
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
843
|
-
*/
|
|
844
|
-
topP?: number | null | undefined;
|
|
845
|
-
/**
|
|
846
|
-
* Limits the model to consider only the top k most likely tokens at each step.
|
|
847
|
-
*/
|
|
848
|
-
topK?: number | null | undefined;
|
|
849
|
-
/**
|
|
850
|
-
* Controls which (if any) tool is called by the model.
|
|
851
|
-
*/
|
|
852
|
-
toolChoice?:
|
|
853
|
-
| DuplicateAgentToolChoiceAgents2
|
|
854
|
-
| DuplicateAgentToolChoiceAgents1
|
|
855
|
-
| undefined;
|
|
856
|
-
/**
|
|
857
|
-
* Whether to enable parallel function calling during tool use.
|
|
858
|
-
*/
|
|
859
|
-
parallelToolCalls?: boolean | undefined;
|
|
860
|
-
/**
|
|
861
|
-
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
862
|
-
*/
|
|
863
|
-
modalities?:
|
|
864
|
-
| Array<DuplicateAgentFallbackModelConfigurationModalities>
|
|
865
|
-
| null
|
|
866
|
-
| undefined;
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* Fallback model configuration with optional parameters.
|
|
871
|
-
*/
|
|
872
|
-
export type DuplicateAgentFallbackModelConfiguration2 = {
|
|
873
|
-
/**
|
|
874
|
-
* A fallback model ID string. Must support tool calling.
|
|
875
|
-
*/
|
|
876
|
-
id: string;
|
|
877
|
-
/**
|
|
878
|
-
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
879
|
-
*/
|
|
880
|
-
parameters?: DuplicateAgentFallbackModelConfigurationParameters | undefined;
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
|
|
885
|
-
*/
|
|
886
|
-
export type DuplicateAgentFallbackModelConfiguration =
|
|
887
|
-
| DuplicateAgentFallbackModelConfiguration2
|
|
888
|
-
| string;
|
|
889
|
-
|
|
890
|
-
export type DuplicateAgentModel = {
|
|
891
|
-
/**
|
|
892
|
-
* The database ID of the primary model
|
|
893
|
-
*/
|
|
894
|
-
id: string;
|
|
895
|
-
/**
|
|
896
|
-
* Optional integration ID for custom model configurations
|
|
897
|
-
*/
|
|
898
|
-
integrationId?: string | null | undefined;
|
|
899
|
-
/**
|
|
900
|
-
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
901
|
-
*/
|
|
902
|
-
parameters?: DuplicateAgentParameters | undefined;
|
|
903
|
-
/**
|
|
904
|
-
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
905
|
-
*/
|
|
906
|
-
retry?: DuplicateAgentRetry | undefined;
|
|
907
|
-
/**
|
|
908
|
-
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
909
|
-
*/
|
|
910
|
-
fallbackModels?:
|
|
911
|
-
| Array<DuplicateAgentFallbackModelConfiguration2 | string>
|
|
912
|
-
| null
|
|
913
|
-
| undefined;
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
export type DuplicateAgentTeamOfAgents = {
|
|
917
|
-
/**
|
|
918
|
-
* The unique key of the agent within the workspace
|
|
919
|
-
*/
|
|
920
|
-
key: string;
|
|
921
|
-
/**
|
|
922
|
-
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
923
|
-
*/
|
|
924
|
-
role?: string | undefined;
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
export type DuplicateAgentMetrics = {
|
|
928
|
-
totalCost?: number | undefined;
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
export type DuplicateAgentKnowledgeBases = {
|
|
932
|
-
/**
|
|
933
|
-
* Unique identifier of the knowledge base to search
|
|
934
|
-
*/
|
|
935
|
-
knowledgeId: string;
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Agent duplicated successfully
|
|
940
|
-
*/
|
|
941
|
-
export type DuplicateAgentResponseBody = {
|
|
942
|
-
id: string;
|
|
943
|
-
key: string;
|
|
944
|
-
displayName: string;
|
|
945
|
-
workspaceId: string;
|
|
946
|
-
projectId: string;
|
|
947
|
-
createdById?: string | null | undefined;
|
|
948
|
-
updatedById?: string | null | undefined;
|
|
949
|
-
created?: string | undefined;
|
|
950
|
-
updated?: string | undefined;
|
|
951
|
-
role: string;
|
|
952
|
-
description: string;
|
|
953
|
-
systemPrompt?: string | undefined;
|
|
954
|
-
instructions: string;
|
|
955
|
-
/**
|
|
956
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
957
|
-
*/
|
|
958
|
-
status: DuplicateAgentStatus;
|
|
959
|
-
settings?: DuplicateAgentSettings | undefined;
|
|
960
|
-
model: DuplicateAgentModel;
|
|
961
|
-
versionHash?: string | undefined;
|
|
962
|
-
/**
|
|
963
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
964
|
-
*
|
|
965
|
-
* @remarks
|
|
966
|
-
*
|
|
967
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
968
|
-
*
|
|
969
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
970
|
-
*/
|
|
971
|
-
path: string;
|
|
972
|
-
/**
|
|
973
|
-
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
974
|
-
*/
|
|
975
|
-
memoryStores: Array<string>;
|
|
976
|
-
/**
|
|
977
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
978
|
-
*/
|
|
979
|
-
teamOfAgents: Array<DuplicateAgentTeamOfAgents>;
|
|
980
|
-
metrics?: DuplicateAgentMetrics | undefined;
|
|
981
|
-
/**
|
|
982
|
-
* Extracted variables from agent instructions
|
|
983
|
-
*/
|
|
984
|
-
variables?: { [k: string]: any } | undefined;
|
|
985
|
-
/**
|
|
986
|
-
* Agent knowledge bases reference
|
|
987
|
-
*/
|
|
988
|
-
knowledgeBases?: Array<DuplicateAgentKnowledgeBases> | undefined;
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
/** @internal */
|
|
992
|
-
export const DuplicateAgentRequestBody$inboundSchema: z.ZodType<
|
|
993
|
-
DuplicateAgentRequestBody,
|
|
994
|
-
z.ZodTypeDef,
|
|
995
|
-
unknown
|
|
996
|
-
> = z.object({
|
|
997
|
-
key: z.string(),
|
|
998
|
-
display_name: z.string().optional(),
|
|
999
|
-
}).transform((v) => {
|
|
1000
|
-
return remap$(v, {
|
|
1001
|
-
"display_name": "displayName",
|
|
1002
|
-
});
|
|
1003
|
-
});
|
|
1004
|
-
/** @internal */
|
|
1005
|
-
export type DuplicateAgentRequestBody$Outbound = {
|
|
1006
|
-
key: string;
|
|
1007
|
-
display_name?: string | undefined;
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
/** @internal */
|
|
1011
|
-
export const DuplicateAgentRequestBody$outboundSchema: z.ZodType<
|
|
1012
|
-
DuplicateAgentRequestBody$Outbound,
|
|
1013
|
-
z.ZodTypeDef,
|
|
1014
|
-
DuplicateAgentRequestBody
|
|
1015
|
-
> = z.object({
|
|
1016
|
-
key: z.string(),
|
|
1017
|
-
displayName: z.string().optional(),
|
|
1018
|
-
}).transform((v) => {
|
|
1019
|
-
return remap$(v, {
|
|
1020
|
-
displayName: "display_name",
|
|
1021
|
-
});
|
|
1022
|
-
});
|
|
1023
|
-
|
|
1024
|
-
export function duplicateAgentRequestBodyToJSON(
|
|
1025
|
-
duplicateAgentRequestBody: DuplicateAgentRequestBody,
|
|
1026
|
-
): string {
|
|
1027
|
-
return JSON.stringify(
|
|
1028
|
-
DuplicateAgentRequestBody$outboundSchema.parse(duplicateAgentRequestBody),
|
|
1029
|
-
);
|
|
1030
|
-
}
|
|
1031
|
-
export function duplicateAgentRequestBodyFromJSON(
|
|
1032
|
-
jsonString: string,
|
|
1033
|
-
): SafeParseResult<DuplicateAgentRequestBody, SDKValidationError> {
|
|
1034
|
-
return safeParse(
|
|
1035
|
-
jsonString,
|
|
1036
|
-
(x) => DuplicateAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1037
|
-
`Failed to parse 'DuplicateAgentRequestBody' from JSON`,
|
|
1038
|
-
);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/** @internal */
|
|
1042
|
-
export const DuplicateAgentRequest$inboundSchema: z.ZodType<
|
|
1043
|
-
DuplicateAgentRequest,
|
|
1044
|
-
z.ZodTypeDef,
|
|
1045
|
-
unknown
|
|
1046
|
-
> = z.object({
|
|
1047
|
-
agent_key: z.string(),
|
|
1048
|
-
RequestBody: z.lazy(() => DuplicateAgentRequestBody$inboundSchema).optional(),
|
|
1049
|
-
}).transform((v) => {
|
|
1050
|
-
return remap$(v, {
|
|
1051
|
-
"agent_key": "agentKey",
|
|
1052
|
-
"RequestBody": "requestBody",
|
|
1053
|
-
});
|
|
1054
|
-
});
|
|
1055
|
-
/** @internal */
|
|
1056
|
-
export type DuplicateAgentRequest$Outbound = {
|
|
1057
|
-
agent_key: string;
|
|
1058
|
-
RequestBody?: DuplicateAgentRequestBody$Outbound | undefined;
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
/** @internal */
|
|
1062
|
-
export const DuplicateAgentRequest$outboundSchema: z.ZodType<
|
|
1063
|
-
DuplicateAgentRequest$Outbound,
|
|
1064
|
-
z.ZodTypeDef,
|
|
1065
|
-
DuplicateAgentRequest
|
|
1066
|
-
> = z.object({
|
|
1067
|
-
agentKey: z.string(),
|
|
1068
|
-
requestBody: z.lazy(() => DuplicateAgentRequestBody$outboundSchema)
|
|
1069
|
-
.optional(),
|
|
1070
|
-
}).transform((v) => {
|
|
1071
|
-
return remap$(v, {
|
|
1072
|
-
agentKey: "agent_key",
|
|
1073
|
-
requestBody: "RequestBody",
|
|
1074
|
-
});
|
|
1075
|
-
});
|
|
1076
|
-
|
|
1077
|
-
export function duplicateAgentRequestToJSON(
|
|
1078
|
-
duplicateAgentRequest: DuplicateAgentRequest,
|
|
1079
|
-
): string {
|
|
1080
|
-
return JSON.stringify(
|
|
1081
|
-
DuplicateAgentRequest$outboundSchema.parse(duplicateAgentRequest),
|
|
1082
|
-
);
|
|
1083
|
-
}
|
|
1084
|
-
export function duplicateAgentRequestFromJSON(
|
|
1085
|
-
jsonString: string,
|
|
1086
|
-
): SafeParseResult<DuplicateAgentRequest, SDKValidationError> {
|
|
1087
|
-
return safeParse(
|
|
1088
|
-
jsonString,
|
|
1089
|
-
(x) => DuplicateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1090
|
-
`Failed to parse 'DuplicateAgentRequest' from JSON`,
|
|
1091
|
-
);
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
/** @internal */
|
|
1095
|
-
export const DuplicateAgentStatus$inboundSchema: z.ZodNativeEnum<
|
|
1096
|
-
typeof DuplicateAgentStatus
|
|
1097
|
-
> = z.nativeEnum(DuplicateAgentStatus);
|
|
1098
|
-
/** @internal */
|
|
1099
|
-
export const DuplicateAgentStatus$outboundSchema: z.ZodNativeEnum<
|
|
1100
|
-
typeof DuplicateAgentStatus
|
|
1101
|
-
> = DuplicateAgentStatus$inboundSchema;
|
|
1102
|
-
|
|
1103
|
-
/** @internal */
|
|
1104
|
-
export const DuplicateAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
1105
|
-
typeof DuplicateAgentToolApprovalRequired
|
|
1106
|
-
> = z.nativeEnum(DuplicateAgentToolApprovalRequired);
|
|
1107
|
-
/** @internal */
|
|
1108
|
-
export const DuplicateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
1109
|
-
typeof DuplicateAgentToolApprovalRequired
|
|
1110
|
-
> = DuplicateAgentToolApprovalRequired$inboundSchema;
|
|
1111
|
-
|
|
1112
|
-
/** @internal */
|
|
1113
|
-
export const DuplicateAgentConditions$inboundSchema: z.ZodType<
|
|
1114
|
-
DuplicateAgentConditions,
|
|
1115
|
-
z.ZodTypeDef,
|
|
1116
|
-
unknown
|
|
1117
|
-
> = z.object({
|
|
1118
|
-
condition: z.string(),
|
|
1119
|
-
operator: z.string(),
|
|
1120
|
-
value: z.string(),
|
|
1121
|
-
});
|
|
1122
|
-
/** @internal */
|
|
1123
|
-
export type DuplicateAgentConditions$Outbound = {
|
|
1124
|
-
condition: string;
|
|
1125
|
-
operator: string;
|
|
1126
|
-
value: string;
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
/** @internal */
|
|
1130
|
-
export const DuplicateAgentConditions$outboundSchema: z.ZodType<
|
|
1131
|
-
DuplicateAgentConditions$Outbound,
|
|
1132
|
-
z.ZodTypeDef,
|
|
1133
|
-
DuplicateAgentConditions
|
|
1134
|
-
> = z.object({
|
|
1135
|
-
condition: z.string(),
|
|
1136
|
-
operator: z.string(),
|
|
1137
|
-
value: z.string(),
|
|
1138
|
-
});
|
|
1139
|
-
|
|
1140
|
-
export function duplicateAgentConditionsToJSON(
|
|
1141
|
-
duplicateAgentConditions: DuplicateAgentConditions,
|
|
1142
|
-
): string {
|
|
1143
|
-
return JSON.stringify(
|
|
1144
|
-
DuplicateAgentConditions$outboundSchema.parse(duplicateAgentConditions),
|
|
1145
|
-
);
|
|
1146
|
-
}
|
|
1147
|
-
export function duplicateAgentConditionsFromJSON(
|
|
1148
|
-
jsonString: string,
|
|
1149
|
-
): SafeParseResult<DuplicateAgentConditions, SDKValidationError> {
|
|
1150
|
-
return safeParse(
|
|
1151
|
-
jsonString,
|
|
1152
|
-
(x) => DuplicateAgentConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1153
|
-
`Failed to parse 'DuplicateAgentConditions' from JSON`,
|
|
1154
|
-
);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
/** @internal */
|
|
1158
|
-
export const DuplicateAgentTools$inboundSchema: z.ZodType<
|
|
1159
|
-
DuplicateAgentTools,
|
|
1160
|
-
z.ZodTypeDef,
|
|
1161
|
-
unknown
|
|
1162
|
-
> = z.object({
|
|
1163
|
-
id: z.string(),
|
|
1164
|
-
key: z.string().optional(),
|
|
1165
|
-
action_type: z.string(),
|
|
1166
|
-
display_name: z.string().optional(),
|
|
1167
|
-
description: z.string().optional(),
|
|
1168
|
-
requires_approval: z.boolean().default(false),
|
|
1169
|
-
conditions: z.array(z.lazy(() => DuplicateAgentConditions$inboundSchema))
|
|
1170
|
-
.optional(),
|
|
1171
|
-
timeout: z.number().default(120),
|
|
1172
|
-
}).transform((v) => {
|
|
1173
|
-
return remap$(v, {
|
|
1174
|
-
"action_type": "actionType",
|
|
1175
|
-
"display_name": "displayName",
|
|
1176
|
-
"requires_approval": "requiresApproval",
|
|
1177
|
-
});
|
|
1178
|
-
});
|
|
1179
|
-
/** @internal */
|
|
1180
|
-
export type DuplicateAgentTools$Outbound = {
|
|
1181
|
-
id: string;
|
|
1182
|
-
key?: string | undefined;
|
|
1183
|
-
action_type: string;
|
|
1184
|
-
display_name?: string | undefined;
|
|
1185
|
-
description?: string | undefined;
|
|
1186
|
-
requires_approval: boolean;
|
|
1187
|
-
conditions?: Array<DuplicateAgentConditions$Outbound> | undefined;
|
|
1188
|
-
timeout: number;
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
/** @internal */
|
|
1192
|
-
export const DuplicateAgentTools$outboundSchema: z.ZodType<
|
|
1193
|
-
DuplicateAgentTools$Outbound,
|
|
1194
|
-
z.ZodTypeDef,
|
|
1195
|
-
DuplicateAgentTools
|
|
1196
|
-
> = z.object({
|
|
1197
|
-
id: z.string(),
|
|
1198
|
-
key: z.string().optional(),
|
|
1199
|
-
actionType: z.string(),
|
|
1200
|
-
displayName: z.string().optional(),
|
|
1201
|
-
description: z.string().optional(),
|
|
1202
|
-
requiresApproval: z.boolean().default(false),
|
|
1203
|
-
conditions: z.array(z.lazy(() => DuplicateAgentConditions$outboundSchema))
|
|
1204
|
-
.optional(),
|
|
1205
|
-
timeout: z.number().default(120),
|
|
1206
|
-
}).transform((v) => {
|
|
1207
|
-
return remap$(v, {
|
|
1208
|
-
actionType: "action_type",
|
|
1209
|
-
displayName: "display_name",
|
|
1210
|
-
requiresApproval: "requires_approval",
|
|
1211
|
-
});
|
|
1212
|
-
});
|
|
1213
|
-
|
|
1214
|
-
export function duplicateAgentToolsToJSON(
|
|
1215
|
-
duplicateAgentTools: DuplicateAgentTools,
|
|
1216
|
-
): string {
|
|
1217
|
-
return JSON.stringify(
|
|
1218
|
-
DuplicateAgentTools$outboundSchema.parse(duplicateAgentTools),
|
|
1219
|
-
);
|
|
1220
|
-
}
|
|
1221
|
-
export function duplicateAgentToolsFromJSON(
|
|
1222
|
-
jsonString: string,
|
|
1223
|
-
): SafeParseResult<DuplicateAgentTools, SDKValidationError> {
|
|
1224
|
-
return safeParse(
|
|
1225
|
-
jsonString,
|
|
1226
|
-
(x) => DuplicateAgentTools$inboundSchema.parse(JSON.parse(x)),
|
|
1227
|
-
`Failed to parse 'DuplicateAgentTools' from JSON`,
|
|
1228
|
-
);
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
/** @internal */
|
|
1232
|
-
export const DuplicateAgentExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1233
|
-
typeof DuplicateAgentExecuteOn
|
|
1234
|
-
> = z.nativeEnum(DuplicateAgentExecuteOn);
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export const DuplicateAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
1237
|
-
typeof DuplicateAgentExecuteOn
|
|
1238
|
-
> = DuplicateAgentExecuteOn$inboundSchema;
|
|
1239
|
-
|
|
1240
|
-
/** @internal */
|
|
1241
|
-
export const DuplicateAgentEvaluators$inboundSchema: z.ZodType<
|
|
1242
|
-
DuplicateAgentEvaluators,
|
|
1243
|
-
z.ZodTypeDef,
|
|
1244
|
-
unknown
|
|
1245
|
-
> = z.object({
|
|
1246
|
-
id: z.string(),
|
|
1247
|
-
sample_rate: z.number().default(50),
|
|
1248
|
-
execute_on: DuplicateAgentExecuteOn$inboundSchema,
|
|
1249
|
-
}).transform((v) => {
|
|
1250
|
-
return remap$(v, {
|
|
1251
|
-
"sample_rate": "sampleRate",
|
|
1252
|
-
"execute_on": "executeOn",
|
|
1253
|
-
});
|
|
1254
|
-
});
|
|
1255
|
-
/** @internal */
|
|
1256
|
-
export type DuplicateAgentEvaluators$Outbound = {
|
|
1257
|
-
id: string;
|
|
1258
|
-
sample_rate: number;
|
|
1259
|
-
execute_on: string;
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
|
-
/** @internal */
|
|
1263
|
-
export const DuplicateAgentEvaluators$outboundSchema: z.ZodType<
|
|
1264
|
-
DuplicateAgentEvaluators$Outbound,
|
|
1265
|
-
z.ZodTypeDef,
|
|
1266
|
-
DuplicateAgentEvaluators
|
|
1267
|
-
> = z.object({
|
|
1268
|
-
id: z.string(),
|
|
1269
|
-
sampleRate: z.number().default(50),
|
|
1270
|
-
executeOn: DuplicateAgentExecuteOn$outboundSchema,
|
|
1271
|
-
}).transform((v) => {
|
|
1272
|
-
return remap$(v, {
|
|
1273
|
-
sampleRate: "sample_rate",
|
|
1274
|
-
executeOn: "execute_on",
|
|
1275
|
-
});
|
|
1276
|
-
});
|
|
1277
|
-
|
|
1278
|
-
export function duplicateAgentEvaluatorsToJSON(
|
|
1279
|
-
duplicateAgentEvaluators: DuplicateAgentEvaluators,
|
|
1280
|
-
): string {
|
|
1281
|
-
return JSON.stringify(
|
|
1282
|
-
DuplicateAgentEvaluators$outboundSchema.parse(duplicateAgentEvaluators),
|
|
1283
|
-
);
|
|
1284
|
-
}
|
|
1285
|
-
export function duplicateAgentEvaluatorsFromJSON(
|
|
1286
|
-
jsonString: string,
|
|
1287
|
-
): SafeParseResult<DuplicateAgentEvaluators, SDKValidationError> {
|
|
1288
|
-
return safeParse(
|
|
1289
|
-
jsonString,
|
|
1290
|
-
(x) => DuplicateAgentEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
1291
|
-
`Failed to parse 'DuplicateAgentEvaluators' from JSON`,
|
|
1292
|
-
);
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
/** @internal */
|
|
1296
|
-
export const DuplicateAgentAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1297
|
-
typeof DuplicateAgentAgentsExecuteOn
|
|
1298
|
-
> = z.nativeEnum(DuplicateAgentAgentsExecuteOn);
|
|
1299
|
-
/** @internal */
|
|
1300
|
-
export const DuplicateAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
1301
|
-
typeof DuplicateAgentAgentsExecuteOn
|
|
1302
|
-
> = DuplicateAgentAgentsExecuteOn$inboundSchema;
|
|
1303
|
-
|
|
1304
|
-
/** @internal */
|
|
1305
|
-
export const DuplicateAgentGuardrails$inboundSchema: z.ZodType<
|
|
1306
|
-
DuplicateAgentGuardrails,
|
|
1307
|
-
z.ZodTypeDef,
|
|
1308
|
-
unknown
|
|
1309
|
-
> = z.object({
|
|
1310
|
-
id: z.string(),
|
|
1311
|
-
sample_rate: z.number().default(50),
|
|
1312
|
-
execute_on: DuplicateAgentAgentsExecuteOn$inboundSchema,
|
|
1313
|
-
}).transform((v) => {
|
|
1314
|
-
return remap$(v, {
|
|
1315
|
-
"sample_rate": "sampleRate",
|
|
1316
|
-
"execute_on": "executeOn",
|
|
1317
|
-
});
|
|
1318
|
-
});
|
|
1319
|
-
/** @internal */
|
|
1320
|
-
export type DuplicateAgentGuardrails$Outbound = {
|
|
1321
|
-
id: string;
|
|
1322
|
-
sample_rate: number;
|
|
1323
|
-
execute_on: string;
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
export const DuplicateAgentGuardrails$outboundSchema: z.ZodType<
|
|
1328
|
-
DuplicateAgentGuardrails$Outbound,
|
|
1329
|
-
z.ZodTypeDef,
|
|
1330
|
-
DuplicateAgentGuardrails
|
|
1331
|
-
> = z.object({
|
|
1332
|
-
id: z.string(),
|
|
1333
|
-
sampleRate: z.number().default(50),
|
|
1334
|
-
executeOn: DuplicateAgentAgentsExecuteOn$outboundSchema,
|
|
1335
|
-
}).transform((v) => {
|
|
1336
|
-
return remap$(v, {
|
|
1337
|
-
sampleRate: "sample_rate",
|
|
1338
|
-
executeOn: "execute_on",
|
|
1339
|
-
});
|
|
1340
|
-
});
|
|
1341
|
-
|
|
1342
|
-
export function duplicateAgentGuardrailsToJSON(
|
|
1343
|
-
duplicateAgentGuardrails: DuplicateAgentGuardrails,
|
|
1344
|
-
): string {
|
|
1345
|
-
return JSON.stringify(
|
|
1346
|
-
DuplicateAgentGuardrails$outboundSchema.parse(duplicateAgentGuardrails),
|
|
1347
|
-
);
|
|
1348
|
-
}
|
|
1349
|
-
export function duplicateAgentGuardrailsFromJSON(
|
|
1350
|
-
jsonString: string,
|
|
1351
|
-
): SafeParseResult<DuplicateAgentGuardrails, SDKValidationError> {
|
|
1352
|
-
return safeParse(
|
|
1353
|
-
jsonString,
|
|
1354
|
-
(x) => DuplicateAgentGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1355
|
-
`Failed to parse 'DuplicateAgentGuardrails' from JSON`,
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/** @internal */
|
|
1360
|
-
export const DuplicateAgentSettings$inboundSchema: z.ZodType<
|
|
1361
|
-
DuplicateAgentSettings,
|
|
1362
|
-
z.ZodTypeDef,
|
|
1363
|
-
unknown
|
|
1364
|
-
> = z.object({
|
|
1365
|
-
max_iterations: z.number().int().default(15),
|
|
1366
|
-
max_execution_time: z.number().int().default(300),
|
|
1367
|
-
tool_approval_required: DuplicateAgentToolApprovalRequired$inboundSchema
|
|
1368
|
-
.default("respect_tool"),
|
|
1369
|
-
tools: z.array(z.lazy(() => DuplicateAgentTools$inboundSchema)).optional(),
|
|
1370
|
-
evaluators: z.array(z.lazy(() => DuplicateAgentEvaluators$inboundSchema))
|
|
1371
|
-
.optional(),
|
|
1372
|
-
guardrails: z.array(z.lazy(() => DuplicateAgentGuardrails$inboundSchema))
|
|
1373
|
-
.optional(),
|
|
1374
|
-
}).transform((v) => {
|
|
1375
|
-
return remap$(v, {
|
|
1376
|
-
"max_iterations": "maxIterations",
|
|
1377
|
-
"max_execution_time": "maxExecutionTime",
|
|
1378
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
1379
|
-
});
|
|
1380
|
-
});
|
|
1381
|
-
/** @internal */
|
|
1382
|
-
export type DuplicateAgentSettings$Outbound = {
|
|
1383
|
-
max_iterations: number;
|
|
1384
|
-
max_execution_time: number;
|
|
1385
|
-
tool_approval_required: string;
|
|
1386
|
-
tools?: Array<DuplicateAgentTools$Outbound> | undefined;
|
|
1387
|
-
evaluators?: Array<DuplicateAgentEvaluators$Outbound> | undefined;
|
|
1388
|
-
guardrails?: Array<DuplicateAgentGuardrails$Outbound> | undefined;
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
/** @internal */
|
|
1392
|
-
export const DuplicateAgentSettings$outboundSchema: z.ZodType<
|
|
1393
|
-
DuplicateAgentSettings$Outbound,
|
|
1394
|
-
z.ZodTypeDef,
|
|
1395
|
-
DuplicateAgentSettings
|
|
1396
|
-
> = z.object({
|
|
1397
|
-
maxIterations: z.number().int().default(15),
|
|
1398
|
-
maxExecutionTime: z.number().int().default(300),
|
|
1399
|
-
toolApprovalRequired: DuplicateAgentToolApprovalRequired$outboundSchema
|
|
1400
|
-
.default("respect_tool"),
|
|
1401
|
-
tools: z.array(z.lazy(() => DuplicateAgentTools$outboundSchema)).optional(),
|
|
1402
|
-
evaluators: z.array(z.lazy(() => DuplicateAgentEvaluators$outboundSchema))
|
|
1403
|
-
.optional(),
|
|
1404
|
-
guardrails: z.array(z.lazy(() => DuplicateAgentGuardrails$outboundSchema))
|
|
1405
|
-
.optional(),
|
|
1406
|
-
}).transform((v) => {
|
|
1407
|
-
return remap$(v, {
|
|
1408
|
-
maxIterations: "max_iterations",
|
|
1409
|
-
maxExecutionTime: "max_execution_time",
|
|
1410
|
-
toolApprovalRequired: "tool_approval_required",
|
|
1411
|
-
});
|
|
1412
|
-
});
|
|
1413
|
-
|
|
1414
|
-
export function duplicateAgentSettingsToJSON(
|
|
1415
|
-
duplicateAgentSettings: DuplicateAgentSettings,
|
|
1416
|
-
): string {
|
|
1417
|
-
return JSON.stringify(
|
|
1418
|
-
DuplicateAgentSettings$outboundSchema.parse(duplicateAgentSettings),
|
|
1419
|
-
);
|
|
1420
|
-
}
|
|
1421
|
-
export function duplicateAgentSettingsFromJSON(
|
|
1422
|
-
jsonString: string,
|
|
1423
|
-
): SafeParseResult<DuplicateAgentSettings, SDKValidationError> {
|
|
1424
|
-
return safeParse(
|
|
1425
|
-
jsonString,
|
|
1426
|
-
(x) => DuplicateAgentSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1427
|
-
`Failed to parse 'DuplicateAgentSettings' from JSON`,
|
|
1428
|
-
);
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
/** @internal */
|
|
1432
|
-
export const DuplicateAgentVoice$inboundSchema: z.ZodNativeEnum<
|
|
1433
|
-
typeof DuplicateAgentVoice
|
|
1434
|
-
> = z.nativeEnum(DuplicateAgentVoice);
|
|
1435
|
-
/** @internal */
|
|
1436
|
-
export const DuplicateAgentVoice$outboundSchema: z.ZodNativeEnum<
|
|
1437
|
-
typeof DuplicateAgentVoice
|
|
1438
|
-
> = DuplicateAgentVoice$inboundSchema;
|
|
1439
|
-
|
|
1440
|
-
/** @internal */
|
|
1441
|
-
export const DuplicateAgentFormat$inboundSchema: z.ZodNativeEnum<
|
|
1442
|
-
typeof DuplicateAgentFormat
|
|
1443
|
-
> = z.nativeEnum(DuplicateAgentFormat);
|
|
1444
|
-
/** @internal */
|
|
1445
|
-
export const DuplicateAgentFormat$outboundSchema: z.ZodNativeEnum<
|
|
1446
|
-
typeof DuplicateAgentFormat
|
|
1447
|
-
> = DuplicateAgentFormat$inboundSchema;
|
|
1448
|
-
|
|
1449
|
-
/** @internal */
|
|
1450
|
-
export const DuplicateAgentAudio$inboundSchema: z.ZodType<
|
|
1451
|
-
DuplicateAgentAudio,
|
|
1452
|
-
z.ZodTypeDef,
|
|
1453
|
-
unknown
|
|
1454
|
-
> = z.object({
|
|
1455
|
-
voice: DuplicateAgentVoice$inboundSchema,
|
|
1456
|
-
format: DuplicateAgentFormat$inboundSchema,
|
|
1457
|
-
});
|
|
1458
|
-
/** @internal */
|
|
1459
|
-
export type DuplicateAgentAudio$Outbound = {
|
|
1460
|
-
voice: string;
|
|
1461
|
-
format: string;
|
|
1462
|
-
};
|
|
1463
|
-
|
|
1464
|
-
/** @internal */
|
|
1465
|
-
export const DuplicateAgentAudio$outboundSchema: z.ZodType<
|
|
1466
|
-
DuplicateAgentAudio$Outbound,
|
|
1467
|
-
z.ZodTypeDef,
|
|
1468
|
-
DuplicateAgentAudio
|
|
1469
|
-
> = z.object({
|
|
1470
|
-
voice: DuplicateAgentVoice$outboundSchema,
|
|
1471
|
-
format: DuplicateAgentFormat$outboundSchema,
|
|
1472
|
-
});
|
|
1473
|
-
|
|
1474
|
-
export function duplicateAgentAudioToJSON(
|
|
1475
|
-
duplicateAgentAudio: DuplicateAgentAudio,
|
|
1476
|
-
): string {
|
|
1477
|
-
return JSON.stringify(
|
|
1478
|
-
DuplicateAgentAudio$outboundSchema.parse(duplicateAgentAudio),
|
|
1479
|
-
);
|
|
1480
|
-
}
|
|
1481
|
-
export function duplicateAgentAudioFromJSON(
|
|
1482
|
-
jsonString: string,
|
|
1483
|
-
): SafeParseResult<DuplicateAgentAudio, SDKValidationError> {
|
|
1484
|
-
return safeParse(
|
|
1485
|
-
jsonString,
|
|
1486
|
-
(x) => DuplicateAgentAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1487
|
-
`Failed to parse 'DuplicateAgentAudio' from JSON`,
|
|
1488
|
-
);
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
/** @internal */
|
|
1492
|
-
export const DuplicateAgentResponseFormatAgentsResponseType$inboundSchema:
|
|
1493
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsResponseType> = z
|
|
1494
|
-
.nativeEnum(DuplicateAgentResponseFormatAgentsResponseType);
|
|
1495
|
-
/** @internal */
|
|
1496
|
-
export const DuplicateAgentResponseFormatAgentsResponseType$outboundSchema:
|
|
1497
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsResponseType> =
|
|
1498
|
-
DuplicateAgentResponseFormatAgentsResponseType$inboundSchema;
|
|
1499
|
-
|
|
1500
|
-
/** @internal */
|
|
1501
|
-
export const DuplicateAgentResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1502
|
-
DuplicateAgentResponseFormatJsonSchema,
|
|
1503
|
-
z.ZodTypeDef,
|
|
1504
|
-
unknown
|
|
1505
|
-
> = z.object({
|
|
1506
|
-
description: z.string().optional(),
|
|
1507
|
-
name: z.string(),
|
|
1508
|
-
schema: z.any().optional(),
|
|
1509
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
1510
|
-
});
|
|
1511
|
-
/** @internal */
|
|
1512
|
-
export type DuplicateAgentResponseFormatJsonSchema$Outbound = {
|
|
1513
|
-
description?: string | undefined;
|
|
1514
|
-
name: string;
|
|
1515
|
-
schema?: any | undefined;
|
|
1516
|
-
strict?: boolean | null | undefined;
|
|
1517
|
-
};
|
|
1518
|
-
|
|
1519
|
-
/** @internal */
|
|
1520
|
-
export const DuplicateAgentResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1521
|
-
DuplicateAgentResponseFormatJsonSchema$Outbound,
|
|
1522
|
-
z.ZodTypeDef,
|
|
1523
|
-
DuplicateAgentResponseFormatJsonSchema
|
|
1524
|
-
> = z.object({
|
|
1525
|
-
description: z.string().optional(),
|
|
1526
|
-
name: z.string(),
|
|
1527
|
-
schema: z.any().optional(),
|
|
1528
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
1529
|
-
});
|
|
1530
|
-
|
|
1531
|
-
export function duplicateAgentResponseFormatJsonSchemaToJSON(
|
|
1532
|
-
duplicateAgentResponseFormatJsonSchema:
|
|
1533
|
-
DuplicateAgentResponseFormatJsonSchema,
|
|
1534
|
-
): string {
|
|
1535
|
-
return JSON.stringify(
|
|
1536
|
-
DuplicateAgentResponseFormatJsonSchema$outboundSchema.parse(
|
|
1537
|
-
duplicateAgentResponseFormatJsonSchema,
|
|
1538
|
-
),
|
|
1539
|
-
);
|
|
1540
|
-
}
|
|
1541
|
-
export function duplicateAgentResponseFormatJsonSchemaFromJSON(
|
|
1542
|
-
jsonString: string,
|
|
1543
|
-
): SafeParseResult<DuplicateAgentResponseFormatJsonSchema, SDKValidationError> {
|
|
1544
|
-
return safeParse(
|
|
1545
|
-
jsonString,
|
|
1546
|
-
(x) =>
|
|
1547
|
-
DuplicateAgentResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1548
|
-
`Failed to parse 'DuplicateAgentResponseFormatJsonSchema' from JSON`,
|
|
1549
|
-
);
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export const DuplicateAgentResponseFormatAgentsJSONSchema$inboundSchema:
|
|
1554
|
-
z.ZodType<
|
|
1555
|
-
DuplicateAgentResponseFormatAgentsJSONSchema,
|
|
1556
|
-
z.ZodTypeDef,
|
|
1557
|
-
unknown
|
|
1558
|
-
> = z.object({
|
|
1559
|
-
type: DuplicateAgentResponseFormatAgentsResponseType$inboundSchema,
|
|
1560
|
-
json_schema: z.lazy(() =>
|
|
1561
|
-
DuplicateAgentResponseFormatJsonSchema$inboundSchema
|
|
1562
|
-
),
|
|
1563
|
-
}).transform((v) => {
|
|
1564
|
-
return remap$(v, {
|
|
1565
|
-
"json_schema": "jsonSchema",
|
|
1566
|
-
});
|
|
1567
|
-
});
|
|
1568
|
-
/** @internal */
|
|
1569
|
-
export type DuplicateAgentResponseFormatAgentsJSONSchema$Outbound = {
|
|
1570
|
-
type: string;
|
|
1571
|
-
json_schema: DuplicateAgentResponseFormatJsonSchema$Outbound;
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
/** @internal */
|
|
1575
|
-
export const DuplicateAgentResponseFormatAgentsJSONSchema$outboundSchema:
|
|
1576
|
-
z.ZodType<
|
|
1577
|
-
DuplicateAgentResponseFormatAgentsJSONSchema$Outbound,
|
|
1578
|
-
z.ZodTypeDef,
|
|
1579
|
-
DuplicateAgentResponseFormatAgentsJSONSchema
|
|
1580
|
-
> = z.object({
|
|
1581
|
-
type: DuplicateAgentResponseFormatAgentsResponseType$outboundSchema,
|
|
1582
|
-
jsonSchema: z.lazy(() =>
|
|
1583
|
-
DuplicateAgentResponseFormatJsonSchema$outboundSchema
|
|
1584
|
-
),
|
|
1585
|
-
}).transform((v) => {
|
|
1586
|
-
return remap$(v, {
|
|
1587
|
-
jsonSchema: "json_schema",
|
|
1588
|
-
});
|
|
1589
|
-
});
|
|
1590
|
-
|
|
1591
|
-
export function duplicateAgentResponseFormatAgentsJSONSchemaToJSON(
|
|
1592
|
-
duplicateAgentResponseFormatAgentsJSONSchema:
|
|
1593
|
-
DuplicateAgentResponseFormatAgentsJSONSchema,
|
|
1594
|
-
): string {
|
|
1595
|
-
return JSON.stringify(
|
|
1596
|
-
DuplicateAgentResponseFormatAgentsJSONSchema$outboundSchema.parse(
|
|
1597
|
-
duplicateAgentResponseFormatAgentsJSONSchema,
|
|
1598
|
-
),
|
|
1599
|
-
);
|
|
1600
|
-
}
|
|
1601
|
-
export function duplicateAgentResponseFormatAgentsJSONSchemaFromJSON(
|
|
1602
|
-
jsonString: string,
|
|
1603
|
-
): SafeParseResult<
|
|
1604
|
-
DuplicateAgentResponseFormatAgentsJSONSchema,
|
|
1605
|
-
SDKValidationError
|
|
1606
|
-
> {
|
|
1607
|
-
return safeParse(
|
|
1608
|
-
jsonString,
|
|
1609
|
-
(x) =>
|
|
1610
|
-
DuplicateAgentResponseFormatAgentsJSONSchema$inboundSchema.parse(
|
|
1611
|
-
JSON.parse(x),
|
|
1612
|
-
),
|
|
1613
|
-
`Failed to parse 'DuplicateAgentResponseFormatAgentsJSONSchema' from JSON`,
|
|
1614
|
-
);
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
/** @internal */
|
|
1618
|
-
export const DuplicateAgentResponseFormatAgentsType$inboundSchema:
|
|
1619
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsType> = z.nativeEnum(
|
|
1620
|
-
DuplicateAgentResponseFormatAgentsType,
|
|
1621
|
-
);
|
|
1622
|
-
/** @internal */
|
|
1623
|
-
export const DuplicateAgentResponseFormatAgentsType$outboundSchema:
|
|
1624
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsType> =
|
|
1625
|
-
DuplicateAgentResponseFormatAgentsType$inboundSchema;
|
|
1626
|
-
|
|
1627
|
-
/** @internal */
|
|
1628
|
-
export const DuplicateAgentResponseFormatJSONObject$inboundSchema: z.ZodType<
|
|
1629
|
-
DuplicateAgentResponseFormatJSONObject,
|
|
1630
|
-
z.ZodTypeDef,
|
|
1631
|
-
unknown
|
|
1632
|
-
> = z.object({
|
|
1633
|
-
type: DuplicateAgentResponseFormatAgentsType$inboundSchema,
|
|
1634
|
-
});
|
|
1635
|
-
/** @internal */
|
|
1636
|
-
export type DuplicateAgentResponseFormatJSONObject$Outbound = {
|
|
1637
|
-
type: string;
|
|
1638
|
-
};
|
|
1639
|
-
|
|
1640
|
-
/** @internal */
|
|
1641
|
-
export const DuplicateAgentResponseFormatJSONObject$outboundSchema: z.ZodType<
|
|
1642
|
-
DuplicateAgentResponseFormatJSONObject$Outbound,
|
|
1643
|
-
z.ZodTypeDef,
|
|
1644
|
-
DuplicateAgentResponseFormatJSONObject
|
|
1645
|
-
> = z.object({
|
|
1646
|
-
type: DuplicateAgentResponseFormatAgentsType$outboundSchema,
|
|
1647
|
-
});
|
|
1648
|
-
|
|
1649
|
-
export function duplicateAgentResponseFormatJSONObjectToJSON(
|
|
1650
|
-
duplicateAgentResponseFormatJSONObject:
|
|
1651
|
-
DuplicateAgentResponseFormatJSONObject,
|
|
1652
|
-
): string {
|
|
1653
|
-
return JSON.stringify(
|
|
1654
|
-
DuplicateAgentResponseFormatJSONObject$outboundSchema.parse(
|
|
1655
|
-
duplicateAgentResponseFormatJSONObject,
|
|
1656
|
-
),
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
|
-
export function duplicateAgentResponseFormatJSONObjectFromJSON(
|
|
1660
|
-
jsonString: string,
|
|
1661
|
-
): SafeParseResult<DuplicateAgentResponseFormatJSONObject, SDKValidationError> {
|
|
1662
|
-
return safeParse(
|
|
1663
|
-
jsonString,
|
|
1664
|
-
(x) =>
|
|
1665
|
-
DuplicateAgentResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
|
|
1666
|
-
`Failed to parse 'DuplicateAgentResponseFormatJSONObject' from JSON`,
|
|
1667
|
-
);
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
/** @internal */
|
|
1671
|
-
export const DuplicateAgentResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1672
|
-
typeof DuplicateAgentResponseFormatType
|
|
1673
|
-
> = z.nativeEnum(DuplicateAgentResponseFormatType);
|
|
1674
|
-
/** @internal */
|
|
1675
|
-
export const DuplicateAgentResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1676
|
-
typeof DuplicateAgentResponseFormatType
|
|
1677
|
-
> = DuplicateAgentResponseFormatType$inboundSchema;
|
|
1678
|
-
|
|
1679
|
-
/** @internal */
|
|
1680
|
-
export const DuplicateAgentResponseFormatText$inboundSchema: z.ZodType<
|
|
1681
|
-
DuplicateAgentResponseFormatText,
|
|
1682
|
-
z.ZodTypeDef,
|
|
1683
|
-
unknown
|
|
1684
|
-
> = z.object({
|
|
1685
|
-
type: DuplicateAgentResponseFormatType$inboundSchema,
|
|
1686
|
-
});
|
|
1687
|
-
/** @internal */
|
|
1688
|
-
export type DuplicateAgentResponseFormatText$Outbound = {
|
|
1689
|
-
type: string;
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1692
|
-
/** @internal */
|
|
1693
|
-
export const DuplicateAgentResponseFormatText$outboundSchema: z.ZodType<
|
|
1694
|
-
DuplicateAgentResponseFormatText$Outbound,
|
|
1695
|
-
z.ZodTypeDef,
|
|
1696
|
-
DuplicateAgentResponseFormatText
|
|
1697
|
-
> = z.object({
|
|
1698
|
-
type: DuplicateAgentResponseFormatType$outboundSchema,
|
|
1699
|
-
});
|
|
1700
|
-
|
|
1701
|
-
export function duplicateAgentResponseFormatTextToJSON(
|
|
1702
|
-
duplicateAgentResponseFormatText: DuplicateAgentResponseFormatText,
|
|
1703
|
-
): string {
|
|
1704
|
-
return JSON.stringify(
|
|
1705
|
-
DuplicateAgentResponseFormatText$outboundSchema.parse(
|
|
1706
|
-
duplicateAgentResponseFormatText,
|
|
1707
|
-
),
|
|
1708
|
-
);
|
|
1709
|
-
}
|
|
1710
|
-
export function duplicateAgentResponseFormatTextFromJSON(
|
|
1711
|
-
jsonString: string,
|
|
1712
|
-
): SafeParseResult<DuplicateAgentResponseFormatText, SDKValidationError> {
|
|
1713
|
-
return safeParse(
|
|
1714
|
-
jsonString,
|
|
1715
|
-
(x) => DuplicateAgentResponseFormatText$inboundSchema.parse(JSON.parse(x)),
|
|
1716
|
-
`Failed to parse 'DuplicateAgentResponseFormatText' from JSON`,
|
|
1717
|
-
);
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
/** @internal */
|
|
1721
|
-
export const DuplicateAgentResponseFormat$inboundSchema: z.ZodType<
|
|
1722
|
-
DuplicateAgentResponseFormat,
|
|
1723
|
-
z.ZodTypeDef,
|
|
1724
|
-
unknown
|
|
1725
|
-
> = z.union([
|
|
1726
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1727
|
-
z.lazy(() => DuplicateAgentResponseFormatText$inboundSchema),
|
|
1728
|
-
z.lazy(() => DuplicateAgentResponseFormatJSONObject$inboundSchema),
|
|
1729
|
-
]);
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export type DuplicateAgentResponseFormat$Outbound =
|
|
1732
|
-
| DuplicateAgentResponseFormatAgentsJSONSchema$Outbound
|
|
1733
|
-
| DuplicateAgentResponseFormatText$Outbound
|
|
1734
|
-
| DuplicateAgentResponseFormatJSONObject$Outbound;
|
|
1735
|
-
|
|
1736
|
-
/** @internal */
|
|
1737
|
-
export const DuplicateAgentResponseFormat$outboundSchema: z.ZodType<
|
|
1738
|
-
DuplicateAgentResponseFormat$Outbound,
|
|
1739
|
-
z.ZodTypeDef,
|
|
1740
|
-
DuplicateAgentResponseFormat
|
|
1741
|
-
> = z.union([
|
|
1742
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONSchema$outboundSchema),
|
|
1743
|
-
z.lazy(() => DuplicateAgentResponseFormatText$outboundSchema),
|
|
1744
|
-
z.lazy(() => DuplicateAgentResponseFormatJSONObject$outboundSchema),
|
|
1745
|
-
]);
|
|
1746
|
-
|
|
1747
|
-
export function duplicateAgentResponseFormatToJSON(
|
|
1748
|
-
duplicateAgentResponseFormat: DuplicateAgentResponseFormat,
|
|
1749
|
-
): string {
|
|
1750
|
-
return JSON.stringify(
|
|
1751
|
-
DuplicateAgentResponseFormat$outboundSchema.parse(
|
|
1752
|
-
duplicateAgentResponseFormat,
|
|
1753
|
-
),
|
|
1754
|
-
);
|
|
1755
|
-
}
|
|
1756
|
-
export function duplicateAgentResponseFormatFromJSON(
|
|
1757
|
-
jsonString: string,
|
|
1758
|
-
): SafeParseResult<DuplicateAgentResponseFormat, SDKValidationError> {
|
|
1759
|
-
return safeParse(
|
|
1760
|
-
jsonString,
|
|
1761
|
-
(x) => DuplicateAgentResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1762
|
-
`Failed to parse 'DuplicateAgentResponseFormat' from JSON`,
|
|
1763
|
-
);
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
/** @internal */
|
|
1767
|
-
export const DuplicateAgentStop$inboundSchema: z.ZodType<
|
|
1768
|
-
DuplicateAgentStop,
|
|
1769
|
-
z.ZodTypeDef,
|
|
1770
|
-
unknown
|
|
1771
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1772
|
-
/** @internal */
|
|
1773
|
-
export type DuplicateAgentStop$Outbound = string | Array<string>;
|
|
1774
|
-
|
|
1775
|
-
/** @internal */
|
|
1776
|
-
export const DuplicateAgentStop$outboundSchema: z.ZodType<
|
|
1777
|
-
DuplicateAgentStop$Outbound,
|
|
1778
|
-
z.ZodTypeDef,
|
|
1779
|
-
DuplicateAgentStop
|
|
1780
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1781
|
-
|
|
1782
|
-
export function duplicateAgentStopToJSON(
|
|
1783
|
-
duplicateAgentStop: DuplicateAgentStop,
|
|
1784
|
-
): string {
|
|
1785
|
-
return JSON.stringify(
|
|
1786
|
-
DuplicateAgentStop$outboundSchema.parse(duplicateAgentStop),
|
|
1787
|
-
);
|
|
1788
|
-
}
|
|
1789
|
-
export function duplicateAgentStopFromJSON(
|
|
1790
|
-
jsonString: string,
|
|
1791
|
-
): SafeParseResult<DuplicateAgentStop, SDKValidationError> {
|
|
1792
|
-
return safeParse(
|
|
1793
|
-
jsonString,
|
|
1794
|
-
(x) => DuplicateAgentStop$inboundSchema.parse(JSON.parse(x)),
|
|
1795
|
-
`Failed to parse 'DuplicateAgentStop' from JSON`,
|
|
1796
|
-
);
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
/** @internal */
|
|
1800
|
-
export const DuplicateAgentStreamOptions$inboundSchema: z.ZodType<
|
|
1801
|
-
DuplicateAgentStreamOptions,
|
|
1802
|
-
z.ZodTypeDef,
|
|
1803
|
-
unknown
|
|
1804
|
-
> = z.object({
|
|
1805
|
-
include_usage: z.boolean().optional(),
|
|
1806
|
-
}).transform((v) => {
|
|
1807
|
-
return remap$(v, {
|
|
1808
|
-
"include_usage": "includeUsage",
|
|
1809
|
-
});
|
|
1810
|
-
});
|
|
1811
|
-
/** @internal */
|
|
1812
|
-
export type DuplicateAgentStreamOptions$Outbound = {
|
|
1813
|
-
include_usage?: boolean | undefined;
|
|
1814
|
-
};
|
|
1815
|
-
|
|
1816
|
-
/** @internal */
|
|
1817
|
-
export const DuplicateAgentStreamOptions$outboundSchema: z.ZodType<
|
|
1818
|
-
DuplicateAgentStreamOptions$Outbound,
|
|
1819
|
-
z.ZodTypeDef,
|
|
1820
|
-
DuplicateAgentStreamOptions
|
|
1821
|
-
> = z.object({
|
|
1822
|
-
includeUsage: z.boolean().optional(),
|
|
1823
|
-
}).transform((v) => {
|
|
1824
|
-
return remap$(v, {
|
|
1825
|
-
includeUsage: "include_usage",
|
|
1826
|
-
});
|
|
1827
|
-
});
|
|
1828
|
-
|
|
1829
|
-
export function duplicateAgentStreamOptionsToJSON(
|
|
1830
|
-
duplicateAgentStreamOptions: DuplicateAgentStreamOptions,
|
|
1831
|
-
): string {
|
|
1832
|
-
return JSON.stringify(
|
|
1833
|
-
DuplicateAgentStreamOptions$outboundSchema.parse(
|
|
1834
|
-
duplicateAgentStreamOptions,
|
|
1835
|
-
),
|
|
1836
|
-
);
|
|
1837
|
-
}
|
|
1838
|
-
export function duplicateAgentStreamOptionsFromJSON(
|
|
1839
|
-
jsonString: string,
|
|
1840
|
-
): SafeParseResult<DuplicateAgentStreamOptions, SDKValidationError> {
|
|
1841
|
-
return safeParse(
|
|
1842
|
-
jsonString,
|
|
1843
|
-
(x) => DuplicateAgentStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1844
|
-
`Failed to parse 'DuplicateAgentStreamOptions' from JSON`,
|
|
1845
|
-
);
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
/** @internal */
|
|
1849
|
-
export const DuplicateAgentType$inboundSchema: z.ZodNativeEnum<
|
|
1850
|
-
typeof DuplicateAgentType
|
|
1851
|
-
> = z.nativeEnum(DuplicateAgentType);
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const DuplicateAgentType$outboundSchema: z.ZodNativeEnum<
|
|
1854
|
-
typeof DuplicateAgentType
|
|
1855
|
-
> = DuplicateAgentType$inboundSchema;
|
|
1856
|
-
|
|
1857
|
-
/** @internal */
|
|
1858
|
-
export const DuplicateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1859
|
-
typeof DuplicateAgentThinkingLevel
|
|
1860
|
-
> = z.nativeEnum(DuplicateAgentThinkingLevel);
|
|
1861
|
-
/** @internal */
|
|
1862
|
-
export const DuplicateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1863
|
-
typeof DuplicateAgentThinkingLevel
|
|
1864
|
-
> = DuplicateAgentThinkingLevel$inboundSchema;
|
|
1865
|
-
|
|
1866
|
-
/** @internal */
|
|
1867
|
-
export const DuplicateAgentThinking$inboundSchema: z.ZodType<
|
|
1868
|
-
DuplicateAgentThinking,
|
|
1869
|
-
z.ZodTypeDef,
|
|
1870
|
-
unknown
|
|
1871
|
-
> = z.object({
|
|
1872
|
-
type: DuplicateAgentType$inboundSchema,
|
|
1873
|
-
budget_tokens: z.number(),
|
|
1874
|
-
thinking_level: DuplicateAgentThinkingLevel$inboundSchema.optional(),
|
|
1875
|
-
}).transform((v) => {
|
|
1876
|
-
return remap$(v, {
|
|
1877
|
-
"budget_tokens": "budgetTokens",
|
|
1878
|
-
"thinking_level": "thinkingLevel",
|
|
1879
|
-
});
|
|
1880
|
-
});
|
|
1881
|
-
/** @internal */
|
|
1882
|
-
export type DuplicateAgentThinking$Outbound = {
|
|
1883
|
-
type: string;
|
|
1884
|
-
budget_tokens: number;
|
|
1885
|
-
thinking_level?: string | undefined;
|
|
1886
|
-
};
|
|
1887
|
-
|
|
1888
|
-
/** @internal */
|
|
1889
|
-
export const DuplicateAgentThinking$outboundSchema: z.ZodType<
|
|
1890
|
-
DuplicateAgentThinking$Outbound,
|
|
1891
|
-
z.ZodTypeDef,
|
|
1892
|
-
DuplicateAgentThinking
|
|
1893
|
-
> = z.object({
|
|
1894
|
-
type: DuplicateAgentType$outboundSchema,
|
|
1895
|
-
budgetTokens: z.number(),
|
|
1896
|
-
thinkingLevel: DuplicateAgentThinkingLevel$outboundSchema.optional(),
|
|
1897
|
-
}).transform((v) => {
|
|
1898
|
-
return remap$(v, {
|
|
1899
|
-
budgetTokens: "budget_tokens",
|
|
1900
|
-
thinkingLevel: "thinking_level",
|
|
1901
|
-
});
|
|
1902
|
-
});
|
|
1903
|
-
|
|
1904
|
-
export function duplicateAgentThinkingToJSON(
|
|
1905
|
-
duplicateAgentThinking: DuplicateAgentThinking,
|
|
1906
|
-
): string {
|
|
1907
|
-
return JSON.stringify(
|
|
1908
|
-
DuplicateAgentThinking$outboundSchema.parse(duplicateAgentThinking),
|
|
1909
|
-
);
|
|
1910
|
-
}
|
|
1911
|
-
export function duplicateAgentThinkingFromJSON(
|
|
1912
|
-
jsonString: string,
|
|
1913
|
-
): SafeParseResult<DuplicateAgentThinking, SDKValidationError> {
|
|
1914
|
-
return safeParse(
|
|
1915
|
-
jsonString,
|
|
1916
|
-
(x) => DuplicateAgentThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1917
|
-
`Failed to parse 'DuplicateAgentThinking' from JSON`,
|
|
1918
|
-
);
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
/** @internal */
|
|
1922
|
-
export const DuplicateAgentToolChoiceType$inboundSchema: z.ZodNativeEnum<
|
|
1923
|
-
typeof DuplicateAgentToolChoiceType
|
|
1924
|
-
> = z.nativeEnum(DuplicateAgentToolChoiceType);
|
|
1925
|
-
/** @internal */
|
|
1926
|
-
export const DuplicateAgentToolChoiceType$outboundSchema: z.ZodNativeEnum<
|
|
1927
|
-
typeof DuplicateAgentToolChoiceType
|
|
1928
|
-
> = DuplicateAgentToolChoiceType$inboundSchema;
|
|
1929
|
-
|
|
1930
|
-
/** @internal */
|
|
1931
|
-
export const DuplicateAgentToolChoiceFunction$inboundSchema: z.ZodType<
|
|
1932
|
-
DuplicateAgentToolChoiceFunction,
|
|
1933
|
-
z.ZodTypeDef,
|
|
1934
|
-
unknown
|
|
1935
|
-
> = z.object({
|
|
1936
|
-
name: z.string().optional(),
|
|
1937
|
-
});
|
|
1938
|
-
/** @internal */
|
|
1939
|
-
export type DuplicateAgentToolChoiceFunction$Outbound = {
|
|
1940
|
-
name?: string | undefined;
|
|
1941
|
-
};
|
|
1942
|
-
|
|
1943
|
-
/** @internal */
|
|
1944
|
-
export const DuplicateAgentToolChoiceFunction$outboundSchema: z.ZodType<
|
|
1945
|
-
DuplicateAgentToolChoiceFunction$Outbound,
|
|
1946
|
-
z.ZodTypeDef,
|
|
1947
|
-
DuplicateAgentToolChoiceFunction
|
|
1948
|
-
> = z.object({
|
|
1949
|
-
name: z.string().optional(),
|
|
1950
|
-
});
|
|
1951
|
-
|
|
1952
|
-
export function duplicateAgentToolChoiceFunctionToJSON(
|
|
1953
|
-
duplicateAgentToolChoiceFunction: DuplicateAgentToolChoiceFunction,
|
|
1954
|
-
): string {
|
|
1955
|
-
return JSON.stringify(
|
|
1956
|
-
DuplicateAgentToolChoiceFunction$outboundSchema.parse(
|
|
1957
|
-
duplicateAgentToolChoiceFunction,
|
|
1958
|
-
),
|
|
1959
|
-
);
|
|
1960
|
-
}
|
|
1961
|
-
export function duplicateAgentToolChoiceFunctionFromJSON(
|
|
1962
|
-
jsonString: string,
|
|
1963
|
-
): SafeParseResult<DuplicateAgentToolChoiceFunction, SDKValidationError> {
|
|
1964
|
-
return safeParse(
|
|
1965
|
-
jsonString,
|
|
1966
|
-
(x) => DuplicateAgentToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1967
|
-
`Failed to parse 'DuplicateAgentToolChoiceFunction' from JSON`,
|
|
1968
|
-
);
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
/** @internal */
|
|
1972
|
-
export const DuplicateAgentToolChoice2$inboundSchema: z.ZodType<
|
|
1973
|
-
DuplicateAgentToolChoice2,
|
|
1974
|
-
z.ZodTypeDef,
|
|
1975
|
-
unknown
|
|
1976
|
-
> = z.object({
|
|
1977
|
-
type: DuplicateAgentToolChoiceType$inboundSchema.optional(),
|
|
1978
|
-
function: z.lazy(() => DuplicateAgentToolChoiceFunction$inboundSchema),
|
|
1979
|
-
});
|
|
1980
|
-
/** @internal */
|
|
1981
|
-
export type DuplicateAgentToolChoice2$Outbound = {
|
|
1982
|
-
type?: string | undefined;
|
|
1983
|
-
function: DuplicateAgentToolChoiceFunction$Outbound;
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
/** @internal */
|
|
1987
|
-
export const DuplicateAgentToolChoice2$outboundSchema: z.ZodType<
|
|
1988
|
-
DuplicateAgentToolChoice2$Outbound,
|
|
1989
|
-
z.ZodTypeDef,
|
|
1990
|
-
DuplicateAgentToolChoice2
|
|
1991
|
-
> = z.object({
|
|
1992
|
-
type: DuplicateAgentToolChoiceType$outboundSchema.optional(),
|
|
1993
|
-
function: z.lazy(() => DuplicateAgentToolChoiceFunction$outboundSchema),
|
|
1994
|
-
});
|
|
1995
|
-
|
|
1996
|
-
export function duplicateAgentToolChoice2ToJSON(
|
|
1997
|
-
duplicateAgentToolChoice2: DuplicateAgentToolChoice2,
|
|
1998
|
-
): string {
|
|
1999
|
-
return JSON.stringify(
|
|
2000
|
-
DuplicateAgentToolChoice2$outboundSchema.parse(duplicateAgentToolChoice2),
|
|
2001
|
-
);
|
|
2002
|
-
}
|
|
2003
|
-
export function duplicateAgentToolChoice2FromJSON(
|
|
2004
|
-
jsonString: string,
|
|
2005
|
-
): SafeParseResult<DuplicateAgentToolChoice2, SDKValidationError> {
|
|
2006
|
-
return safeParse(
|
|
2007
|
-
jsonString,
|
|
2008
|
-
(x) => DuplicateAgentToolChoice2$inboundSchema.parse(JSON.parse(x)),
|
|
2009
|
-
`Failed to parse 'DuplicateAgentToolChoice2' from JSON`,
|
|
2010
|
-
);
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
/** @internal */
|
|
2014
|
-
export const DuplicateAgentToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
2015
|
-
typeof DuplicateAgentToolChoice1
|
|
2016
|
-
> = z.nativeEnum(DuplicateAgentToolChoice1);
|
|
2017
|
-
/** @internal */
|
|
2018
|
-
export const DuplicateAgentToolChoice1$outboundSchema: z.ZodNativeEnum<
|
|
2019
|
-
typeof DuplicateAgentToolChoice1
|
|
2020
|
-
> = DuplicateAgentToolChoice1$inboundSchema;
|
|
2021
|
-
|
|
2022
|
-
/** @internal */
|
|
2023
|
-
export const DuplicateAgentToolChoice$inboundSchema: z.ZodType<
|
|
2024
|
-
DuplicateAgentToolChoice,
|
|
2025
|
-
z.ZodTypeDef,
|
|
2026
|
-
unknown
|
|
2027
|
-
> = z.union([
|
|
2028
|
-
z.lazy(() => DuplicateAgentToolChoice2$inboundSchema),
|
|
2029
|
-
DuplicateAgentToolChoice1$inboundSchema,
|
|
2030
|
-
]);
|
|
2031
|
-
/** @internal */
|
|
2032
|
-
export type DuplicateAgentToolChoice$Outbound =
|
|
2033
|
-
| DuplicateAgentToolChoice2$Outbound
|
|
2034
|
-
| string;
|
|
2035
|
-
|
|
2036
|
-
/** @internal */
|
|
2037
|
-
export const DuplicateAgentToolChoice$outboundSchema: z.ZodType<
|
|
2038
|
-
DuplicateAgentToolChoice$Outbound,
|
|
2039
|
-
z.ZodTypeDef,
|
|
2040
|
-
DuplicateAgentToolChoice
|
|
2041
|
-
> = z.union([
|
|
2042
|
-
z.lazy(() => DuplicateAgentToolChoice2$outboundSchema),
|
|
2043
|
-
DuplicateAgentToolChoice1$outboundSchema,
|
|
2044
|
-
]);
|
|
2045
|
-
|
|
2046
|
-
export function duplicateAgentToolChoiceToJSON(
|
|
2047
|
-
duplicateAgentToolChoice: DuplicateAgentToolChoice,
|
|
2048
|
-
): string {
|
|
2049
|
-
return JSON.stringify(
|
|
2050
|
-
DuplicateAgentToolChoice$outboundSchema.parse(duplicateAgentToolChoice),
|
|
2051
|
-
);
|
|
2052
|
-
}
|
|
2053
|
-
export function duplicateAgentToolChoiceFromJSON(
|
|
2054
|
-
jsonString: string,
|
|
2055
|
-
): SafeParseResult<DuplicateAgentToolChoice, SDKValidationError> {
|
|
2056
|
-
return safeParse(
|
|
2057
|
-
jsonString,
|
|
2058
|
-
(x) => DuplicateAgentToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
2059
|
-
`Failed to parse 'DuplicateAgentToolChoice' from JSON`,
|
|
2060
|
-
);
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
/** @internal */
|
|
2064
|
-
export const DuplicateAgentModalities$inboundSchema: z.ZodNativeEnum<
|
|
2065
|
-
typeof DuplicateAgentModalities
|
|
2066
|
-
> = z.nativeEnum(DuplicateAgentModalities);
|
|
2067
|
-
/** @internal */
|
|
2068
|
-
export const DuplicateAgentModalities$outboundSchema: z.ZodNativeEnum<
|
|
2069
|
-
typeof DuplicateAgentModalities
|
|
2070
|
-
> = DuplicateAgentModalities$inboundSchema;
|
|
2071
|
-
|
|
2072
|
-
/** @internal */
|
|
2073
|
-
export const DuplicateAgentParameters$inboundSchema: z.ZodType<
|
|
2074
|
-
DuplicateAgentParameters,
|
|
2075
|
-
z.ZodTypeDef,
|
|
2076
|
-
unknown
|
|
2077
|
-
> = z.object({
|
|
2078
|
-
audio: z.nullable(z.lazy(() => DuplicateAgentAudio$inboundSchema)).optional(),
|
|
2079
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2080
|
-
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2081
|
-
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2082
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2083
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2084
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2085
|
-
presence_penalty: z.nullable(z.number()).optional(),
|
|
2086
|
-
response_format: z.union([
|
|
2087
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONSchema$inboundSchema),
|
|
2088
|
-
z.lazy(() => DuplicateAgentResponseFormatText$inboundSchema),
|
|
2089
|
-
z.lazy(() => DuplicateAgentResponseFormatJSONObject$inboundSchema),
|
|
2090
|
-
]).optional(),
|
|
2091
|
-
reasoning_effort: z.string().optional(),
|
|
2092
|
-
verbosity: z.string().optional(),
|
|
2093
|
-
seed: z.nullable(z.number()).optional(),
|
|
2094
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2095
|
-
stream_options: z.nullable(
|
|
2096
|
-
z.lazy(() => DuplicateAgentStreamOptions$inboundSchema),
|
|
2097
|
-
).optional(),
|
|
2098
|
-
thinking: z.lazy(() => DuplicateAgentThinking$inboundSchema).optional(),
|
|
2099
|
-
temperature: z.nullable(z.number()).optional(),
|
|
2100
|
-
top_p: z.nullable(z.number()).optional(),
|
|
2101
|
-
top_k: z.nullable(z.number()).optional(),
|
|
2102
|
-
tool_choice: z.union([
|
|
2103
|
-
z.lazy(() => DuplicateAgentToolChoice2$inboundSchema),
|
|
2104
|
-
DuplicateAgentToolChoice1$inboundSchema,
|
|
2105
|
-
]).optional(),
|
|
2106
|
-
parallel_tool_calls: z.boolean().optional(),
|
|
2107
|
-
modalities: z.nullable(z.array(DuplicateAgentModalities$inboundSchema))
|
|
2108
|
-
.optional(),
|
|
2109
|
-
}).transform((v) => {
|
|
2110
|
-
return remap$(v, {
|
|
2111
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2112
|
-
"max_tokens": "maxTokens",
|
|
2113
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
2114
|
-
"top_logprobs": "topLogprobs",
|
|
2115
|
-
"presence_penalty": "presencePenalty",
|
|
2116
|
-
"response_format": "responseFormat",
|
|
2117
|
-
"reasoning_effort": "reasoningEffort",
|
|
2118
|
-
"stream_options": "streamOptions",
|
|
2119
|
-
"top_p": "topP",
|
|
2120
|
-
"top_k": "topK",
|
|
2121
|
-
"tool_choice": "toolChoice",
|
|
2122
|
-
"parallel_tool_calls": "parallelToolCalls",
|
|
2123
|
-
});
|
|
2124
|
-
});
|
|
2125
|
-
/** @internal */
|
|
2126
|
-
export type DuplicateAgentParameters$Outbound = {
|
|
2127
|
-
audio?: DuplicateAgentAudio$Outbound | null | undefined;
|
|
2128
|
-
frequency_penalty?: number | null | undefined;
|
|
2129
|
-
max_tokens?: number | null | undefined;
|
|
2130
|
-
max_completion_tokens?: number | null | undefined;
|
|
2131
|
-
logprobs?: boolean | null | undefined;
|
|
2132
|
-
top_logprobs?: number | null | undefined;
|
|
2133
|
-
n?: number | null | undefined;
|
|
2134
|
-
presence_penalty?: number | null | undefined;
|
|
2135
|
-
response_format?:
|
|
2136
|
-
| DuplicateAgentResponseFormatAgentsJSONSchema$Outbound
|
|
2137
|
-
| DuplicateAgentResponseFormatText$Outbound
|
|
2138
|
-
| DuplicateAgentResponseFormatJSONObject$Outbound
|
|
2139
|
-
| undefined;
|
|
2140
|
-
reasoning_effort?: string | undefined;
|
|
2141
|
-
verbosity?: string | undefined;
|
|
2142
|
-
seed?: number | null | undefined;
|
|
2143
|
-
stop?: string | Array<string> | null | undefined;
|
|
2144
|
-
stream_options?: DuplicateAgentStreamOptions$Outbound | null | undefined;
|
|
2145
|
-
thinking?: DuplicateAgentThinking$Outbound | undefined;
|
|
2146
|
-
temperature?: number | null | undefined;
|
|
2147
|
-
top_p?: number | null | undefined;
|
|
2148
|
-
top_k?: number | null | undefined;
|
|
2149
|
-
tool_choice?: DuplicateAgentToolChoice2$Outbound | string | undefined;
|
|
2150
|
-
parallel_tool_calls?: boolean | undefined;
|
|
2151
|
-
modalities?: Array<string> | null | undefined;
|
|
2152
|
-
};
|
|
2153
|
-
|
|
2154
|
-
/** @internal */
|
|
2155
|
-
export const DuplicateAgentParameters$outboundSchema: z.ZodType<
|
|
2156
|
-
DuplicateAgentParameters$Outbound,
|
|
2157
|
-
z.ZodTypeDef,
|
|
2158
|
-
DuplicateAgentParameters
|
|
2159
|
-
> = z.object({
|
|
2160
|
-
audio: z.nullable(z.lazy(() => DuplicateAgentAudio$outboundSchema))
|
|
2161
|
-
.optional(),
|
|
2162
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
2163
|
-
maxTokens: z.nullable(z.number().int()).optional(),
|
|
2164
|
-
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
2165
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2166
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
2167
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2168
|
-
presencePenalty: z.nullable(z.number()).optional(),
|
|
2169
|
-
responseFormat: z.union([
|
|
2170
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONSchema$outboundSchema),
|
|
2171
|
-
z.lazy(() => DuplicateAgentResponseFormatText$outboundSchema),
|
|
2172
|
-
z.lazy(() => DuplicateAgentResponseFormatJSONObject$outboundSchema),
|
|
2173
|
-
]).optional(),
|
|
2174
|
-
reasoningEffort: z.string().optional(),
|
|
2175
|
-
verbosity: z.string().optional(),
|
|
2176
|
-
seed: z.nullable(z.number()).optional(),
|
|
2177
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2178
|
-
streamOptions: z.nullable(
|
|
2179
|
-
z.lazy(() => DuplicateAgentStreamOptions$outboundSchema),
|
|
2180
|
-
).optional(),
|
|
2181
|
-
thinking: z.lazy(() => DuplicateAgentThinking$outboundSchema).optional(),
|
|
2182
|
-
temperature: z.nullable(z.number()).optional(),
|
|
2183
|
-
topP: z.nullable(z.number()).optional(),
|
|
2184
|
-
topK: z.nullable(z.number()).optional(),
|
|
2185
|
-
toolChoice: z.union([
|
|
2186
|
-
z.lazy(() => DuplicateAgentToolChoice2$outboundSchema),
|
|
2187
|
-
DuplicateAgentToolChoice1$outboundSchema,
|
|
2188
|
-
]).optional(),
|
|
2189
|
-
parallelToolCalls: z.boolean().optional(),
|
|
2190
|
-
modalities: z.nullable(z.array(DuplicateAgentModalities$outboundSchema))
|
|
2191
|
-
.optional(),
|
|
2192
|
-
}).transform((v) => {
|
|
2193
|
-
return remap$(v, {
|
|
2194
|
-
frequencyPenalty: "frequency_penalty",
|
|
2195
|
-
maxTokens: "max_tokens",
|
|
2196
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
2197
|
-
topLogprobs: "top_logprobs",
|
|
2198
|
-
presencePenalty: "presence_penalty",
|
|
2199
|
-
responseFormat: "response_format",
|
|
2200
|
-
reasoningEffort: "reasoning_effort",
|
|
2201
|
-
streamOptions: "stream_options",
|
|
2202
|
-
topP: "top_p",
|
|
2203
|
-
topK: "top_k",
|
|
2204
|
-
toolChoice: "tool_choice",
|
|
2205
|
-
parallelToolCalls: "parallel_tool_calls",
|
|
2206
|
-
});
|
|
2207
|
-
});
|
|
2208
|
-
|
|
2209
|
-
export function duplicateAgentParametersToJSON(
|
|
2210
|
-
duplicateAgentParameters: DuplicateAgentParameters,
|
|
2211
|
-
): string {
|
|
2212
|
-
return JSON.stringify(
|
|
2213
|
-
DuplicateAgentParameters$outboundSchema.parse(duplicateAgentParameters),
|
|
2214
|
-
);
|
|
2215
|
-
}
|
|
2216
|
-
export function duplicateAgentParametersFromJSON(
|
|
2217
|
-
jsonString: string,
|
|
2218
|
-
): SafeParseResult<DuplicateAgentParameters, SDKValidationError> {
|
|
2219
|
-
return safeParse(
|
|
2220
|
-
jsonString,
|
|
2221
|
-
(x) => DuplicateAgentParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2222
|
-
`Failed to parse 'DuplicateAgentParameters' from JSON`,
|
|
2223
|
-
);
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
/** @internal */
|
|
2227
|
-
export const DuplicateAgentRetry$inboundSchema: z.ZodType<
|
|
2228
|
-
DuplicateAgentRetry,
|
|
2229
|
-
z.ZodTypeDef,
|
|
2230
|
-
unknown
|
|
2231
|
-
> = z.object({
|
|
2232
|
-
count: z.number().default(3),
|
|
2233
|
-
on_codes: z.array(z.number()).optional(),
|
|
2234
|
-
}).transform((v) => {
|
|
2235
|
-
return remap$(v, {
|
|
2236
|
-
"on_codes": "onCodes",
|
|
2237
|
-
});
|
|
2238
|
-
});
|
|
2239
|
-
/** @internal */
|
|
2240
|
-
export type DuplicateAgentRetry$Outbound = {
|
|
2241
|
-
count: number;
|
|
2242
|
-
on_codes?: Array<number> | undefined;
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2245
|
-
/** @internal */
|
|
2246
|
-
export const DuplicateAgentRetry$outboundSchema: z.ZodType<
|
|
2247
|
-
DuplicateAgentRetry$Outbound,
|
|
2248
|
-
z.ZodTypeDef,
|
|
2249
|
-
DuplicateAgentRetry
|
|
2250
|
-
> = z.object({
|
|
2251
|
-
count: z.number().default(3),
|
|
2252
|
-
onCodes: z.array(z.number()).optional(),
|
|
2253
|
-
}).transform((v) => {
|
|
2254
|
-
return remap$(v, {
|
|
2255
|
-
onCodes: "on_codes",
|
|
2256
|
-
});
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
export function duplicateAgentRetryToJSON(
|
|
2260
|
-
duplicateAgentRetry: DuplicateAgentRetry,
|
|
2261
|
-
): string {
|
|
2262
|
-
return JSON.stringify(
|
|
2263
|
-
DuplicateAgentRetry$outboundSchema.parse(duplicateAgentRetry),
|
|
2264
|
-
);
|
|
2265
|
-
}
|
|
2266
|
-
export function duplicateAgentRetryFromJSON(
|
|
2267
|
-
jsonString: string,
|
|
2268
|
-
): SafeParseResult<DuplicateAgentRetry, SDKValidationError> {
|
|
2269
|
-
return safeParse(
|
|
2270
|
-
jsonString,
|
|
2271
|
-
(x) => DuplicateAgentRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2272
|
-
`Failed to parse 'DuplicateAgentRetry' from JSON`,
|
|
2273
|
-
);
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
/** @internal */
|
|
2277
|
-
export const DuplicateAgentFallbackModelConfigurationVoice$inboundSchema:
|
|
2278
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationVoice> = z
|
|
2279
|
-
.nativeEnum(DuplicateAgentFallbackModelConfigurationVoice);
|
|
2280
|
-
/** @internal */
|
|
2281
|
-
export const DuplicateAgentFallbackModelConfigurationVoice$outboundSchema:
|
|
2282
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationVoice> =
|
|
2283
|
-
DuplicateAgentFallbackModelConfigurationVoice$inboundSchema;
|
|
2284
|
-
|
|
2285
|
-
/** @internal */
|
|
2286
|
-
export const DuplicateAgentFallbackModelConfigurationFormat$inboundSchema:
|
|
2287
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationFormat> = z
|
|
2288
|
-
.nativeEnum(DuplicateAgentFallbackModelConfigurationFormat);
|
|
2289
|
-
/** @internal */
|
|
2290
|
-
export const DuplicateAgentFallbackModelConfigurationFormat$outboundSchema:
|
|
2291
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationFormat> =
|
|
2292
|
-
DuplicateAgentFallbackModelConfigurationFormat$inboundSchema;
|
|
2293
|
-
|
|
2294
|
-
/** @internal */
|
|
2295
|
-
export const DuplicateAgentFallbackModelConfigurationAudio$inboundSchema:
|
|
2296
|
-
z.ZodType<
|
|
2297
|
-
DuplicateAgentFallbackModelConfigurationAudio,
|
|
2298
|
-
z.ZodTypeDef,
|
|
2299
|
-
unknown
|
|
2300
|
-
> = z.object({
|
|
2301
|
-
voice: DuplicateAgentFallbackModelConfigurationVoice$inboundSchema,
|
|
2302
|
-
format: DuplicateAgentFallbackModelConfigurationFormat$inboundSchema,
|
|
2303
|
-
});
|
|
2304
|
-
/** @internal */
|
|
2305
|
-
export type DuplicateAgentFallbackModelConfigurationAudio$Outbound = {
|
|
2306
|
-
voice: string;
|
|
2307
|
-
format: string;
|
|
2308
|
-
};
|
|
2309
|
-
|
|
2310
|
-
/** @internal */
|
|
2311
|
-
export const DuplicateAgentFallbackModelConfigurationAudio$outboundSchema:
|
|
2312
|
-
z.ZodType<
|
|
2313
|
-
DuplicateAgentFallbackModelConfigurationAudio$Outbound,
|
|
2314
|
-
z.ZodTypeDef,
|
|
2315
|
-
DuplicateAgentFallbackModelConfigurationAudio
|
|
2316
|
-
> = z.object({
|
|
2317
|
-
voice: DuplicateAgentFallbackModelConfigurationVoice$outboundSchema,
|
|
2318
|
-
format: DuplicateAgentFallbackModelConfigurationFormat$outboundSchema,
|
|
2319
|
-
});
|
|
2320
|
-
|
|
2321
|
-
export function duplicateAgentFallbackModelConfigurationAudioToJSON(
|
|
2322
|
-
duplicateAgentFallbackModelConfigurationAudio:
|
|
2323
|
-
DuplicateAgentFallbackModelConfigurationAudio,
|
|
2324
|
-
): string {
|
|
2325
|
-
return JSON.stringify(
|
|
2326
|
-
DuplicateAgentFallbackModelConfigurationAudio$outboundSchema.parse(
|
|
2327
|
-
duplicateAgentFallbackModelConfigurationAudio,
|
|
2328
|
-
),
|
|
2329
|
-
);
|
|
2330
|
-
}
|
|
2331
|
-
export function duplicateAgentFallbackModelConfigurationAudioFromJSON(
|
|
2332
|
-
jsonString: string,
|
|
2333
|
-
): SafeParseResult<
|
|
2334
|
-
DuplicateAgentFallbackModelConfigurationAudio,
|
|
2335
|
-
SDKValidationError
|
|
2336
|
-
> {
|
|
2337
|
-
return safeParse(
|
|
2338
|
-
jsonString,
|
|
2339
|
-
(x) =>
|
|
2340
|
-
DuplicateAgentFallbackModelConfigurationAudio$inboundSchema.parse(
|
|
2341
|
-
JSON.parse(x),
|
|
2342
|
-
),
|
|
2343
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationAudio' from JSON`,
|
|
2344
|
-
);
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
/** @internal */
|
|
2348
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType$inboundSchema:
|
|
2349
|
-
z.ZodNativeEnum<
|
|
2350
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType
|
|
2351
|
-
> = z.nativeEnum(
|
|
2352
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType,
|
|
2353
|
-
);
|
|
2354
|
-
/** @internal */
|
|
2355
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType$outboundSchema:
|
|
2356
|
-
z.ZodNativeEnum<
|
|
2357
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType
|
|
2358
|
-
> =
|
|
2359
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType$inboundSchema;
|
|
2360
|
-
|
|
2361
|
-
/** @internal */
|
|
2362
|
-
export const DuplicateAgentResponseFormatAgentsResponseJsonSchema$inboundSchema:
|
|
2363
|
-
z.ZodType<
|
|
2364
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema,
|
|
2365
|
-
z.ZodTypeDef,
|
|
2366
|
-
unknown
|
|
2367
|
-
> = z.object({
|
|
2368
|
-
description: z.string().optional(),
|
|
2369
|
-
name: z.string(),
|
|
2370
|
-
schema: z.any().optional(),
|
|
2371
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
2372
|
-
});
|
|
2373
|
-
/** @internal */
|
|
2374
|
-
export type DuplicateAgentResponseFormatAgentsResponseJsonSchema$Outbound = {
|
|
2375
|
-
description?: string | undefined;
|
|
2376
|
-
name: string;
|
|
2377
|
-
schema?: any | undefined;
|
|
2378
|
-
strict?: boolean | null | undefined;
|
|
2379
|
-
};
|
|
2380
|
-
|
|
2381
|
-
/** @internal */
|
|
2382
|
-
export const DuplicateAgentResponseFormatAgentsResponseJsonSchema$outboundSchema:
|
|
2383
|
-
z.ZodType<
|
|
2384
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema$Outbound,
|
|
2385
|
-
z.ZodTypeDef,
|
|
2386
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema
|
|
2387
|
-
> = z.object({
|
|
2388
|
-
description: z.string().optional(),
|
|
2389
|
-
name: z.string(),
|
|
2390
|
-
schema: z.any().optional(),
|
|
2391
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
2392
|
-
});
|
|
2393
|
-
|
|
2394
|
-
export function duplicateAgentResponseFormatAgentsResponseJsonSchemaToJSON(
|
|
2395
|
-
duplicateAgentResponseFormatAgentsResponseJsonSchema:
|
|
2396
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema,
|
|
2397
|
-
): string {
|
|
2398
|
-
return JSON.stringify(
|
|
2399
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema$outboundSchema.parse(
|
|
2400
|
-
duplicateAgentResponseFormatAgentsResponseJsonSchema,
|
|
2401
|
-
),
|
|
2402
|
-
);
|
|
2403
|
-
}
|
|
2404
|
-
export function duplicateAgentResponseFormatAgentsResponseJsonSchemaFromJSON(
|
|
2405
|
-
jsonString: string,
|
|
2406
|
-
): SafeParseResult<
|
|
2407
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema,
|
|
2408
|
-
SDKValidationError
|
|
2409
|
-
> {
|
|
2410
|
-
return safeParse(
|
|
2411
|
-
jsonString,
|
|
2412
|
-
(x) =>
|
|
2413
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
|
|
2414
|
-
JSON.parse(x),
|
|
2415
|
-
),
|
|
2416
|
-
`Failed to parse 'DuplicateAgentResponseFormatAgentsResponseJsonSchema' from JSON`,
|
|
2417
|
-
);
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
/** @internal */
|
|
2421
|
-
export const DuplicateAgentResponseFormatAgentsResponse201JSONSchema$inboundSchema:
|
|
2422
|
-
z.ZodType<
|
|
2423
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema,
|
|
2424
|
-
z.ZodTypeDef,
|
|
2425
|
-
unknown
|
|
2426
|
-
> = z.object({
|
|
2427
|
-
type:
|
|
2428
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType$inboundSchema,
|
|
2429
|
-
json_schema: z.lazy(() =>
|
|
2430
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema$inboundSchema
|
|
2431
|
-
),
|
|
2432
|
-
}).transform((v) => {
|
|
2433
|
-
return remap$(v, {
|
|
2434
|
-
"json_schema": "jsonSchema",
|
|
2435
|
-
});
|
|
2436
|
-
});
|
|
2437
|
-
/** @internal */
|
|
2438
|
-
export type DuplicateAgentResponseFormatAgentsResponse201JSONSchema$Outbound = {
|
|
2439
|
-
type: string;
|
|
2440
|
-
json_schema: DuplicateAgentResponseFormatAgentsResponseJsonSchema$Outbound;
|
|
2441
|
-
};
|
|
2442
|
-
|
|
2443
|
-
/** @internal */
|
|
2444
|
-
export const DuplicateAgentResponseFormatAgentsResponse201JSONSchema$outboundSchema:
|
|
2445
|
-
z.ZodType<
|
|
2446
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$Outbound,
|
|
2447
|
-
z.ZodTypeDef,
|
|
2448
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema
|
|
2449
|
-
> = z.object({
|
|
2450
|
-
type:
|
|
2451
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONResponseBodyType$outboundSchema,
|
|
2452
|
-
jsonSchema: z.lazy(() =>
|
|
2453
|
-
DuplicateAgentResponseFormatAgentsResponseJsonSchema$outboundSchema
|
|
2454
|
-
),
|
|
2455
|
-
}).transform((v) => {
|
|
2456
|
-
return remap$(v, {
|
|
2457
|
-
jsonSchema: "json_schema",
|
|
2458
|
-
});
|
|
2459
|
-
});
|
|
2460
|
-
|
|
2461
|
-
export function duplicateAgentResponseFormatAgentsResponse201JSONSchemaToJSON(
|
|
2462
|
-
duplicateAgentResponseFormatAgentsResponse201JSONSchema:
|
|
2463
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema,
|
|
2464
|
-
): string {
|
|
2465
|
-
return JSON.stringify(
|
|
2466
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$outboundSchema
|
|
2467
|
-
.parse(duplicateAgentResponseFormatAgentsResponse201JSONSchema),
|
|
2468
|
-
);
|
|
2469
|
-
}
|
|
2470
|
-
export function duplicateAgentResponseFormatAgentsResponse201JSONSchemaFromJSON(
|
|
2471
|
-
jsonString: string,
|
|
2472
|
-
): SafeParseResult<
|
|
2473
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema,
|
|
2474
|
-
SDKValidationError
|
|
2475
|
-
> {
|
|
2476
|
-
return safeParse(
|
|
2477
|
-
jsonString,
|
|
2478
|
-
(x) =>
|
|
2479
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$inboundSchema
|
|
2480
|
-
.parse(JSON.parse(x)),
|
|
2481
|
-
`Failed to parse 'DuplicateAgentResponseFormatAgentsResponse201JSONSchema' from JSON`,
|
|
2482
|
-
);
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
|
-
/** @internal */
|
|
2486
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType$inboundSchema:
|
|
2487
|
-
z.ZodNativeEnum<
|
|
2488
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType
|
|
2489
|
-
> = z.nativeEnum(
|
|
2490
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType,
|
|
2491
|
-
);
|
|
2492
|
-
/** @internal */
|
|
2493
|
-
export const DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType$outboundSchema:
|
|
2494
|
-
z.ZodNativeEnum<
|
|
2495
|
-
typeof DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType
|
|
2496
|
-
> =
|
|
2497
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType$inboundSchema;
|
|
2498
|
-
|
|
2499
|
-
/** @internal */
|
|
2500
|
-
export const DuplicateAgentResponseFormatAgentsJSONObject$inboundSchema:
|
|
2501
|
-
z.ZodType<
|
|
2502
|
-
DuplicateAgentResponseFormatAgentsJSONObject,
|
|
2503
|
-
z.ZodTypeDef,
|
|
2504
|
-
unknown
|
|
2505
|
-
> = z.object({
|
|
2506
|
-
type:
|
|
2507
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType$inboundSchema,
|
|
2508
|
-
});
|
|
2509
|
-
/** @internal */
|
|
2510
|
-
export type DuplicateAgentResponseFormatAgentsJSONObject$Outbound = {
|
|
2511
|
-
type: string;
|
|
2512
|
-
};
|
|
2513
|
-
|
|
2514
|
-
/** @internal */
|
|
2515
|
-
export const DuplicateAgentResponseFormatAgentsJSONObject$outboundSchema:
|
|
2516
|
-
z.ZodType<
|
|
2517
|
-
DuplicateAgentResponseFormatAgentsJSONObject$Outbound,
|
|
2518
|
-
z.ZodTypeDef,
|
|
2519
|
-
DuplicateAgentResponseFormatAgentsJSONObject
|
|
2520
|
-
> = z.object({
|
|
2521
|
-
type:
|
|
2522
|
-
DuplicateAgentResponseFormatAgentsResponse201ApplicationJSONType$outboundSchema,
|
|
2523
|
-
});
|
|
2524
|
-
|
|
2525
|
-
export function duplicateAgentResponseFormatAgentsJSONObjectToJSON(
|
|
2526
|
-
duplicateAgentResponseFormatAgentsJSONObject:
|
|
2527
|
-
DuplicateAgentResponseFormatAgentsJSONObject,
|
|
2528
|
-
): string {
|
|
2529
|
-
return JSON.stringify(
|
|
2530
|
-
DuplicateAgentResponseFormatAgentsJSONObject$outboundSchema.parse(
|
|
2531
|
-
duplicateAgentResponseFormatAgentsJSONObject,
|
|
2532
|
-
),
|
|
2533
|
-
);
|
|
2534
|
-
}
|
|
2535
|
-
export function duplicateAgentResponseFormatAgentsJSONObjectFromJSON(
|
|
2536
|
-
jsonString: string,
|
|
2537
|
-
): SafeParseResult<
|
|
2538
|
-
DuplicateAgentResponseFormatAgentsJSONObject,
|
|
2539
|
-
SDKValidationError
|
|
2540
|
-
> {
|
|
2541
|
-
return safeParse(
|
|
2542
|
-
jsonString,
|
|
2543
|
-
(x) =>
|
|
2544
|
-
DuplicateAgentResponseFormatAgentsJSONObject$inboundSchema.parse(
|
|
2545
|
-
JSON.parse(x),
|
|
2546
|
-
),
|
|
2547
|
-
`Failed to parse 'DuplicateAgentResponseFormatAgentsJSONObject' from JSON`,
|
|
2548
|
-
);
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
/** @internal */
|
|
2552
|
-
export const DuplicateAgentResponseFormatAgentsResponse201Type$inboundSchema:
|
|
2553
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsResponse201Type> = z
|
|
2554
|
-
.nativeEnum(DuplicateAgentResponseFormatAgentsResponse201Type);
|
|
2555
|
-
/** @internal */
|
|
2556
|
-
export const DuplicateAgentResponseFormatAgentsResponse201Type$outboundSchema:
|
|
2557
|
-
z.ZodNativeEnum<typeof DuplicateAgentResponseFormatAgentsResponse201Type> =
|
|
2558
|
-
DuplicateAgentResponseFormatAgentsResponse201Type$inboundSchema;
|
|
2559
|
-
|
|
2560
|
-
/** @internal */
|
|
2561
|
-
export const DuplicateAgentResponseFormatAgentsText$inboundSchema: z.ZodType<
|
|
2562
|
-
DuplicateAgentResponseFormatAgentsText,
|
|
2563
|
-
z.ZodTypeDef,
|
|
2564
|
-
unknown
|
|
2565
|
-
> = z.object({
|
|
2566
|
-
type: DuplicateAgentResponseFormatAgentsResponse201Type$inboundSchema,
|
|
2567
|
-
});
|
|
2568
|
-
/** @internal */
|
|
2569
|
-
export type DuplicateAgentResponseFormatAgentsText$Outbound = {
|
|
2570
|
-
type: string;
|
|
2571
|
-
};
|
|
2572
|
-
|
|
2573
|
-
/** @internal */
|
|
2574
|
-
export const DuplicateAgentResponseFormatAgentsText$outboundSchema: z.ZodType<
|
|
2575
|
-
DuplicateAgentResponseFormatAgentsText$Outbound,
|
|
2576
|
-
z.ZodTypeDef,
|
|
2577
|
-
DuplicateAgentResponseFormatAgentsText
|
|
2578
|
-
> = z.object({
|
|
2579
|
-
type: DuplicateAgentResponseFormatAgentsResponse201Type$outboundSchema,
|
|
2580
|
-
});
|
|
2581
|
-
|
|
2582
|
-
export function duplicateAgentResponseFormatAgentsTextToJSON(
|
|
2583
|
-
duplicateAgentResponseFormatAgentsText:
|
|
2584
|
-
DuplicateAgentResponseFormatAgentsText,
|
|
2585
|
-
): string {
|
|
2586
|
-
return JSON.stringify(
|
|
2587
|
-
DuplicateAgentResponseFormatAgentsText$outboundSchema.parse(
|
|
2588
|
-
duplicateAgentResponseFormatAgentsText,
|
|
2589
|
-
),
|
|
2590
|
-
);
|
|
2591
|
-
}
|
|
2592
|
-
export function duplicateAgentResponseFormatAgentsTextFromJSON(
|
|
2593
|
-
jsonString: string,
|
|
2594
|
-
): SafeParseResult<DuplicateAgentResponseFormatAgentsText, SDKValidationError> {
|
|
2595
|
-
return safeParse(
|
|
2596
|
-
jsonString,
|
|
2597
|
-
(x) =>
|
|
2598
|
-
DuplicateAgentResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
|
|
2599
|
-
`Failed to parse 'DuplicateAgentResponseFormatAgentsText' from JSON`,
|
|
2600
|
-
);
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
/** @internal */
|
|
2604
|
-
export const DuplicateAgentFallbackModelConfigurationResponseFormat$inboundSchema:
|
|
2605
|
-
z.ZodType<
|
|
2606
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat,
|
|
2607
|
-
z.ZodTypeDef,
|
|
2608
|
-
unknown
|
|
2609
|
-
> = z.union([
|
|
2610
|
-
z.lazy(() =>
|
|
2611
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$inboundSchema
|
|
2612
|
-
),
|
|
2613
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsText$inboundSchema),
|
|
2614
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONObject$inboundSchema),
|
|
2615
|
-
]);
|
|
2616
|
-
/** @internal */
|
|
2617
|
-
export type DuplicateAgentFallbackModelConfigurationResponseFormat$Outbound =
|
|
2618
|
-
| DuplicateAgentResponseFormatAgentsResponse201JSONSchema$Outbound
|
|
2619
|
-
| DuplicateAgentResponseFormatAgentsText$Outbound
|
|
2620
|
-
| DuplicateAgentResponseFormatAgentsJSONObject$Outbound;
|
|
2621
|
-
|
|
2622
|
-
/** @internal */
|
|
2623
|
-
export const DuplicateAgentFallbackModelConfigurationResponseFormat$outboundSchema:
|
|
2624
|
-
z.ZodType<
|
|
2625
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat$Outbound,
|
|
2626
|
-
z.ZodTypeDef,
|
|
2627
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat
|
|
2628
|
-
> = z.union([
|
|
2629
|
-
z.lazy(() =>
|
|
2630
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$outboundSchema
|
|
2631
|
-
),
|
|
2632
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsText$outboundSchema),
|
|
2633
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONObject$outboundSchema),
|
|
2634
|
-
]);
|
|
2635
|
-
|
|
2636
|
-
export function duplicateAgentFallbackModelConfigurationResponseFormatToJSON(
|
|
2637
|
-
duplicateAgentFallbackModelConfigurationResponseFormat:
|
|
2638
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat,
|
|
2639
|
-
): string {
|
|
2640
|
-
return JSON.stringify(
|
|
2641
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat$outboundSchema.parse(
|
|
2642
|
-
duplicateAgentFallbackModelConfigurationResponseFormat,
|
|
2643
|
-
),
|
|
2644
|
-
);
|
|
2645
|
-
}
|
|
2646
|
-
export function duplicateAgentFallbackModelConfigurationResponseFormatFromJSON(
|
|
2647
|
-
jsonString: string,
|
|
2648
|
-
): SafeParseResult<
|
|
2649
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat,
|
|
2650
|
-
SDKValidationError
|
|
2651
|
-
> {
|
|
2652
|
-
return safeParse(
|
|
2653
|
-
jsonString,
|
|
2654
|
-
(x) =>
|
|
2655
|
-
DuplicateAgentFallbackModelConfigurationResponseFormat$inboundSchema
|
|
2656
|
-
.parse(JSON.parse(x)),
|
|
2657
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationResponseFormat' from JSON`,
|
|
2658
|
-
);
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
/** @internal */
|
|
2662
|
-
export const DuplicateAgentFallbackModelConfigurationStop$inboundSchema:
|
|
2663
|
-
z.ZodType<
|
|
2664
|
-
DuplicateAgentFallbackModelConfigurationStop,
|
|
2665
|
-
z.ZodTypeDef,
|
|
2666
|
-
unknown
|
|
2667
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
2668
|
-
/** @internal */
|
|
2669
|
-
export type DuplicateAgentFallbackModelConfigurationStop$Outbound =
|
|
2670
|
-
| string
|
|
2671
|
-
| Array<string>;
|
|
2672
|
-
|
|
2673
|
-
/** @internal */
|
|
2674
|
-
export const DuplicateAgentFallbackModelConfigurationStop$outboundSchema:
|
|
2675
|
-
z.ZodType<
|
|
2676
|
-
DuplicateAgentFallbackModelConfigurationStop$Outbound,
|
|
2677
|
-
z.ZodTypeDef,
|
|
2678
|
-
DuplicateAgentFallbackModelConfigurationStop
|
|
2679
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
2680
|
-
|
|
2681
|
-
export function duplicateAgentFallbackModelConfigurationStopToJSON(
|
|
2682
|
-
duplicateAgentFallbackModelConfigurationStop:
|
|
2683
|
-
DuplicateAgentFallbackModelConfigurationStop,
|
|
2684
|
-
): string {
|
|
2685
|
-
return JSON.stringify(
|
|
2686
|
-
DuplicateAgentFallbackModelConfigurationStop$outboundSchema.parse(
|
|
2687
|
-
duplicateAgentFallbackModelConfigurationStop,
|
|
2688
|
-
),
|
|
2689
|
-
);
|
|
2690
|
-
}
|
|
2691
|
-
export function duplicateAgentFallbackModelConfigurationStopFromJSON(
|
|
2692
|
-
jsonString: string,
|
|
2693
|
-
): SafeParseResult<
|
|
2694
|
-
DuplicateAgentFallbackModelConfigurationStop,
|
|
2695
|
-
SDKValidationError
|
|
2696
|
-
> {
|
|
2697
|
-
return safeParse(
|
|
2698
|
-
jsonString,
|
|
2699
|
-
(x) =>
|
|
2700
|
-
DuplicateAgentFallbackModelConfigurationStop$inboundSchema.parse(
|
|
2701
|
-
JSON.parse(x),
|
|
2702
|
-
),
|
|
2703
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationStop' from JSON`,
|
|
2704
|
-
);
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
/** @internal */
|
|
2708
|
-
export const DuplicateAgentFallbackModelConfigurationStreamOptions$inboundSchema:
|
|
2709
|
-
z.ZodType<
|
|
2710
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions,
|
|
2711
|
-
z.ZodTypeDef,
|
|
2712
|
-
unknown
|
|
2713
|
-
> = z.object({
|
|
2714
|
-
include_usage: z.boolean().optional(),
|
|
2715
|
-
}).transform((v) => {
|
|
2716
|
-
return remap$(v, {
|
|
2717
|
-
"include_usage": "includeUsage",
|
|
2718
|
-
});
|
|
2719
|
-
});
|
|
2720
|
-
/** @internal */
|
|
2721
|
-
export type DuplicateAgentFallbackModelConfigurationStreamOptions$Outbound = {
|
|
2722
|
-
include_usage?: boolean | undefined;
|
|
2723
|
-
};
|
|
2724
|
-
|
|
2725
|
-
/** @internal */
|
|
2726
|
-
export const DuplicateAgentFallbackModelConfigurationStreamOptions$outboundSchema:
|
|
2727
|
-
z.ZodType<
|
|
2728
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions$Outbound,
|
|
2729
|
-
z.ZodTypeDef,
|
|
2730
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions
|
|
2731
|
-
> = z.object({
|
|
2732
|
-
includeUsage: z.boolean().optional(),
|
|
2733
|
-
}).transform((v) => {
|
|
2734
|
-
return remap$(v, {
|
|
2735
|
-
includeUsage: "include_usage",
|
|
2736
|
-
});
|
|
2737
|
-
});
|
|
2738
|
-
|
|
2739
|
-
export function duplicateAgentFallbackModelConfigurationStreamOptionsToJSON(
|
|
2740
|
-
duplicateAgentFallbackModelConfigurationStreamOptions:
|
|
2741
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions,
|
|
2742
|
-
): string {
|
|
2743
|
-
return JSON.stringify(
|
|
2744
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions$outboundSchema.parse(
|
|
2745
|
-
duplicateAgentFallbackModelConfigurationStreamOptions,
|
|
2746
|
-
),
|
|
2747
|
-
);
|
|
2748
|
-
}
|
|
2749
|
-
export function duplicateAgentFallbackModelConfigurationStreamOptionsFromJSON(
|
|
2750
|
-
jsonString: string,
|
|
2751
|
-
): SafeParseResult<
|
|
2752
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions,
|
|
2753
|
-
SDKValidationError
|
|
2754
|
-
> {
|
|
2755
|
-
return safeParse(
|
|
2756
|
-
jsonString,
|
|
2757
|
-
(x) =>
|
|
2758
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions$inboundSchema.parse(
|
|
2759
|
-
JSON.parse(x),
|
|
2760
|
-
),
|
|
2761
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationStreamOptions' from JSON`,
|
|
2762
|
-
);
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
/** @internal */
|
|
2766
|
-
export const DuplicateAgentFallbackModelConfigurationType$inboundSchema:
|
|
2767
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationType> = z
|
|
2768
|
-
.nativeEnum(DuplicateAgentFallbackModelConfigurationType);
|
|
2769
|
-
/** @internal */
|
|
2770
|
-
export const DuplicateAgentFallbackModelConfigurationType$outboundSchema:
|
|
2771
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationType> =
|
|
2772
|
-
DuplicateAgentFallbackModelConfigurationType$inboundSchema;
|
|
2773
|
-
|
|
2774
|
-
/** @internal */
|
|
2775
|
-
export const DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
2776
|
-
z.ZodNativeEnum<
|
|
2777
|
-
typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
|
|
2778
|
-
> = z.nativeEnum(DuplicateAgentFallbackModelConfigurationThinkingLevel);
|
|
2779
|
-
/** @internal */
|
|
2780
|
-
export const DuplicateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
2781
|
-
z.ZodNativeEnum<
|
|
2782
|
-
typeof DuplicateAgentFallbackModelConfigurationThinkingLevel
|
|
2783
|
-
> = DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
2784
|
-
|
|
2785
|
-
/** @internal */
|
|
2786
|
-
export const DuplicateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
2787
|
-
z.ZodType<
|
|
2788
|
-
DuplicateAgentFallbackModelConfigurationThinking,
|
|
2789
|
-
z.ZodTypeDef,
|
|
2790
|
-
unknown
|
|
2791
|
-
> = z.object({
|
|
2792
|
-
type: DuplicateAgentFallbackModelConfigurationType$inboundSchema,
|
|
2793
|
-
budget_tokens: z.number(),
|
|
2794
|
-
thinking_level:
|
|
2795
|
-
DuplicateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
2796
|
-
.optional(),
|
|
2797
|
-
}).transform((v) => {
|
|
2798
|
-
return remap$(v, {
|
|
2799
|
-
"budget_tokens": "budgetTokens",
|
|
2800
|
-
"thinking_level": "thinkingLevel",
|
|
2801
|
-
});
|
|
2802
|
-
});
|
|
2803
|
-
/** @internal */
|
|
2804
|
-
export type DuplicateAgentFallbackModelConfigurationThinking$Outbound = {
|
|
2805
|
-
type: string;
|
|
2806
|
-
budget_tokens: number;
|
|
2807
|
-
thinking_level?: string | undefined;
|
|
2808
|
-
};
|
|
2809
|
-
|
|
2810
|
-
/** @internal */
|
|
2811
|
-
export const DuplicateAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
2812
|
-
z.ZodType<
|
|
2813
|
-
DuplicateAgentFallbackModelConfigurationThinking$Outbound,
|
|
2814
|
-
z.ZodTypeDef,
|
|
2815
|
-
DuplicateAgentFallbackModelConfigurationThinking
|
|
2816
|
-
> = z.object({
|
|
2817
|
-
type: DuplicateAgentFallbackModelConfigurationType$outboundSchema,
|
|
2818
|
-
budgetTokens: z.number(),
|
|
2819
|
-
thinkingLevel:
|
|
2820
|
-
DuplicateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
2821
|
-
.optional(),
|
|
2822
|
-
}).transform((v) => {
|
|
2823
|
-
return remap$(v, {
|
|
2824
|
-
budgetTokens: "budget_tokens",
|
|
2825
|
-
thinkingLevel: "thinking_level",
|
|
2826
|
-
});
|
|
2827
|
-
});
|
|
2828
|
-
|
|
2829
|
-
export function duplicateAgentFallbackModelConfigurationThinkingToJSON(
|
|
2830
|
-
duplicateAgentFallbackModelConfigurationThinking:
|
|
2831
|
-
DuplicateAgentFallbackModelConfigurationThinking,
|
|
2832
|
-
): string {
|
|
2833
|
-
return JSON.stringify(
|
|
2834
|
-
DuplicateAgentFallbackModelConfigurationThinking$outboundSchema.parse(
|
|
2835
|
-
duplicateAgentFallbackModelConfigurationThinking,
|
|
2836
|
-
),
|
|
2837
|
-
);
|
|
2838
|
-
}
|
|
2839
|
-
export function duplicateAgentFallbackModelConfigurationThinkingFromJSON(
|
|
2840
|
-
jsonString: string,
|
|
2841
|
-
): SafeParseResult<
|
|
2842
|
-
DuplicateAgentFallbackModelConfigurationThinking,
|
|
2843
|
-
SDKValidationError
|
|
2844
|
-
> {
|
|
2845
|
-
return safeParse(
|
|
2846
|
-
jsonString,
|
|
2847
|
-
(x) =>
|
|
2848
|
-
DuplicateAgentFallbackModelConfigurationThinking$inboundSchema.parse(
|
|
2849
|
-
JSON.parse(x),
|
|
2850
|
-
),
|
|
2851
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationThinking' from JSON`,
|
|
2852
|
-
);
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
|
-
/** @internal */
|
|
2856
|
-
export const DuplicateAgentToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
2857
|
-
typeof DuplicateAgentToolChoiceAgentsType
|
|
2858
|
-
> = z.nativeEnum(DuplicateAgentToolChoiceAgentsType);
|
|
2859
|
-
/** @internal */
|
|
2860
|
-
export const DuplicateAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
2861
|
-
typeof DuplicateAgentToolChoiceAgentsType
|
|
2862
|
-
> = DuplicateAgentToolChoiceAgentsType$inboundSchema;
|
|
2863
|
-
|
|
2864
|
-
/** @internal */
|
|
2865
|
-
export const DuplicateAgentToolChoiceAgentsFunction$inboundSchema: z.ZodType<
|
|
2866
|
-
DuplicateAgentToolChoiceAgentsFunction,
|
|
2867
|
-
z.ZodTypeDef,
|
|
2868
|
-
unknown
|
|
2869
|
-
> = z.object({
|
|
2870
|
-
name: z.string().optional(),
|
|
2871
|
-
});
|
|
2872
|
-
/** @internal */
|
|
2873
|
-
export type DuplicateAgentToolChoiceAgentsFunction$Outbound = {
|
|
2874
|
-
name?: string | undefined;
|
|
2875
|
-
};
|
|
2876
|
-
|
|
2877
|
-
/** @internal */
|
|
2878
|
-
export const DuplicateAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<
|
|
2879
|
-
DuplicateAgentToolChoiceAgentsFunction$Outbound,
|
|
2880
|
-
z.ZodTypeDef,
|
|
2881
|
-
DuplicateAgentToolChoiceAgentsFunction
|
|
2882
|
-
> = z.object({
|
|
2883
|
-
name: z.string().optional(),
|
|
2884
|
-
});
|
|
2885
|
-
|
|
2886
|
-
export function duplicateAgentToolChoiceAgentsFunctionToJSON(
|
|
2887
|
-
duplicateAgentToolChoiceAgentsFunction:
|
|
2888
|
-
DuplicateAgentToolChoiceAgentsFunction,
|
|
2889
|
-
): string {
|
|
2890
|
-
return JSON.stringify(
|
|
2891
|
-
DuplicateAgentToolChoiceAgentsFunction$outboundSchema.parse(
|
|
2892
|
-
duplicateAgentToolChoiceAgentsFunction,
|
|
2893
|
-
),
|
|
2894
|
-
);
|
|
2895
|
-
}
|
|
2896
|
-
export function duplicateAgentToolChoiceAgentsFunctionFromJSON(
|
|
2897
|
-
jsonString: string,
|
|
2898
|
-
): SafeParseResult<DuplicateAgentToolChoiceAgentsFunction, SDKValidationError> {
|
|
2899
|
-
return safeParse(
|
|
2900
|
-
jsonString,
|
|
2901
|
-
(x) =>
|
|
2902
|
-
DuplicateAgentToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2903
|
-
`Failed to parse 'DuplicateAgentToolChoiceAgentsFunction' from JSON`,
|
|
2904
|
-
);
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
/** @internal */
|
|
2908
|
-
export const DuplicateAgentToolChoiceAgents2$inboundSchema: z.ZodType<
|
|
2909
|
-
DuplicateAgentToolChoiceAgents2,
|
|
2910
|
-
z.ZodTypeDef,
|
|
2911
|
-
unknown
|
|
2912
|
-
> = z.object({
|
|
2913
|
-
type: DuplicateAgentToolChoiceAgentsType$inboundSchema.optional(),
|
|
2914
|
-
function: z.lazy(() => DuplicateAgentToolChoiceAgentsFunction$inboundSchema),
|
|
2915
|
-
});
|
|
2916
|
-
/** @internal */
|
|
2917
|
-
export type DuplicateAgentToolChoiceAgents2$Outbound = {
|
|
2918
|
-
type?: string | undefined;
|
|
2919
|
-
function: DuplicateAgentToolChoiceAgentsFunction$Outbound;
|
|
2920
|
-
};
|
|
2921
|
-
|
|
2922
|
-
/** @internal */
|
|
2923
|
-
export const DuplicateAgentToolChoiceAgents2$outboundSchema: z.ZodType<
|
|
2924
|
-
DuplicateAgentToolChoiceAgents2$Outbound,
|
|
2925
|
-
z.ZodTypeDef,
|
|
2926
|
-
DuplicateAgentToolChoiceAgents2
|
|
2927
|
-
> = z.object({
|
|
2928
|
-
type: DuplicateAgentToolChoiceAgentsType$outboundSchema.optional(),
|
|
2929
|
-
function: z.lazy(() => DuplicateAgentToolChoiceAgentsFunction$outboundSchema),
|
|
2930
|
-
});
|
|
2931
|
-
|
|
2932
|
-
export function duplicateAgentToolChoiceAgents2ToJSON(
|
|
2933
|
-
duplicateAgentToolChoiceAgents2: DuplicateAgentToolChoiceAgents2,
|
|
2934
|
-
): string {
|
|
2935
|
-
return JSON.stringify(
|
|
2936
|
-
DuplicateAgentToolChoiceAgents2$outboundSchema.parse(
|
|
2937
|
-
duplicateAgentToolChoiceAgents2,
|
|
2938
|
-
),
|
|
2939
|
-
);
|
|
2940
|
-
}
|
|
2941
|
-
export function duplicateAgentToolChoiceAgents2FromJSON(
|
|
2942
|
-
jsonString: string,
|
|
2943
|
-
): SafeParseResult<DuplicateAgentToolChoiceAgents2, SDKValidationError> {
|
|
2944
|
-
return safeParse(
|
|
2945
|
-
jsonString,
|
|
2946
|
-
(x) => DuplicateAgentToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
|
|
2947
|
-
`Failed to parse 'DuplicateAgentToolChoiceAgents2' from JSON`,
|
|
2948
|
-
);
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
/** @internal */
|
|
2952
|
-
export const DuplicateAgentToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
|
|
2953
|
-
typeof DuplicateAgentToolChoiceAgents1
|
|
2954
|
-
> = z.nativeEnum(DuplicateAgentToolChoiceAgents1);
|
|
2955
|
-
/** @internal */
|
|
2956
|
-
export const DuplicateAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
|
|
2957
|
-
typeof DuplicateAgentToolChoiceAgents1
|
|
2958
|
-
> = DuplicateAgentToolChoiceAgents1$inboundSchema;
|
|
2959
|
-
|
|
2960
|
-
/** @internal */
|
|
2961
|
-
export const DuplicateAgentFallbackModelConfigurationToolChoice$inboundSchema:
|
|
2962
|
-
z.ZodType<
|
|
2963
|
-
DuplicateAgentFallbackModelConfigurationToolChoice,
|
|
2964
|
-
z.ZodTypeDef,
|
|
2965
|
-
unknown
|
|
2966
|
-
> = z.union([
|
|
2967
|
-
z.lazy(() => DuplicateAgentToolChoiceAgents2$inboundSchema),
|
|
2968
|
-
DuplicateAgentToolChoiceAgents1$inboundSchema,
|
|
2969
|
-
]);
|
|
2970
|
-
/** @internal */
|
|
2971
|
-
export type DuplicateAgentFallbackModelConfigurationToolChoice$Outbound =
|
|
2972
|
-
| DuplicateAgentToolChoiceAgents2$Outbound
|
|
2973
|
-
| string;
|
|
2974
|
-
|
|
2975
|
-
/** @internal */
|
|
2976
|
-
export const DuplicateAgentFallbackModelConfigurationToolChoice$outboundSchema:
|
|
2977
|
-
z.ZodType<
|
|
2978
|
-
DuplicateAgentFallbackModelConfigurationToolChoice$Outbound,
|
|
2979
|
-
z.ZodTypeDef,
|
|
2980
|
-
DuplicateAgentFallbackModelConfigurationToolChoice
|
|
2981
|
-
> = z.union([
|
|
2982
|
-
z.lazy(() => DuplicateAgentToolChoiceAgents2$outboundSchema),
|
|
2983
|
-
DuplicateAgentToolChoiceAgents1$outboundSchema,
|
|
2984
|
-
]);
|
|
2985
|
-
|
|
2986
|
-
export function duplicateAgentFallbackModelConfigurationToolChoiceToJSON(
|
|
2987
|
-
duplicateAgentFallbackModelConfigurationToolChoice:
|
|
2988
|
-
DuplicateAgentFallbackModelConfigurationToolChoice,
|
|
2989
|
-
): string {
|
|
2990
|
-
return JSON.stringify(
|
|
2991
|
-
DuplicateAgentFallbackModelConfigurationToolChoice$outboundSchema.parse(
|
|
2992
|
-
duplicateAgentFallbackModelConfigurationToolChoice,
|
|
2993
|
-
),
|
|
2994
|
-
);
|
|
2995
|
-
}
|
|
2996
|
-
export function duplicateAgentFallbackModelConfigurationToolChoiceFromJSON(
|
|
2997
|
-
jsonString: string,
|
|
2998
|
-
): SafeParseResult<
|
|
2999
|
-
DuplicateAgentFallbackModelConfigurationToolChoice,
|
|
3000
|
-
SDKValidationError
|
|
3001
|
-
> {
|
|
3002
|
-
return safeParse(
|
|
3003
|
-
jsonString,
|
|
3004
|
-
(x) =>
|
|
3005
|
-
DuplicateAgentFallbackModelConfigurationToolChoice$inboundSchema.parse(
|
|
3006
|
-
JSON.parse(x),
|
|
3007
|
-
),
|
|
3008
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationToolChoice' from JSON`,
|
|
3009
|
-
);
|
|
3010
|
-
}
|
|
3011
|
-
|
|
3012
|
-
/** @internal */
|
|
3013
|
-
export const DuplicateAgentFallbackModelConfigurationModalities$inboundSchema:
|
|
3014
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationModalities> = z
|
|
3015
|
-
.nativeEnum(DuplicateAgentFallbackModelConfigurationModalities);
|
|
3016
|
-
/** @internal */
|
|
3017
|
-
export const DuplicateAgentFallbackModelConfigurationModalities$outboundSchema:
|
|
3018
|
-
z.ZodNativeEnum<typeof DuplicateAgentFallbackModelConfigurationModalities> =
|
|
3019
|
-
DuplicateAgentFallbackModelConfigurationModalities$inboundSchema;
|
|
3020
|
-
|
|
3021
|
-
/** @internal */
|
|
3022
|
-
export const DuplicateAgentFallbackModelConfigurationParameters$inboundSchema:
|
|
3023
|
-
z.ZodType<
|
|
3024
|
-
DuplicateAgentFallbackModelConfigurationParameters,
|
|
3025
|
-
z.ZodTypeDef,
|
|
3026
|
-
unknown
|
|
3027
|
-
> = z.object({
|
|
3028
|
-
audio: z.nullable(
|
|
3029
|
-
z.lazy(() => DuplicateAgentFallbackModelConfigurationAudio$inboundSchema),
|
|
3030
|
-
).optional(),
|
|
3031
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
3032
|
-
max_tokens: z.nullable(z.number().int()).optional(),
|
|
3033
|
-
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
3034
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3035
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
3036
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3037
|
-
presence_penalty: z.nullable(z.number()).optional(),
|
|
3038
|
-
response_format: z.union([
|
|
3039
|
-
z.lazy(() =>
|
|
3040
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$inboundSchema
|
|
3041
|
-
),
|
|
3042
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsText$inboundSchema),
|
|
3043
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONObject$inboundSchema),
|
|
3044
|
-
]).optional(),
|
|
3045
|
-
reasoning_effort: z.string().optional(),
|
|
3046
|
-
verbosity: z.string().optional(),
|
|
3047
|
-
seed: z.nullable(z.number()).optional(),
|
|
3048
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3049
|
-
stream_options: z.nullable(
|
|
3050
|
-
z.lazy(() =>
|
|
3051
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions$inboundSchema
|
|
3052
|
-
),
|
|
3053
|
-
).optional(),
|
|
3054
|
-
thinking: z.lazy(() =>
|
|
3055
|
-
DuplicateAgentFallbackModelConfigurationThinking$inboundSchema
|
|
3056
|
-
).optional(),
|
|
3057
|
-
temperature: z.nullable(z.number()).optional(),
|
|
3058
|
-
top_p: z.nullable(z.number()).optional(),
|
|
3059
|
-
top_k: z.nullable(z.number()).optional(),
|
|
3060
|
-
tool_choice: z.union([
|
|
3061
|
-
z.lazy(() => DuplicateAgentToolChoiceAgents2$inboundSchema),
|
|
3062
|
-
DuplicateAgentToolChoiceAgents1$inboundSchema,
|
|
3063
|
-
]).optional(),
|
|
3064
|
-
parallel_tool_calls: z.boolean().optional(),
|
|
3065
|
-
modalities: z.nullable(
|
|
3066
|
-
z.array(DuplicateAgentFallbackModelConfigurationModalities$inboundSchema),
|
|
3067
|
-
).optional(),
|
|
3068
|
-
}).transform((v) => {
|
|
3069
|
-
return remap$(v, {
|
|
3070
|
-
"frequency_penalty": "frequencyPenalty",
|
|
3071
|
-
"max_tokens": "maxTokens",
|
|
3072
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
3073
|
-
"top_logprobs": "topLogprobs",
|
|
3074
|
-
"presence_penalty": "presencePenalty",
|
|
3075
|
-
"response_format": "responseFormat",
|
|
3076
|
-
"reasoning_effort": "reasoningEffort",
|
|
3077
|
-
"stream_options": "streamOptions",
|
|
3078
|
-
"top_p": "topP",
|
|
3079
|
-
"top_k": "topK",
|
|
3080
|
-
"tool_choice": "toolChoice",
|
|
3081
|
-
"parallel_tool_calls": "parallelToolCalls",
|
|
3082
|
-
});
|
|
3083
|
-
});
|
|
3084
|
-
/** @internal */
|
|
3085
|
-
export type DuplicateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
3086
|
-
audio?:
|
|
3087
|
-
| DuplicateAgentFallbackModelConfigurationAudio$Outbound
|
|
3088
|
-
| null
|
|
3089
|
-
| undefined;
|
|
3090
|
-
frequency_penalty?: number | null | undefined;
|
|
3091
|
-
max_tokens?: number | null | undefined;
|
|
3092
|
-
max_completion_tokens?: number | null | undefined;
|
|
3093
|
-
logprobs?: boolean | null | undefined;
|
|
3094
|
-
top_logprobs?: number | null | undefined;
|
|
3095
|
-
n?: number | null | undefined;
|
|
3096
|
-
presence_penalty?: number | null | undefined;
|
|
3097
|
-
response_format?:
|
|
3098
|
-
| DuplicateAgentResponseFormatAgentsResponse201JSONSchema$Outbound
|
|
3099
|
-
| DuplicateAgentResponseFormatAgentsText$Outbound
|
|
3100
|
-
| DuplicateAgentResponseFormatAgentsJSONObject$Outbound
|
|
3101
|
-
| undefined;
|
|
3102
|
-
reasoning_effort?: string | undefined;
|
|
3103
|
-
verbosity?: string | undefined;
|
|
3104
|
-
seed?: number | null | undefined;
|
|
3105
|
-
stop?: string | Array<string> | null | undefined;
|
|
3106
|
-
stream_options?:
|
|
3107
|
-
| DuplicateAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
3108
|
-
| null
|
|
3109
|
-
| undefined;
|
|
3110
|
-
thinking?:
|
|
3111
|
-
| DuplicateAgentFallbackModelConfigurationThinking$Outbound
|
|
3112
|
-
| undefined;
|
|
3113
|
-
temperature?: number | null | undefined;
|
|
3114
|
-
top_p?: number | null | undefined;
|
|
3115
|
-
top_k?: number | null | undefined;
|
|
3116
|
-
tool_choice?: DuplicateAgentToolChoiceAgents2$Outbound | string | undefined;
|
|
3117
|
-
parallel_tool_calls?: boolean | undefined;
|
|
3118
|
-
modalities?: Array<string> | null | undefined;
|
|
3119
|
-
};
|
|
3120
|
-
|
|
3121
|
-
/** @internal */
|
|
3122
|
-
export const DuplicateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
3123
|
-
z.ZodType<
|
|
3124
|
-
DuplicateAgentFallbackModelConfigurationParameters$Outbound,
|
|
3125
|
-
z.ZodTypeDef,
|
|
3126
|
-
DuplicateAgentFallbackModelConfigurationParameters
|
|
3127
|
-
> = z.object({
|
|
3128
|
-
audio: z.nullable(
|
|
3129
|
-
z.lazy(() =>
|
|
3130
|
-
DuplicateAgentFallbackModelConfigurationAudio$outboundSchema
|
|
3131
|
-
),
|
|
3132
|
-
).optional(),
|
|
3133
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3134
|
-
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3135
|
-
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3136
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3137
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3138
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3139
|
-
presencePenalty: z.nullable(z.number()).optional(),
|
|
3140
|
-
responseFormat: z.union([
|
|
3141
|
-
z.lazy(() =>
|
|
3142
|
-
DuplicateAgentResponseFormatAgentsResponse201JSONSchema$outboundSchema
|
|
3143
|
-
),
|
|
3144
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsText$outboundSchema),
|
|
3145
|
-
z.lazy(() => DuplicateAgentResponseFormatAgentsJSONObject$outboundSchema),
|
|
3146
|
-
]).optional(),
|
|
3147
|
-
reasoningEffort: z.string().optional(),
|
|
3148
|
-
verbosity: z.string().optional(),
|
|
3149
|
-
seed: z.nullable(z.number()).optional(),
|
|
3150
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3151
|
-
streamOptions: z.nullable(
|
|
3152
|
-
z.lazy(() =>
|
|
3153
|
-
DuplicateAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
3154
|
-
),
|
|
3155
|
-
).optional(),
|
|
3156
|
-
thinking: z.lazy(() =>
|
|
3157
|
-
DuplicateAgentFallbackModelConfigurationThinking$outboundSchema
|
|
3158
|
-
).optional(),
|
|
3159
|
-
temperature: z.nullable(z.number()).optional(),
|
|
3160
|
-
topP: z.nullable(z.number()).optional(),
|
|
3161
|
-
topK: z.nullable(z.number()).optional(),
|
|
3162
|
-
toolChoice: z.union([
|
|
3163
|
-
z.lazy(() => DuplicateAgentToolChoiceAgents2$outboundSchema),
|
|
3164
|
-
DuplicateAgentToolChoiceAgents1$outboundSchema,
|
|
3165
|
-
]).optional(),
|
|
3166
|
-
parallelToolCalls: z.boolean().optional(),
|
|
3167
|
-
modalities: z.nullable(
|
|
3168
|
-
z.array(
|
|
3169
|
-
DuplicateAgentFallbackModelConfigurationModalities$outboundSchema,
|
|
3170
|
-
),
|
|
3171
|
-
).optional(),
|
|
3172
|
-
}).transform((v) => {
|
|
3173
|
-
return remap$(v, {
|
|
3174
|
-
frequencyPenalty: "frequency_penalty",
|
|
3175
|
-
maxTokens: "max_tokens",
|
|
3176
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
3177
|
-
topLogprobs: "top_logprobs",
|
|
3178
|
-
presencePenalty: "presence_penalty",
|
|
3179
|
-
responseFormat: "response_format",
|
|
3180
|
-
reasoningEffort: "reasoning_effort",
|
|
3181
|
-
streamOptions: "stream_options",
|
|
3182
|
-
topP: "top_p",
|
|
3183
|
-
topK: "top_k",
|
|
3184
|
-
toolChoice: "tool_choice",
|
|
3185
|
-
parallelToolCalls: "parallel_tool_calls",
|
|
3186
|
-
});
|
|
3187
|
-
});
|
|
3188
|
-
|
|
3189
|
-
export function duplicateAgentFallbackModelConfigurationParametersToJSON(
|
|
3190
|
-
duplicateAgentFallbackModelConfigurationParameters:
|
|
3191
|
-
DuplicateAgentFallbackModelConfigurationParameters,
|
|
3192
|
-
): string {
|
|
3193
|
-
return JSON.stringify(
|
|
3194
|
-
DuplicateAgentFallbackModelConfigurationParameters$outboundSchema.parse(
|
|
3195
|
-
duplicateAgentFallbackModelConfigurationParameters,
|
|
3196
|
-
),
|
|
3197
|
-
);
|
|
3198
|
-
}
|
|
3199
|
-
export function duplicateAgentFallbackModelConfigurationParametersFromJSON(
|
|
3200
|
-
jsonString: string,
|
|
3201
|
-
): SafeParseResult<
|
|
3202
|
-
DuplicateAgentFallbackModelConfigurationParameters,
|
|
3203
|
-
SDKValidationError
|
|
3204
|
-
> {
|
|
3205
|
-
return safeParse(
|
|
3206
|
-
jsonString,
|
|
3207
|
-
(x) =>
|
|
3208
|
-
DuplicateAgentFallbackModelConfigurationParameters$inboundSchema.parse(
|
|
3209
|
-
JSON.parse(x),
|
|
3210
|
-
),
|
|
3211
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfigurationParameters' from JSON`,
|
|
3212
|
-
);
|
|
3213
|
-
}
|
|
3214
|
-
|
|
3215
|
-
/** @internal */
|
|
3216
|
-
export const DuplicateAgentFallbackModelConfiguration2$inboundSchema: z.ZodType<
|
|
3217
|
-
DuplicateAgentFallbackModelConfiguration2,
|
|
3218
|
-
z.ZodTypeDef,
|
|
3219
|
-
unknown
|
|
3220
|
-
> = z.object({
|
|
3221
|
-
id: z.string(),
|
|
3222
|
-
parameters: z.lazy(() =>
|
|
3223
|
-
DuplicateAgentFallbackModelConfigurationParameters$inboundSchema
|
|
3224
|
-
).optional(),
|
|
3225
|
-
});
|
|
3226
|
-
/** @internal */
|
|
3227
|
-
export type DuplicateAgentFallbackModelConfiguration2$Outbound = {
|
|
3228
|
-
id: string;
|
|
3229
|
-
parameters?:
|
|
3230
|
-
| DuplicateAgentFallbackModelConfigurationParameters$Outbound
|
|
3231
|
-
| undefined;
|
|
3232
|
-
};
|
|
3233
|
-
|
|
3234
|
-
/** @internal */
|
|
3235
|
-
export const DuplicateAgentFallbackModelConfiguration2$outboundSchema:
|
|
3236
|
-
z.ZodType<
|
|
3237
|
-
DuplicateAgentFallbackModelConfiguration2$Outbound,
|
|
3238
|
-
z.ZodTypeDef,
|
|
3239
|
-
DuplicateAgentFallbackModelConfiguration2
|
|
3240
|
-
> = z.object({
|
|
3241
|
-
id: z.string(),
|
|
3242
|
-
parameters: z.lazy(() =>
|
|
3243
|
-
DuplicateAgentFallbackModelConfigurationParameters$outboundSchema
|
|
3244
|
-
).optional(),
|
|
3245
|
-
});
|
|
3246
|
-
|
|
3247
|
-
export function duplicateAgentFallbackModelConfiguration2ToJSON(
|
|
3248
|
-
duplicateAgentFallbackModelConfiguration2:
|
|
3249
|
-
DuplicateAgentFallbackModelConfiguration2,
|
|
3250
|
-
): string {
|
|
3251
|
-
return JSON.stringify(
|
|
3252
|
-
DuplicateAgentFallbackModelConfiguration2$outboundSchema.parse(
|
|
3253
|
-
duplicateAgentFallbackModelConfiguration2,
|
|
3254
|
-
),
|
|
3255
|
-
);
|
|
3256
|
-
}
|
|
3257
|
-
export function duplicateAgentFallbackModelConfiguration2FromJSON(
|
|
3258
|
-
jsonString: string,
|
|
3259
|
-
): SafeParseResult<
|
|
3260
|
-
DuplicateAgentFallbackModelConfiguration2,
|
|
3261
|
-
SDKValidationError
|
|
3262
|
-
> {
|
|
3263
|
-
return safeParse(
|
|
3264
|
-
jsonString,
|
|
3265
|
-
(x) =>
|
|
3266
|
-
DuplicateAgentFallbackModelConfiguration2$inboundSchema.parse(
|
|
3267
|
-
JSON.parse(x),
|
|
3268
|
-
),
|
|
3269
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfiguration2' from JSON`,
|
|
3270
|
-
);
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
/** @internal */
|
|
3274
|
-
export const DuplicateAgentFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
3275
|
-
DuplicateAgentFallbackModelConfiguration,
|
|
3276
|
-
z.ZodTypeDef,
|
|
3277
|
-
unknown
|
|
3278
|
-
> = z.union([
|
|
3279
|
-
z.lazy(() => DuplicateAgentFallbackModelConfiguration2$inboundSchema),
|
|
3280
|
-
z.string(),
|
|
3281
|
-
]);
|
|
3282
|
-
/** @internal */
|
|
3283
|
-
export type DuplicateAgentFallbackModelConfiguration$Outbound =
|
|
3284
|
-
| DuplicateAgentFallbackModelConfiguration2$Outbound
|
|
3285
|
-
| string;
|
|
3286
|
-
|
|
3287
|
-
/** @internal */
|
|
3288
|
-
export const DuplicateAgentFallbackModelConfiguration$outboundSchema: z.ZodType<
|
|
3289
|
-
DuplicateAgentFallbackModelConfiguration$Outbound,
|
|
3290
|
-
z.ZodTypeDef,
|
|
3291
|
-
DuplicateAgentFallbackModelConfiguration
|
|
3292
|
-
> = z.union([
|
|
3293
|
-
z.lazy(() => DuplicateAgentFallbackModelConfiguration2$outboundSchema),
|
|
3294
|
-
z.string(),
|
|
3295
|
-
]);
|
|
3296
|
-
|
|
3297
|
-
export function duplicateAgentFallbackModelConfigurationToJSON(
|
|
3298
|
-
duplicateAgentFallbackModelConfiguration:
|
|
3299
|
-
DuplicateAgentFallbackModelConfiguration,
|
|
3300
|
-
): string {
|
|
3301
|
-
return JSON.stringify(
|
|
3302
|
-
DuplicateAgentFallbackModelConfiguration$outboundSchema.parse(
|
|
3303
|
-
duplicateAgentFallbackModelConfiguration,
|
|
3304
|
-
),
|
|
3305
|
-
);
|
|
3306
|
-
}
|
|
3307
|
-
export function duplicateAgentFallbackModelConfigurationFromJSON(
|
|
3308
|
-
jsonString: string,
|
|
3309
|
-
): SafeParseResult<
|
|
3310
|
-
DuplicateAgentFallbackModelConfiguration,
|
|
3311
|
-
SDKValidationError
|
|
3312
|
-
> {
|
|
3313
|
-
return safeParse(
|
|
3314
|
-
jsonString,
|
|
3315
|
-
(x) =>
|
|
3316
|
-
DuplicateAgentFallbackModelConfiguration$inboundSchema.parse(
|
|
3317
|
-
JSON.parse(x),
|
|
3318
|
-
),
|
|
3319
|
-
`Failed to parse 'DuplicateAgentFallbackModelConfiguration' from JSON`,
|
|
3320
|
-
);
|
|
3321
|
-
}
|
|
3322
|
-
|
|
3323
|
-
/** @internal */
|
|
3324
|
-
export const DuplicateAgentModel$inboundSchema: z.ZodType<
|
|
3325
|
-
DuplicateAgentModel,
|
|
3326
|
-
z.ZodTypeDef,
|
|
3327
|
-
unknown
|
|
3328
|
-
> = z.object({
|
|
3329
|
-
id: z.string(),
|
|
3330
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
3331
|
-
parameters: z.lazy(() => DuplicateAgentParameters$inboundSchema).optional(),
|
|
3332
|
-
retry: z.lazy(() => DuplicateAgentRetry$inboundSchema).optional(),
|
|
3333
|
-
fallback_models: z.nullable(
|
|
3334
|
-
z.array(z.union([
|
|
3335
|
-
z.lazy(() => DuplicateAgentFallbackModelConfiguration2$inboundSchema),
|
|
3336
|
-
z.string(),
|
|
3337
|
-
])),
|
|
3338
|
-
).optional(),
|
|
3339
|
-
}).transform((v) => {
|
|
3340
|
-
return remap$(v, {
|
|
3341
|
-
"integration_id": "integrationId",
|
|
3342
|
-
"fallback_models": "fallbackModels",
|
|
3343
|
-
});
|
|
3344
|
-
});
|
|
3345
|
-
/** @internal */
|
|
3346
|
-
export type DuplicateAgentModel$Outbound = {
|
|
3347
|
-
id: string;
|
|
3348
|
-
integration_id?: string | null | undefined;
|
|
3349
|
-
parameters?: DuplicateAgentParameters$Outbound | undefined;
|
|
3350
|
-
retry?: DuplicateAgentRetry$Outbound | undefined;
|
|
3351
|
-
fallback_models?:
|
|
3352
|
-
| Array<DuplicateAgentFallbackModelConfiguration2$Outbound | string>
|
|
3353
|
-
| null
|
|
3354
|
-
| undefined;
|
|
3355
|
-
};
|
|
3356
|
-
|
|
3357
|
-
/** @internal */
|
|
3358
|
-
export const DuplicateAgentModel$outboundSchema: z.ZodType<
|
|
3359
|
-
DuplicateAgentModel$Outbound,
|
|
3360
|
-
z.ZodTypeDef,
|
|
3361
|
-
DuplicateAgentModel
|
|
3362
|
-
> = z.object({
|
|
3363
|
-
id: z.string(),
|
|
3364
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
3365
|
-
parameters: z.lazy(() => DuplicateAgentParameters$outboundSchema).optional(),
|
|
3366
|
-
retry: z.lazy(() => DuplicateAgentRetry$outboundSchema).optional(),
|
|
3367
|
-
fallbackModels: z.nullable(
|
|
3368
|
-
z.array(z.union([
|
|
3369
|
-
z.lazy(() => DuplicateAgentFallbackModelConfiguration2$outboundSchema),
|
|
3370
|
-
z.string(),
|
|
3371
|
-
])),
|
|
3372
|
-
).optional(),
|
|
3373
|
-
}).transform((v) => {
|
|
3374
|
-
return remap$(v, {
|
|
3375
|
-
integrationId: "integration_id",
|
|
3376
|
-
fallbackModels: "fallback_models",
|
|
3377
|
-
});
|
|
3378
|
-
});
|
|
3379
|
-
|
|
3380
|
-
export function duplicateAgentModelToJSON(
|
|
3381
|
-
duplicateAgentModel: DuplicateAgentModel,
|
|
3382
|
-
): string {
|
|
3383
|
-
return JSON.stringify(
|
|
3384
|
-
DuplicateAgentModel$outboundSchema.parse(duplicateAgentModel),
|
|
3385
|
-
);
|
|
3386
|
-
}
|
|
3387
|
-
export function duplicateAgentModelFromJSON(
|
|
3388
|
-
jsonString: string,
|
|
3389
|
-
): SafeParseResult<DuplicateAgentModel, SDKValidationError> {
|
|
3390
|
-
return safeParse(
|
|
3391
|
-
jsonString,
|
|
3392
|
-
(x) => DuplicateAgentModel$inboundSchema.parse(JSON.parse(x)),
|
|
3393
|
-
`Failed to parse 'DuplicateAgentModel' from JSON`,
|
|
3394
|
-
);
|
|
3395
|
-
}
|
|
3396
|
-
|
|
3397
|
-
/** @internal */
|
|
3398
|
-
export const DuplicateAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
3399
|
-
DuplicateAgentTeamOfAgents,
|
|
3400
|
-
z.ZodTypeDef,
|
|
3401
|
-
unknown
|
|
3402
|
-
> = z.object({
|
|
3403
|
-
key: z.string(),
|
|
3404
|
-
role: z.string().optional(),
|
|
3405
|
-
});
|
|
3406
|
-
/** @internal */
|
|
3407
|
-
export type DuplicateAgentTeamOfAgents$Outbound = {
|
|
3408
|
-
key: string;
|
|
3409
|
-
role?: string | undefined;
|
|
3410
|
-
};
|
|
3411
|
-
|
|
3412
|
-
/** @internal */
|
|
3413
|
-
export const DuplicateAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
3414
|
-
DuplicateAgentTeamOfAgents$Outbound,
|
|
3415
|
-
z.ZodTypeDef,
|
|
3416
|
-
DuplicateAgentTeamOfAgents
|
|
3417
|
-
> = z.object({
|
|
3418
|
-
key: z.string(),
|
|
3419
|
-
role: z.string().optional(),
|
|
3420
|
-
});
|
|
3421
|
-
|
|
3422
|
-
export function duplicateAgentTeamOfAgentsToJSON(
|
|
3423
|
-
duplicateAgentTeamOfAgents: DuplicateAgentTeamOfAgents,
|
|
3424
|
-
): string {
|
|
3425
|
-
return JSON.stringify(
|
|
3426
|
-
DuplicateAgentTeamOfAgents$outboundSchema.parse(duplicateAgentTeamOfAgents),
|
|
3427
|
-
);
|
|
3428
|
-
}
|
|
3429
|
-
export function duplicateAgentTeamOfAgentsFromJSON(
|
|
3430
|
-
jsonString: string,
|
|
3431
|
-
): SafeParseResult<DuplicateAgentTeamOfAgents, SDKValidationError> {
|
|
3432
|
-
return safeParse(
|
|
3433
|
-
jsonString,
|
|
3434
|
-
(x) => DuplicateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
3435
|
-
`Failed to parse 'DuplicateAgentTeamOfAgents' from JSON`,
|
|
3436
|
-
);
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
/** @internal */
|
|
3440
|
-
export const DuplicateAgentMetrics$inboundSchema: z.ZodType<
|
|
3441
|
-
DuplicateAgentMetrics,
|
|
3442
|
-
z.ZodTypeDef,
|
|
3443
|
-
unknown
|
|
3444
|
-
> = z.object({
|
|
3445
|
-
total_cost: z.number().default(0),
|
|
3446
|
-
}).transform((v) => {
|
|
3447
|
-
return remap$(v, {
|
|
3448
|
-
"total_cost": "totalCost",
|
|
3449
|
-
});
|
|
3450
|
-
});
|
|
3451
|
-
/** @internal */
|
|
3452
|
-
export type DuplicateAgentMetrics$Outbound = {
|
|
3453
|
-
total_cost: number;
|
|
3454
|
-
};
|
|
3455
|
-
|
|
3456
|
-
/** @internal */
|
|
3457
|
-
export const DuplicateAgentMetrics$outboundSchema: z.ZodType<
|
|
3458
|
-
DuplicateAgentMetrics$Outbound,
|
|
3459
|
-
z.ZodTypeDef,
|
|
3460
|
-
DuplicateAgentMetrics
|
|
3461
|
-
> = z.object({
|
|
3462
|
-
totalCost: z.number().default(0),
|
|
3463
|
-
}).transform((v) => {
|
|
3464
|
-
return remap$(v, {
|
|
3465
|
-
totalCost: "total_cost",
|
|
3466
|
-
});
|
|
3467
|
-
});
|
|
3468
|
-
|
|
3469
|
-
export function duplicateAgentMetricsToJSON(
|
|
3470
|
-
duplicateAgentMetrics: DuplicateAgentMetrics,
|
|
3471
|
-
): string {
|
|
3472
|
-
return JSON.stringify(
|
|
3473
|
-
DuplicateAgentMetrics$outboundSchema.parse(duplicateAgentMetrics),
|
|
3474
|
-
);
|
|
3475
|
-
}
|
|
3476
|
-
export function duplicateAgentMetricsFromJSON(
|
|
3477
|
-
jsonString: string,
|
|
3478
|
-
): SafeParseResult<DuplicateAgentMetrics, SDKValidationError> {
|
|
3479
|
-
return safeParse(
|
|
3480
|
-
jsonString,
|
|
3481
|
-
(x) => DuplicateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
3482
|
-
`Failed to parse 'DuplicateAgentMetrics' from JSON`,
|
|
3483
|
-
);
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
/** @internal */
|
|
3487
|
-
export const DuplicateAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
3488
|
-
DuplicateAgentKnowledgeBases,
|
|
3489
|
-
z.ZodTypeDef,
|
|
3490
|
-
unknown
|
|
3491
|
-
> = z.object({
|
|
3492
|
-
knowledge_id: z.string(),
|
|
3493
|
-
}).transform((v) => {
|
|
3494
|
-
return remap$(v, {
|
|
3495
|
-
"knowledge_id": "knowledgeId",
|
|
3496
|
-
});
|
|
3497
|
-
});
|
|
3498
|
-
/** @internal */
|
|
3499
|
-
export type DuplicateAgentKnowledgeBases$Outbound = {
|
|
3500
|
-
knowledge_id: string;
|
|
3501
|
-
};
|
|
3502
|
-
|
|
3503
|
-
/** @internal */
|
|
3504
|
-
export const DuplicateAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
3505
|
-
DuplicateAgentKnowledgeBases$Outbound,
|
|
3506
|
-
z.ZodTypeDef,
|
|
3507
|
-
DuplicateAgentKnowledgeBases
|
|
3508
|
-
> = z.object({
|
|
3509
|
-
knowledgeId: z.string(),
|
|
3510
|
-
}).transform((v) => {
|
|
3511
|
-
return remap$(v, {
|
|
3512
|
-
knowledgeId: "knowledge_id",
|
|
3513
|
-
});
|
|
3514
|
-
});
|
|
3515
|
-
|
|
3516
|
-
export function duplicateAgentKnowledgeBasesToJSON(
|
|
3517
|
-
duplicateAgentKnowledgeBases: DuplicateAgentKnowledgeBases,
|
|
3518
|
-
): string {
|
|
3519
|
-
return JSON.stringify(
|
|
3520
|
-
DuplicateAgentKnowledgeBases$outboundSchema.parse(
|
|
3521
|
-
duplicateAgentKnowledgeBases,
|
|
3522
|
-
),
|
|
3523
|
-
);
|
|
3524
|
-
}
|
|
3525
|
-
export function duplicateAgentKnowledgeBasesFromJSON(
|
|
3526
|
-
jsonString: string,
|
|
3527
|
-
): SafeParseResult<DuplicateAgentKnowledgeBases, SDKValidationError> {
|
|
3528
|
-
return safeParse(
|
|
3529
|
-
jsonString,
|
|
3530
|
-
(x) => DuplicateAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
3531
|
-
`Failed to parse 'DuplicateAgentKnowledgeBases' from JSON`,
|
|
3532
|
-
);
|
|
3533
|
-
}
|
|
3534
|
-
|
|
3535
|
-
/** @internal */
|
|
3536
|
-
export const DuplicateAgentResponseBody$inboundSchema: z.ZodType<
|
|
3537
|
-
DuplicateAgentResponseBody,
|
|
3538
|
-
z.ZodTypeDef,
|
|
3539
|
-
unknown
|
|
3540
|
-
> = z.object({
|
|
3541
|
-
_id: z.string(),
|
|
3542
|
-
key: z.string(),
|
|
3543
|
-
display_name: z.string(),
|
|
3544
|
-
workspace_id: z.string(),
|
|
3545
|
-
project_id: z.string(),
|
|
3546
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
3547
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
3548
|
-
created: z.string().optional(),
|
|
3549
|
-
updated: z.string().optional(),
|
|
3550
|
-
role: z.string(),
|
|
3551
|
-
description: z.string(),
|
|
3552
|
-
system_prompt: z.string().optional(),
|
|
3553
|
-
instructions: z.string(),
|
|
3554
|
-
status: DuplicateAgentStatus$inboundSchema,
|
|
3555
|
-
settings: z.lazy(() => DuplicateAgentSettings$inboundSchema).optional(),
|
|
3556
|
-
model: z.lazy(() => DuplicateAgentModel$inboundSchema),
|
|
3557
|
-
version_hash: z.string().optional(),
|
|
3558
|
-
path: z.string(),
|
|
3559
|
-
memory_stores: z.array(z.string()),
|
|
3560
|
-
team_of_agents: z.array(
|
|
3561
|
-
z.lazy(() => DuplicateAgentTeamOfAgents$inboundSchema),
|
|
3562
|
-
),
|
|
3563
|
-
metrics: z.lazy(() => DuplicateAgentMetrics$inboundSchema).optional(),
|
|
3564
|
-
variables: z.record(z.any()).optional(),
|
|
3565
|
-
knowledge_bases: z.array(
|
|
3566
|
-
z.lazy(() => DuplicateAgentKnowledgeBases$inboundSchema),
|
|
3567
|
-
).optional(),
|
|
3568
|
-
}).transform((v) => {
|
|
3569
|
-
return remap$(v, {
|
|
3570
|
-
"_id": "id",
|
|
3571
|
-
"display_name": "displayName",
|
|
3572
|
-
"workspace_id": "workspaceId",
|
|
3573
|
-
"project_id": "projectId",
|
|
3574
|
-
"created_by_id": "createdById",
|
|
3575
|
-
"updated_by_id": "updatedById",
|
|
3576
|
-
"system_prompt": "systemPrompt",
|
|
3577
|
-
"version_hash": "versionHash",
|
|
3578
|
-
"memory_stores": "memoryStores",
|
|
3579
|
-
"team_of_agents": "teamOfAgents",
|
|
3580
|
-
"knowledge_bases": "knowledgeBases",
|
|
3581
|
-
});
|
|
3582
|
-
});
|
|
3583
|
-
/** @internal */
|
|
3584
|
-
export type DuplicateAgentResponseBody$Outbound = {
|
|
3585
|
-
_id: string;
|
|
3586
|
-
key: string;
|
|
3587
|
-
display_name: string;
|
|
3588
|
-
workspace_id: string;
|
|
3589
|
-
project_id: string;
|
|
3590
|
-
created_by_id?: string | null | undefined;
|
|
3591
|
-
updated_by_id?: string | null | undefined;
|
|
3592
|
-
created?: string | undefined;
|
|
3593
|
-
updated?: string | undefined;
|
|
3594
|
-
role: string;
|
|
3595
|
-
description: string;
|
|
3596
|
-
system_prompt?: string | undefined;
|
|
3597
|
-
instructions: string;
|
|
3598
|
-
status: string;
|
|
3599
|
-
settings?: DuplicateAgentSettings$Outbound | undefined;
|
|
3600
|
-
model: DuplicateAgentModel$Outbound;
|
|
3601
|
-
version_hash?: string | undefined;
|
|
3602
|
-
path: string;
|
|
3603
|
-
memory_stores: Array<string>;
|
|
3604
|
-
team_of_agents: Array<DuplicateAgentTeamOfAgents$Outbound>;
|
|
3605
|
-
metrics?: DuplicateAgentMetrics$Outbound | undefined;
|
|
3606
|
-
variables?: { [k: string]: any } | undefined;
|
|
3607
|
-
knowledge_bases?: Array<DuplicateAgentKnowledgeBases$Outbound> | undefined;
|
|
3608
|
-
};
|
|
3609
|
-
|
|
3610
|
-
/** @internal */
|
|
3611
|
-
export const DuplicateAgentResponseBody$outboundSchema: z.ZodType<
|
|
3612
|
-
DuplicateAgentResponseBody$Outbound,
|
|
3613
|
-
z.ZodTypeDef,
|
|
3614
|
-
DuplicateAgentResponseBody
|
|
3615
|
-
> = z.object({
|
|
3616
|
-
id: z.string(),
|
|
3617
|
-
key: z.string(),
|
|
3618
|
-
displayName: z.string(),
|
|
3619
|
-
workspaceId: z.string(),
|
|
3620
|
-
projectId: z.string(),
|
|
3621
|
-
createdById: z.nullable(z.string()).optional(),
|
|
3622
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
3623
|
-
created: z.string().optional(),
|
|
3624
|
-
updated: z.string().optional(),
|
|
3625
|
-
role: z.string(),
|
|
3626
|
-
description: z.string(),
|
|
3627
|
-
systemPrompt: z.string().optional(),
|
|
3628
|
-
instructions: z.string(),
|
|
3629
|
-
status: DuplicateAgentStatus$outboundSchema,
|
|
3630
|
-
settings: z.lazy(() => DuplicateAgentSettings$outboundSchema).optional(),
|
|
3631
|
-
model: z.lazy(() => DuplicateAgentModel$outboundSchema),
|
|
3632
|
-
versionHash: z.string().optional(),
|
|
3633
|
-
path: z.string(),
|
|
3634
|
-
memoryStores: z.array(z.string()),
|
|
3635
|
-
teamOfAgents: z.array(
|
|
3636
|
-
z.lazy(() => DuplicateAgentTeamOfAgents$outboundSchema),
|
|
3637
|
-
),
|
|
3638
|
-
metrics: z.lazy(() => DuplicateAgentMetrics$outboundSchema).optional(),
|
|
3639
|
-
variables: z.record(z.any()).optional(),
|
|
3640
|
-
knowledgeBases: z.array(
|
|
3641
|
-
z.lazy(() => DuplicateAgentKnowledgeBases$outboundSchema),
|
|
3642
|
-
).optional(),
|
|
3643
|
-
}).transform((v) => {
|
|
3644
|
-
return remap$(v, {
|
|
3645
|
-
id: "_id",
|
|
3646
|
-
displayName: "display_name",
|
|
3647
|
-
workspaceId: "workspace_id",
|
|
3648
|
-
projectId: "project_id",
|
|
3649
|
-
createdById: "created_by_id",
|
|
3650
|
-
updatedById: "updated_by_id",
|
|
3651
|
-
systemPrompt: "system_prompt",
|
|
3652
|
-
versionHash: "version_hash",
|
|
3653
|
-
memoryStores: "memory_stores",
|
|
3654
|
-
teamOfAgents: "team_of_agents",
|
|
3655
|
-
knowledgeBases: "knowledge_bases",
|
|
3656
|
-
});
|
|
3657
|
-
});
|
|
3658
|
-
|
|
3659
|
-
export function duplicateAgentResponseBodyToJSON(
|
|
3660
|
-
duplicateAgentResponseBody: DuplicateAgentResponseBody,
|
|
3661
|
-
): string {
|
|
3662
|
-
return JSON.stringify(
|
|
3663
|
-
DuplicateAgentResponseBody$outboundSchema.parse(duplicateAgentResponseBody),
|
|
3664
|
-
);
|
|
3665
|
-
}
|
|
3666
|
-
export function duplicateAgentResponseBodyFromJSON(
|
|
3667
|
-
jsonString: string,
|
|
3668
|
-
): SafeParseResult<DuplicateAgentResponseBody, SDKValidationError> {
|
|
3669
|
-
return safeParse(
|
|
3670
|
-
jsonString,
|
|
3671
|
-
(x) => DuplicateAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
3672
|
-
`Failed to parse 'DuplicateAgentResponseBody' from JSON`,
|
|
3673
|
-
);
|
|
3674
|
-
}
|