@orq-ai/node 4.18.0-rc.23 → 4.18.0-rc.24
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/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/memorystoreembeddingconfig.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactedreasoningpartschema.d.ts +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/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 +3 -3
- 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/externalagent.ts +2 -21
- package/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactedreasoningpartschema.ts +1 -1
- package/src/models/components/testexternalagentconnectionresponse.ts +2 -18
- 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
|
@@ -23,7 +23,7 @@ import { Result } from "../types/fp.js";
|
|
|
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
|
*
|
|
@@ -62,7 +62,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
62
62
|
*
|
|
63
63
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
64
64
|
*
|
|
65
|
-
* 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;
|
|
65
|
+
* 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.
|
|
66
66
|
*
|
|
67
67
|
* 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.
|
|
68
68
|
*
|
|
@@ -21,7 +21,7 @@ import { Result } from "../types/fp.js";
|
|
|
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
|
*/
|
|
@@ -60,7 +60,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
60
60
|
*
|
|
61
61
|
* Instructions and criteria accept strings or structured JSON. TypeSafe models also accept inline images through `assets` (beta).
|
|
62
62
|
*
|
|
63
|
-
* 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;
|
|
63
|
+
* 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.
|
|
64
64
|
*
|
|
65
65
|
* 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.
|
|
66
66
|
*/
|
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.18.0-rc.
|
|
34
|
+
readonly sdkVersion: "4.18.0-rc.24";
|
|
35
35
|
readonly genVersion: "2.954.8";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.18.0-rc.24 2.954.8 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.18.0-rc.
|
|
31
|
+
sdkVersion: "4.18.0-rc.24",
|
|
32
32
|
genVersion: "2.954.8",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.24 2.954.8 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -2,7 +2,6 @@ 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
4
|
import { ExternalAgentHeader } from "./externalagentheader.js";
|
|
5
|
-
export type CachedCard = {};
|
|
6
5
|
export type ExternalAgent = {
|
|
7
6
|
agentId: string;
|
|
8
7
|
key: string;
|
|
@@ -17,7 +16,9 @@ export type ExternalAgent = {
|
|
|
17
16
|
};
|
|
18
17
|
protocolVersion: string;
|
|
19
18
|
preferredTransport: string;
|
|
20
|
-
cachedCard:
|
|
19
|
+
cachedCard: {
|
|
20
|
+
[k: string]: any;
|
|
21
|
+
};
|
|
21
22
|
cardRefreshedAt?: Date | undefined;
|
|
22
23
|
createdAt: Date;
|
|
23
24
|
updatedAt: Date;
|
|
@@ -26,9 +27,6 @@ export type ExternalAgent = {
|
|
|
26
27
|
version: string;
|
|
27
28
|
};
|
|
28
29
|
/** @internal */
|
|
29
|
-
export declare const CachedCard$inboundSchema: z.ZodType<CachedCard, z.ZodTypeDef, unknown>;
|
|
30
|
-
export declare function cachedCardFromJSON(jsonString: string): SafeParseResult<CachedCard, SDKValidationError>;
|
|
31
|
-
/** @internal */
|
|
32
30
|
export declare const ExternalAgent$inboundSchema: z.ZodType<ExternalAgent, z.ZodTypeDef, unknown>;
|
|
33
31
|
export declare function externalAgentFromJSON(jsonString: string): SafeParseResult<ExternalAgent, SDKValidationError>;
|
|
34
32
|
//# sourceMappingURL=externalagent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalagent.d.ts","sourceRoot":"","sources":["../../src/models/components/externalagent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"externalagent.d.ts","sourceRoot":"","sources":["../../src/models/components/externalagent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACjC,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAsCP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -36,19 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ExternalAgent$inboundSchema =
|
|
40
|
-
exports.cachedCardFromJSON = cachedCardFromJSON;
|
|
39
|
+
exports.ExternalAgent$inboundSchema = void 0;
|
|
41
40
|
exports.externalAgentFromJSON = externalAgentFromJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
44
|
const externalagentheader_js_1 = require("./externalagentheader.js");
|
|
46
45
|
/** @internal */
|
|
47
|
-
exports.CachedCard$inboundSchema = z.object({});
|
|
48
|
-
function cachedCardFromJSON(jsonString) {
|
|
49
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CachedCard$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CachedCard' from JSON`);
|
|
50
|
-
}
|
|
51
|
-
/** @internal */
|
|
52
46
|
exports.ExternalAgent$inboundSchema = z.object({
|
|
53
47
|
agent_id: z.string(),
|
|
54
48
|
key: z.string(),
|
|
@@ -61,7 +55,7 @@ exports.ExternalAgent$inboundSchema = z.object({
|
|
|
61
55
|
headers: z.record(externalagentheader_js_1.ExternalAgentHeader$inboundSchema),
|
|
62
56
|
protocol_version: z.string(),
|
|
63
57
|
preferred_transport: z.string(),
|
|
64
|
-
cached_card: z.
|
|
58
|
+
cached_card: z.record(z.any()),
|
|
65
59
|
card_refreshed_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
66
60
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
67
61
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalagent.js","sourceRoot":"","sources":["../../src/models/components/externalagent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"externalagent.js","sourceRoot":"","sources":["../../src/models/components/externalagent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,sDAQC;AAnFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qEAGkC;AAuBlC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,0DAAiC,CAAC;IACpD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC9B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACrE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;IACZ,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;QACvB,UAAU,EAAE,SAAS;QACrB,kBAAkB,EAAE,iBAAiB;QACrC,qBAAqB,EAAE,oBAAoB;QAC3C,aAAa,EAAE,YAAY;QAC3B,mBAAmB,EAAE,iBAAiB;QACtC,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,aAAa;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type MemoryStoreEmbeddingConfig = {
|
|
5
5
|
/**
|
|
6
|
-
* The embeddings model to use for the
|
|
6
|
+
* The embeddings model to use for the memory store in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model is used to embed entries when they are written to the memory store. Refer to the [Supported models](/ai-gateway/supported-models) to browse available models.
|
|
7
7
|
*/
|
|
8
8
|
model: string;
|
|
9
9
|
};
|
|
@@ -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_01m6e5cqsw8bqxrt5nrh4hxfcd"),
|
|
47
47
|
metadata: z.record(z.any()).optional(),
|
|
48
48
|
kind: z.literal("reasoning"),
|
|
49
49
|
reasoning: z.string(),
|
|
@@ -6,7 +6,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type RedactedReasoningPartSchema = {
|
|
8
8
|
/**
|
|
9
|
-
* The type of the content part. Always `
|
|
9
|
+
* The type of the content part. Always `redacted_reasoning`.
|
|
10
10
|
*/
|
|
11
11
|
type: "redacted_reasoning";
|
|
12
12
|
/**
|
|
@@ -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"}
|
|
@@ -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_01M6E5CQVVDQPBK1HQFYZAZR2E"),
|
|
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_01M6E5CQVTT4FD48VKARY0C5J6"),
|
|
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_01M6E5CQVT793V0V3BD4FTF2XW"),
|
|
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_01M6E5CQVTJ4F8CQWREYNT4XEJ"),
|
|
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_01M6E5CQVS71D06D966TH1D83M"),
|
|
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_01M6E5CQVRW36VY4GYH5H35ZJ0"),
|
|
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_01M6E5CQVRTZ6D0AP9RRNW3WHD"),
|
|
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_01M6E5CQVRV6H9645X1CHB72ZX"),
|
|
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("01M6E5CQS9JS09NTF3NFH2SM1N"),
|
|
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_01M6E5CQVZ5113NYKC1CP0RS59"),
|
|
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_01M6E5CQVYMYX3JBJG9B9YP2SV"),
|
|
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_01M6E5CQVYA7DB53GQ8DMMH4S1"),
|
|
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_01M6E5CQVYPC04VX5K3KHRD0VG"),
|
|
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("01M6E5CQTT5M6RQBQ1X3P9W8N2"),
|
|
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("01M6E5CQV3NSX201E0W0PVHGJZ"),
|
|
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_01M6E5CQVWNJBXSN3AEXARJR0W"),
|
|
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_01M6E5CQVWK6STGJTFQ66BQSFY"),
|
|
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_01M6E5CQVWNFSQB2YKQB85TMWG"),
|
|
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_01M6E5CQVV9QPBAB7C3N0GYSRA"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.18.0-rc.
|
|
3
|
+
"version": "4.18.0-rc.24",
|
|
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": {
|
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.24",
|
|
62
62
|
genVersion: "2.954.8",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.24 2.954.8 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
ExternalAgentHeader$inboundSchema,
|
|
13
13
|
} from "./externalagentheader.js";
|
|
14
14
|
|
|
15
|
-
export type CachedCard = {};
|
|
16
|
-
|
|
17
15
|
export type ExternalAgent = {
|
|
18
16
|
agentId: string;
|
|
19
17
|
key: string;
|
|
@@ -26,7 +24,7 @@ export type ExternalAgent = {
|
|
|
26
24
|
headers: { [k: string]: ExternalAgentHeader };
|
|
27
25
|
protocolVersion: string;
|
|
28
26
|
preferredTransport: string;
|
|
29
|
-
cachedCard:
|
|
27
|
+
cachedCard: { [k: string]: any };
|
|
30
28
|
cardRefreshedAt?: Date | undefined;
|
|
31
29
|
createdAt: Date;
|
|
32
30
|
updatedAt: Date;
|
|
@@ -35,23 +33,6 @@ export type ExternalAgent = {
|
|
|
35
33
|
version: string;
|
|
36
34
|
};
|
|
37
35
|
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const CachedCard$inboundSchema: z.ZodType<
|
|
40
|
-
CachedCard,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
unknown
|
|
43
|
-
> = z.object({});
|
|
44
|
-
|
|
45
|
-
export function cachedCardFromJSON(
|
|
46
|
-
jsonString: string,
|
|
47
|
-
): SafeParseResult<CachedCard, SDKValidationError> {
|
|
48
|
-
return safeParse(
|
|
49
|
-
jsonString,
|
|
50
|
-
(x) => CachedCard$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
-
`Failed to parse 'CachedCard' from JSON`,
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
36
|
/** @internal */
|
|
56
37
|
export const ExternalAgent$inboundSchema: z.ZodType<
|
|
57
38
|
ExternalAgent,
|
|
@@ -69,7 +50,7 @@ export const ExternalAgent$inboundSchema: z.ZodType<
|
|
|
69
50
|
headers: z.record(ExternalAgentHeader$inboundSchema),
|
|
70
51
|
protocol_version: z.string(),
|
|
71
52
|
preferred_transport: z.string(),
|
|
72
|
-
cached_card: z.
|
|
53
|
+
cached_card: z.record(z.any()),
|
|
73
54
|
card_refreshed_at: z.string().datetime({ offset: true }).transform(v =>
|
|
74
55
|
new Date(v)
|
|
75
56
|
).optional(),
|
|
@@ -9,7 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type MemoryStoreEmbeddingConfig = {
|
|
11
11
|
/**
|
|
12
|
-
* The embeddings model to use for the
|
|
12
|
+
* The embeddings model to use for the memory store in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model is used to embed entries when they are written to the memory store. Refer to the [Supported models](/ai-gateway/supported-models) to browse available models.
|
|
13
13
|
*/
|
|
14
14
|
model: string;
|
|
15
15
|
};
|
|
@@ -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_01m6e5cqsw8bqxrt5nrh4hxfcd"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type RedactedReasoningPartSchema = {
|
|
14
14
|
/**
|
|
15
|
-
* The type of the content part. Always `
|
|
15
|
+
* The type of the content part. Always `redacted_reasoning`.
|
|
16
16
|
*/
|
|
17
17
|
type: "redacted_reasoning";
|
|
18
18
|
/**
|
|
@@ -7,27 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export type Card = {};
|
|
11
|
-
|
|
12
10
|
export type TestExternalAgentConnectionResponse = {
|
|
13
11
|
reachable?: boolean | undefined;
|
|
14
|
-
card?:
|
|
12
|
+
card?: { [k: string]: any } | undefined;
|
|
15
13
|
};
|
|
16
14
|
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const Card$inboundSchema: z.ZodType<Card, z.ZodTypeDef, unknown> = z
|
|
19
|
-
.object({});
|
|
20
|
-
|
|
21
|
-
export function cardFromJSON(
|
|
22
|
-
jsonString: string,
|
|
23
|
-
): SafeParseResult<Card, SDKValidationError> {
|
|
24
|
-
return safeParse(
|
|
25
|
-
jsonString,
|
|
26
|
-
(x) => Card$inboundSchema.parse(JSON.parse(x)),
|
|
27
|
-
`Failed to parse 'Card' from JSON`,
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
15
|
/** @internal */
|
|
32
16
|
export const TestExternalAgentConnectionResponse$inboundSchema: z.ZodType<
|
|
33
17
|
TestExternalAgentConnectionResponse,
|
|
@@ -35,7 +19,7 @@ export const TestExternalAgentConnectionResponse$inboundSchema: z.ZodType<
|
|
|
35
19
|
unknown
|
|
36
20
|
> = z.object({
|
|
37
21
|
reachable: z.boolean().optional(),
|
|
38
|
-
card: z.
|
|
22
|
+
card: z.record(z.any()).optional(),
|
|
39
23
|
});
|
|
40
24
|
|
|
41
25
|
export function testExternalAgentConnectionResponseFromJSON(
|
|
@@ -279,7 +279,7 @@ export type CreateImageVariationOrq = {
|
|
|
279
279
|
*/
|
|
280
280
|
export type CreateImageVariationRequestBody = {
|
|
281
281
|
/**
|
|
282
|
-
* The image to
|
|
282
|
+
* The image to vary. Must be a supported image file. It should be a png, webp, or jpg file less than 50MB.
|
|
283
283
|
*/
|
|
284
284
|
image?: CreateImageVariationImage | Blob | undefined;
|
|
285
285
|
/**
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M6E5CQVVDQPBK1HQFYZAZR2E"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M6E5CQVTT4FD48VKARY0C5J6"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M6E5CQVT793V0V3BD4FTF2XW"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M6E5CQVTJ4F8CQWREYNT4XEJ"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M6E5CQVS71D06D966TH1D83M"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M6E5CQVRW36VY4GYH5H35ZJ0"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M6E5CQVRTZ6D0AP9RRNW3WHD"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M6E5CQVRV6H9645X1CHB72ZX"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -2531,7 +2531,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
2531
2531
|
z.ZodTypeDef,
|
|
2532
2532
|
unknown
|
|
2533
2533
|
> = z.object({
|
|
2534
|
-
id: z.string().default("
|
|
2534
|
+
id: z.string().default("01M6E5CQS9JS09NTF3NFH2SM1N"),
|
|
2535
2535
|
knowledge_id: z.string(),
|
|
2536
2536
|
configuration: z.union([
|
|
2537
2537
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M6E5CQVZ5113NYKC1CP0RS59"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M6E5CQVYMYX3JBJG9B9YP2SV"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M6E5CQVYA7DB53GQ8DMMH4S1"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M6E5CQVYPC04VX5K3KHRD0VG"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3918,7 +3918,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3918
3918
|
z.ZodTypeDef,
|
|
3919
3919
|
Tools
|
|
3920
3920
|
> = z.object({
|
|
3921
|
-
id: z.string().default("
|
|
3921
|
+
id: z.string().default("01M6E5CQTT5M6RQBQ1X3P9W8N2"),
|
|
3922
3922
|
name: z.string(),
|
|
3923
3923
|
description: z.string().optional(),
|
|
3924
3924
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3977,7 +3977,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3977
3977
|
z.ZodTypeDef,
|
|
3978
3978
|
AgentToolInputRunTools
|
|
3979
3979
|
> = z.object({
|
|
3980
|
-
id: z.string().default("
|
|
3980
|
+
id: z.string().default("01M6E5CQV3NSX201E0W0PVHGJZ"),
|
|
3981
3981
|
name: z.string(),
|
|
3982
3982
|
description: z.string().optional(),
|
|
3983
3983
|
schema: z.lazy(() =>
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M6E5CQVWNJBXSN3AEXARJR0W"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M6E5CQVWK6STGJTFQ66BQSFY"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M6E5CQVWNFSQB2YKQB85TMWG"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M6E5CQVV9QPBAB7C3N0GYSRA"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/classify.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class Classify extends 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/src/sdk/decisions.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class Decisions extends 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
|
*/
|