@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
|
/**
|
|
@@ -128,48 +129,9 @@ export type ModelConfigurationStreamOptions = {
|
|
|
128
129
|
includeUsage?: boolean | undefined;
|
|
129
130
|
};
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
export const UpdateAgentModelConfigurationType = {
|
|
135
|
-
Enabled: "enabled",
|
|
136
|
-
Disabled: "disabled",
|
|
137
|
-
} as const;
|
|
138
|
-
/**
|
|
139
|
-
* Enables or disables the thinking mode capability
|
|
140
|
-
*/
|
|
141
|
-
export type UpdateAgentModelConfigurationType = ClosedEnum<
|
|
142
|
-
typeof UpdateAgentModelConfigurationType
|
|
143
|
-
>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* 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.
|
|
147
|
-
*/
|
|
148
|
-
export const ModelConfigurationThinkingLevel = {
|
|
149
|
-
Low: "low",
|
|
150
|
-
High: "high",
|
|
151
|
-
} as const;
|
|
152
|
-
/**
|
|
153
|
-
* 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.
|
|
154
|
-
*/
|
|
155
|
-
export type ModelConfigurationThinkingLevel = ClosedEnum<
|
|
156
|
-
typeof ModelConfigurationThinkingLevel
|
|
157
|
-
>;
|
|
158
|
-
|
|
159
|
-
export type ModelConfigurationThinking = {
|
|
160
|
-
/**
|
|
161
|
-
* Enables or disables the thinking mode capability
|
|
162
|
-
*/
|
|
163
|
-
type: UpdateAgentModelConfigurationType;
|
|
164
|
-
/**
|
|
165
|
-
* 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`.
|
|
166
|
-
*/
|
|
167
|
-
budgetTokens: number;
|
|
168
|
-
/**
|
|
169
|
-
* 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.
|
|
170
|
-
*/
|
|
171
|
-
thinkingLevel?: ModelConfigurationThinkingLevel | undefined;
|
|
172
|
-
};
|
|
132
|
+
export type ModelConfigurationThinking =
|
|
133
|
+
| components.ThinkingConfigDisabledSchema
|
|
134
|
+
| components.ThinkingConfigEnabledSchema;
|
|
173
135
|
|
|
174
136
|
/**
|
|
175
137
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -289,7 +251,10 @@ export type ModelConfigurationParameters = {
|
|
|
289
251
|
* Options for streaming response. Only set this when you set stream: true.
|
|
290
252
|
*/
|
|
291
253
|
streamOptions?: ModelConfigurationStreamOptions | null | undefined;
|
|
292
|
-
thinking?:
|
|
254
|
+
thinking?:
|
|
255
|
+
| components.ThinkingConfigDisabledSchema
|
|
256
|
+
| components.ThinkingConfigEnabledSchema
|
|
257
|
+
| undefined;
|
|
293
258
|
/**
|
|
294
259
|
* 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.
|
|
295
260
|
*/
|
|
@@ -476,50 +441,9 @@ export type UpdateAgentFallbackModelConfigurationStreamOptions = {
|
|
|
476
441
|
includeUsage?: boolean | undefined;
|
|
477
442
|
};
|
|
478
443
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
export const UpdateAgentFallbackModelConfigurationType = {
|
|
483
|
-
Enabled: "enabled",
|
|
484
|
-
Disabled: "disabled",
|
|
485
|
-
} as const;
|
|
486
|
-
/**
|
|
487
|
-
* Enables or disables the thinking mode capability
|
|
488
|
-
*/
|
|
489
|
-
export type UpdateAgentFallbackModelConfigurationType = ClosedEnum<
|
|
490
|
-
typeof UpdateAgentFallbackModelConfigurationType
|
|
491
|
-
>;
|
|
492
|
-
|
|
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
|
-
export const UpdateAgentFallbackModelConfigurationThinkingLevel = {
|
|
497
|
-
Low: "low",
|
|
498
|
-
High: "high",
|
|
499
|
-
} as const;
|
|
500
|
-
/**
|
|
501
|
-
* 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.
|
|
502
|
-
*/
|
|
503
|
-
export type UpdateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
504
|
-
typeof UpdateAgentFallbackModelConfigurationThinkingLevel
|
|
505
|
-
>;
|
|
506
|
-
|
|
507
|
-
export type UpdateAgentFallbackModelConfigurationThinking = {
|
|
508
|
-
/**
|
|
509
|
-
* Enables or disables the thinking mode capability
|
|
510
|
-
*/
|
|
511
|
-
type: UpdateAgentFallbackModelConfigurationType;
|
|
512
|
-
/**
|
|
513
|
-
* 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`.
|
|
514
|
-
*/
|
|
515
|
-
budgetTokens: number;
|
|
516
|
-
/**
|
|
517
|
-
* 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.
|
|
518
|
-
*/
|
|
519
|
-
thinkingLevel?:
|
|
520
|
-
| UpdateAgentFallbackModelConfigurationThinkingLevel
|
|
521
|
-
| undefined;
|
|
522
|
-
};
|
|
444
|
+
export type UpdateAgentFallbackModelConfigurationThinking =
|
|
445
|
+
| components.ThinkingConfigDisabledSchema
|
|
446
|
+
| components.ThinkingConfigEnabledSchema;
|
|
523
447
|
|
|
524
448
|
/**
|
|
525
449
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -644,7 +568,10 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
644
568
|
| UpdateAgentFallbackModelConfigurationStreamOptions
|
|
645
569
|
| null
|
|
646
570
|
| undefined;
|
|
647
|
-
thinking?:
|
|
571
|
+
thinking?:
|
|
572
|
+
| components.ThinkingConfigDisabledSchema
|
|
573
|
+
| components.ThinkingConfigEnabledSchema
|
|
574
|
+
| undefined;
|
|
648
575
|
/**
|
|
649
576
|
* 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.
|
|
650
577
|
*/
|
|
@@ -1391,46 +1318,9 @@ export type UpdateAgentStreamOptions = {
|
|
|
1391
1318
|
includeUsage?: boolean | undefined;
|
|
1392
1319
|
};
|
|
1393
1320
|
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
export const UpdateAgentType = {
|
|
1398
|
-
Enabled: "enabled",
|
|
1399
|
-
Disabled: "disabled",
|
|
1400
|
-
} as const;
|
|
1401
|
-
/**
|
|
1402
|
-
* Enables or disables the thinking mode capability
|
|
1403
|
-
*/
|
|
1404
|
-
export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* 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.
|
|
1408
|
-
*/
|
|
1409
|
-
export const UpdateAgentThinkingLevel = {
|
|
1410
|
-
Low: "low",
|
|
1411
|
-
High: "high",
|
|
1412
|
-
} as const;
|
|
1413
|
-
/**
|
|
1414
|
-
* 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.
|
|
1415
|
-
*/
|
|
1416
|
-
export type UpdateAgentThinkingLevel = ClosedEnum<
|
|
1417
|
-
typeof UpdateAgentThinkingLevel
|
|
1418
|
-
>;
|
|
1419
|
-
|
|
1420
|
-
export type UpdateAgentThinking = {
|
|
1421
|
-
/**
|
|
1422
|
-
* Enables or disables the thinking mode capability
|
|
1423
|
-
*/
|
|
1424
|
-
type: UpdateAgentType;
|
|
1425
|
-
/**
|
|
1426
|
-
* 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`.
|
|
1427
|
-
*/
|
|
1428
|
-
budgetTokens: number;
|
|
1429
|
-
/**
|
|
1430
|
-
* 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.
|
|
1431
|
-
*/
|
|
1432
|
-
thinkingLevel?: UpdateAgentThinkingLevel | undefined;
|
|
1433
|
-
};
|
|
1321
|
+
export type UpdateAgentThinking =
|
|
1322
|
+
| components.ThinkingConfigDisabledSchema
|
|
1323
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1434
1324
|
|
|
1435
1325
|
/**
|
|
1436
1326
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1550,7 +1440,10 @@ export type UpdateAgentParameters = {
|
|
|
1550
1440
|
* Options for streaming response. Only set this when you set stream: true.
|
|
1551
1441
|
*/
|
|
1552
1442
|
streamOptions?: UpdateAgentStreamOptions | null | undefined;
|
|
1553
|
-
thinking?:
|
|
1443
|
+
thinking?:
|
|
1444
|
+
| components.ThinkingConfigDisabledSchema
|
|
1445
|
+
| components.ThinkingConfigEnabledSchema
|
|
1446
|
+
| undefined;
|
|
1554
1447
|
/**
|
|
1555
1448
|
* 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.
|
|
1556
1449
|
*/
|
|
@@ -1718,49 +1611,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsStreamOptions = {
|
|
|
1718
1611
|
includeUsage?: boolean | undefined;
|
|
1719
1612
|
};
|
|
1720
1613
|
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
export const UpdateAgentFallbackModelConfigurationAgentsType = {
|
|
1725
|
-
Enabled: "enabled",
|
|
1726
|
-
Disabled: "disabled",
|
|
1727
|
-
} as const;
|
|
1728
|
-
/**
|
|
1729
|
-
* Enables or disables the thinking mode capability
|
|
1730
|
-
*/
|
|
1731
|
-
export type UpdateAgentFallbackModelConfigurationAgentsType = ClosedEnum<
|
|
1732
|
-
typeof UpdateAgentFallbackModelConfigurationAgentsType
|
|
1733
|
-
>;
|
|
1734
|
-
|
|
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
|
-
export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel = {
|
|
1739
|
-
Low: "low",
|
|
1740
|
-
High: "high",
|
|
1741
|
-
} as const;
|
|
1742
|
-
/**
|
|
1743
|
-
* 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.
|
|
1744
|
-
*/
|
|
1745
|
-
export type UpdateAgentFallbackModelConfigurationAgentsThinkingLevel =
|
|
1746
|
-
ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel>;
|
|
1747
|
-
|
|
1748
|
-
export type UpdateAgentFallbackModelConfigurationAgentsThinking = {
|
|
1749
|
-
/**
|
|
1750
|
-
* Enables or disables the thinking mode capability
|
|
1751
|
-
*/
|
|
1752
|
-
type: UpdateAgentFallbackModelConfigurationAgentsType;
|
|
1753
|
-
/**
|
|
1754
|
-
* 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`.
|
|
1755
|
-
*/
|
|
1756
|
-
budgetTokens: number;
|
|
1757
|
-
/**
|
|
1758
|
-
* 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.
|
|
1759
|
-
*/
|
|
1760
|
-
thinkingLevel?:
|
|
1761
|
-
| UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
|
|
1762
|
-
| undefined;
|
|
1763
|
-
};
|
|
1614
|
+
export type UpdateAgentFallbackModelConfigurationAgentsThinking =
|
|
1615
|
+
| components.ThinkingConfigDisabledSchema
|
|
1616
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1764
1617
|
|
|
1765
1618
|
/**
|
|
1766
1619
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1885,7 +1738,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
1885
1738
|
| UpdateAgentFallbackModelConfigurationAgentsStreamOptions
|
|
1886
1739
|
| null
|
|
1887
1740
|
| undefined;
|
|
1888
|
-
thinking?:
|
|
1741
|
+
thinking?:
|
|
1742
|
+
| components.ThinkingConfigDisabledSchema
|
|
1743
|
+
| components.ThinkingConfigEnabledSchema
|
|
1744
|
+
| undefined;
|
|
1889
1745
|
/**
|
|
1890
1746
|
* 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.
|
|
1891
1747
|
*/
|
|
@@ -2434,61 +2290,29 @@ export function modelConfigurationStreamOptionsFromJSON(
|
|
|
2434
2290
|
);
|
|
2435
2291
|
}
|
|
2436
2292
|
|
|
2437
|
-
/** @internal */
|
|
2438
|
-
export const UpdateAgentModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
2439
|
-
typeof UpdateAgentModelConfigurationType
|
|
2440
|
-
> = z.nativeEnum(UpdateAgentModelConfigurationType);
|
|
2441
|
-
/** @internal */
|
|
2442
|
-
export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
2443
|
-
typeof UpdateAgentModelConfigurationType
|
|
2444
|
-
> = UpdateAgentModelConfigurationType$inboundSchema;
|
|
2445
|
-
|
|
2446
|
-
/** @internal */
|
|
2447
|
-
export const ModelConfigurationThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2448
|
-
typeof ModelConfigurationThinkingLevel
|
|
2449
|
-
> = z.nativeEnum(ModelConfigurationThinkingLevel);
|
|
2450
|
-
/** @internal */
|
|
2451
|
-
export const ModelConfigurationThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2452
|
-
typeof ModelConfigurationThinkingLevel
|
|
2453
|
-
> = ModelConfigurationThinkingLevel$inboundSchema;
|
|
2454
|
-
|
|
2455
2293
|
/** @internal */
|
|
2456
2294
|
export const ModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
2457
2295
|
ModelConfigurationThinking,
|
|
2458
2296
|
z.ZodTypeDef,
|
|
2459
2297
|
unknown
|
|
2460
|
-
> = z.
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
}).transform((v) => {
|
|
2465
|
-
return remap$(v, {
|
|
2466
|
-
"budget_tokens": "budgetTokens",
|
|
2467
|
-
"thinking_level": "thinkingLevel",
|
|
2468
|
-
});
|
|
2469
|
-
});
|
|
2298
|
+
> = z.union([
|
|
2299
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2300
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2301
|
+
]);
|
|
2470
2302
|
/** @internal */
|
|
2471
|
-
export type ModelConfigurationThinking$Outbound =
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
thinking_level?: string | undefined;
|
|
2475
|
-
};
|
|
2303
|
+
export type ModelConfigurationThinking$Outbound =
|
|
2304
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2305
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2476
2306
|
|
|
2477
2307
|
/** @internal */
|
|
2478
2308
|
export const ModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
2479
2309
|
ModelConfigurationThinking$Outbound,
|
|
2480
2310
|
z.ZodTypeDef,
|
|
2481
2311
|
ModelConfigurationThinking
|
|
2482
|
-
> = z.
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
}).transform((v) => {
|
|
2487
|
-
return remap$(v, {
|
|
2488
|
-
budgetTokens: "budget_tokens",
|
|
2489
|
-
thinkingLevel: "thinking_level",
|
|
2490
|
-
});
|
|
2491
|
-
});
|
|
2312
|
+
> = z.union([
|
|
2313
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2314
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2315
|
+
]);
|
|
2492
2316
|
|
|
2493
2317
|
export function modelConfigurationThinkingToJSON(
|
|
2494
2318
|
modelConfigurationThinking: ModelConfigurationThinking,
|
|
@@ -2688,7 +2512,10 @@ export const ModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
2688
2512
|
stream_options: z.nullable(
|
|
2689
2513
|
z.lazy(() => ModelConfigurationStreamOptions$inboundSchema),
|
|
2690
2514
|
).optional(),
|
|
2691
|
-
thinking: z.
|
|
2515
|
+
thinking: z.union([
|
|
2516
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2517
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2518
|
+
]).optional(),
|
|
2692
2519
|
temperature: z.nullable(z.number()).optional(),
|
|
2693
2520
|
top_p: z.nullable(z.number()).optional(),
|
|
2694
2521
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -2735,7 +2562,10 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
2735
2562
|
seed?: number | null | undefined;
|
|
2736
2563
|
stop?: string | Array<string> | null | undefined;
|
|
2737
2564
|
stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
|
|
2738
|
-
thinking?:
|
|
2565
|
+
thinking?:
|
|
2566
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2567
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2568
|
+
| undefined;
|
|
2739
2569
|
temperature?: number | null | undefined;
|
|
2740
2570
|
top_p?: number | null | undefined;
|
|
2741
2571
|
top_k?: number | null | undefined;
|
|
@@ -2772,7 +2602,10 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2772
2602
|
streamOptions: z.nullable(
|
|
2773
2603
|
z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
|
|
2774
2604
|
).optional(),
|
|
2775
|
-
thinking: z.
|
|
2605
|
+
thinking: z.union([
|
|
2606
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2607
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2608
|
+
]).optional(),
|
|
2776
2609
|
temperature: z.nullable(z.number()).optional(),
|
|
2777
2610
|
topP: z.nullable(z.number()).optional(),
|
|
2778
2611
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -3406,48 +3239,20 @@ export function updateAgentFallbackModelConfigurationStreamOptionsFromJSON(
|
|
|
3406
3239
|
);
|
|
3407
3240
|
}
|
|
3408
3241
|
|
|
3409
|
-
/** @internal */
|
|
3410
|
-
export const UpdateAgentFallbackModelConfigurationType$inboundSchema:
|
|
3411
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
|
|
3412
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationType);
|
|
3413
|
-
/** @internal */
|
|
3414
|
-
export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
|
|
3415
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> =
|
|
3416
|
-
UpdateAgentFallbackModelConfigurationType$inboundSchema;
|
|
3417
|
-
|
|
3418
|
-
/** @internal */
|
|
3419
|
-
export const UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
3420
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> = z
|
|
3421
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationThinkingLevel);
|
|
3422
|
-
/** @internal */
|
|
3423
|
-
export const UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3424
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> =
|
|
3425
|
-
UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3426
|
-
|
|
3427
3242
|
/** @internal */
|
|
3428
3243
|
export const UpdateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
3429
3244
|
z.ZodType<
|
|
3430
3245
|
UpdateAgentFallbackModelConfigurationThinking,
|
|
3431
3246
|
z.ZodTypeDef,
|
|
3432
3247
|
unknown
|
|
3433
|
-
> = z.
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
3438
|
-
.optional(),
|
|
3439
|
-
}).transform((v) => {
|
|
3440
|
-
return remap$(v, {
|
|
3441
|
-
"budget_tokens": "budgetTokens",
|
|
3442
|
-
"thinking_level": "thinkingLevel",
|
|
3443
|
-
});
|
|
3444
|
-
});
|
|
3248
|
+
> = z.union([
|
|
3249
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3250
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3251
|
+
]);
|
|
3445
3252
|
/** @internal */
|
|
3446
|
-
export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
thinking_level?: string | undefined;
|
|
3450
|
-
};
|
|
3253
|
+
export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
|
|
3254
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3255
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
3451
3256
|
|
|
3452
3257
|
/** @internal */
|
|
3453
3258
|
export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
@@ -3455,18 +3260,10 @@ export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
|
3455
3260
|
UpdateAgentFallbackModelConfigurationThinking$Outbound,
|
|
3456
3261
|
z.ZodTypeDef,
|
|
3457
3262
|
UpdateAgentFallbackModelConfigurationThinking
|
|
3458
|
-
> = z.
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
3463
|
-
.optional(),
|
|
3464
|
-
}).transform((v) => {
|
|
3465
|
-
return remap$(v, {
|
|
3466
|
-
budgetTokens: "budget_tokens",
|
|
3467
|
-
thinkingLevel: "thinking_level",
|
|
3468
|
-
});
|
|
3469
|
-
});
|
|
3263
|
+
> = z.union([
|
|
3264
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3265
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3266
|
+
]);
|
|
3470
3267
|
|
|
3471
3268
|
export function updateAgentFallbackModelConfigurationThinkingToJSON(
|
|
3472
3269
|
updateAgentFallbackModelConfigurationThinking:
|
|
@@ -3692,9 +3489,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
|
|
|
3692
3489
|
UpdateAgentFallbackModelConfigurationStreamOptions$inboundSchema
|
|
3693
3490
|
),
|
|
3694
3491
|
).optional(),
|
|
3695
|
-
thinking: z.
|
|
3696
|
-
|
|
3697
|
-
|
|
3492
|
+
thinking: z.union([
|
|
3493
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3494
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3495
|
+
]).optional(),
|
|
3698
3496
|
temperature: z.nullable(z.number()).optional(),
|
|
3699
3497
|
top_p: z.nullable(z.number()).optional(),
|
|
3700
3498
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -3748,7 +3546,10 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3748
3546
|
| UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
3749
3547
|
| null
|
|
3750
3548
|
| undefined;
|
|
3751
|
-
thinking?:
|
|
3549
|
+
thinking?:
|
|
3550
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3551
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3552
|
+
| undefined;
|
|
3752
3553
|
temperature?: number | null | undefined;
|
|
3753
3554
|
top_p?: number | null | undefined;
|
|
3754
3555
|
top_k?: number | null | undefined;
|
|
@@ -3790,9 +3591,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3790
3591
|
UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
3791
3592
|
),
|
|
3792
3593
|
).optional(),
|
|
3793
|
-
thinking: z.
|
|
3794
|
-
|
|
3795
|
-
|
|
3594
|
+
thinking: z.union([
|
|
3595
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3596
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3597
|
+
]).optional(),
|
|
3796
3598
|
temperature: z.nullable(z.number()).optional(),
|
|
3797
3599
|
topP: z.nullable(z.number()).optional(),
|
|
3798
3600
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -5010,7 +4812,7 @@ export const UpdateAgentSettings$inboundSchema: z.ZodType<
|
|
|
5010
4812
|
unknown
|
|
5011
4813
|
> = z.object({
|
|
5012
4814
|
max_iterations: z.number().int().default(100),
|
|
5013
|
-
max_execution_time: z.number().int().default(
|
|
4815
|
+
max_execution_time: z.number().int().default(600),
|
|
5014
4816
|
tool_approval_required: UpdateAgentToolApprovalRequired$inboundSchema.default(
|
|
5015
4817
|
"respect_tool",
|
|
5016
4818
|
),
|
|
@@ -5079,7 +4881,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
|
|
|
5079
4881
|
UpdateAgentSettings
|
|
5080
4882
|
> = z.object({
|
|
5081
4883
|
maxIterations: z.number().int().default(100),
|
|
5082
|
-
maxExecutionTime: z.number().int().default(
|
|
4884
|
+
maxExecutionTime: z.number().int().default(600),
|
|
5083
4885
|
toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
|
|
5084
4886
|
"respect_tool",
|
|
5085
4887
|
),
|
|
@@ -5682,7 +5484,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
|
5682
5484
|
unknown
|
|
5683
5485
|
> = z.object({
|
|
5684
5486
|
max_iterations: z.number().int().default(100),
|
|
5685
|
-
max_execution_time: z.number().int().default(
|
|
5487
|
+
max_execution_time: z.number().int().default(600),
|
|
5686
5488
|
tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
|
|
5687
5489
|
.default("respect_tool"),
|
|
5688
5490
|
tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
|
|
@@ -5714,7 +5516,7 @@ export const UpdateAgentAgentsSettings$outboundSchema: z.ZodType<
|
|
|
5714
5516
|
UpdateAgentAgentsSettings
|
|
5715
5517
|
> = z.object({
|
|
5716
5518
|
maxIterations: z.number().int().default(100),
|
|
5717
|
-
maxExecutionTime: z.number().int().default(
|
|
5519
|
+
maxExecutionTime: z.number().int().default(600),
|
|
5718
5520
|
toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired$outboundSchema
|
|
5719
5521
|
.default("respect_tool"),
|
|
5720
5522
|
tools: z.array(z.lazy(() => UpdateAgentTools$outboundSchema)).optional(),
|
|
@@ -6159,61 +5961,29 @@ export function updateAgentStreamOptionsFromJSON(
|
|
|
6159
5961
|
);
|
|
6160
5962
|
}
|
|
6161
5963
|
|
|
6162
|
-
/** @internal */
|
|
6163
|
-
export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
|
|
6164
|
-
typeof UpdateAgentType
|
|
6165
|
-
> = z.nativeEnum(UpdateAgentType);
|
|
6166
|
-
/** @internal */
|
|
6167
|
-
export const UpdateAgentType$outboundSchema: z.ZodNativeEnum<
|
|
6168
|
-
typeof UpdateAgentType
|
|
6169
|
-
> = UpdateAgentType$inboundSchema;
|
|
6170
|
-
|
|
6171
|
-
/** @internal */
|
|
6172
|
-
export const UpdateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
6173
|
-
typeof UpdateAgentThinkingLevel
|
|
6174
|
-
> = z.nativeEnum(UpdateAgentThinkingLevel);
|
|
6175
|
-
/** @internal */
|
|
6176
|
-
export const UpdateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
6177
|
-
typeof UpdateAgentThinkingLevel
|
|
6178
|
-
> = UpdateAgentThinkingLevel$inboundSchema;
|
|
6179
|
-
|
|
6180
5964
|
/** @internal */
|
|
6181
5965
|
export const UpdateAgentThinking$inboundSchema: z.ZodType<
|
|
6182
5966
|
UpdateAgentThinking,
|
|
6183
5967
|
z.ZodTypeDef,
|
|
6184
5968
|
unknown
|
|
6185
|
-
> = z.
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
}).transform((v) => {
|
|
6190
|
-
return remap$(v, {
|
|
6191
|
-
"budget_tokens": "budgetTokens",
|
|
6192
|
-
"thinking_level": "thinkingLevel",
|
|
6193
|
-
});
|
|
6194
|
-
});
|
|
5969
|
+
> = z.union([
|
|
5970
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5971
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5972
|
+
]);
|
|
6195
5973
|
/** @internal */
|
|
6196
|
-
export type UpdateAgentThinking$Outbound =
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
thinking_level?: string | undefined;
|
|
6200
|
-
};
|
|
5974
|
+
export type UpdateAgentThinking$Outbound =
|
|
5975
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
5976
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
6201
5977
|
|
|
6202
5978
|
/** @internal */
|
|
6203
5979
|
export const UpdateAgentThinking$outboundSchema: z.ZodType<
|
|
6204
5980
|
UpdateAgentThinking$Outbound,
|
|
6205
5981
|
z.ZodTypeDef,
|
|
6206
5982
|
UpdateAgentThinking
|
|
6207
|
-
> = z.
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
}).transform((v) => {
|
|
6212
|
-
return remap$(v, {
|
|
6213
|
-
budgetTokens: "budget_tokens",
|
|
6214
|
-
thinkingLevel: "thinking_level",
|
|
6215
|
-
});
|
|
6216
|
-
});
|
|
5983
|
+
> = z.union([
|
|
5984
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
5985
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
5986
|
+
]);
|
|
6217
5987
|
|
|
6218
5988
|
export function updateAgentThinkingToJSON(
|
|
6219
5989
|
updateAgentThinking: UpdateAgentThinking,
|
|
@@ -6430,7 +6200,10 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6430
6200
|
stream_options: z.nullable(
|
|
6431
6201
|
z.lazy(() => UpdateAgentStreamOptions$inboundSchema),
|
|
6432
6202
|
).optional(),
|
|
6433
|
-
thinking: z.
|
|
6203
|
+
thinking: z.union([
|
|
6204
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6205
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6206
|
+
]).optional(),
|
|
6434
6207
|
temperature: z.nullable(z.number()).optional(),
|
|
6435
6208
|
top_p: z.nullable(z.number()).optional(),
|
|
6436
6209
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -6477,7 +6250,10 @@ export type UpdateAgentParameters$Outbound = {
|
|
|
6477
6250
|
seed?: number | null | undefined;
|
|
6478
6251
|
stop?: string | Array<string> | null | undefined;
|
|
6479
6252
|
stream_options?: UpdateAgentStreamOptions$Outbound | null | undefined;
|
|
6480
|
-
thinking?:
|
|
6253
|
+
thinking?:
|
|
6254
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6255
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
6256
|
+
| undefined;
|
|
6481
6257
|
temperature?: number | null | undefined;
|
|
6482
6258
|
top_p?: number | null | undefined;
|
|
6483
6259
|
top_k?: number | null | undefined;
|
|
@@ -6519,7 +6295,10 @@ export const UpdateAgentParameters$outboundSchema: z.ZodType<
|
|
|
6519
6295
|
streamOptions: z.nullable(
|
|
6520
6296
|
z.lazy(() => UpdateAgentStreamOptions$outboundSchema),
|
|
6521
6297
|
).optional(),
|
|
6522
|
-
thinking: z.
|
|
6298
|
+
thinking: z.union([
|
|
6299
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6300
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6301
|
+
]).optional(),
|
|
6523
6302
|
temperature: z.nullable(z.number()).optional(),
|
|
6524
6303
|
topP: z.nullable(z.number()).optional(),
|
|
6525
6304
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -7076,50 +6855,20 @@ export function updateAgentFallbackModelConfigurationAgentsStreamOptionsFromJSON
|
|
|
7076
6855
|
);
|
|
7077
6856
|
}
|
|
7078
6857
|
|
|
7079
|
-
/** @internal */
|
|
7080
|
-
export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
|
|
7081
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
|
|
7082
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
|
|
7083
|
-
/** @internal */
|
|
7084
|
-
export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
|
|
7085
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> =
|
|
7086
|
-
UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema;
|
|
7087
|
-
|
|
7088
|
-
/** @internal */
|
|
7089
|
-
export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema:
|
|
7090
|
-
z.ZodNativeEnum<
|
|
7091
|
-
typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
|
|
7092
|
-
> = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsThinkingLevel);
|
|
7093
|
-
/** @internal */
|
|
7094
|
-
export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema:
|
|
7095
|
-
z.ZodNativeEnum<
|
|
7096
|
-
typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
|
|
7097
|
-
> = UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema;
|
|
7098
|
-
|
|
7099
6858
|
/** @internal */
|
|
7100
6859
|
export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
|
|
7101
6860
|
z.ZodType<
|
|
7102
6861
|
UpdateAgentFallbackModelConfigurationAgentsThinking,
|
|
7103
6862
|
z.ZodTypeDef,
|
|
7104
6863
|
unknown
|
|
7105
|
-
> = z.
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema
|
|
7110
|
-
.optional(),
|
|
7111
|
-
}).transform((v) => {
|
|
7112
|
-
return remap$(v, {
|
|
7113
|
-
"budget_tokens": "budgetTokens",
|
|
7114
|
-
"thinking_level": "thinkingLevel",
|
|
7115
|
-
});
|
|
7116
|
-
});
|
|
6864
|
+
> = z.union([
|
|
6865
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6866
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6867
|
+
]);
|
|
7117
6868
|
/** @internal */
|
|
7118
|
-
export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound =
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
thinking_level?: string | undefined;
|
|
7122
|
-
};
|
|
6869
|
+
export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound =
|
|
6870
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6871
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
7123
6872
|
|
|
7124
6873
|
/** @internal */
|
|
7125
6874
|
export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
|
|
@@ -7127,18 +6876,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
|
|
|
7127
6876
|
UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound,
|
|
7128
6877
|
z.ZodTypeDef,
|
|
7129
6878
|
UpdateAgentFallbackModelConfigurationAgentsThinking
|
|
7130
|
-
> = z.
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema
|
|
7135
|
-
.optional(),
|
|
7136
|
-
}).transform((v) => {
|
|
7137
|
-
return remap$(v, {
|
|
7138
|
-
budgetTokens: "budget_tokens",
|
|
7139
|
-
thinkingLevel: "thinking_level",
|
|
7140
|
-
});
|
|
7141
|
-
});
|
|
6879
|
+
> = z.union([
|
|
6880
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6881
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6882
|
+
]);
|
|
7142
6883
|
|
|
7143
6884
|
export function updateAgentFallbackModelConfigurationAgentsThinkingToJSON(
|
|
7144
6885
|
updateAgentFallbackModelConfigurationAgentsThinking:
|
|
@@ -7391,9 +7132,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7391
7132
|
UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema
|
|
7392
7133
|
),
|
|
7393
7134
|
).optional(),
|
|
7394
|
-
thinking: z.
|
|
7395
|
-
|
|
7396
|
-
|
|
7135
|
+
thinking: z.union([
|
|
7136
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7137
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
7138
|
+
]).optional(),
|
|
7397
7139
|
temperature: z.nullable(z.number()).optional(),
|
|
7398
7140
|
top_p: z.nullable(z.number()).optional(),
|
|
7399
7141
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -7450,7 +7192,8 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters$Outbound = {
|
|
|
7450
7192
|
| null
|
|
7451
7193
|
| undefined;
|
|
7452
7194
|
thinking?:
|
|
7453
|
-
|
|
|
7195
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
7196
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
7454
7197
|
| undefined;
|
|
7455
7198
|
temperature?: number | null | undefined;
|
|
7456
7199
|
top_p?: number | null | undefined;
|
|
@@ -7502,9 +7245,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
|
|
|
7502
7245
|
UpdateAgentFallbackModelConfigurationAgentsStreamOptions$outboundSchema
|
|
7503
7246
|
),
|
|
7504
7247
|
).optional(),
|
|
7505
|
-
thinking: z.
|
|
7506
|
-
|
|
7507
|
-
|
|
7248
|
+
thinking: z.union([
|
|
7249
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
7250
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
7251
|
+
]).optional(),
|
|
7508
7252
|
temperature: z.nullable(z.number()).optional(),
|
|
7509
7253
|
topP: z.nullable(z.number()).optional(),
|
|
7510
7254
|
topK: z.nullable(z.number()).optional(),
|