@orq-ai/node 4.18.0-rc.23 → 4.18.0-rc.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/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/funcs/routerDecisionsCreate.d.ts +1 -1
- package/funcs/routerDecisionsCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +4 -4
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +7 -7
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/agenttaskconfig.d.ts +6 -11
- package/models/components/agenttaskconfig.d.ts.map +1 -1
- package/models/components/agenttaskconfig.js +3 -17
- package/models/components/agenttaskconfig.js.map +1 -1
- package/models/components/cell.d.ts +17 -17
- package/models/components/cell.d.ts.map +1 -1
- package/models/components/cell.js +6 -12
- package/models/components/cell.js.map +1 -1
- package/models/components/externalagent.d.ts +3 -5
- package/models/components/externalagent.d.ts.map +1 -1
- package/models/components/externalagent.js +2 -8
- package/models/components/externalagent.js.map +1 -1
- package/models/components/mcptoolexposure.d.ts +5 -0
- package/models/components/mcptoolexposure.d.ts.map +1 -1
- package/models/components/mcptoolexposure.js +4 -0
- package/models/components/mcptoolexposure.js.map +1 -1
- package/models/components/memorystoreembeddingconfig.d.ts +1 -1
- package/models/components/metricsummary.d.ts +4 -1
- package/models/components/metricsummary.d.ts.map +1 -1
- package/models/components/metricsummary.js +1 -1
- package/models/components/metricsummary.js.map +1 -1
- package/models/components/patchevalcellrequest.d.ts +6 -8
- package/models/components/patchevalcellrequest.d.ts.map +1 -1
- package/models/components/patchevalcellrequest.js +2 -8
- package/models/components/patchevalcellrequest.js.map +1 -1
- package/models/components/patchreviewcellrequest.d.ts +6 -8
- package/models/components/patchreviewcellrequest.d.ts.map +1 -1
- package/models/components/patchreviewcellrequest.js +2 -8
- package/models/components/patchreviewcellrequest.js.map +1 -1
- package/models/components/patchtaskcellrequest.d.ts +6 -8
- package/models/components/patchtaskcellrequest.d.ts.map +1 -1
- package/models/components/patchtaskcellrequest.js +2 -8
- package/models/components/patchtaskcellrequest.js.map +1 -1
- package/models/components/prompttaskconfig.d.ts +30 -55
- package/models/components/prompttaskconfig.d.ts.map +1 -1
- package/models/components/prompttaskconfig.js +11 -76
- package/models/components/prompttaskconfig.js.map +1 -1
- package/models/components/queryrow.d.ts +5 -2
- package/models/components/queryrow.d.ts.map +1 -1
- package/models/components/queryrow.js +2 -4
- package/models/components/queryrow.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactedreasoningpartschema.d.ts +1 -1
- package/models/components/run.d.ts +9 -3
- package/models/components/run.d.ts.map +1 -1
- package/models/components/run.js +3 -3
- package/models/components/run.js.map +1 -1
- package/models/components/testexternalagentconnectionresponse.d.ts +3 -5
- package/models/components/testexternalagentconnectionresponse.d.ts.map +1 -1
- package/models/components/testexternalagentconnectionresponse.js +2 -9
- package/models/components/testexternalagentconnectionresponse.js.map +1 -1
- package/models/components/updateruncellrequest.d.ts +6 -8
- package/models/components/updateruncellrequest.d.ts.map +1 -1
- package/models/components/updateruncellrequest.js +2 -8
- package/models/components/updateruncellrequest.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/listdeploymentversions.js +1 -1
- 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 +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/decisions.d.ts +1 -1
- package/sdk/decisions.js +1 -1
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/funcs/routerDecisionsCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +30 -34
- package/src/models/components/agenttaskconfig.ts +4 -41
- package/src/models/components/cell.ts +22 -39
- package/src/models/components/externalagent.ts +2 -21
- package/src/models/components/mcptoolexposure.ts +9 -0
- package/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/src/models/components/metricsummary.ts +5 -2
- package/src/models/components/patchevalcellrequest.ts +3 -19
- package/src/models/components/patchreviewcellrequest.ts +3 -25
- package/src/models/components/patchtaskcellrequest.ts +3 -23
- package/src/models/components/prompttaskconfig.ts +20 -184
- package/src/models/components/queryrow.ts +11 -6
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactedreasoningpartschema.ts +1 -1
- package/src/models/components/run.ts +14 -8
- package/src/models/components/testexternalagentconnectionresponse.ts +2 -18
- package/src/models/components/updateruncellrequest.ts +3 -23
- package/src/models/operations/createimagevariation.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/listdeploymentversions.ts +1 -1
- 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 +1 -1
- package/src/sdk/decisions.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/models/components/run.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/models/components/run.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type Card = {};
|
|
5
4
|
export type TestExternalAgentConnectionResponse = {
|
|
6
5
|
reachable?: boolean | undefined;
|
|
7
|
-
card?:
|
|
6
|
+
card?: {
|
|
7
|
+
[k: string]: any;
|
|
8
|
+
} | undefined;
|
|
8
9
|
};
|
|
9
10
|
/** @internal */
|
|
10
|
-
export declare const Card$inboundSchema: z.ZodType<Card, z.ZodTypeDef, unknown>;
|
|
11
|
-
export declare function cardFromJSON(jsonString: string): SafeParseResult<Card, SDKValidationError>;
|
|
12
|
-
/** @internal */
|
|
13
11
|
export declare const TestExternalAgentConnectionResponse$inboundSchema: z.ZodType<TestExternalAgentConnectionResponse, z.ZodTypeDef, unknown>;
|
|
14
12
|
export declare function testExternalAgentConnectionResponseFromJSON(jsonString: string): SafeParseResult<TestExternalAgentConnectionResponse, SDKValidationError>;
|
|
15
13
|
//# sourceMappingURL=testexternalagentconnectionresponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testexternalagentconnectionresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/testexternalagentconnectionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"testexternalagentconnectionresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/testexternalagentconnectionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -36,21 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TestExternalAgentConnectionResponse$inboundSchema =
|
|
40
|
-
exports.cardFromJSON = cardFromJSON;
|
|
39
|
+
exports.TestExternalAgentConnectionResponse$inboundSchema = void 0;
|
|
41
40
|
exports.testExternalAgentConnectionResponseFromJSON = testExternalAgentConnectionResponseFromJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
43
|
/** @internal */
|
|
45
|
-
exports.Card$inboundSchema = z
|
|
46
|
-
.object({});
|
|
47
|
-
function cardFromJSON(jsonString) {
|
|
48
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Card$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Card' from JSON`);
|
|
49
|
-
}
|
|
50
|
-
/** @internal */
|
|
51
44
|
exports.TestExternalAgentConnectionResponse$inboundSchema = z.object({
|
|
52
45
|
reachable: z.boolean().optional(),
|
|
53
|
-
card: z.
|
|
46
|
+
card: z.record(z.any()).optional(),
|
|
54
47
|
});
|
|
55
48
|
function testExternalAgentConnectionResponseFromJSON(jsonString) {
|
|
56
49
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TestExternalAgentConnectionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TestExternalAgentConnectionResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testexternalagentconnectionresponse.js","sourceRoot":"","sources":["../../src/models/components/testexternalagentconnectionresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"testexternalagentconnectionresponse.js","sourceRoot":"","sources":["../../src/models/components/testexternalagentconnectionresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,kGASC;AA7BD,0CAA4B;AAC5B,qDAAiD;AASjD,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,SAAgB,2CAA2C,CACzD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,yDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
export type UpdateRunCellRequestValue = {};
|
|
3
2
|
export type UpdateRunCellRequest = {
|
|
4
|
-
value?:
|
|
3
|
+
value?: {
|
|
4
|
+
[k: string]: any;
|
|
5
|
+
} | undefined;
|
|
5
6
|
};
|
|
6
7
|
/** @internal */
|
|
7
|
-
export type UpdateRunCellRequestValue$Outbound = {};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const UpdateRunCellRequestValue$outboundSchema: z.ZodType<UpdateRunCellRequestValue$Outbound, z.ZodTypeDef, UpdateRunCellRequestValue>;
|
|
10
|
-
export declare function updateRunCellRequestValueToJSON(updateRunCellRequestValue: UpdateRunCellRequestValue): string;
|
|
11
|
-
/** @internal */
|
|
12
8
|
export type UpdateRunCellRequest$Outbound = {
|
|
13
|
-
value?:
|
|
9
|
+
value?: {
|
|
10
|
+
[k: string]: any;
|
|
11
|
+
} | undefined;
|
|
14
12
|
};
|
|
15
13
|
/** @internal */
|
|
16
14
|
export declare const UpdateRunCellRequest$outboundSchema: z.ZodType<UpdateRunCellRequest$Outbound, z.ZodTypeDef, UpdateRunCellRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateruncellrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/updateruncellrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"updateruncellrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/updateruncellrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -36,18 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UpdateRunCellRequest$outboundSchema =
|
|
40
|
-
exports.updateRunCellRequestValueToJSON = updateRunCellRequestValueToJSON;
|
|
39
|
+
exports.UpdateRunCellRequest$outboundSchema = void 0;
|
|
41
40
|
exports.updateRunCellRequestToJSON = updateRunCellRequestToJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
/** @internal */
|
|
44
|
-
exports.UpdateRunCellRequestValue$outboundSchema = z.object({});
|
|
45
|
-
function updateRunCellRequestValueToJSON(updateRunCellRequestValue) {
|
|
46
|
-
return JSON.stringify(exports.UpdateRunCellRequestValue$outboundSchema.parse(updateRunCellRequestValue));
|
|
47
|
-
}
|
|
48
|
-
/** @internal */
|
|
49
43
|
exports.UpdateRunCellRequest$outboundSchema = z.object({
|
|
50
|
-
value: z.
|
|
44
|
+
value: z.record(z.any()).optional(),
|
|
51
45
|
});
|
|
52
46
|
function updateRunCellRequestToJSON(updateRunCellRequest) {
|
|
53
47
|
return JSON.stringify(exports.UpdateRunCellRequest$outboundSchema.parse(updateRunCellRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateruncellrequest.js","sourceRoot":"","sources":["../../src/models/components/updateruncellrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"updateruncellrequest.js","sourceRoot":"","sources":["../../src/models/components/updateruncellrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,gEAMC;AA1BD,0CAA4B;AAW5B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -230,7 +230,7 @@ export type CreateImageVariationOrq = {
|
|
|
230
230
|
*/
|
|
231
231
|
export type CreateImageVariationRequestBody = {
|
|
232
232
|
/**
|
|
233
|
-
* The image to
|
|
233
|
+
* The image to vary. Must be a supported image file. It should be a png, webp, or jpg file less than 50MB.
|
|
234
234
|
*/
|
|
235
235
|
image?: CreateImageVariationImage | Blob | undefined;
|
|
236
236
|
/**
|
|
@@ -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_01M6FXGGAQWYD4XRVCN49JHN1S"),
|
|
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_01M6FXGGAPKT3SMNZ9FW7096B8"),
|
|
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_01M6FXGGAPA1ZJYTWE5KMMB468"),
|
|
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_01M6FXGGAPF9R013Y73EWFKX8Z"),
|
|
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_01M6FXGGAN1CCDET343C5AH9DC"),
|
|
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_01M6FXGGAMST2TWE77E7W00T5G"),
|
|
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_01M6FXGGAMEF6W1FY5Z09A5AKP"),
|
|
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_01M6FXGGAMQ96KQ7ZNBBY9W59K"),
|
|
370
370
|
path: z.string(),
|
|
371
371
|
key: z.string(),
|
|
372
372
|
display_name: z.string().optional(),
|
|
@@ -1017,7 +1017,7 @@ function knowledgeBaseConfigurationFromJSON(jsonString) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
/** @internal */
|
|
1019
1019
|
exports.ListDeploymentVersionsKnowledgeBases$inboundSchema = z.object({
|
|
1020
|
-
id: z.string().default("
|
|
1020
|
+
id: z.string().default("01M6FXGG7YRWTR564RD95W67RG"),
|
|
1021
1021
|
knowledge_id: z.string(),
|
|
1022
1022
|
configuration: z.union([
|
|
1023
1023
|
z.lazy(() => exports.KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -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_01M6FXGGAVWVXZEXMVM2F0YH6M"),
|
|
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_01M6FXGGAVPHR2XC1YHCQBZB7J"),
|
|
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_01M6FXGGAT0GK138HCF35XX7F0"),
|
|
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_01M6FXGGATT3FBRMR86GQCCWXY"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
/** @internal */
|
|
1110
1110
|
exports.Tools$outboundSchema = z.object({
|
|
1111
|
-
id: z.string().default("
|
|
1111
|
+
id: z.string().default("01M6FXGG9KF08R86C7601NJTEP"),
|
|
1112
1112
|
name: z.string(),
|
|
1113
1113
|
description: z.string().optional(),
|
|
1114
1114
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1074,7 +1074,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1074
1074
|
}
|
|
1075
1075
|
/** @internal */
|
|
1076
1076
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1077
|
-
id: z.string().default("
|
|
1077
|
+
id: z.string().default("01M6FXGG9XAADWM4MZ7D76BDSQ"),
|
|
1078
1078
|
name: z.string(),
|
|
1079
1079
|
description: z.string().optional(),
|
|
1080
1080
|
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_01M6FXGGARDWTVWYT0M6XAJTB2"),
|
|
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_01M6FXGGARDNNN37DAV09VDN1H"),
|
|
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_01M6FXGGARYEE2Q9GTH39NV5ZW"),
|
|
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_01M6FXGGAQMRXH984ZGWFTRP54"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
package/sdk/classify.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class Classify extends ClientSDK {
|
|
|
16
16
|
*
|
|
17
17
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
18
18
|
*
|
|
19
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
19
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
20
20
|
*
|
|
21
21
|
* 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.
|
|
22
22
|
*
|
package/sdk/classify.js
CHANGED
|
@@ -23,7 +23,7 @@ class Classify extends sdks_js_1.ClientSDK {
|
|
|
23
23
|
*
|
|
24
24
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
25
25
|
*
|
|
26
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
26
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
27
27
|
*
|
|
28
28
|
* 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.
|
|
29
29
|
*
|
package/sdk/decisions.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class Decisions extends ClientSDK {
|
|
|
14
14
|
*
|
|
15
15
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
16
16
|
*
|
|
17
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
17
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
18
18
|
*
|
|
19
19
|
* 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.
|
|
20
20
|
*/
|
package/sdk/decisions.js
CHANGED
|
@@ -21,7 +21,7 @@ class Decisions extends sdks_js_1.ClientSDK {
|
|
|
21
21
|
*
|
|
22
22
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
23
23
|
*
|
|
24
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
24
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
25
25
|
*
|
|
26
26
|
* 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.
|
|
27
27
|
*/
|
|
@@ -41,7 +41,7 @@ import { Result } from "../types/fp.js";
|
|
|
41
41
|
*
|
|
42
42
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
43
43
|
*
|
|
44
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
44
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
45
45
|
*
|
|
46
46
|
* 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.
|
|
47
47
|
*
|
|
@@ -39,7 +39,7 @@ import { Result } from "../types/fp.js";
|
|
|
39
39
|
*
|
|
40
40
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
41
41
|
*
|
|
42
|
-
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout;
|
|
42
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; when `retry` is omitted, the gateway retries twice before moving to the next fallback. The response identifies the model that answered.
|
|
43
43
|
*
|
|
44
44
|
* 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.
|
|
45
45
|
*/
|
package/src/lib/config.ts
CHANGED
|
@@ -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.25",
|
|
62
62
|
genVersion: "2.954.8",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.25 2.954.8 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -82,7 +82,7 @@ export type AgentStartedStreamingEventConditions = {
|
|
|
82
82
|
value: string;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export type
|
|
85
|
+
export type Tools = {
|
|
86
86
|
/**
|
|
87
87
|
* The id of the resource
|
|
88
88
|
*/
|
|
@@ -204,7 +204,7 @@ export type Settings = {
|
|
|
204
204
|
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
205
205
|
*/
|
|
206
206
|
chatExposed?: boolean | undefined;
|
|
207
|
-
tools?: Array<
|
|
207
|
+
tools?: Array<Tools> | undefined;
|
|
208
208
|
/**
|
|
209
209
|
* Configuration for an evaluator applied to the agent
|
|
210
210
|
*/
|
|
@@ -341,41 +341,38 @@ export function agentStartedStreamingEventConditionsFromJSON(
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/** @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",
|
|
344
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
345
|
+
.object({
|
|
346
|
+
id: z.string(),
|
|
347
|
+
key: z.string().optional(),
|
|
348
|
+
action_type: z.string(),
|
|
349
|
+
display_name: z.string().optional(),
|
|
350
|
+
description: z.string().optional(),
|
|
351
|
+
configuration: z.record(z.any()).optional(),
|
|
352
|
+
requires_approval: z.boolean().default(false),
|
|
353
|
+
tool_id: z.string().optional(),
|
|
354
|
+
whole_server: z.boolean().optional(),
|
|
355
|
+
conditions: z.array(
|
|
356
|
+
z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
|
|
357
|
+
).optional(),
|
|
358
|
+
timeout: z.number().optional(),
|
|
359
|
+
}).transform((v) => {
|
|
360
|
+
return remap$(v, {
|
|
361
|
+
"action_type": "actionType",
|
|
362
|
+
"display_name": "displayName",
|
|
363
|
+
"requires_approval": "requiresApproval",
|
|
364
|
+
"tool_id": "toolId",
|
|
365
|
+
"whole_server": "wholeServer",
|
|
366
|
+
});
|
|
369
367
|
});
|
|
370
|
-
});
|
|
371
368
|
|
|
372
|
-
export function
|
|
369
|
+
export function toolsFromJSON(
|
|
373
370
|
jsonString: string,
|
|
374
|
-
): SafeParseResult<
|
|
371
|
+
): SafeParseResult<Tools, SDKValidationError> {
|
|
375
372
|
return safeParse(
|
|
376
373
|
jsonString,
|
|
377
|
-
(x) =>
|
|
378
|
-
`Failed to parse '
|
|
374
|
+
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
375
|
+
`Failed to parse 'Tools' from JSON`,
|
|
379
376
|
);
|
|
380
377
|
}
|
|
381
378
|
|
|
@@ -456,8 +453,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
456
453
|
"respect_tool",
|
|
457
454
|
),
|
|
458
455
|
chat_exposed: z.boolean().optional(),
|
|
459
|
-
tools: z.array(z.lazy(() =>
|
|
460
|
-
.optional(),
|
|
456
|
+
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
461
457
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
462
458
|
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
463
459
|
}).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(),
|