@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35
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 +27 -23
- package/bin/mcp-server.js +6400 -6141
- package/bin/mcp-server.js.map +66 -58
- package/examples/package-lock.json +1 -1
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +13 -11
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
- package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigdisabledschema.js +58 -0
- package/models/components/thinkingconfigdisabledschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +49 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigenabledschema.js +84 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -0
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +17 -204
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +75 -194
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -166
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +32 -227
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- 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/createprompt.d.ts +10 -10
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -13
- package/models/operations/createprompt.js.map +1 -1
- 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/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- 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 +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +9 -102
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +38 -97
- package/models/operations/listagents.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/retrieveagentrequest.d.ts +9 -102
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +38 -97
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- 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.d.ts +8 -102
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +41 -104
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -102
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +41 -103
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +17 -204
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +75 -193
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- 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/conversations.d.ts +7 -0
- package/sdk/conversations.d.ts.map +1 -1
- package/sdk/conversations.js +10 -0
- package/sdk/conversations.js.map +1 -1
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/invokedeploymentrequest.ts +25 -17
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createagentrequest.ts +123 -369
- package/src/models/operations/createagentresponserequest.ts +71 -513
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- 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/createprompt.ts +23 -25
- 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/generateconversationname.ts +341 -0
- 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 +1 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +63 -186
- 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/retrieveagentrequest.ts +61 -194
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- 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 +64 -194
- package/src/models/operations/streamrunagent.ts +62 -201
- package/src/models/operations/updateagent.ts +123 -379
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- 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/conversations.ts +20 -0
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -121,44 +122,9 @@ export type StreamOptions = {
|
|
|
121
122
|
includeUsage?: boolean | undefined;
|
|
122
123
|
};
|
|
123
124
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export const ModelConfigurationType = {
|
|
128
|
-
Enabled: "enabled",
|
|
129
|
-
Disabled: "disabled",
|
|
130
|
-
} as const;
|
|
131
|
-
/**
|
|
132
|
-
* Enables or disables the thinking mode capability
|
|
133
|
-
*/
|
|
134
|
-
export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 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.
|
|
138
|
-
*/
|
|
139
|
-
export const ThinkingLevel = {
|
|
140
|
-
Low: "low",
|
|
141
|
-
High: "high",
|
|
142
|
-
} as const;
|
|
143
|
-
/**
|
|
144
|
-
* 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.
|
|
145
|
-
*/
|
|
146
|
-
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
147
|
-
|
|
148
|
-
export type Thinking = {
|
|
149
|
-
/**
|
|
150
|
-
* Enables or disables the thinking mode capability
|
|
151
|
-
*/
|
|
152
|
-
type: ModelConfigurationType;
|
|
153
|
-
/**
|
|
154
|
-
* 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`.
|
|
155
|
-
*/
|
|
156
|
-
budgetTokens: number;
|
|
157
|
-
/**
|
|
158
|
-
* 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.
|
|
159
|
-
*/
|
|
160
|
-
thinkingLevel?: ThinkingLevel | undefined;
|
|
161
|
-
};
|
|
125
|
+
export type Thinking =
|
|
126
|
+
| components.ThinkingConfigDisabledSchema
|
|
127
|
+
| components.ThinkingConfigEnabledSchema;
|
|
162
128
|
|
|
163
129
|
/**
|
|
164
130
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -268,7 +234,10 @@ export type ParametersT = {
|
|
|
268
234
|
* Options for streaming response. Only set this when you set stream: true.
|
|
269
235
|
*/
|
|
270
236
|
streamOptions?: StreamOptions | null | undefined;
|
|
271
|
-
thinking?:
|
|
237
|
+
thinking?:
|
|
238
|
+
| components.ThinkingConfigDisabledSchema
|
|
239
|
+
| components.ThinkingConfigEnabledSchema
|
|
240
|
+
| undefined;
|
|
272
241
|
/**
|
|
273
242
|
* 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.
|
|
274
243
|
*/
|
|
@@ -453,48 +422,9 @@ export type FallbackModelConfigurationStreamOptions = {
|
|
|
453
422
|
includeUsage?: boolean | undefined;
|
|
454
423
|
};
|
|
455
424
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
export const FallbackModelConfigurationType = {
|
|
460
|
-
Enabled: "enabled",
|
|
461
|
-
Disabled: "disabled",
|
|
462
|
-
} as const;
|
|
463
|
-
/**
|
|
464
|
-
* Enables or disables the thinking mode capability
|
|
465
|
-
*/
|
|
466
|
-
export type FallbackModelConfigurationType = ClosedEnum<
|
|
467
|
-
typeof FallbackModelConfigurationType
|
|
468
|
-
>;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* 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.
|
|
472
|
-
*/
|
|
473
|
-
export const FallbackModelConfigurationThinkingLevel = {
|
|
474
|
-
Low: "low",
|
|
475
|
-
High: "high",
|
|
476
|
-
} as const;
|
|
477
|
-
/**
|
|
478
|
-
* 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.
|
|
479
|
-
*/
|
|
480
|
-
export type FallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
481
|
-
typeof FallbackModelConfigurationThinkingLevel
|
|
482
|
-
>;
|
|
483
|
-
|
|
484
|
-
export type FallbackModelConfigurationThinking = {
|
|
485
|
-
/**
|
|
486
|
-
* Enables or disables the thinking mode capability
|
|
487
|
-
*/
|
|
488
|
-
type: FallbackModelConfigurationType;
|
|
489
|
-
/**
|
|
490
|
-
* 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`.
|
|
491
|
-
*/
|
|
492
|
-
budgetTokens: number;
|
|
493
|
-
/**
|
|
494
|
-
* 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.
|
|
495
|
-
*/
|
|
496
|
-
thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
|
|
497
|
-
};
|
|
425
|
+
export type FallbackModelConfigurationThinking =
|
|
426
|
+
| components.ThinkingConfigDisabledSchema
|
|
427
|
+
| components.ThinkingConfigEnabledSchema;
|
|
498
428
|
|
|
499
429
|
/**
|
|
500
430
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -616,7 +546,10 @@ export type FallbackModelConfigurationParameters = {
|
|
|
616
546
|
* Options for streaming response. Only set this when you set stream: true.
|
|
617
547
|
*/
|
|
618
548
|
streamOptions?: FallbackModelConfigurationStreamOptions | null | undefined;
|
|
619
|
-
thinking?:
|
|
549
|
+
thinking?:
|
|
550
|
+
| components.ThinkingConfigDisabledSchema
|
|
551
|
+
| components.ThinkingConfigEnabledSchema
|
|
552
|
+
| undefined;
|
|
620
553
|
/**
|
|
621
554
|
* 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.
|
|
622
555
|
*/
|
|
@@ -1367,46 +1300,9 @@ export type CreateAgentRequestStreamOptions = {
|
|
|
1367
1300
|
includeUsage?: boolean | undefined;
|
|
1368
1301
|
};
|
|
1369
1302
|
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
export const CreateAgentRequestType = {
|
|
1374
|
-
Enabled: "enabled",
|
|
1375
|
-
Disabled: "disabled",
|
|
1376
|
-
} as const;
|
|
1377
|
-
/**
|
|
1378
|
-
* Enables or disables the thinking mode capability
|
|
1379
|
-
*/
|
|
1380
|
-
export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* 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.
|
|
1384
|
-
*/
|
|
1385
|
-
export const CreateAgentRequestThinkingLevel = {
|
|
1386
|
-
Low: "low",
|
|
1387
|
-
High: "high",
|
|
1388
|
-
} as const;
|
|
1389
|
-
/**
|
|
1390
|
-
* 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.
|
|
1391
|
-
*/
|
|
1392
|
-
export type CreateAgentRequestThinkingLevel = ClosedEnum<
|
|
1393
|
-
typeof CreateAgentRequestThinkingLevel
|
|
1394
|
-
>;
|
|
1395
|
-
|
|
1396
|
-
export type CreateAgentRequestThinking = {
|
|
1397
|
-
/**
|
|
1398
|
-
* Enables or disables the thinking mode capability
|
|
1399
|
-
*/
|
|
1400
|
-
type: CreateAgentRequestType;
|
|
1401
|
-
/**
|
|
1402
|
-
* 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`.
|
|
1403
|
-
*/
|
|
1404
|
-
budgetTokens: number;
|
|
1405
|
-
/**
|
|
1406
|
-
* 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.
|
|
1407
|
-
*/
|
|
1408
|
-
thinkingLevel?: CreateAgentRequestThinkingLevel | undefined;
|
|
1409
|
-
};
|
|
1303
|
+
export type CreateAgentRequestThinking =
|
|
1304
|
+
| components.ThinkingConfigDisabledSchema
|
|
1305
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1410
1306
|
|
|
1411
1307
|
/**
|
|
1412
1308
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1528,7 +1424,10 @@ export type CreateAgentRequestParameters = {
|
|
|
1528
1424
|
* Options for streaming response. Only set this when you set stream: true.
|
|
1529
1425
|
*/
|
|
1530
1426
|
streamOptions?: CreateAgentRequestStreamOptions | null | undefined;
|
|
1531
|
-
thinking?:
|
|
1427
|
+
thinking?:
|
|
1428
|
+
| components.ThinkingConfigDisabledSchema
|
|
1429
|
+
| components.ThinkingConfigEnabledSchema
|
|
1430
|
+
| undefined;
|
|
1532
1431
|
/**
|
|
1533
1432
|
* 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.
|
|
1534
1433
|
*/
|
|
@@ -1696,49 +1595,9 @@ export type CreateAgentRequestFallbackModelConfigurationStreamOptions = {
|
|
|
1696
1595
|
includeUsage?: boolean | undefined;
|
|
1697
1596
|
};
|
|
1698
1597
|
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
export const CreateAgentRequestFallbackModelConfigurationType = {
|
|
1703
|
-
Enabled: "enabled",
|
|
1704
|
-
Disabled: "disabled",
|
|
1705
|
-
} as const;
|
|
1706
|
-
/**
|
|
1707
|
-
* Enables or disables the thinking mode capability
|
|
1708
|
-
*/
|
|
1709
|
-
export type CreateAgentRequestFallbackModelConfigurationType = ClosedEnum<
|
|
1710
|
-
typeof CreateAgentRequestFallbackModelConfigurationType
|
|
1711
|
-
>;
|
|
1712
|
-
|
|
1713
|
-
/**
|
|
1714
|
-
* 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.
|
|
1715
|
-
*/
|
|
1716
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel = {
|
|
1717
|
-
Low: "low",
|
|
1718
|
-
High: "high",
|
|
1719
|
-
} as const;
|
|
1720
|
-
/**
|
|
1721
|
-
* 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.
|
|
1722
|
-
*/
|
|
1723
|
-
export type CreateAgentRequestFallbackModelConfigurationThinkingLevel =
|
|
1724
|
-
ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel>;
|
|
1725
|
-
|
|
1726
|
-
export type CreateAgentRequestFallbackModelConfigurationThinking = {
|
|
1727
|
-
/**
|
|
1728
|
-
* Enables or disables the thinking mode capability
|
|
1729
|
-
*/
|
|
1730
|
-
type: CreateAgentRequestFallbackModelConfigurationType;
|
|
1731
|
-
/**
|
|
1732
|
-
* 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`.
|
|
1733
|
-
*/
|
|
1734
|
-
budgetTokens: number;
|
|
1735
|
-
/**
|
|
1736
|
-
* 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.
|
|
1737
|
-
*/
|
|
1738
|
-
thinkingLevel?:
|
|
1739
|
-
| CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
1740
|
-
| undefined;
|
|
1741
|
-
};
|
|
1598
|
+
export type CreateAgentRequestFallbackModelConfigurationThinking =
|
|
1599
|
+
| components.ThinkingConfigDisabledSchema
|
|
1600
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1742
1601
|
|
|
1743
1602
|
/**
|
|
1744
1603
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1863,7 +1722,10 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1863
1722
|
| CreateAgentRequestFallbackModelConfigurationStreamOptions
|
|
1864
1723
|
| null
|
|
1865
1724
|
| undefined;
|
|
1866
|
-
thinking?:
|
|
1725
|
+
thinking?:
|
|
1726
|
+
| components.ThinkingConfigDisabledSchema
|
|
1727
|
+
| components.ThinkingConfigEnabledSchema
|
|
1728
|
+
| undefined;
|
|
1867
1729
|
/**
|
|
1868
1730
|
* 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.
|
|
1869
1731
|
*/
|
|
@@ -2343,61 +2205,29 @@ export function streamOptionsFromJSON(
|
|
|
2343
2205
|
);
|
|
2344
2206
|
}
|
|
2345
2207
|
|
|
2346
|
-
/** @internal */
|
|
2347
|
-
export const ModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
2348
|
-
typeof ModelConfigurationType
|
|
2349
|
-
> = z.nativeEnum(ModelConfigurationType);
|
|
2350
|
-
/** @internal */
|
|
2351
|
-
export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
2352
|
-
typeof ModelConfigurationType
|
|
2353
|
-
> = ModelConfigurationType$inboundSchema;
|
|
2354
|
-
|
|
2355
|
-
/** @internal */
|
|
2356
|
-
export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2357
|
-
typeof ThinkingLevel
|
|
2358
|
-
> = z.nativeEnum(ThinkingLevel);
|
|
2359
|
-
/** @internal */
|
|
2360
|
-
export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2361
|
-
typeof ThinkingLevel
|
|
2362
|
-
> = ThinkingLevel$inboundSchema;
|
|
2363
|
-
|
|
2364
2208
|
/** @internal */
|
|
2365
2209
|
export const Thinking$inboundSchema: z.ZodType<
|
|
2366
2210
|
Thinking,
|
|
2367
2211
|
z.ZodTypeDef,
|
|
2368
2212
|
unknown
|
|
2369
|
-
> = z.
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}).transform((v) => {
|
|
2374
|
-
return remap$(v, {
|
|
2375
|
-
"budget_tokens": "budgetTokens",
|
|
2376
|
-
"thinking_level": "thinkingLevel",
|
|
2377
|
-
});
|
|
2378
|
-
});
|
|
2213
|
+
> = z.union([
|
|
2214
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2215
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2216
|
+
]);
|
|
2379
2217
|
/** @internal */
|
|
2380
|
-
export type Thinking$Outbound =
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
thinking_level?: string | undefined;
|
|
2384
|
-
};
|
|
2218
|
+
export type Thinking$Outbound =
|
|
2219
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2220
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2385
2221
|
|
|
2386
2222
|
/** @internal */
|
|
2387
2223
|
export const Thinking$outboundSchema: z.ZodType<
|
|
2388
2224
|
Thinking$Outbound,
|
|
2389
2225
|
z.ZodTypeDef,
|
|
2390
2226
|
Thinking
|
|
2391
|
-
> = z.
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
}).transform((v) => {
|
|
2396
|
-
return remap$(v, {
|
|
2397
|
-
budgetTokens: "budget_tokens",
|
|
2398
|
-
thinkingLevel: "thinking_level",
|
|
2399
|
-
});
|
|
2400
|
-
});
|
|
2227
|
+
> = z.union([
|
|
2228
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2229
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2230
|
+
]);
|
|
2401
2231
|
|
|
2402
2232
|
export function thinkingToJSON(thinking: Thinking): string {
|
|
2403
2233
|
return JSON.stringify(Thinking$outboundSchema.parse(thinking));
|
|
@@ -2573,7 +2403,10 @@ export const ParametersT$inboundSchema: z.ZodType<
|
|
|
2573
2403
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2574
2404
|
stream_options: z.nullable(z.lazy(() => StreamOptions$inboundSchema))
|
|
2575
2405
|
.optional(),
|
|
2576
|
-
thinking: z.
|
|
2406
|
+
thinking: z.union([
|
|
2407
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2408
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2409
|
+
]).optional(),
|
|
2577
2410
|
temperature: z.nullable(z.number()).optional(),
|
|
2578
2411
|
top_p: z.nullable(z.number()).optional(),
|
|
2579
2412
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -2619,7 +2452,10 @@ export type ParametersT$Outbound = {
|
|
|
2619
2452
|
seed?: number | null | undefined;
|
|
2620
2453
|
stop?: string | Array<string> | null | undefined;
|
|
2621
2454
|
stream_options?: StreamOptions$Outbound | null | undefined;
|
|
2622
|
-
thinking?:
|
|
2455
|
+
thinking?:
|
|
2456
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2457
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2458
|
+
| undefined;
|
|
2623
2459
|
temperature?: number | null | undefined;
|
|
2624
2460
|
top_p?: number | null | undefined;
|
|
2625
2461
|
top_k?: number | null | undefined;
|
|
@@ -2654,7 +2490,10 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
2654
2490
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2655
2491
|
streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
|
|
2656
2492
|
.optional(),
|
|
2657
|
-
thinking: z.
|
|
2493
|
+
thinking: z.union([
|
|
2494
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2495
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2496
|
+
]).optional(),
|
|
2658
2497
|
temperature: z.nullable(z.number()).optional(),
|
|
2659
2498
|
topP: z.nullable(z.number()).optional(),
|
|
2660
2499
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -3220,63 +3059,29 @@ export function fallbackModelConfigurationStreamOptionsFromJSON(
|
|
|
3220
3059
|
);
|
|
3221
3060
|
}
|
|
3222
3061
|
|
|
3223
|
-
/** @internal */
|
|
3224
|
-
export const FallbackModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
3225
|
-
typeof FallbackModelConfigurationType
|
|
3226
|
-
> = z.nativeEnum(FallbackModelConfigurationType);
|
|
3227
|
-
/** @internal */
|
|
3228
|
-
export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3229
|
-
typeof FallbackModelConfigurationType
|
|
3230
|
-
> = FallbackModelConfigurationType$inboundSchema;
|
|
3231
|
-
|
|
3232
|
-
/** @internal */
|
|
3233
|
-
export const FallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
3234
|
-
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> = z
|
|
3235
|
-
.nativeEnum(FallbackModelConfigurationThinkingLevel);
|
|
3236
|
-
/** @internal */
|
|
3237
|
-
export const FallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3238
|
-
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> =
|
|
3239
|
-
FallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3240
|
-
|
|
3241
3062
|
/** @internal */
|
|
3242
3063
|
export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
3243
3064
|
FallbackModelConfigurationThinking,
|
|
3244
3065
|
z.ZodTypeDef,
|
|
3245
3066
|
unknown
|
|
3246
|
-
> = z.
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
.optional(),
|
|
3251
|
-
}).transform((v) => {
|
|
3252
|
-
return remap$(v, {
|
|
3253
|
-
"budget_tokens": "budgetTokens",
|
|
3254
|
-
"thinking_level": "thinkingLevel",
|
|
3255
|
-
});
|
|
3256
|
-
});
|
|
3067
|
+
> = z.union([
|
|
3068
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3069
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3070
|
+
]);
|
|
3257
3071
|
/** @internal */
|
|
3258
|
-
export type FallbackModelConfigurationThinking$Outbound =
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
thinking_level?: string | undefined;
|
|
3262
|
-
};
|
|
3072
|
+
export type FallbackModelConfigurationThinking$Outbound =
|
|
3073
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3074
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
3263
3075
|
|
|
3264
3076
|
/** @internal */
|
|
3265
3077
|
export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
3266
3078
|
FallbackModelConfigurationThinking$Outbound,
|
|
3267
3079
|
z.ZodTypeDef,
|
|
3268
3080
|
FallbackModelConfigurationThinking
|
|
3269
|
-
> = z.
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
.optional(),
|
|
3274
|
-
}).transform((v) => {
|
|
3275
|
-
return remap$(v, {
|
|
3276
|
-
budgetTokens: "budget_tokens",
|
|
3277
|
-
thinkingLevel: "thinking_level",
|
|
3278
|
-
});
|
|
3279
|
-
});
|
|
3081
|
+
> = z.union([
|
|
3082
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3083
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3084
|
+
]);
|
|
3280
3085
|
|
|
3281
3086
|
export function fallbackModelConfigurationThinkingToJSON(
|
|
3282
3087
|
fallbackModelConfigurationThinking: FallbackModelConfigurationThinking,
|
|
@@ -3483,8 +3288,10 @@ export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
3483
3288
|
stream_options: z.nullable(
|
|
3484
3289
|
z.lazy(() => FallbackModelConfigurationStreamOptions$inboundSchema),
|
|
3485
3290
|
).optional(),
|
|
3486
|
-
thinking: z.
|
|
3487
|
-
.
|
|
3291
|
+
thinking: z.union([
|
|
3292
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3293
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3294
|
+
]).optional(),
|
|
3488
3295
|
temperature: z.nullable(z.number()).optional(),
|
|
3489
3296
|
top_p: z.nullable(z.number()).optional(),
|
|
3490
3297
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -3535,7 +3342,10 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3535
3342
|
| FallbackModelConfigurationStreamOptions$Outbound
|
|
3536
3343
|
| null
|
|
3537
3344
|
| undefined;
|
|
3538
|
-
thinking?:
|
|
3345
|
+
thinking?:
|
|
3346
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3347
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3348
|
+
| undefined;
|
|
3539
3349
|
temperature?: number | null | undefined;
|
|
3540
3350
|
top_p?: number | null | undefined;
|
|
3541
3351
|
top_k?: number | null | undefined;
|
|
@@ -3572,8 +3382,10 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3572
3382
|
streamOptions: z.nullable(
|
|
3573
3383
|
z.lazy(() => FallbackModelConfigurationStreamOptions$outboundSchema),
|
|
3574
3384
|
).optional(),
|
|
3575
|
-
thinking: z.
|
|
3576
|
-
.
|
|
3385
|
+
thinking: z.union([
|
|
3386
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3387
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3388
|
+
]).optional(),
|
|
3577
3389
|
temperature: z.nullable(z.number()).optional(),
|
|
3578
3390
|
topP: z.nullable(z.number()).optional(),
|
|
3579
3391
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -4681,7 +4493,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
4681
4493
|
unknown
|
|
4682
4494
|
> = z.object({
|
|
4683
4495
|
max_iterations: z.number().int().default(100),
|
|
4684
|
-
max_execution_time: z.number().int().default(
|
|
4496
|
+
max_execution_time: z.number().int().default(600),
|
|
4685
4497
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default(
|
|
4686
4498
|
"respect_tool",
|
|
4687
4499
|
),
|
|
@@ -4748,7 +4560,7 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
4748
4560
|
Settings
|
|
4749
4561
|
> = z.object({
|
|
4750
4562
|
maxIterations: z.number().int().default(100),
|
|
4751
|
-
maxExecutionTime: z.number().int().default(
|
|
4563
|
+
maxExecutionTime: z.number().int().default(600),
|
|
4752
4564
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
|
|
4753
4565
|
"respect_tool",
|
|
4754
4566
|
),
|
|
@@ -5266,7 +5078,7 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5266
5078
|
unknown
|
|
5267
5079
|
> = z.object({
|
|
5268
5080
|
max_iterations: z.number().int().default(100),
|
|
5269
|
-
max_execution_time: z.number().int().default(
|
|
5081
|
+
max_execution_time: z.number().int().default(600),
|
|
5270
5082
|
tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
|
|
5271
5083
|
.default("respect_tool"),
|
|
5272
5084
|
tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
|
|
@@ -5299,7 +5111,7 @@ export const CreateAgentRequestSettings$outboundSchema: z.ZodType<
|
|
|
5299
5111
|
CreateAgentRequestSettings
|
|
5300
5112
|
> = z.object({
|
|
5301
5113
|
maxIterations: z.number().int().default(100),
|
|
5302
|
-
maxExecutionTime: z.number().int().default(
|
|
5114
|
+
maxExecutionTime: z.number().int().default(600),
|
|
5303
5115
|
toolApprovalRequired: CreateAgentRequestToolApprovalRequired$outboundSchema
|
|
5304
5116
|
.default("respect_tool"),
|
|
5305
5117
|
tools: z.array(z.lazy(() => CreateAgentRequestTools$outboundSchema))
|
|
@@ -5737,61 +5549,29 @@ export function createAgentRequestStreamOptionsFromJSON(
|
|
|
5737
5549
|
);
|
|
5738
5550
|
}
|
|
5739
5551
|
|
|
5740
|
-
/** @internal */
|
|
5741
|
-
export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
|
|
5742
|
-
typeof CreateAgentRequestType
|
|
5743
|
-
> = z.nativeEnum(CreateAgentRequestType);
|
|
5744
|
-
/** @internal */
|
|
5745
|
-
export const CreateAgentRequestType$outboundSchema: z.ZodNativeEnum<
|
|
5746
|
-
typeof CreateAgentRequestType
|
|
5747
|
-
> = CreateAgentRequestType$inboundSchema;
|
|
5748
|
-
|
|
5749
|
-
/** @internal */
|
|
5750
|
-
export const CreateAgentRequestThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
5751
|
-
typeof CreateAgentRequestThinkingLevel
|
|
5752
|
-
> = z.nativeEnum(CreateAgentRequestThinkingLevel);
|
|
5753
|
-
/** @internal */
|
|
5754
|
-
export const CreateAgentRequestThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
5755
|
-
typeof CreateAgentRequestThinkingLevel
|
|
5756
|
-
> = CreateAgentRequestThinkingLevel$inboundSchema;
|
|
5757
|
-
|
|
5758
5552
|
/** @internal */
|
|
5759
5553
|
export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
5760
5554
|
CreateAgentRequestThinking,
|
|
5761
5555
|
z.ZodTypeDef,
|
|
5762
5556
|
unknown
|
|
5763
|
-
> = z.
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
}).transform((v) => {
|
|
5768
|
-
return remap$(v, {
|
|
5769
|
-
"budget_tokens": "budgetTokens",
|
|
5770
|
-
"thinking_level": "thinkingLevel",
|
|
5771
|
-
});
|
|
5772
|
-
});
|
|
5557
|
+
> = z.union([
|
|
5558
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5559
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5560
|
+
]);
|
|
5773
5561
|
/** @internal */
|
|
5774
|
-
export type CreateAgentRequestThinking$Outbound =
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
thinking_level?: string | undefined;
|
|
5778
|
-
};
|
|
5562
|
+
export type CreateAgentRequestThinking$Outbound =
|
|
5563
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
5564
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
5779
5565
|
|
|
5780
5566
|
/** @internal */
|
|
5781
5567
|
export const CreateAgentRequestThinking$outboundSchema: z.ZodType<
|
|
5782
5568
|
CreateAgentRequestThinking$Outbound,
|
|
5783
5569
|
z.ZodTypeDef,
|
|
5784
5570
|
CreateAgentRequestThinking
|
|
5785
|
-
> = z.
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
}).transform((v) => {
|
|
5790
|
-
return remap$(v, {
|
|
5791
|
-
budgetTokens: "budget_tokens",
|
|
5792
|
-
thinkingLevel: "thinking_level",
|
|
5793
|
-
});
|
|
5794
|
-
});
|
|
5571
|
+
> = z.union([
|
|
5572
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
5573
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
5574
|
+
]);
|
|
5795
5575
|
|
|
5796
5576
|
export function createAgentRequestThinkingToJSON(
|
|
5797
5577
|
createAgentRequestThinking: CreateAgentRequestThinking,
|
|
@@ -6006,7 +5786,10 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6006
5786
|
stream_options: z.nullable(
|
|
6007
5787
|
z.lazy(() => CreateAgentRequestStreamOptions$inboundSchema),
|
|
6008
5788
|
).optional(),
|
|
6009
|
-
thinking: z.
|
|
5789
|
+
thinking: z.union([
|
|
5790
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5791
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5792
|
+
]).optional(),
|
|
6010
5793
|
temperature: z.nullable(z.number()).optional(),
|
|
6011
5794
|
top_p: z.nullable(z.number()).optional(),
|
|
6012
5795
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -6053,7 +5836,10 @@ export type CreateAgentRequestParameters$Outbound = {
|
|
|
6053
5836
|
seed?: number | null | undefined;
|
|
6054
5837
|
stop?: string | Array<string> | null | undefined;
|
|
6055
5838
|
stream_options?: CreateAgentRequestStreamOptions$Outbound | null | undefined;
|
|
6056
|
-
thinking?:
|
|
5839
|
+
thinking?:
|
|
5840
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
5841
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
5842
|
+
| undefined;
|
|
6057
5843
|
temperature?: number | null | undefined;
|
|
6058
5844
|
top_p?: number | null | undefined;
|
|
6059
5845
|
top_k?: number | null | undefined;
|
|
@@ -6094,7 +5880,10 @@ export const CreateAgentRequestParameters$outboundSchema: z.ZodType<
|
|
|
6094
5880
|
streamOptions: z.nullable(
|
|
6095
5881
|
z.lazy(() => CreateAgentRequestStreamOptions$outboundSchema),
|
|
6096
5882
|
).optional(),
|
|
6097
|
-
thinking: z.
|
|
5883
|
+
thinking: z.union([
|
|
5884
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
5885
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
5886
|
+
]).optional(),
|
|
6098
5887
|
temperature: z.nullable(z.number()).optional(),
|
|
6099
5888
|
topP: z.nullable(z.number()).optional(),
|
|
6100
5889
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -6650,50 +6439,20 @@ export function createAgentRequestFallbackModelConfigurationStreamOptionsFromJSO
|
|
|
6650
6439
|
);
|
|
6651
6440
|
}
|
|
6652
6441
|
|
|
6653
|
-
/** @internal */
|
|
6654
|
-
export const CreateAgentRequestFallbackModelConfigurationType$inboundSchema:
|
|
6655
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
|
|
6656
|
-
.nativeEnum(CreateAgentRequestFallbackModelConfigurationType);
|
|
6657
|
-
/** @internal */
|
|
6658
|
-
export const CreateAgentRequestFallbackModelConfigurationType$outboundSchema:
|
|
6659
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> =
|
|
6660
|
-
CreateAgentRequestFallbackModelConfigurationType$inboundSchema;
|
|
6661
|
-
|
|
6662
|
-
/** @internal */
|
|
6663
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
6664
|
-
z.ZodNativeEnum<
|
|
6665
|
-
typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
6666
|
-
> = z.nativeEnum(CreateAgentRequestFallbackModelConfigurationThinkingLevel);
|
|
6667
|
-
/** @internal */
|
|
6668
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
6669
|
-
z.ZodNativeEnum<
|
|
6670
|
-
typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
6671
|
-
> = CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
6672
|
-
|
|
6673
6442
|
/** @internal */
|
|
6674
6443
|
export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
6675
6444
|
z.ZodType<
|
|
6676
6445
|
CreateAgentRequestFallbackModelConfigurationThinking,
|
|
6677
6446
|
z.ZodTypeDef,
|
|
6678
6447
|
unknown
|
|
6679
|
-
> = z.
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
6684
|
-
.optional(),
|
|
6685
|
-
}).transform((v) => {
|
|
6686
|
-
return remap$(v, {
|
|
6687
|
-
"budget_tokens": "budgetTokens",
|
|
6688
|
-
"thinking_level": "thinkingLevel",
|
|
6689
|
-
});
|
|
6690
|
-
});
|
|
6448
|
+
> = z.union([
|
|
6449
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6450
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6451
|
+
]);
|
|
6691
6452
|
/** @internal */
|
|
6692
|
-
export type CreateAgentRequestFallbackModelConfigurationThinking$Outbound =
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
thinking_level?: string | undefined;
|
|
6696
|
-
};
|
|
6453
|
+
export type CreateAgentRequestFallbackModelConfigurationThinking$Outbound =
|
|
6454
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6455
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
6697
6456
|
|
|
6698
6457
|
/** @internal */
|
|
6699
6458
|
export const CreateAgentRequestFallbackModelConfigurationThinking$outboundSchema:
|
|
@@ -6701,18 +6460,10 @@ export const CreateAgentRequestFallbackModelConfigurationThinking$outboundSchema
|
|
|
6701
6460
|
CreateAgentRequestFallbackModelConfigurationThinking$Outbound,
|
|
6702
6461
|
z.ZodTypeDef,
|
|
6703
6462
|
CreateAgentRequestFallbackModelConfigurationThinking
|
|
6704
|
-
> = z.
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
CreateAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
6709
|
-
.optional(),
|
|
6710
|
-
}).transform((v) => {
|
|
6711
|
-
return remap$(v, {
|
|
6712
|
-
budgetTokens: "budget_tokens",
|
|
6713
|
-
thinkingLevel: "thinking_level",
|
|
6714
|
-
});
|
|
6715
|
-
});
|
|
6463
|
+
> = z.union([
|
|
6464
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6465
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6466
|
+
]);
|
|
6716
6467
|
|
|
6717
6468
|
export function createAgentRequestFallbackModelConfigurationThinkingToJSON(
|
|
6718
6469
|
createAgentRequestFallbackModelConfigurationThinking:
|
|
@@ -6966,9 +6717,10 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6966
6717
|
CreateAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
6967
6718
|
),
|
|
6968
6719
|
).optional(),
|
|
6969
|
-
thinking: z.
|
|
6970
|
-
|
|
6971
|
-
|
|
6720
|
+
thinking: z.union([
|
|
6721
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6722
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6723
|
+
]).optional(),
|
|
6972
6724
|
temperature: z.nullable(z.number()).optional(),
|
|
6973
6725
|
top_p: z.nullable(z.number()).optional(),
|
|
6974
6726
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -7025,7 +6777,8 @@ export type CreateAgentRequestFallbackModelConfigurationParameters$Outbound = {
|
|
|
7025
6777
|
| null
|
|
7026
6778
|
| undefined;
|
|
7027
6779
|
thinking?:
|
|
7028
|
-
|
|
|
6780
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6781
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
7029
6782
|
| undefined;
|
|
7030
6783
|
temperature?: number | null | undefined;
|
|
7031
6784
|
top_p?: number | null | undefined;
|
|
@@ -7075,9 +6828,10 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$outboundSche
|
|
|
7075
6828
|
CreateAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema
|
|
7076
6829
|
),
|
|
7077
6830
|
).optional(),
|
|
7078
|
-
thinking: z.
|
|
7079
|
-
|
|
7080
|
-
|
|
6831
|
+
thinking: z.union([
|
|
6832
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6833
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6834
|
+
]).optional(),
|
|
7081
6835
|
temperature: z.nullable(z.number()).optional(),
|
|
7082
6836
|
topP: z.nullable(z.number()).optional(),
|
|
7083
6837
|
topK: z.nullable(z.number()).optional(),
|