@orq-ai/node 4.17.0-rc.6 → 4.17.0-rc.8
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 +5 -3
- package/funcs/routerClassifyCreate.d.ts +10 -2
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +10 -2
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +10 -2
- package/funcs/routerDecisionsCreate.d.ts.map +1 -1
- package/funcs/routerDecisionsCreate.js +11 -2
- package/funcs/routerDecisionsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/classifytimeoutconfig.d.ts +15 -0
- package/models/components/classifytimeoutconfig.d.ts.map +1 -0
- package/models/components/classifytimeoutconfig.js +54 -0
- package/models/components/classifytimeoutconfig.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
- package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
- package/models/components/responsestreamevent.d.ts +6 -1
- package/models/components/responsestreamevent.d.ts.map +1 -1
- package/models/components/responsestreamevent.js +10 -0
- package/models/components/responsestreamevent.js.map +1 -1
- package/models/errors/createclassify.d.ts +23 -2
- package/models/errors/createclassify.d.ts.map +1 -1
- package/models/errors/createclassify.js +30 -2
- package/models/errors/createclassify.js.map +1 -1
- package/models/errors/createdecisions.d.ts +23 -2
- package/models/errors/createdecisions.d.ts.map +1 -1
- package/models/errors/createdecisions.js +30 -2
- package/models/errors/createdecisions.js.map +1 -1
- package/models/operations/createclassify.d.ts +2 -0
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +1 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +2 -0
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +1 -0
- package/models/operations/createdecisions.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/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 +1 -1
- package/sdk/classify.d.ts +9 -1
- package/sdk/classify.d.ts.map +1 -1
- package/sdk/classify.js +9 -1
- package/sdk/classify.js.map +1 -1
- package/sdk/decisions.d.ts +9 -1
- package/sdk/decisions.d.ts.map +1 -1
- package/sdk/decisions.js +9 -1
- package/sdk/decisions.js.map +1 -1
- package/src/funcs/routerClassifyCreate.ts +16 -1
- package/src/funcs/routerDecisionsCreate.ts +17 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/classifytimeoutconfig.ts +39 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/src/models/components/responsestreamevent.ts +30 -0
- package/src/models/errors/createclassify.ts +54 -2
- package/src/models/errors/createdecisions.ts +54 -2
- package/src/models/operations/createclassify.ts +3 -0
- package/src/models/operations/createdecisions.ts +3 -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/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/classify.ts +9 -1
- package/src/sdk/decisions.ts +9 -1
|
@@ -134,6 +134,38 @@ export class CreateDecisionsRouterDecisionsResponse422ResponseBody
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The final model call exceeded its timeout after available retries and fallbacks were exhausted.
|
|
139
|
+
*/
|
|
140
|
+
export type CreateDecisionsRouterDecisionsResponse408ResponseBodyData = {
|
|
141
|
+
error: components.APIError;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The final model call exceeded its timeout after available retries and fallbacks were exhausted.
|
|
146
|
+
*/
|
|
147
|
+
export class CreateDecisionsRouterDecisionsResponse408ResponseBody
|
|
148
|
+
extends OrqError
|
|
149
|
+
{
|
|
150
|
+
error: components.APIError;
|
|
151
|
+
|
|
152
|
+
/** The original data that was passed to this error instance. */
|
|
153
|
+
data$: CreateDecisionsRouterDecisionsResponse408ResponseBodyData;
|
|
154
|
+
|
|
155
|
+
constructor(
|
|
156
|
+
err: CreateDecisionsRouterDecisionsResponse408ResponseBodyData,
|
|
157
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
158
|
+
) {
|
|
159
|
+
const message = err.error?.message
|
|
160
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
161
|
+
super(message, httpMeta);
|
|
162
|
+
this.data$ = err;
|
|
163
|
+
this.error = err.error;
|
|
164
|
+
|
|
165
|
+
this.name = "CreateDecisionsRouterDecisionsResponse408ResponseBody";
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
137
169
|
/**
|
|
138
170
|
* The API key lacks classify permission, or the workspace or project cannot access the model.
|
|
139
171
|
*/
|
|
@@ -197,14 +229,14 @@ export class CreateDecisionsRouterDecisionsResponseBody extends OrqError {
|
|
|
197
229
|
}
|
|
198
230
|
|
|
199
231
|
/**
|
|
200
|
-
* Malformed JSON, missing or unsupported model, or invalid retry
|
|
232
|
+
* Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
|
|
201
233
|
*/
|
|
202
234
|
export type CreateDecisionsResponseBodyData = {
|
|
203
235
|
error: components.APIError;
|
|
204
236
|
};
|
|
205
237
|
|
|
206
238
|
/**
|
|
207
|
-
* Malformed JSON, missing or unsupported model, or invalid retry
|
|
239
|
+
* Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
|
|
208
240
|
*/
|
|
209
241
|
export class CreateDecisionsResponseBody extends OrqError {
|
|
210
242
|
error: components.APIError;
|
|
@@ -306,6 +338,26 @@ export const CreateDecisionsRouterDecisionsResponse422ResponseBody$inboundSchema
|
|
|
306
338
|
});
|
|
307
339
|
});
|
|
308
340
|
|
|
341
|
+
/** @internal */
|
|
342
|
+
export const CreateDecisionsRouterDecisionsResponse408ResponseBody$inboundSchema:
|
|
343
|
+
z.ZodType<
|
|
344
|
+
CreateDecisionsRouterDecisionsResponse408ResponseBody,
|
|
345
|
+
z.ZodTypeDef,
|
|
346
|
+
unknown
|
|
347
|
+
> = z.object({
|
|
348
|
+
error: components.APIError$inboundSchema,
|
|
349
|
+
request$: z.instanceof(Request),
|
|
350
|
+
response$: z.instanceof(Response),
|
|
351
|
+
body$: z.string(),
|
|
352
|
+
})
|
|
353
|
+
.transform((v) => {
|
|
354
|
+
return new CreateDecisionsRouterDecisionsResponse408ResponseBody(v, {
|
|
355
|
+
request: v.request$,
|
|
356
|
+
response: v.response$,
|
|
357
|
+
body: v.body$,
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
309
361
|
/** @internal */
|
|
310
362
|
export const CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema:
|
|
311
363
|
z.ZodType<
|
|
@@ -113,6 +113,7 @@ export type CreateClassifyRequestBody = {
|
|
|
113
113
|
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
114
114
|
*/
|
|
115
115
|
state: string | { [k: string]: any } | Array<any>;
|
|
116
|
+
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
/**
|
|
@@ -324,6 +325,7 @@ export type CreateClassifyRequestBody$Outbound = {
|
|
|
324
325
|
};
|
|
325
326
|
retry?: components.ClassifyRetryConfig$Outbound | undefined;
|
|
326
327
|
state: string | { [k: string]: any } | Array<any>;
|
|
328
|
+
timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
|
|
327
329
|
};
|
|
328
330
|
|
|
329
331
|
/** @internal */
|
|
@@ -347,6 +349,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
|
|
|
347
349
|
),
|
|
348
350
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
349
351
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
352
|
+
timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
|
|
350
353
|
});
|
|
351
354
|
|
|
352
355
|
export function createClassifyRequestBodyToJSON(
|
|
@@ -126,6 +126,7 @@ export type CreateDecisionsRequestBody = {
|
|
|
126
126
|
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
127
127
|
*/
|
|
128
128
|
state: string | { [k: string]: any } | Array<any>;
|
|
129
|
+
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
/**
|
|
@@ -378,6 +379,7 @@ export type CreateDecisionsRequestBody$Outbound = {
|
|
|
378
379
|
};
|
|
379
380
|
retry?: components.ClassifyRetryConfig$Outbound | undefined;
|
|
380
381
|
state: string | { [k: string]: any } | Array<any>;
|
|
382
|
+
timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
|
|
381
383
|
};
|
|
382
384
|
|
|
383
385
|
/** @internal */
|
|
@@ -401,6 +403,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
|
|
|
401
403
|
),
|
|
402
404
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
403
405
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
406
|
+
timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
|
|
404
407
|
});
|
|
405
408
|
|
|
406
409
|
export function createDecisionsRequestBodyToJSON(
|
|
@@ -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_01M4H4GSX47EMC9A1DFA4BFYBH"),
|
|
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_01M4H4GSX3V0CXGEJGRFEQXXPM"),
|
|
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_01M4H4GSX25BPW648GDBQZB408"),
|
|
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_01M4H4GSX2YVB3D1A8ENXEGQ22"),
|
|
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_01M4H4GSWZQ3493QXY0NY8JKAA"),
|
|
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_01M4H4GSWY6KAYZ4YJ8K83GASC"),
|
|
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_01M4H4GSWY5G7DM96WAYEVHH0X"),
|
|
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_01M4H4GSWX4R2FGN5TRST5RZAB"),
|
|
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-09T20:08:46.357Z",
|
|
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-09T20:08:46.357Z",
|
|
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-09T20:08:46.357Z",
|
|
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-09T20:08:46.357Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -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-09T20:08:46.357Z",
|
|
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-09T20:08:46.357Z",
|
|
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-09T20:08:52.943Z"))
|
|
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-09T20:08:52.943Z"))
|
|
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-09T20:08:52.942Z"))
|
|
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-09T20:08:52.942Z"))
|
|
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-09T20:08:46.357Z",
|
|
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-09T20:08:46.357Z",
|
|
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_01M4H4GSXFDX4DW88PGE519VAT"),
|
|
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_01M4H4GSXEZWREW9HMF6SN1J5G"),
|
|
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_01M4H4GSXE8SE53C8ZZP09PPBF"),
|
|
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_01M4H4GSXD7JX9JWJSHDK9BAZ5"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M4H4GSV6TT5A03GCSC2JZQFA"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M4H4GSVQBDVVDN2AEWE5WXC7"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
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_01M4H4GSX7D9SQ1VMXQV6ZYSFM"),
|
|
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_01M4H4GSX7QVTB8WK4B6JYVNK2"),
|
|
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_01M4H4GSX6WSZVKQWC5Y3TNR8J"),
|
|
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_01M4H4GSX63ZG57TXSQ8Q4FFYS"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/classify.ts
CHANGED
|
@@ -14,7 +14,15 @@ export class Classify extends ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
16
16
|
*
|
|
17
|
-
* **Beta.**
|
|
17
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
18
|
+
*
|
|
19
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
20
|
+
* - `choice`: select an option from a set.
|
|
21
|
+
* - `score`: rate the content on an ordered scale.
|
|
22
|
+
*
|
|
23
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, and `timeout.call_timeout` in milliseconds. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
24
|
+
*
|
|
25
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
18
26
|
*
|
|
19
27
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
28
|
*/
|
package/src/sdk/decisions.ts
CHANGED
|
@@ -12,7 +12,15 @@ export class Decisions extends ClientSDK {
|
|
|
12
12
|
* Decisions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.**
|
|
15
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
16
|
+
*
|
|
17
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
18
|
+
* - `choice`: select an option from a set.
|
|
19
|
+
* - `score`: rate the content on an ordered scale.
|
|
20
|
+
*
|
|
21
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, and `timeout.call_timeout` in milliseconds. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
22
|
+
*
|
|
23
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
16
24
|
*/
|
|
17
25
|
async create(
|
|
18
26
|
request: operations.CreateDecisionsRequestBody,
|