@orq-ai/node 4.18.0-rc.3 → 4.18.0-rc.4
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/budgetscope.d.ts +2 -2
- package/models/components/budgetscoperestresponse.d.ts +2 -2
- package/models/components/budgetusage.d.ts +1 -4
- package/models/components/budgetusage.d.ts.map +1 -1
- package/models/components/budgetusage.js.map +1 -1
- package/models/components/classifypromptcacheoptions.d.ts +46 -0
- package/models/components/classifypromptcacheoptions.d.ts.map +1 -0
- package/models/components/classifypromptcacheoptions.js +67 -0
- package/models/components/classifypromptcacheoptions.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/openaipromptcacheoptions.d.ts +5 -5
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -1
- package/models/components/openaipromptcacheoptions.js +6 -6
- package/models/components/openaipromptcacheoptions.js.map +1 -1
- package/models/components/providerbudgetscope.d.ts +2 -2
- package/models/components/querylogsresponse.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/spansummary.d.ts +7 -5
- package/models/components/spansummary.d.ts.map +1 -1
- package/models/components/spansummary.js.map +1 -1
- package/models/components/thinkingconfigadaptiveschema.d.ts +22 -0
- package/models/components/thinkingconfigadaptiveschema.d.ts.map +1 -1
- package/models/components/thinkingconfigadaptiveschema.js +15 -1
- package/models/components/thinkingconfigadaptiveschema.js.map +1 -1
- package/models/components/thinkingconfigbetweentoolsschema.d.ts +47 -0
- package/models/components/thinkingconfigbetweentoolsschema.d.ts.map +1 -0
- package/models/components/thinkingconfigbetweentoolsschema.js +84 -0
- package/models/components/thinkingconfigbetweentoolsschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +21 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
- package/models/components/thinkingconfigenabledschema.js +16 -1
- package/models/components/thinkingconfigenabledschema.js.map +1 -1
- package/models/components/thinkingparam.d.ts +4 -4
- package/models/components/thinkingparam.d.ts.map +1 -1
- package/models/components/thinkingparam.js +4 -5
- package/models/components/thinkingparam.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +12 -12
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +8 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +4 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createclassify.d.ts +18 -11
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +5 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createcompletion.d.ts +4 -4
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -0
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdecisions.d.ts +18 -11
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +5 -0
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createprompt.d.ts +6 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +4 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +2 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +2 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +4 -4
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/listpromptversions.d.ts +2 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +4 -4
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +4 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +8 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +5 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +12 -12
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +8 -0
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateprompt.d.ts +6 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/budgetscope.ts +2 -2
- package/src/models/components/budgetscoperestresponse.ts +2 -2
- package/src/models/components/budgetusage.ts +1 -4
- package/src/models/components/classifypromptcacheoptions.ts +76 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/openaipromptcacheoptions.ts +13 -8
- package/src/models/components/providerbudgetscope.ts +2 -2
- package/src/models/components/querylogsresponse.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/spansummary.ts +7 -5
- package/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
- package/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
- package/src/models/components/thinkingconfigenabledschema.ts +27 -0
- package/src/models/components/thinkingparam.ts +7 -6
- package/src/models/operations/createagentrequest.ts +26 -6
- package/src/models/operations/createchatcompletion.ts +8 -2
- package/src/models/operations/createclassify.ts +25 -11
- package/src/models/operations/createcompletion.ts +8 -2
- package/src/models/operations/createdecisions.ts +25 -11
- package/src/models/operations/createprompt.ts +13 -3
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +5 -1
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +5 -1
- package/src/models/operations/getpromptversion.ts +5 -1
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +10 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/listpromptversions.ts +5 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +10 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +17 -5
- package/src/models/operations/streamrunagent.ts +17 -5
- package/src/models/operations/updateagent.ts +26 -6
- package/src/models/operations/updateprompt.ts +13 -3
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m5y34ekwp6dmtq9r6h89fdft"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -30,14 +30,16 @@ export type SpanSummary = {
|
|
|
30
30
|
level?: number | undefined;
|
|
31
31
|
hasChildren?: boolean | undefined;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* trace_framework is set on the trace root, leading_span_type where the
|
|
37
|
-
* ingest marked one, guardrail_enabled on evaluator spans run as guardrails.
|
|
33
|
+
* Framework that produced the trace, recorded on the root span.
|
|
38
34
|
*/
|
|
39
35
|
traceFramework?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Span type assigned at ingest when the trace has one.
|
|
38
|
+
*/
|
|
40
39
|
leadingSpanType?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the span is an evaluator span running as a guardrail.
|
|
42
|
+
*/
|
|
41
43
|
guardrailEnabled?: boolean | undefined;
|
|
42
44
|
/**
|
|
43
45
|
* Why the span's generation stopped, for example stop, length or content_filter.
|
|
@@ -4,9 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
13
|
+
*/
|
|
14
|
+
export const ThinkingConfigAdaptiveSchemaDisplay = {
|
|
15
|
+
Summarized: "summarized",
|
|
16
|
+
Omitted: "omitted",
|
|
17
|
+
Updates: "updates",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
21
|
+
*/
|
|
22
|
+
export type ThinkingConfigAdaptiveSchemaDisplay = ClosedEnum<
|
|
23
|
+
typeof ThinkingConfigAdaptiveSchemaDisplay
|
|
24
|
+
>;
|
|
25
|
+
|
|
10
26
|
/**
|
|
11
27
|
* Enables adaptive thinking mode where the model dynamically determines thinking depth
|
|
12
28
|
*/
|
|
@@ -15,8 +31,21 @@ export type ThinkingConfigAdaptiveSchema = {
|
|
|
15
31
|
* Lets the model dynamically determine when and how much to use extended thinking based on the complexity of each request. Supported on Claude Opus 4.6 and Sonnet 4.6.
|
|
16
32
|
*/
|
|
17
33
|
type: "adaptive";
|
|
34
|
+
/**
|
|
35
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
36
|
+
*/
|
|
37
|
+
display?: ThinkingConfigAdaptiveSchemaDisplay | undefined;
|
|
18
38
|
};
|
|
19
39
|
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ThinkingConfigAdaptiveSchemaDisplay$inboundSchema: z.ZodNativeEnum<
|
|
42
|
+
typeof ThinkingConfigAdaptiveSchemaDisplay
|
|
43
|
+
> = z.nativeEnum(ThinkingConfigAdaptiveSchemaDisplay);
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ThinkingConfigAdaptiveSchemaDisplay$outboundSchema:
|
|
46
|
+
z.ZodNativeEnum<typeof ThinkingConfigAdaptiveSchemaDisplay> =
|
|
47
|
+
ThinkingConfigAdaptiveSchemaDisplay$inboundSchema;
|
|
48
|
+
|
|
20
49
|
/** @internal */
|
|
21
50
|
export const ThinkingConfigAdaptiveSchema$inboundSchema: z.ZodType<
|
|
22
51
|
ThinkingConfigAdaptiveSchema,
|
|
@@ -24,10 +53,12 @@ export const ThinkingConfigAdaptiveSchema$inboundSchema: z.ZodType<
|
|
|
24
53
|
unknown
|
|
25
54
|
> = z.object({
|
|
26
55
|
type: z.literal("adaptive"),
|
|
56
|
+
display: ThinkingConfigAdaptiveSchemaDisplay$inboundSchema.optional(),
|
|
27
57
|
});
|
|
28
58
|
/** @internal */
|
|
29
59
|
export type ThinkingConfigAdaptiveSchema$Outbound = {
|
|
30
60
|
type: "adaptive";
|
|
61
|
+
display?: string | undefined;
|
|
31
62
|
};
|
|
32
63
|
|
|
33
64
|
/** @internal */
|
|
@@ -37,6 +68,7 @@ export const ThinkingConfigAdaptiveSchema$outboundSchema: z.ZodType<
|
|
|
37
68
|
ThinkingConfigAdaptiveSchema
|
|
38
69
|
> = z.object({
|
|
39
70
|
type: z.literal("adaptive"),
|
|
71
|
+
display: ThinkingConfigAdaptiveSchemaDisplay$outboundSchema.optional(),
|
|
40
72
|
});
|
|
41
73
|
|
|
42
74
|
export function thinkingConfigAdaptiveSchemaToJSON(
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
14
|
+
*/
|
|
15
|
+
export const ThinkingConfigBetweenToolsSchemaDisplay = {
|
|
16
|
+
Summarized: "summarized",
|
|
17
|
+
Omitted: "omitted",
|
|
18
|
+
Updates: "updates",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
22
|
+
*/
|
|
23
|
+
export type ThinkingConfigBetweenToolsSchemaDisplay = ClosedEnum<
|
|
24
|
+
typeof ThinkingConfigBetweenToolsSchemaDisplay
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Enables progress updates between tool calls on Sonnet 5.5.
|
|
29
|
+
*/
|
|
30
|
+
export type ThinkingConfigBetweenToolsSchema = {
|
|
31
|
+
/**
|
|
32
|
+
* Returns Sonnet 5.5 progress updates between tool calls without extended thinking.
|
|
33
|
+
*/
|
|
34
|
+
type: "between_tools";
|
|
35
|
+
budgetTokens?: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
38
|
+
*/
|
|
39
|
+
display?: ThinkingConfigBetweenToolsSchemaDisplay | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema:
|
|
44
|
+
z.ZodNativeEnum<typeof ThinkingConfigBetweenToolsSchemaDisplay> = z
|
|
45
|
+
.nativeEnum(ThinkingConfigBetweenToolsSchemaDisplay);
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ThinkingConfigBetweenToolsSchemaDisplay$outboundSchema:
|
|
48
|
+
z.ZodNativeEnum<typeof ThinkingConfigBetweenToolsSchemaDisplay> =
|
|
49
|
+
ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema;
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const ThinkingConfigBetweenToolsSchema$inboundSchema: z.ZodType<
|
|
53
|
+
ThinkingConfigBetweenToolsSchema,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
type: z.literal("between_tools"),
|
|
58
|
+
budget_tokens: z.number().optional(),
|
|
59
|
+
display: ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema.optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
"budget_tokens": "budgetTokens",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type ThinkingConfigBetweenToolsSchema$Outbound = {
|
|
67
|
+
type: "between_tools";
|
|
68
|
+
budget_tokens?: number | undefined;
|
|
69
|
+
display?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ThinkingConfigBetweenToolsSchema$outboundSchema: z.ZodType<
|
|
74
|
+
ThinkingConfigBetweenToolsSchema$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
ThinkingConfigBetweenToolsSchema
|
|
77
|
+
> = z.object({
|
|
78
|
+
type: z.literal("between_tools"),
|
|
79
|
+
budgetTokens: z.number().optional(),
|
|
80
|
+
display: ThinkingConfigBetweenToolsSchemaDisplay$outboundSchema.optional(),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
budgetTokens: "budget_tokens",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function thinkingConfigBetweenToolsSchemaToJSON(
|
|
88
|
+
thinkingConfigBetweenToolsSchema: ThinkingConfigBetweenToolsSchema,
|
|
89
|
+
): string {
|
|
90
|
+
return JSON.stringify(
|
|
91
|
+
ThinkingConfigBetweenToolsSchema$outboundSchema.parse(
|
|
92
|
+
thinkingConfigBetweenToolsSchema,
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export function thinkingConfigBetweenToolsSchemaFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<ThinkingConfigBetweenToolsSchema, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => ThinkingConfigBetweenToolsSchema$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'ThinkingConfigBetweenToolsSchema' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -23,6 +23,19 @@ export const ThinkingLevel = {
|
|
|
23
23
|
*/
|
|
24
24
|
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
28
|
+
*/
|
|
29
|
+
export const Display = {
|
|
30
|
+
Summarized: "summarized",
|
|
31
|
+
Omitted: "omitted",
|
|
32
|
+
Updates: "updates",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
36
|
+
*/
|
|
37
|
+
export type Display = ClosedEnum<typeof Display>;
|
|
38
|
+
|
|
26
39
|
/**
|
|
27
40
|
* Enables the thinking mode capability
|
|
28
41
|
*/
|
|
@@ -39,6 +52,10 @@ export type ThinkingConfigEnabledSchema = {
|
|
|
39
52
|
* 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.
|
|
40
53
|
*/
|
|
41
54
|
thinkingLevel?: ThinkingLevel | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
57
|
+
*/
|
|
58
|
+
display?: Display | undefined;
|
|
42
59
|
};
|
|
43
60
|
|
|
44
61
|
/** @internal */
|
|
@@ -50,6 +67,13 @@ export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
|
50
67
|
typeof ThinkingLevel
|
|
51
68
|
> = ThinkingLevel$inboundSchema;
|
|
52
69
|
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const Display$inboundSchema: z.ZodNativeEnum<typeof Display> = z
|
|
72
|
+
.nativeEnum(Display);
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const Display$outboundSchema: z.ZodNativeEnum<typeof Display> =
|
|
75
|
+
Display$inboundSchema;
|
|
76
|
+
|
|
53
77
|
/** @internal */
|
|
54
78
|
export const ThinkingConfigEnabledSchema$inboundSchema: z.ZodType<
|
|
55
79
|
ThinkingConfigEnabledSchema,
|
|
@@ -59,6 +83,7 @@ export const ThinkingConfigEnabledSchema$inboundSchema: z.ZodType<
|
|
|
59
83
|
type: z.literal("enabled"),
|
|
60
84
|
budget_tokens: z.number(),
|
|
61
85
|
thinking_level: ThinkingLevel$inboundSchema.optional(),
|
|
86
|
+
display: Display$inboundSchema.optional(),
|
|
62
87
|
}).transform((v) => {
|
|
63
88
|
return remap$(v, {
|
|
64
89
|
"budget_tokens": "budgetTokens",
|
|
@@ -70,6 +95,7 @@ export type ThinkingConfigEnabledSchema$Outbound = {
|
|
|
70
95
|
type: "enabled";
|
|
71
96
|
budget_tokens: number;
|
|
72
97
|
thinking_level?: string | undefined;
|
|
98
|
+
display?: string | undefined;
|
|
73
99
|
};
|
|
74
100
|
|
|
75
101
|
/** @internal */
|
|
@@ -81,6 +107,7 @@ export const ThinkingConfigEnabledSchema$outboundSchema: z.ZodType<
|
|
|
81
107
|
type: z.literal("enabled"),
|
|
82
108
|
budgetTokens: z.number(),
|
|
83
109
|
thinkingLevel: ThinkingLevel$outboundSchema.optional(),
|
|
110
|
+
display: Display$outboundSchema.optional(),
|
|
84
111
|
}).transform((v) => {
|
|
85
112
|
return remap$(v, {
|
|
86
113
|
budgetTokens: "budget_tokens",
|
|
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const ThinkingParamDisplay = {
|
|
13
13
|
Summarized: "summarized",
|
|
14
14
|
Omitted: "omitted",
|
|
15
15
|
Updates: "updates",
|
|
@@ -17,7 +17,7 @@ export const Display = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
20
|
+
export type ThinkingParamDisplay = ClosedEnum<typeof ThinkingParamDisplay>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* The level of thinking to use for the model. Only supported by Google AI.
|
|
@@ -57,7 +57,7 @@ export type ThinkingParam = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
59
59
|
*/
|
|
60
|
-
display?:
|
|
60
|
+
display?: ThinkingParamDisplay | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* The level of thinking to use for the model. Only supported by Google AI.
|
|
63
63
|
*/
|
|
@@ -69,8 +69,9 @@ export type ThinkingParam = {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/** @internal */
|
|
72
|
-
export const
|
|
73
|
-
|
|
72
|
+
export const ThinkingParamDisplay$outboundSchema: z.ZodNativeEnum<
|
|
73
|
+
typeof ThinkingParamDisplay
|
|
74
|
+
> = z.nativeEnum(ThinkingParamDisplay);
|
|
74
75
|
|
|
75
76
|
/** @internal */
|
|
76
77
|
export const ThinkingParamThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
@@ -97,7 +98,7 @@ export const ThinkingParam$outboundSchema: z.ZodType<
|
|
|
97
98
|
ThinkingParam
|
|
98
99
|
> = z.object({
|
|
99
100
|
budgetTokens: z.nullable(z.number().int()),
|
|
100
|
-
display:
|
|
101
|
+
display: ThinkingParamDisplay$outboundSchema.optional(),
|
|
101
102
|
thinkingLevel: ThinkingParamThinkingLevel$outboundSchema.optional(),
|
|
102
103
|
type: z.nullable(ThinkingParamType$outboundSchema),
|
|
103
104
|
}).transform((v) => {
|
|
@@ -106,7 +106,8 @@ export type Stop = string | Array<string>;
|
|
|
106
106
|
export type Thinking =
|
|
107
107
|
| components.ThinkingConfigDisabledSchema
|
|
108
108
|
| components.ThinkingConfigEnabledSchema
|
|
109
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
109
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
110
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
110
111
|
|
|
111
112
|
/**
|
|
112
113
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -373,6 +374,7 @@ export type ParametersT = {
|
|
|
373
374
|
| components.ThinkingConfigDisabledSchema
|
|
374
375
|
| components.ThinkingConfigEnabledSchema
|
|
375
376
|
| components.ThinkingConfigAdaptiveSchema
|
|
377
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
376
378
|
| undefined;
|
|
377
379
|
/**
|
|
378
380
|
* 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.
|
|
@@ -582,7 +584,8 @@ export type FallbackModelConfigurationStop = string | Array<string>;
|
|
|
582
584
|
export type FallbackModelConfigurationThinking =
|
|
583
585
|
| components.ThinkingConfigDisabledSchema
|
|
584
586
|
| components.ThinkingConfigEnabledSchema
|
|
585
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
587
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
588
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
586
589
|
|
|
587
590
|
/**
|
|
588
591
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -870,6 +873,7 @@ export type FallbackModelConfigurationParameters = {
|
|
|
870
873
|
| components.ThinkingConfigDisabledSchema
|
|
871
874
|
| components.ThinkingConfigEnabledSchema
|
|
872
875
|
| components.ThinkingConfigAdaptiveSchema
|
|
876
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
873
877
|
| undefined;
|
|
874
878
|
/**
|
|
875
879
|
* 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.
|
|
@@ -1531,7 +1535,8 @@ export type CreateAgentRequestStop = string | Array<string>;
|
|
|
1531
1535
|
export type CreateAgentRequestThinking =
|
|
1532
1536
|
| components.ThinkingConfigDisabledSchema
|
|
1533
1537
|
| components.ThinkingConfigEnabledSchema
|
|
1534
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
1538
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
1539
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
1535
1540
|
|
|
1536
1541
|
/**
|
|
1537
1542
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1820,6 +1825,7 @@ export type CreateAgentRequestParameters = {
|
|
|
1820
1825
|
| components.ThinkingConfigDisabledSchema
|
|
1821
1826
|
| components.ThinkingConfigEnabledSchema
|
|
1822
1827
|
| components.ThinkingConfigAdaptiveSchema
|
|
1828
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
1823
1829
|
| undefined;
|
|
1824
1830
|
/**
|
|
1825
1831
|
* 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.
|
|
@@ -2013,7 +2019,8 @@ export type CreateAgentRequestFallbackModelConfigurationStop =
|
|
|
2013
2019
|
export type CreateAgentRequestFallbackModelConfigurationThinking =
|
|
2014
2020
|
| components.ThinkingConfigDisabledSchema
|
|
2015
2021
|
| components.ThinkingConfigEnabledSchema
|
|
2016
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
2022
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
2023
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
2017
2024
|
|
|
2018
2025
|
/**
|
|
2019
2026
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -2308,6 +2315,7 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2308
2315
|
| components.ThinkingConfigDisabledSchema
|
|
2309
2316
|
| components.ThinkingConfigEnabledSchema
|
|
2310
2317
|
| components.ThinkingConfigAdaptiveSchema
|
|
2318
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
2311
2319
|
| undefined;
|
|
2312
2320
|
/**
|
|
2313
2321
|
* 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.
|
|
@@ -2651,7 +2659,8 @@ export function stopToJSON(stop: Stop): string {
|
|
|
2651
2659
|
export type Thinking$Outbound =
|
|
2652
2660
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2653
2661
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2654
|
-
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2662
|
+
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2663
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound;
|
|
2655
2664
|
|
|
2656
2665
|
/** @internal */
|
|
2657
2666
|
export const Thinking$outboundSchema: z.ZodType<
|
|
@@ -2662,6 +2671,7 @@ export const Thinking$outboundSchema: z.ZodType<
|
|
|
2662
2671
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2663
2672
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2664
2673
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
2674
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
2665
2675
|
]);
|
|
2666
2676
|
|
|
2667
2677
|
export function thinkingToJSON(thinking: Thinking): string {
|
|
@@ -2987,6 +2997,7 @@ export type ParametersT$Outbound = {
|
|
|
2987
2997
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2988
2998
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2989
2999
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3000
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound
|
|
2990
3001
|
| undefined;
|
|
2991
3002
|
temperature?: number | null | undefined;
|
|
2992
3003
|
top_p?: number | null | undefined;
|
|
@@ -3035,6 +3046,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3035
3046
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3036
3047
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3037
3048
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3049
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
3038
3050
|
]).optional(),
|
|
3039
3051
|
temperature: z.nullable(z.number()).optional(),
|
|
3040
3052
|
topP: z.nullable(z.number()).optional(),
|
|
@@ -3321,7 +3333,8 @@ export function fallbackModelConfigurationStopToJSON(
|
|
|
3321
3333
|
export type FallbackModelConfigurationThinking$Outbound =
|
|
3322
3334
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3323
3335
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3324
|
-
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3336
|
+
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3337
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound;
|
|
3325
3338
|
|
|
3326
3339
|
/** @internal */
|
|
3327
3340
|
export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
@@ -3332,6 +3345,7 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
|
3332
3345
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3333
3346
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3334
3347
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3348
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
3335
3349
|
]);
|
|
3336
3350
|
|
|
3337
3351
|
export function fallbackModelConfigurationThinkingToJSON(
|
|
@@ -3742,6 +3756,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3742
3756
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3743
3757
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3744
3758
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3759
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound
|
|
3745
3760
|
| undefined;
|
|
3746
3761
|
temperature?: number | null | undefined;
|
|
3747
3762
|
top_p?: number | null | undefined;
|
|
@@ -3791,6 +3806,7 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3791
3806
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3792
3807
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3793
3808
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3809
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
3794
3810
|
]).optional(),
|
|
3795
3811
|
temperature: z.nullable(z.number()).optional(),
|
|
3796
3812
|
topP: z.nullable(z.number()).optional(),
|
|
@@ -4617,6 +4633,7 @@ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
|
4617
4633
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4618
4634
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4619
4635
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
4636
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
4620
4637
|
]);
|
|
4621
4638
|
|
|
4622
4639
|
export function createAgentRequestThinkingFromJSON(
|
|
@@ -4981,6 +4998,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
4981
4998
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4982
4999
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4983
5000
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
5001
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
4984
5002
|
]).optional(),
|
|
4985
5003
|
temperature: z.nullable(z.number()).optional(),
|
|
4986
5004
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -5248,6 +5266,7 @@ export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
|
5248
5266
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5249
5267
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5250
5268
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
5269
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
5251
5270
|
]);
|
|
5252
5271
|
|
|
5253
5272
|
export function createAgentRequestFallbackModelConfigurationThinkingFromJSON(
|
|
@@ -5706,6 +5725,7 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
5706
5725
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5707
5726
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5708
5727
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
5728
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
5709
5729
|
]).optional(),
|
|
5710
5730
|
temperature: z.nullable(z.number()).optional(),
|
|
5711
5731
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -548,7 +548,8 @@ export type CreateChatCompletionStreamOptions = {
|
|
|
548
548
|
export type CreateChatCompletionThinking =
|
|
549
549
|
| components.ThinkingConfigDisabledSchema
|
|
550
550
|
| components.ThinkingConfigEnabledSchema
|
|
551
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
551
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
552
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
552
553
|
|
|
553
554
|
/**
|
|
554
555
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1560,6 +1561,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1560
1561
|
| components.ThinkingConfigDisabledSchema
|
|
1561
1562
|
| components.ThinkingConfigEnabledSchema
|
|
1562
1563
|
| components.ThinkingConfigAdaptiveSchema
|
|
1564
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
1563
1565
|
| undefined;
|
|
1564
1566
|
/**
|
|
1565
1567
|
* 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.
|
|
@@ -3266,7 +3268,8 @@ export function createChatCompletionStreamOptionsToJSON(
|
|
|
3266
3268
|
export type CreateChatCompletionThinking$Outbound =
|
|
3267
3269
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3268
3270
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3269
|
-
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3271
|
+
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3272
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound;
|
|
3270
3273
|
|
|
3271
3274
|
/** @internal */
|
|
3272
3275
|
export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
|
|
@@ -3277,6 +3280,7 @@ export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
|
|
|
3277
3280
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3278
3281
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3279
3282
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3283
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
3280
3284
|
]);
|
|
3281
3285
|
|
|
3282
3286
|
export function createChatCompletionThinkingToJSON(
|
|
@@ -5416,6 +5420,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5416
5420
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
5417
5421
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
5418
5422
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
5423
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound
|
|
5419
5424
|
| undefined;
|
|
5420
5425
|
temperature?: number | null | undefined;
|
|
5421
5426
|
top_p?: number | null | undefined;
|
|
@@ -5491,6 +5496,7 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5491
5496
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
5492
5497
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
5493
5498
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
5499
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
5494
5500
|
]).optional(),
|
|
5495
5501
|
temperature: z.nullable(z.number()).optional(),
|
|
5496
5502
|
topP: z.nullable(z.number()).optional(),
|