@orq-ai/node 4.17.23 → 4.17.25
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 +3 -3
- package/lib/config.js +3 -3
- 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 +5 -5
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -3
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +30 -37
- package/packages/orq-rc/src/models/components/agenttaskconfig.ts +4 -41
- package/packages/orq-rc/src/models/components/cell.ts +22 -39
- package/packages/orq-rc/src/models/components/mcptoolexposure.ts +9 -0
- package/packages/orq-rc/src/models/components/metricsummary.ts +5 -2
- package/packages/orq-rc/src/models/components/patchevalcellrequest.ts +3 -19
- package/packages/orq-rc/src/models/components/patchreviewcellrequest.ts +3 -25
- package/packages/orq-rc/src/models/components/patchtaskcellrequest.ts +3 -23
- package/packages/orq-rc/src/models/components/prompttaskconfig.ts +26 -184
- package/packages/orq-rc/src/models/components/queryrow.ts +11 -6
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/run.ts +14 -8
- package/packages/orq-rc/src/models/components/updateruncellrequest.ts +3 -23
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/src/lib/config.ts +3 -3
- 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.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.17.
|
|
34
|
+
readonly sdkVersion: "4.17.25";
|
|
35
|
+
readonly genVersion: "2.956.1";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.17.25 2.956.1 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.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.17.
|
|
31
|
+
sdkVersion: "4.17.25",
|
|
32
|
+
genVersion: "2.956.1",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.17.25 2.956.1 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_01m6hkzmm3zk31vtfatr3c4h7r"),
|
|
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_01M6HKZMPYDPM96BNEX82N2JRM"),
|
|
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_01M6HKZMPX3EPW4CQ0Y6C447Z2"),
|
|
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_01M6HKZMPXX2HYPBR00EFTBSBM"),
|
|
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_01M6HKZMPWT2XBYM33Y85VG7M4"),
|
|
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_01M6HKZMPT4HNKR8FJJ3CX2VNE"),
|
|
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_01M6HKZMPS3EP3SC12770Y188H"),
|
|
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_01M6HKZMPSE852D0JGWENEY5R4"),
|
|
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_01M6HKZMPSS3504W2BD1FC2D2R"),
|
|
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-11-
|
|
70
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
101
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
66
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
97
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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("01M6HKZMKBQTGSZ1N54WCC4324"),
|
|
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-11-
|
|
125
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
156
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
109
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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-11-
|
|
140
|
+
updated: z.string().datetime({ offset: true }).default("2026-11-03T21:10:26.247Z").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_01M6HKZMQ78VPK3Q5CES3RQ7ZF"),
|
|
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_01M6HKZMQ6VF2NDADAVK87S2MH"),
|
|
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_01M6HKZMQ62WA5V2YJTYSCS8N0"),
|
|
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_01M6HKZMQ502TGP0VWTJ94NA3C"),
|
|
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("01M6HKZMN9ETBNZJX126DNXGP6"),
|
|
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("01M6HKZMNRSJZNM6C3DBRSDYPH"),
|
|
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_01M6HKZMQ04F9J5KGSM0NSAW7M"),
|
|
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_01M6HKZMQ0RX5KDGPVKDF7QCDP"),
|
|
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_01M6HKZMQ0CZ0M348HASP6STDS"),
|
|
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_01M6HKZMPZM0BN471VKMAQKMTN"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.25",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
+
"types": "./index.d.ts",
|
|
7
8
|
"import": "./index.js",
|
|
8
|
-
"require": "./index.js"
|
|
9
|
-
"types": "./index.d.ts"
|
|
9
|
+
"require": "./index.js"
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
|
13
|
+
"types": "./langchain/index.d.mts",
|
|
13
14
|
"import": "./langchain/index.mjs",
|
|
14
|
-
"require": "./langchain/index.js"
|
|
15
|
-
"types": "./langchain/index.d.mts"
|
|
15
|
+
"require": "./langchain/index.js"
|
|
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.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
61
|
+
sdkVersion: "4.18.0-rc.27",
|
|
62
|
+
genVersion: "2.956.1",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.27 2.956.1 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -82,10 +82,7 @@ export type AgentStartedStreamingEventConditions = {
|
|
|
82
82
|
value: string;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export type
|
|
86
|
-
/**
|
|
87
|
-
* The id of the resource
|
|
88
|
-
*/
|
|
85
|
+
export type Tools = {
|
|
89
86
|
id: string;
|
|
90
87
|
/**
|
|
91
88
|
* Optional tool key for custom tools
|
|
@@ -204,7 +201,7 @@ export type Settings = {
|
|
|
204
201
|
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
205
202
|
*/
|
|
206
203
|
chatExposed?: boolean | undefined;
|
|
207
|
-
tools?: Array<
|
|
204
|
+
tools?: Array<Tools> | undefined;
|
|
208
205
|
/**
|
|
209
206
|
* Configuration for an evaluator applied to the agent
|
|
210
207
|
*/
|
|
@@ -341,41 +338,38 @@ export function agentStartedStreamingEventConditionsFromJSON(
|
|
|
341
338
|
}
|
|
342
339
|
|
|
343
340
|
/** @internal */
|
|
344
|
-
export const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
"tool_id": "toolId",
|
|
368
|
-
"whole_server": "wholeServer",
|
|
341
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
342
|
+
.object({
|
|
343
|
+
id: z.string(),
|
|
344
|
+
key: z.string().optional(),
|
|
345
|
+
action_type: z.string(),
|
|
346
|
+
display_name: z.string().optional(),
|
|
347
|
+
description: z.string().optional(),
|
|
348
|
+
configuration: z.record(z.any()).optional(),
|
|
349
|
+
requires_approval: z.boolean().default(false),
|
|
350
|
+
tool_id: z.string().optional(),
|
|
351
|
+
whole_server: z.boolean().optional(),
|
|
352
|
+
conditions: z.array(
|
|
353
|
+
z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
|
|
354
|
+
).optional(),
|
|
355
|
+
timeout: z.number().optional(),
|
|
356
|
+
}).transform((v) => {
|
|
357
|
+
return remap$(v, {
|
|
358
|
+
"action_type": "actionType",
|
|
359
|
+
"display_name": "displayName",
|
|
360
|
+
"requires_approval": "requiresApproval",
|
|
361
|
+
"tool_id": "toolId",
|
|
362
|
+
"whole_server": "wholeServer",
|
|
363
|
+
});
|
|
369
364
|
});
|
|
370
|
-
});
|
|
371
365
|
|
|
372
|
-
export function
|
|
366
|
+
export function toolsFromJSON(
|
|
373
367
|
jsonString: string,
|
|
374
|
-
): SafeParseResult<
|
|
368
|
+
): SafeParseResult<Tools, SDKValidationError> {
|
|
375
369
|
return safeParse(
|
|
376
370
|
jsonString,
|
|
377
|
-
(x) =>
|
|
378
|
-
`Failed to parse '
|
|
371
|
+
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
372
|
+
`Failed to parse 'Tools' from JSON`,
|
|
379
373
|
);
|
|
380
374
|
}
|
|
381
375
|
|
|
@@ -456,8 +450,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
456
450
|
"respect_tool",
|
|
457
451
|
),
|
|
458
452
|
chat_exposed: z.boolean().optional(),
|
|
459
|
-
tools: z.array(z.lazy(() =>
|
|
460
|
-
.optional(),
|
|
453
|
+
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
461
454
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
462
455
|
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
463
456
|
}).transform((v) => {
|
|
@@ -13,50 +13,15 @@ import {
|
|
|
13
13
|
MessagesSource$outboundSchema,
|
|
14
14
|
} from "./messagessource.js";
|
|
15
15
|
|
|
16
|
-
export type AgentTaskConfigMessages = {};
|
|
17
|
-
|
|
18
16
|
export type AgentTaskConfig = {
|
|
19
17
|
agentKey?: string | undefined;
|
|
20
18
|
messagesSource?: MessagesSource | undefined;
|
|
21
|
-
messages?: Array<
|
|
19
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
22
20
|
engine?: string | undefined;
|
|
23
21
|
parentId?: string | undefined;
|
|
24
22
|
agentTag?: string | undefined;
|
|
25
23
|
};
|
|
26
24
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const AgentTaskConfigMessages$inboundSchema: z.ZodType<
|
|
29
|
-
AgentTaskConfigMessages,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({});
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type AgentTaskConfigMessages$Outbound = {};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const AgentTaskConfigMessages$outboundSchema: z.ZodType<
|
|
38
|
-
AgentTaskConfigMessages$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
AgentTaskConfigMessages
|
|
41
|
-
> = z.object({});
|
|
42
|
-
|
|
43
|
-
export function agentTaskConfigMessagesToJSON(
|
|
44
|
-
agentTaskConfigMessages: AgentTaskConfigMessages,
|
|
45
|
-
): string {
|
|
46
|
-
return JSON.stringify(
|
|
47
|
-
AgentTaskConfigMessages$outboundSchema.parse(agentTaskConfigMessages),
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
export function agentTaskConfigMessagesFromJSON(
|
|
51
|
-
jsonString: string,
|
|
52
|
-
): SafeParseResult<AgentTaskConfigMessages, SDKValidationError> {
|
|
53
|
-
return safeParse(
|
|
54
|
-
jsonString,
|
|
55
|
-
(x) => AgentTaskConfigMessages$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
-
`Failed to parse 'AgentTaskConfigMessages' from JSON`,
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
25
|
/** @internal */
|
|
61
26
|
export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
62
27
|
AgentTaskConfig,
|
|
@@ -65,8 +30,7 @@ export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
|
65
30
|
> = z.object({
|
|
66
31
|
agent_key: z.string().optional(),
|
|
67
32
|
messages_source: MessagesSource$inboundSchema.optional(),
|
|
68
|
-
messages: z.array(z.
|
|
69
|
-
.optional(),
|
|
33
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
70
34
|
engine: z.string().optional(),
|
|
71
35
|
parent_id: z.string().optional(),
|
|
72
36
|
agent_tag: z.string().optional(),
|
|
@@ -82,7 +46,7 @@ export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
|
82
46
|
export type AgentTaskConfig$Outbound = {
|
|
83
47
|
agent_key?: string | undefined;
|
|
84
48
|
messages_source?: string | undefined;
|
|
85
|
-
messages?: Array<
|
|
49
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
86
50
|
engine?: string | undefined;
|
|
87
51
|
parent_id?: string | undefined;
|
|
88
52
|
agent_tag?: string | undefined;
|
|
@@ -96,8 +60,7 @@ export const AgentTaskConfig$outboundSchema: z.ZodType<
|
|
|
96
60
|
> = z.object({
|
|
97
61
|
agentKey: z.string().optional(),
|
|
98
62
|
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
99
|
-
messages: z.array(z.
|
|
100
|
-
.optional(),
|
|
63
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
101
64
|
engine: z.string().optional(),
|
|
102
65
|
parentId: z.string().optional(),
|
|
103
66
|
agentTag: z.string().optional(),
|
|
@@ -12,15 +12,6 @@ import { CellProgress, CellProgress$inboundSchema } from "./cellprogress.js";
|
|
|
12
12
|
import { CellStatus, CellStatus$inboundSchema } from "./cellstatus.js";
|
|
13
13
|
import { CellType, CellType$inboundSchema } from "./celltype.js";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Stored documents are returned as-is; strings are wrapped as {"text"},
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
20
|
-
* scalars as {"value"}.
|
|
21
|
-
*/
|
|
22
|
-
export type CellValue = {};
|
|
23
|
-
|
|
24
15
|
export type Cell = {
|
|
25
16
|
cellId?: string | undefined;
|
|
26
17
|
rowId?: string | undefined;
|
|
@@ -32,38 +23,30 @@ export type Cell = {
|
|
|
32
23
|
*
|
|
33
24
|
* @remarks
|
|
34
25
|
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
35
|
-
* scalars as {"value"}.
|
|
26
|
+
* scalars as {"value"}. Null for a cell that has no value yet.
|
|
27
|
+
*/
|
|
28
|
+
value?: { [k: string]: any } | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Null when the cell holds no trace, response or session references.
|
|
36
31
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
artifacts?: ArtifactRefs | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Only present while the cell is running.
|
|
35
|
+
*/
|
|
36
|
+
progress?: CellProgress | null | undefined;
|
|
40
37
|
errorMessage?: string | undefined;
|
|
41
38
|
type?: CellType | undefined;
|
|
42
39
|
/**
|
|
43
40
|
* Task column an evaluator, metric or review cell belongs to.
|
|
44
41
|
*/
|
|
45
42
|
taskColumnId?: string | undefined;
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Null on cells written before timestamps were recorded.
|
|
45
|
+
*/
|
|
46
|
+
createdAt?: Date | null | undefined;
|
|
47
|
+
updatedAt?: Date | null | undefined;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const CellValue$inboundSchema: z.ZodType<
|
|
52
|
-
CellValue,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
unknown
|
|
55
|
-
> = z.object({});
|
|
56
|
-
|
|
57
|
-
export function cellValueFromJSON(
|
|
58
|
-
jsonString: string,
|
|
59
|
-
): SafeParseResult<CellValue, SDKValidationError> {
|
|
60
|
-
return safeParse(
|
|
61
|
-
jsonString,
|
|
62
|
-
(x) => CellValue$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
-
`Failed to parse 'CellValue' from JSON`,
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
50
|
/** @internal */
|
|
68
51
|
export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
69
52
|
.object({
|
|
@@ -72,17 +55,17 @@ export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
|
72
55
|
column_id: z.string().optional(),
|
|
73
56
|
repeat_index: z.number().int().optional(),
|
|
74
57
|
status: CellStatus$inboundSchema.optional(),
|
|
75
|
-
value: z.
|
|
76
|
-
artifacts: ArtifactRefs$inboundSchema.optional(),
|
|
77
|
-
progress: CellProgress$inboundSchema.optional(),
|
|
58
|
+
value: z.nullable(z.record(z.any())).optional(),
|
|
59
|
+
artifacts: z.nullable(ArtifactRefs$inboundSchema).optional(),
|
|
60
|
+
progress: z.nullable(CellProgress$inboundSchema).optional(),
|
|
78
61
|
error_message: z.string().optional(),
|
|
79
62
|
type: CellType$inboundSchema.optional(),
|
|
80
63
|
task_column_id: z.string().optional(),
|
|
81
|
-
created_at: z.
|
|
82
|
-
new Date(v)
|
|
64
|
+
created_at: z.nullable(
|
|
65
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
83
66
|
).optional(),
|
|
84
|
-
updated_at: z.
|
|
85
|
-
new Date(v)
|
|
67
|
+
updated_at: z.nullable(
|
|
68
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
69
|
).optional(),
|
|
87
70
|
}).transform((v) => {
|
|
88
71
|
return remap$(v, {
|