@orq-ai/node 4.17.13 → 4.17.14
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/reasoningpart.js +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/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- 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 +3 -3
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetscope.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetusage.ts +1 -4
- package/packages/orq-rc/src/models/components/classifypromptcacheoptions.ts +76 -0
- package/packages/orq-rc/src/models/components/index.ts +2 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +13 -8
- package/packages/orq-rc/src/models/components/providerbudgetscope.ts +2 -2
- package/packages/orq-rc/src/models/components/querylogsresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/spansummary.ts +7 -5
- package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
- package/packages/orq-rc/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +27 -0
- package/packages/orq-rc/src/models/components/thinkingparam.ts +7 -6
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -6
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8 -2
- package/packages/orq-rc/src/models/operations/createclassify.ts +25 -11
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -2
- package/packages/orq-rc/src/models/operations/createdecisions.ts +25 -11
- package/packages/orq-rc/src/models/operations/createprompt.ts +13 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +5 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -2
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +5 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +10 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +17 -5
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +17 -5
- package/packages/orq-rc/src/models/operations/updateagent.ts +26 -6
- package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- 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/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- 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/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "2.0";
|
|
34
|
-
readonly sdkVersion: "4.17.
|
|
34
|
+
readonly sdkVersion: "4.17.14";
|
|
35
35
|
readonly genVersion: "2.950.13";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.17.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.17.14 2.950.13 2.0 @orq-ai/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.17.
|
|
31
|
+
sdkVersion: "4.17.14",
|
|
32
32
|
genVersion: "2.950.13",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.17.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.17.14 2.950.13 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ReasoningPart$inboundSchema = z.object({
|
|
46
|
-
_id: z.string().default("
|
|
46
|
+
_id: z.string().default("reasoning_01m5yb8v04ktq1053ddyqk9eb0"),
|
|
47
47
|
metadata: z.record(z.any()).optional(),
|
|
48
48
|
kind: z.literal("reasoning"),
|
|
49
49
|
reasoning: z.string(),
|
|
@@ -472,7 +472,7 @@ function responseBodyCodeToolFromJSON(jsonString) {
|
|
|
472
472
|
}
|
|
473
473
|
/** @internal */
|
|
474
474
|
exports.ResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
475
|
-
_id: z.string().default("
|
|
475
|
+
_id: z.string().default("tool_01M5YB8V4V5CX0H410XT3MNSNS"),
|
|
476
476
|
path: z.string(),
|
|
477
477
|
key: z.string(),
|
|
478
478
|
display_name: z.string().optional(),
|
|
@@ -562,7 +562,7 @@ function responseBodyHttpFromJSON(jsonString) {
|
|
|
562
562
|
}
|
|
563
563
|
/** @internal */
|
|
564
564
|
exports.ResponseBodyHTTPTool$inboundSchema = z.object({
|
|
565
|
-
_id: z.string().default("
|
|
565
|
+
_id: z.string().default("tool_01M5YB8V4S9F87K2W80R1VMCYJ"),
|
|
566
566
|
path: z.string(),
|
|
567
567
|
key: z.string(),
|
|
568
568
|
display_name: z.string().optional(),
|
|
@@ -612,7 +612,7 @@ function responseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
612
612
|
}
|
|
613
613
|
/** @internal */
|
|
614
614
|
exports.ResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
615
|
-
_id: z.string().default("
|
|
615
|
+
_id: z.string().default("tool_01M5YB8V4SP5ECKGY9TWF8J86P"),
|
|
616
616
|
path: z.string(),
|
|
617
617
|
key: z.string(),
|
|
618
618
|
display_name: z.string().optional(),
|
|
@@ -665,7 +665,7 @@ function responseBodyFunctionFromJSON(jsonString) {
|
|
|
665
665
|
}
|
|
666
666
|
/** @internal */
|
|
667
667
|
exports.ResponseBodyFunctionTool$inboundSchema = z.object({
|
|
668
|
-
_id: z.string().default("
|
|
668
|
+
_id: z.string().default("tool_01M5YB8V4RF1FCHVET61DA33X1"),
|
|
669
669
|
path: z.string(),
|
|
670
670
|
key: z.string(),
|
|
671
671
|
display_name: z.string().optional(),
|
|
@@ -172,7 +172,7 @@ function dataCodeToolFromJSON(jsonString) {
|
|
|
172
172
|
}
|
|
173
173
|
/** @internal */
|
|
174
174
|
exports.DataCodeExecutionTool$inboundSchema = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("tool_01M5YB8V4KR5GY80S1YNX5SGNV"),
|
|
176
176
|
path: z.string(),
|
|
177
177
|
key: z.string(),
|
|
178
178
|
display_name: z.string().optional(),
|
|
@@ -261,7 +261,7 @@ function dataHttpFromJSON(jsonString) {
|
|
|
261
261
|
}
|
|
262
262
|
/** @internal */
|
|
263
263
|
exports.DataHTTPTool$inboundSchema = z.object({
|
|
264
|
-
_id: z.string().default("
|
|
264
|
+
_id: z.string().default("tool_01M5YB8V4JM3T167DVAKJ3JV8K"),
|
|
265
265
|
path: z.string(),
|
|
266
266
|
key: z.string(),
|
|
267
267
|
display_name: z.string().optional(),
|
|
@@ -311,7 +311,7 @@ function dataJsonSchemaFromJSON(jsonString) {
|
|
|
311
311
|
}
|
|
312
312
|
/** @internal */
|
|
313
313
|
exports.DataJSONSchemaTool$inboundSchema = z.object({
|
|
314
|
-
_id: z.string().default("
|
|
314
|
+
_id: z.string().default("tool_01M5YB8V4HDXV3Z5EZ8XZ1FSJV"),
|
|
315
315
|
path: z.string(),
|
|
316
316
|
key: z.string(),
|
|
317
317
|
display_name: z.string().optional(),
|
|
@@ -366,7 +366,7 @@ function dataFunctionFromJSON(jsonString) {
|
|
|
366
366
|
}
|
|
367
367
|
/** @internal */
|
|
368
368
|
exports.DataFunctionTool$inboundSchema = z.object({
|
|
369
|
-
_id: z.string().default("
|
|
369
|
+
_id: z.string().default("tool_01M5YB8V4G1X54K9GCY81MH9Z0"),
|
|
370
370
|
path: z.string(),
|
|
371
371
|
key: z.string(),
|
|
372
372
|
display_name: z.string().optional(),
|
|
@@ -67,7 +67,7 @@ exports.GetV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
|
|
|
67
67
|
updated_by_id: z.string().optional(),
|
|
68
68
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
69
69
|
.optional(),
|
|
70
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
70
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
71
71
|
filter_type: z.literal("name"),
|
|
72
72
|
filter_value: z.string(),
|
|
73
73
|
}).transform((v) => {
|
|
@@ -98,7 +98,7 @@ exports.GetV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
|
|
|
98
98
|
updated_by_id: z.string().optional(),
|
|
99
99
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
100
100
|
.optional(),
|
|
101
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
101
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
102
102
|
filter_type: z.literal("span_type"),
|
|
103
103
|
filter_values: z.array(z.string()),
|
|
104
104
|
}).transform((v) => {
|
|
@@ -63,7 +63,7 @@ exports.GetV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
|
|
|
63
63
|
updated_by_id: z.string().optional(),
|
|
64
64
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
65
65
|
.optional(),
|
|
66
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
66
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
67
67
|
filter_type: z.literal("name"),
|
|
68
68
|
filter_value: z.string(),
|
|
69
69
|
}).transform((v) => {
|
|
@@ -94,7 +94,7 @@ exports.GetV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
|
|
|
94
94
|
updated_by_id: z.string().optional(),
|
|
95
95
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
96
96
|
.optional(),
|
|
97
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
97
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
98
98
|
filter_type: z.literal("span_type"),
|
|
99
99
|
filter_values: z.array(z.string()),
|
|
100
100
|
}).transform((v) => {
|
|
@@ -1013,7 +1013,7 @@ function knowledgeBaseConfigurationFromJSON(jsonString) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
/** @internal */
|
|
1015
1015
|
exports.ListDeploymentVersionsKnowledgeBases$inboundSchema = z.object({
|
|
1016
|
-
id: z.string().default("
|
|
1016
|
+
id: z.string().default("01M5YB8TYRH11BTMGWE42R8NNE"),
|
|
1017
1017
|
knowledge_id: z.string(),
|
|
1018
1018
|
configuration: z.union([
|
|
1019
1019
|
z.lazy(() => exports.KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -122,7 +122,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
|
|
|
122
122
|
updated_by_id: z.string().optional(),
|
|
123
123
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
124
124
|
.optional(),
|
|
125
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
125
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
126
126
|
filter_type: z.literal("name"),
|
|
127
127
|
filter_value: z.string(),
|
|
128
128
|
}).transform((v) => {
|
|
@@ -153,7 +153,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
|
|
|
153
153
|
updated_by_id: z.string().optional(),
|
|
154
154
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
155
155
|
.optional(),
|
|
156
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
156
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
157
157
|
filter_type: z.literal("span_type"),
|
|
158
158
|
filter_values: z.array(z.string()),
|
|
159
159
|
}).transform((v) => {
|
|
@@ -106,7 +106,7 @@ exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
|
|
|
106
106
|
updated_by_id: z.string().optional(),
|
|
107
107
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
108
108
|
.optional(),
|
|
109
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
109
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
110
110
|
filter_type: z.literal("name"),
|
|
111
111
|
filter_value: z.string(),
|
|
112
112
|
}).transform((v) => {
|
|
@@ -137,7 +137,7 @@ exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
|
|
|
137
137
|
updated_by_id: z.string().optional(),
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
|
-
updated: z.string().datetime({ offset: true }).default("2026-10-
|
|
140
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-27T09:32:33.502Z").transform(v => new Date(v)),
|
|
141
141
|
filter_type: z.literal("span_type"),
|
|
142
142
|
filter_values: z.array(z.string()),
|
|
143
143
|
}).transform((v) => {
|
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M5YB8V5CAFGHGDX3MVMMVDX2"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M5YB8V59H2FH58WP2FA87X3R"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M5YB8V58HZ383DSCFFRVTG62"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M5YB8V57GB366PPY81DDKT14"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1104,7 +1104,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
/** @internal */
|
|
1106
1106
|
exports.Tools$outboundSchema = z.object({
|
|
1107
|
-
id: z.string().default("
|
|
1107
|
+
id: z.string().default("01M5YB8V20MXVTBD20D4XW868F"),
|
|
1108
1108
|
name: z.string(),
|
|
1109
1109
|
description: z.string().optional(),
|
|
1110
1110
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1070,7 +1070,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1070
1070
|
}
|
|
1071
1071
|
/** @internal */
|
|
1072
1072
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1073
|
-
id: z.string().default("
|
|
1073
|
+
id: z.string().default("01M5YB8V2S34B0727SG1YP5FCY"),
|
|
1074
1074
|
name: z.string(),
|
|
1075
1075
|
description: z.string().optional(),
|
|
1076
1076
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M5YB8V50YM4CPNTW4DK82FM8"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M5YB8V4ZY4DX89KCXS0359XH"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M5YB8V4Y491C0R3H13EP15EN"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M5YB8V4YZW13GZ8C0G430RYH"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.14",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
|
13
|
+
"require": "./langchain/index.js",
|
|
13
14
|
"types": "./langchain/index.d.mts",
|
|
14
|
-
"import": "./langchain/index.mjs"
|
|
15
|
-
"require": "./langchain/index.js"
|
|
15
|
+
"import": "./langchain/index.mjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.18.0-rc.
|
|
61
|
+
sdkVersion: "4.18.0-rc.4",
|
|
62
62
|
genVersion: "2.950.13",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.4 2.950.13 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -71,10 +71,10 @@ export type BudgetScope = {
|
|
|
71
71
|
*/
|
|
72
72
|
apiKey?: ApiKeyBudgetScope | undefined;
|
|
73
73
|
/**
|
|
74
|
-
* Per-provider cap. The value is the provider
|
|
74
|
+
* Per-provider cap. The value is the provider identifier, for example
|
|
75
75
|
*
|
|
76
76
|
* @remarks
|
|
77
|
-
* "openai"
|
|
77
|
+
* "openai" or "anthropic".
|
|
78
78
|
*/
|
|
79
79
|
provider?: ProviderBudgetScope | undefined;
|
|
80
80
|
/**
|
|
@@ -58,10 +58,10 @@ export type BudgetScopeRestResponse = {
|
|
|
58
58
|
*/
|
|
59
59
|
apiKey?: ApiKeyBudgetScopeRestResponse | undefined;
|
|
60
60
|
/**
|
|
61
|
-
* Per-provider cap. The value is the provider
|
|
61
|
+
* Per-provider cap. The value is the provider identifier, for example
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
* "openai"
|
|
64
|
+
* "openai" or "anthropic".
|
|
65
65
|
*/
|
|
66
66
|
provider?: ProviderBudgetScope | undefined;
|
|
67
67
|
/**
|
|
@@ -23,10 +23,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
23
23
|
export type BudgetUsage = {
|
|
24
24
|
amount?: number | undefined;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* rather than a quoted string, matching limits.token_limit.
|
|
26
|
+
* Tokens accumulated in the current period.
|
|
30
27
|
*/
|
|
31
28
|
tokens?: number | undefined;
|
|
32
29
|
requests?: number | undefined;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Implicit uses the shared input boundary by default; explicit uses only marked input boundaries.
|
|
10
|
+
*/
|
|
11
|
+
export const ClassifyPromptCacheOptionsMode = {
|
|
12
|
+
Implicit: "implicit",
|
|
13
|
+
Explicit: "explicit",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Implicit uses the shared input boundary by default; explicit uses only marked input boundaries.
|
|
17
|
+
*/
|
|
18
|
+
export type ClassifyPromptCacheOptionsMode = ClosedEnum<
|
|
19
|
+
typeof ClassifyPromptCacheOptionsMode
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Minimum cache lifetime. Only 30m is supported by native OpenAI Decisions.
|
|
24
|
+
*/
|
|
25
|
+
export const Ttl = {
|
|
26
|
+
Thirtym: "30m",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* Minimum cache lifetime. Only 30m is supported by native OpenAI Decisions.
|
|
30
|
+
*/
|
|
31
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
32
|
+
|
|
33
|
+
export type ClassifyPromptCacheOptions = {
|
|
34
|
+
/**
|
|
35
|
+
* Implicit uses the shared input boundary by default; explicit uses only marked input boundaries.
|
|
36
|
+
*/
|
|
37
|
+
mode?: ClassifyPromptCacheOptionsMode | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Minimum cache lifetime. Only 30m is supported by native OpenAI Decisions.
|
|
40
|
+
*/
|
|
41
|
+
ttl?: Ttl | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ClassifyPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof ClassifyPromptCacheOptionsMode
|
|
47
|
+
> = z.nativeEnum(ClassifyPromptCacheOptionsMode);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
|
|
51
|
+
Ttl,
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type ClassifyPromptCacheOptions$Outbound = {
|
|
56
|
+
mode?: string | undefined;
|
|
57
|
+
ttl?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ClassifyPromptCacheOptions$outboundSchema: z.ZodType<
|
|
62
|
+
ClassifyPromptCacheOptions$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
ClassifyPromptCacheOptions
|
|
65
|
+
> = z.object({
|
|
66
|
+
mode: ClassifyPromptCacheOptionsMode$outboundSchema.optional(),
|
|
67
|
+
ttl: Ttl$outboundSchema.optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function classifyPromptCacheOptionsToJSON(
|
|
71
|
+
classifyPromptCacheOptions: ClassifyPromptCacheOptions,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
ClassifyPromptCacheOptions$outboundSchema.parse(classifyPromptCacheOptions),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -100,6 +100,7 @@ export * from "./classifycacheconfig.js";
|
|
|
100
100
|
export * from "./classifychoiceanswer.js";
|
|
101
101
|
export * from "./classifyinputtokensdetails.js";
|
|
102
102
|
export * from "./classifynoulanswer.js";
|
|
103
|
+
export * from "./classifypromptcacheoptions.js";
|
|
103
104
|
export * from "./classifyrefusalanswer.js";
|
|
104
105
|
export * from "./classifyretryconfig.js";
|
|
105
106
|
export * from "./classifyscoreanswer.js";
|
|
@@ -695,6 +696,7 @@ export * from "./testmcpservertoolresponse.js";
|
|
|
695
696
|
export * from "./textcontentpartschema.js";
|
|
696
697
|
export * from "./textpart.js";
|
|
697
698
|
export * from "./thinkingconfigadaptiveschema.js";
|
|
699
|
+
export * from "./thinkingconfigbetweentoolsschema.js";
|
|
698
700
|
export * from "./thinkingconfigdisabledschema.js";
|
|
699
701
|
export * from "./thinkingconfigenabledschema.js";
|
|
700
702
|
export * from "./thinkingparam.js";
|
|
@@ -43,6 +43,7 @@ export type ModelMetadata = {
|
|
|
43
43
|
contextWindow?: number | undefined;
|
|
44
44
|
costEfficiencyRating?: number | undefined;
|
|
45
45
|
costPerImage?: number | undefined;
|
|
46
|
+
defaultMaxOutputTokens?: number | undefined;
|
|
46
47
|
defaultSpeechResponseFormat?: string | undefined;
|
|
47
48
|
deprecationDate?: string | undefined;
|
|
48
49
|
embeddingDimensions?: number | undefined;
|
|
@@ -183,6 +184,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
183
184
|
context_window: z.number().int().optional(),
|
|
184
185
|
cost_efficiency_rating: z.number().int().optional(),
|
|
185
186
|
cost_per_image: z.number().optional(),
|
|
187
|
+
default_max_output_tokens: z.number().int().optional(),
|
|
186
188
|
default_speech_response_format: z.string().optional(),
|
|
187
189
|
deprecation_date: z.string().optional(),
|
|
188
190
|
embedding_dimensions: z.number().int().optional(),
|
|
@@ -317,6 +319,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
317
319
|
"context_window": "contextWindow",
|
|
318
320
|
"cost_efficiency_rating": "costEfficiencyRating",
|
|
319
321
|
"cost_per_image": "costPerImage",
|
|
322
|
+
"default_max_output_tokens": "defaultMaxOutputTokens",
|
|
320
323
|
"default_speech_response_format": "defaultSpeechResponseFormat",
|
|
321
324
|
"deprecation_date": "deprecationDate",
|
|
322
325
|
"embedding_dimensions": "embeddingDimensions",
|
|
@@ -452,6 +455,7 @@ export type ModelMetadata$Outbound = {
|
|
|
452
455
|
context_window?: number | undefined;
|
|
453
456
|
cost_efficiency_rating?: number | undefined;
|
|
454
457
|
cost_per_image?: number | undefined;
|
|
458
|
+
default_max_output_tokens?: number | undefined;
|
|
455
459
|
default_speech_response_format?: string | undefined;
|
|
456
460
|
deprecation_date?: string | undefined;
|
|
457
461
|
embedding_dimensions?: number | undefined;
|
|
@@ -594,6 +598,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
594
598
|
contextWindow: z.number().int().optional(),
|
|
595
599
|
costEfficiencyRating: z.number().int().optional(),
|
|
596
600
|
costPerImage: z.number().optional(),
|
|
601
|
+
defaultMaxOutputTokens: z.number().int().optional(),
|
|
597
602
|
defaultSpeechResponseFormat: z.string().optional(),
|
|
598
603
|
deprecationDate: z.string().optional(),
|
|
599
604
|
embeddingDimensions: z.number().int().optional(),
|
|
@@ -728,6 +733,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
728
733
|
contextWindow: "context_window",
|
|
729
734
|
costEfficiencyRating: "cost_efficiency_rating",
|
|
730
735
|
costPerImage: "cost_per_image",
|
|
736
|
+
defaultMaxOutputTokens: "default_max_output_tokens",
|
|
731
737
|
defaultSpeechResponseFormat: "default_speech_response_format",
|
|
732
738
|
deprecationDate: "deprecation_date",
|
|
733
739
|
embeddingDimensions: "embedding_dimensions",
|
|
@@ -16,15 +16,17 @@ export type OpenAIPromptCacheOptionsMode = ClosedEnum<
|
|
|
16
16
|
typeof OpenAIPromptCacheOptionsMode
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
|
-
export const
|
|
19
|
+
export const OpenAIPromptCacheOptionsTtl = {
|
|
20
20
|
Thirtym: "30m",
|
|
21
21
|
Twelveh: "12h",
|
|
22
22
|
} as const;
|
|
23
|
-
export type
|
|
23
|
+
export type OpenAIPromptCacheOptionsTtl = ClosedEnum<
|
|
24
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
25
|
+
>;
|
|
24
26
|
|
|
25
27
|
export type OpenAIPromptCacheOptions = {
|
|
26
28
|
mode?: OpenAIPromptCacheOptionsMode | undefined;
|
|
27
|
-
ttl?:
|
|
29
|
+
ttl?: OpenAIPromptCacheOptionsTtl | undefined;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
/** @internal */
|
|
@@ -37,10 +39,13 @@ export const OpenAIPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
|
|
|
37
39
|
> = OpenAIPromptCacheOptionsMode$inboundSchema;
|
|
38
40
|
|
|
39
41
|
/** @internal */
|
|
40
|
-
export const
|
|
42
|
+
export const OpenAIPromptCacheOptionsTtl$inboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
44
|
+
> = z.nativeEnum(OpenAIPromptCacheOptionsTtl);
|
|
41
45
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
|
|
46
|
+
export const OpenAIPromptCacheOptionsTtl$outboundSchema: z.ZodNativeEnum<
|
|
47
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
48
|
+
> = OpenAIPromptCacheOptionsTtl$inboundSchema;
|
|
44
49
|
|
|
45
50
|
/** @internal */
|
|
46
51
|
export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
@@ -49,7 +54,7 @@ export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
|
49
54
|
unknown
|
|
50
55
|
> = z.object({
|
|
51
56
|
mode: OpenAIPromptCacheOptionsMode$inboundSchema.optional(),
|
|
52
|
-
ttl:
|
|
57
|
+
ttl: OpenAIPromptCacheOptionsTtl$inboundSchema.optional(),
|
|
53
58
|
});
|
|
54
59
|
/** @internal */
|
|
55
60
|
export type OpenAIPromptCacheOptions$Outbound = {
|
|
@@ -64,7 +69,7 @@ export const OpenAIPromptCacheOptions$outboundSchema: z.ZodType<
|
|
|
64
69
|
OpenAIPromptCacheOptions
|
|
65
70
|
> = z.object({
|
|
66
71
|
mode: OpenAIPromptCacheOptionsMode$outboundSchema.optional(),
|
|
67
|
-
ttl:
|
|
72
|
+
ttl: OpenAIPromptCacheOptionsTtl$outboundSchema.optional(),
|
|
68
73
|
});
|
|
69
74
|
|
|
70
75
|
export function openAIPromptCacheOptionsToJSON(
|
|
@@ -8,10 +8,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Per-provider cap. The value is the provider
|
|
11
|
+
* Per-provider cap. The value is the provider identifier, for example
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* "openai"
|
|
14
|
+
* "openai" or "anthropic".
|
|
15
15
|
*/
|
|
16
16
|
export type ProviderBudgetScope = {
|
|
17
17
|
provider?: string | undefined;
|
|
@@ -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.
|