@orq-ai/node 4.17.0-rc.17 → 4.17.0-rc.19
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/funcs/smartRoutersUpdate.d.ts +1 -1
- package/funcs/smartRoutersUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/autorouterconfig.d.ts +5 -0
- package/models/components/autorouterconfig.d.ts.map +1 -1
- package/models/components/autorouterconfig.js +9 -0
- package/models/components/autorouterconfig.js.map +1 -1
- package/models/components/createsmartrouterrequest.d.ts +3 -0
- package/models/components/createsmartrouterrequest.d.ts.map +1 -1
- package/models/components/createsmartrouterrequest.js +7 -0
- package/models/components/createsmartrouterrequest.js.map +1 -1
- 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/modelfusion.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/sessionaffinityconfig.d.ts +25 -0
- package/models/components/sessionaffinityconfig.d.ts.map +1 -0
- package/models/components/sessionaffinityconfig.js +69 -0
- package/models/components/sessionaffinityconfig.js.map +1 -0
- package/models/components/smartrouter.d.ts +2 -0
- package/models/components/smartrouter.d.ts.map +1 -1
- package/models/components/smartrouter.js +3 -0
- package/models/components/smartrouter.js.map +1 -1
- package/models/components/smartroutersessionaffinity.d.ts +25 -0
- package/models/components/smartroutersessionaffinity.d.ts.map +1 -0
- package/models/components/smartroutersessionaffinity.js +69 -0
- package/models/components/smartroutersessionaffinity.js.map +1 -0
- package/models/components/updatesmartrouterrequest.d.ts +3 -0
- package/models/components/updatesmartrouterrequest.d.ts.map +1 -1
- package/models/components/updatesmartrouterrequest.js +7 -0
- package/models/components/updatesmartrouterrequest.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/modelcreate.d.ts +2 -0
- package/models/operations/modelcreate.d.ts.map +1 -1
- package/models/operations/modelcreate.js +2 -0
- package/models/operations/modelcreate.js.map +1 -1
- package/models/operations/modelcreateawsbedrock.d.ts +2 -0
- package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelcreateawsbedrock.js +2 -0
- package/models/operations/modelcreateawsbedrock.js.map +1 -1
- package/models/operations/modelcreateopenailike.d.ts +2 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +2 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelcreatevertex.d.ts +2 -0
- package/models/operations/modelcreatevertex.d.ts.map +1 -1
- package/models/operations/modelcreatevertex.js +2 -0
- package/models/operations/modelcreatevertex.js.map +1 -1
- package/models/operations/modelupdate.d.ts +2 -0
- package/models/operations/modelupdate.d.ts.map +1 -1
- package/models/operations/modelupdate.js +2 -0
- package/models/operations/modelupdate.js.map +1 -1
- package/models/operations/modelupdateawsbedrock.d.ts +2 -0
- package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelupdateawsbedrock.js +2 -0
- package/models/operations/modelupdateawsbedrock.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +2 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +2 -0
- package/models/operations/modelupdateopenailike.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +6 -6
- package/sdk/smartrouters.d.ts +1 -1
- package/sdk/smartrouters.js +1 -1
- package/src/funcs/smartRoutersUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/autorouterconfig.ts +18 -0
- package/src/models/components/createsmartrouterrequest.ts +13 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/modelfusion.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/sessionaffinityconfig.ts +70 -0
- package/src/models/components/smartrouter.ts +7 -0
- package/src/models/components/smartroutersessionaffinity.ts +70 -0
- package/src/models/components/updatesmartrouterrequest.ts +13 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/modelcreate.ts +4 -0
- package/src/models/operations/modelcreateawsbedrock.ts +4 -0
- package/src/models/operations/modelcreateopenailike.ts +4 -0
- package/src/models/operations/modelcreatevertex.ts +4 -0
- package/src/models/operations/modelupdate.ts +4 -0
- package/src/models/operations/modelupdateawsbedrock.ts +4 -0
- package/src/models/operations/modelupdateopenailike.ts +4 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/smartrouters.ts +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SmartRouterSessionAffinity = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether later turns of a thread stay on the model chosen for its first turn. Only requests that carry a thread id take part. Off by default.
|
|
14
|
+
*/
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Sliding idle window in seconds. A thread that stays quiet longer than this is routed afresh on its next turn. Between 60 and 3600. Defaults to 600 when omitted.
|
|
18
|
+
*/
|
|
19
|
+
ttlSeconds?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SmartRouterSessionAffinity$inboundSchema: z.ZodType<
|
|
24
|
+
SmartRouterSessionAffinity,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
enabled: z.boolean(),
|
|
29
|
+
ttl_seconds: z.number().int().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"ttl_seconds": "ttlSeconds",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type SmartRouterSessionAffinity$Outbound = {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
ttl_seconds?: number | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const SmartRouterSessionAffinity$outboundSchema: z.ZodType<
|
|
43
|
+
SmartRouterSessionAffinity$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
SmartRouterSessionAffinity
|
|
46
|
+
> = z.object({
|
|
47
|
+
enabled: z.boolean(),
|
|
48
|
+
ttlSeconds: z.number().int().optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
ttlSeconds: "ttl_seconds",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function smartRouterSessionAffinityToJSON(
|
|
56
|
+
smartRouterSessionAffinity: SmartRouterSessionAffinity,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
SmartRouterSessionAffinity$outboundSchema.parse(smartRouterSessionAffinity),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function smartRouterSessionAffinityFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<SmartRouterSessionAffinity, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => SmartRouterSessionAffinity$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'SmartRouterSessionAffinity' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import {
|
|
7
8
|
SmartRouterProfile,
|
|
8
9
|
SmartRouterProfile$outboundSchema,
|
|
9
10
|
} from "./smartrouterprofile.js";
|
|
11
|
+
import {
|
|
12
|
+
SmartRouterSessionAffinity,
|
|
13
|
+
SmartRouterSessionAffinity$Outbound,
|
|
14
|
+
SmartRouterSessionAffinity$outboundSchema,
|
|
15
|
+
} from "./smartroutersessionaffinity.js";
|
|
10
16
|
|
|
11
17
|
export type UpdateSmartRouterRequest = {
|
|
12
18
|
/**
|
|
@@ -14,12 +20,14 @@ export type UpdateSmartRouterRequest = {
|
|
|
14
20
|
*/
|
|
15
21
|
models?: Array<string> | undefined;
|
|
16
22
|
profile?: SmartRouterProfile | undefined;
|
|
23
|
+
sessionAffinity?: SmartRouterSessionAffinity | undefined;
|
|
17
24
|
};
|
|
18
25
|
|
|
19
26
|
/** @internal */
|
|
20
27
|
export type UpdateSmartRouterRequest$Outbound = {
|
|
21
28
|
models?: Array<string> | undefined;
|
|
22
29
|
profile?: string | undefined;
|
|
30
|
+
session_affinity?: SmartRouterSessionAffinity$Outbound | undefined;
|
|
23
31
|
};
|
|
24
32
|
|
|
25
33
|
/** @internal */
|
|
@@ -30,6 +38,11 @@ export const UpdateSmartRouterRequest$outboundSchema: z.ZodType<
|
|
|
30
38
|
> = z.object({
|
|
31
39
|
models: z.array(z.string()).optional(),
|
|
32
40
|
profile: SmartRouterProfile$outboundSchema.optional(),
|
|
41
|
+
sessionAffinity: SmartRouterSessionAffinity$outboundSchema.optional(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
sessionAffinity: "session_affinity",
|
|
45
|
+
});
|
|
33
46
|
});
|
|
34
47
|
|
|
35
48
|
export function updateSmartRouterRequestToJSON(
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M4TVYMSZ9STVSKWNT41PS8S6"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M4TVYMSZYVXR14976NTGX00G"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M4TVYMSYZTP010D71KYH4W2V"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M4TVYMSY5A64ATCE746MJS27"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M4TVYMSV9JFC27TKHV49HVFY"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M4TVYMST8V0K7DSBSCENJHMR"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M4TVYMSTWB7QXKR4GET9X2HR"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M4TVYMSSGWBYFPEFBYT3HDFQ"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-10-
|
|
143
|
+
"2026-10-13T14:51:28.486Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-13T14:51:28.486Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-13T14:51:28.486Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-13T14:51:28.486Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -10,6 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type ModelCreateRequestBody = {
|
|
13
|
+
benchmarkModel?: string | undefined;
|
|
13
14
|
configuration: { [k: string]: any };
|
|
14
15
|
displayName: string;
|
|
15
16
|
hasFunctions: boolean;
|
|
@@ -62,6 +63,7 @@ export type ModelCreateResponseBody = {
|
|
|
62
63
|
|
|
63
64
|
/** @internal */
|
|
64
65
|
export type ModelCreateRequestBody$Outbound = {
|
|
66
|
+
benchmark_model?: string | undefined;
|
|
65
67
|
configuration: { [k: string]: any };
|
|
66
68
|
display_name: string;
|
|
67
69
|
has_functions: boolean;
|
|
@@ -83,6 +85,7 @@ export const ModelCreateRequestBody$outboundSchema: z.ZodType<
|
|
|
83
85
|
z.ZodTypeDef,
|
|
84
86
|
ModelCreateRequestBody
|
|
85
87
|
> = z.object({
|
|
88
|
+
benchmarkModel: z.string().optional(),
|
|
86
89
|
configuration: z.record(z.any()),
|
|
87
90
|
displayName: z.string(),
|
|
88
91
|
hasFunctions: z.boolean(),
|
|
@@ -100,6 +103,7 @@ export const ModelCreateRequestBody$outboundSchema: z.ZodType<
|
|
|
100
103
|
provider: z.string(),
|
|
101
104
|
}).transform((v) => {
|
|
102
105
|
return remap$(v, {
|
|
106
|
+
benchmarkModel: "benchmark_model",
|
|
103
107
|
displayName: "display_name",
|
|
104
108
|
hasFunctions: "has_functions",
|
|
105
109
|
inputCost: "input_cost",
|
|
@@ -15,6 +15,7 @@ export type ModelCreateAwsBedrockRequestBody = {
|
|
|
15
15
|
authMode: string;
|
|
16
16
|
autorouterId?: string | undefined;
|
|
17
17
|
autorouterVersion?: string | undefined;
|
|
18
|
+
benchmarkModel?: string | undefined;
|
|
18
19
|
cacheReadCost?: number | undefined;
|
|
19
20
|
cacheWriteCost?: number | undefined;
|
|
20
21
|
description?: string | undefined;
|
|
@@ -81,6 +82,7 @@ export type ModelCreateAwsBedrockRequestBody$Outbound = {
|
|
|
81
82
|
auth_mode: string;
|
|
82
83
|
autorouter_id?: string | undefined;
|
|
83
84
|
autorouter_version?: string | undefined;
|
|
85
|
+
benchmark_model?: string | undefined;
|
|
84
86
|
cache_read_cost?: number | undefined;
|
|
85
87
|
cache_write_cost?: number | undefined;
|
|
86
88
|
description?: string | undefined;
|
|
@@ -116,6 +118,7 @@ export const ModelCreateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
116
118
|
authMode: z.string(),
|
|
117
119
|
autorouterId: z.string().optional(),
|
|
118
120
|
autorouterVersion: z.string().optional(),
|
|
121
|
+
benchmarkModel: z.string().optional(),
|
|
119
122
|
cacheReadCost: z.number().optional(),
|
|
120
123
|
cacheWriteCost: z.number().optional(),
|
|
121
124
|
description: z.string().optional(),
|
|
@@ -145,6 +148,7 @@ export const ModelCreateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
145
148
|
authMode: "auth_mode",
|
|
146
149
|
autorouterId: "autorouter_id",
|
|
147
150
|
autorouterVersion: "autorouter_version",
|
|
151
|
+
benchmarkModel: "benchmark_model",
|
|
148
152
|
cacheReadCost: "cache_read_cost",
|
|
149
153
|
cacheWriteCost: "cache_write_cost",
|
|
150
154
|
displayName: "display_name",
|
|
@@ -12,6 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
export type ModelCreateOpenAILikeRequestBody = {
|
|
13
13
|
apiKey: string;
|
|
14
14
|
baseUrl: string;
|
|
15
|
+
benchmarkModel?: string | undefined;
|
|
15
16
|
cacheReadCost?: number | undefined;
|
|
16
17
|
cacheWriteCost?: number | undefined;
|
|
17
18
|
costPerImage?: number | undefined;
|
|
@@ -70,6 +71,7 @@ export type ModelCreateOpenAILikeResponseBody = {
|
|
|
70
71
|
export type ModelCreateOpenAILikeRequestBody$Outbound = {
|
|
71
72
|
api_key: string;
|
|
72
73
|
base_url: string;
|
|
74
|
+
benchmark_model?: string | undefined;
|
|
73
75
|
cache_read_cost?: number | undefined;
|
|
74
76
|
cache_write_cost?: number | undefined;
|
|
75
77
|
cost_per_image?: number | undefined;
|
|
@@ -97,6 +99,7 @@ export const ModelCreateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
97
99
|
> = z.object({
|
|
98
100
|
apiKey: z.string(),
|
|
99
101
|
baseUrl: z.string(),
|
|
102
|
+
benchmarkModel: z.string().optional(),
|
|
100
103
|
cacheReadCost: z.number().optional(),
|
|
101
104
|
cacheWriteCost: z.number().optional(),
|
|
102
105
|
costPerImage: z.number().optional(),
|
|
@@ -118,6 +121,7 @@ export const ModelCreateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
118
121
|
return remap$(v, {
|
|
119
122
|
apiKey: "api_key",
|
|
120
123
|
baseUrl: "base_url",
|
|
124
|
+
benchmarkModel: "benchmark_model",
|
|
121
125
|
cacheReadCost: "cache_read_cost",
|
|
122
126
|
cacheWriteCost: "cache_write_cost",
|
|
123
127
|
costPerImage: "cost_per_image",
|
|
@@ -10,6 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type ModelCreateVertexRequestBody = {
|
|
13
|
+
benchmarkModel?: string | undefined;
|
|
13
14
|
configuration: components.VertexConfiguration;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
@@ -51,6 +52,7 @@ export type ModelCreateVertexResponseBody = {
|
|
|
51
52
|
|
|
52
53
|
/** @internal */
|
|
53
54
|
export type ModelCreateVertexRequestBody$Outbound = {
|
|
55
|
+
benchmark_model?: string | undefined;
|
|
54
56
|
configuration: components.VertexConfiguration$Outbound;
|
|
55
57
|
display_name: string;
|
|
56
58
|
};
|
|
@@ -61,10 +63,12 @@ export const ModelCreateVertexRequestBody$outboundSchema: z.ZodType<
|
|
|
61
63
|
z.ZodTypeDef,
|
|
62
64
|
ModelCreateVertexRequestBody
|
|
63
65
|
> = z.object({
|
|
66
|
+
benchmarkModel: z.string().optional(),
|
|
64
67
|
configuration: components.VertexConfiguration$outboundSchema,
|
|
65
68
|
displayName: z.string(),
|
|
66
69
|
}).transform((v) => {
|
|
67
70
|
return remap$(v, {
|
|
71
|
+
benchmarkModel: "benchmark_model",
|
|
68
72
|
displayName: "display_name",
|
|
69
73
|
});
|
|
70
74
|
});
|
|
@@ -10,6 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type ModelUpdateRequestBody = {
|
|
13
|
+
benchmarkModel?: string | undefined;
|
|
13
14
|
displayName?: string | undefined;
|
|
14
15
|
hasFunctions?: boolean | undefined;
|
|
15
16
|
inputCost?: number | undefined;
|
|
@@ -64,6 +65,7 @@ export type ModelUpdateResponseBody = {
|
|
|
64
65
|
|
|
65
66
|
/** @internal */
|
|
66
67
|
export type ModelUpdateRequestBody$Outbound = {
|
|
68
|
+
benchmark_model?: string | undefined;
|
|
67
69
|
display_name?: string | undefined;
|
|
68
70
|
has_functions?: boolean | undefined;
|
|
69
71
|
input_cost?: number | undefined;
|
|
@@ -79,6 +81,7 @@ export const ModelUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
79
81
|
z.ZodTypeDef,
|
|
80
82
|
ModelUpdateRequestBody
|
|
81
83
|
> = z.object({
|
|
84
|
+
benchmarkModel: z.string().optional(),
|
|
82
85
|
displayName: z.string().optional(),
|
|
83
86
|
hasFunctions: z.boolean().optional(),
|
|
84
87
|
inputCost: z.number().optional(),
|
|
@@ -89,6 +92,7 @@ export const ModelUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
89
92
|
.optional(),
|
|
90
93
|
}).transform((v) => {
|
|
91
94
|
return remap$(v, {
|
|
95
|
+
benchmarkModel: "benchmark_model",
|
|
92
96
|
displayName: "display_name",
|
|
93
97
|
hasFunctions: "has_functions",
|
|
94
98
|
inputCost: "input_cost",
|
|
@@ -14,6 +14,7 @@ export type ModelUpdateAwsBedrockRequestBody = {
|
|
|
14
14
|
assumeRoleExternalId?: string | undefined;
|
|
15
15
|
autorouterId?: string | undefined;
|
|
16
16
|
autorouterVersion?: string | undefined;
|
|
17
|
+
benchmarkModel?: string | undefined;
|
|
17
18
|
cacheReadCost?: number | undefined;
|
|
18
19
|
cacheWriteCost?: number | undefined;
|
|
19
20
|
description?: string | undefined;
|
|
@@ -85,6 +86,7 @@ export type ModelUpdateAwsBedrockRequestBody$Outbound = {
|
|
|
85
86
|
assume_role_external_id?: string | undefined;
|
|
86
87
|
autorouter_id?: string | undefined;
|
|
87
88
|
autorouter_version?: string | undefined;
|
|
89
|
+
benchmark_model?: string | undefined;
|
|
88
90
|
cache_read_cost?: number | undefined;
|
|
89
91
|
cache_write_cost?: number | undefined;
|
|
90
92
|
description?: string | undefined;
|
|
@@ -117,6 +119,7 @@ export const ModelUpdateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
117
119
|
assumeRoleExternalId: z.string().optional(),
|
|
118
120
|
autorouterId: z.string().optional(),
|
|
119
121
|
autorouterVersion: z.string().optional(),
|
|
122
|
+
benchmarkModel: z.string().optional(),
|
|
120
123
|
cacheReadCost: z.number().optional(),
|
|
121
124
|
cacheWriteCost: z.number().optional(),
|
|
122
125
|
description: z.string().optional(),
|
|
@@ -143,6 +146,7 @@ export const ModelUpdateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
143
146
|
assumeRoleExternalId: "assume_role_external_id",
|
|
144
147
|
autorouterId: "autorouter_id",
|
|
145
148
|
autorouterVersion: "autorouter_version",
|
|
149
|
+
benchmarkModel: "benchmark_model",
|
|
146
150
|
cacheReadCost: "cache_read_cost",
|
|
147
151
|
cacheWriteCost: "cache_write_cost",
|
|
148
152
|
displayName: "display_name",
|
|
@@ -11,6 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type ModelUpdateOpenAILikeRequestBody = {
|
|
13
13
|
baseUrl?: string | undefined;
|
|
14
|
+
benchmarkModel?: string | undefined;
|
|
14
15
|
cacheReadCost?: number | undefined;
|
|
15
16
|
cacheWriteCost?: number | undefined;
|
|
16
17
|
costPerImage?: number | undefined;
|
|
@@ -76,6 +77,7 @@ export type ModelUpdateOpenAILikeResponseBody = {
|
|
|
76
77
|
/** @internal */
|
|
77
78
|
export type ModelUpdateOpenAILikeRequestBody$Outbound = {
|
|
78
79
|
base_url?: string | undefined;
|
|
80
|
+
benchmark_model?: string | undefined;
|
|
79
81
|
cache_read_cost?: number | undefined;
|
|
80
82
|
cache_write_cost?: number | undefined;
|
|
81
83
|
cost_per_image?: number | undefined;
|
|
@@ -102,6 +104,7 @@ export const ModelUpdateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
102
104
|
ModelUpdateOpenAILikeRequestBody
|
|
103
105
|
> = z.object({
|
|
104
106
|
baseUrl: z.string().optional(),
|
|
107
|
+
benchmarkModel: z.string().optional(),
|
|
105
108
|
cacheReadCost: z.number().optional(),
|
|
106
109
|
cacheWriteCost: z.number().optional(),
|
|
107
110
|
costPerImage: z.number().optional(),
|
|
@@ -122,6 +125,7 @@ export const ModelUpdateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
122
125
|
}).transform((v) => {
|
|
123
126
|
return remap$(v, {
|
|
124
127
|
baseUrl: "base_url",
|
|
128
|
+
benchmarkModel: "benchmark_model",
|
|
125
129
|
cacheReadCost: "cache_read_cost",
|
|
126
130
|
cacheWriteCost: "cache_write_cost",
|
|
127
131
|
costPerImage: "cost_per_image",
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-10-
|
|
321
|
+
"2026-10-13T14:51:28.486Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-10-
|
|
367
|
+
"2026-10-13T14:51:28.486Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-10-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T14:51:33.599Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-10-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T14:51:33.599Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-10-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T14:51:33.599Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-10-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-10-13T14:51:33.599Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-10-
|
|
274
|
+
"2026-10-13T14:51:28.486Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-10-
|
|
319
|
+
"2026-10-13T14:51:28.486Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M4TVYMT67BNAVYC7BK2D5ASG"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M4TVYMT6EY709FF2E4ZBNPBH"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M4TVYMT5X83ZEQPDAH9XHBXP"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M4TVYMT54FNXJN1K5MEH9X1G"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3904,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3904
3904
|
z.ZodTypeDef,
|
|
3905
3905
|
Tools
|
|
3906
3906
|
> = z.object({
|
|
3907
|
-
id: z.string().default("
|
|
3907
|
+
id: z.string().default("01M4TVYMRJVBBBMMZ6XKRNG5VJ"),
|
|
3908
3908
|
name: z.string(),
|
|
3909
3909
|
description: z.string().optional(),
|
|
3910
3910
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3963,7 +3963,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3963
3963
|
z.ZodTypeDef,
|
|
3964
3964
|
AgentToolInputRunTools
|
|
3965
3965
|
> = z.object({
|
|
3966
|
-
id: z.string().default("
|
|
3966
|
+
id: z.string().default("01M4TVYMRY76BFFGW3ZXA76PC2"),
|
|
3967
3967
|
name: z.string(),
|
|
3968
3968
|
description: z.string().optional(),
|
|
3969
3969
|
schema: z.lazy(() =>
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M4TVYMT27Y8YB201A78J4JA6"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M4TVYMT1M43YMR4V9EBQDN38"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M4TVYMT1QSEG8VCAVQP1TARQ"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M4TVYMT1E23ACXE9GP8H9YKA"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/smartrouters.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class SmartRouters extends ClientSDK {
|
|
|
85
85
|
* Update a Smart Router
|
|
86
86
|
*
|
|
87
87
|
* @remarks
|
|
88
|
-
* Updates the model pool, routing profile, or
|
|
88
|
+
* Updates the model pool, routing profile, session affinity, or any combination. Omitted fields retain their current values. The router key and model reference cannot be changed.
|
|
89
89
|
*/
|
|
90
90
|
async update(
|
|
91
91
|
updateSmartRouterRequest: components.UpdateSmartRouterRequest,
|