@orq-ai/node 4.16.0-rc.57 → 4.16.0-rc.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -52
- package/funcs/routerClassifyCreate.d.ts +2 -2
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +2 -2
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +18 -0
- package/funcs/routerDecisionsCreate.d.ts.map +1 -0
- package/funcs/routerDecisionsCreate.js +123 -0
- package/funcs/routerDecisionsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/classifyanswer.d.ts +6 -47
- package/models/components/classifyanswer.d.ts.map +1 -1
- package/models/components/classifyanswer.js +11 -20
- package/models/components/classifyanswer.js.map +1 -1
- package/models/components/classifychoiceanswer.d.ts +24 -0
- package/models/components/classifychoiceanswer.d.ts.map +1 -0
- package/models/components/classifychoiceanswer.js +53 -0
- package/models/components/classifychoiceanswer.js.map +1 -0
- package/models/components/classifyinputtokensdetails.d.ts +17 -0
- package/models/components/classifyinputtokensdetails.d.ts.map +1 -0
- package/models/components/classifyinputtokensdetails.js +57 -0
- package/models/components/classifyinputtokensdetails.js.map +1 -0
- package/models/components/classifynoulanswer.d.ts +14 -0
- package/models/components/classifynoulanswer.d.ts.map +1 -0
- package/models/components/classifynoulanswer.js +51 -0
- package/models/components/classifynoulanswer.js.map +1 -0
- package/models/components/classifyrefusalanswer.d.ts +10 -0
- package/models/components/classifyrefusalanswer.d.ts.map +1 -0
- package/models/components/classifyrefusalanswer.js +50 -0
- package/models/components/classifyrefusalanswer.js.map +1 -0
- package/models/components/classifyretryconfig.d.ts +4 -4
- package/models/components/classifyretryconfig.d.ts.map +1 -1
- package/models/components/classifyretryconfig.js +1 -1
- package/models/components/classifyretryconfig.js.map +1 -1
- package/models/components/classifyscoreanswer.d.ts +30 -0
- package/models/components/classifyscoreanswer.d.ts.map +1 -0
- package/models/components/classifyscoreanswer.js +54 -0
- package/models/components/classifyscoreanswer.js.map +1 -0
- package/models/components/classifyusage.d.ts +4 -2
- package/models/components/classifyusage.d.ts.map +1 -1
- package/models/components/classifyusage.js +3 -0
- package/models/components/classifyusage.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/model.d.ts +4 -0
- package/models/components/model.d.ts.map +1 -1
- package/models/components/model.js +1 -0
- package/models/components/model.js.map +1 -1
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/createclassify.d.ts +90 -6
- package/models/errors/createclassify.d.ts.map +1 -1
- package/models/errors/createclassify.js +116 -4
- package/models/errors/createclassify.js.map +1 -1
- package/models/errors/createdecisions.d.ts +151 -0
- package/models/errors/createdecisions.d.ts.map +1 -0
- package/models/errors/createdecisions.js +239 -0
- package/models/errors/createdecisions.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createclassify.d.ts +9 -4
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +2 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +237 -0
- package/models/operations/createdecisions.d.ts.map +1 -0
- package/models/operations/createdecisions.js +148 -0
- package/models/operations/createdecisions.js.map +1 -0
- 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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/decisions.d.ts +12 -0
- package/sdk/decisions.d.ts.map +1 -0
- package/sdk/decisions.js +22 -0
- package/sdk/decisions.js.map +1 -0
- package/sdk/router.d.ts +3 -0
- package/sdk/router.d.ts.map +1 -1
- package/sdk/router.js +4 -0
- package/sdk/router.js.map +1 -1
- package/src/funcs/routerClassifyCreate.ts +31 -3
- package/src/funcs/routerDecisionsCreate.ts +218 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/classifyanswer.ts +28 -56
- package/src/models/components/classifychoiceanswer.ts +46 -0
- package/src/models/components/classifyinputtokensdetails.ts +45 -0
- package/src/models/components/classifynoulanswer.ts +36 -0
- package/src/models/components/classifyrefusalanswer.ts +31 -0
- package/src/models/components/classifyretryconfig.ts +5 -5
- package/src/models/components/classifyscoreanswer.ts +51 -0
- package/src/models/components/classifyusage.ts +9 -2
- package/src/models/components/index.ts +5 -0
- package/src/models/components/model.ts +5 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/createclassify.ts +214 -6
- package/src/models/errors/createdecisions.ts +363 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createclassify.ts +11 -4
- package/src/models/operations/createdecisions.ts +434 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/decisions.ts +27 -0
- package/src/sdk/router.ts +6 -0
|
@@ -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_01M4AT2CQDQCBGPWHA2X69DZY7"),
|
|
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_01M4AT2CQCHG6FXM6PV31K1N54"),
|
|
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_01M4AT2CQC76S92CVGNSCR7P45"),
|
|
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_01M4AT2CQB6KC0KY5WFFJF3TTX"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/classify.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Classify extends ClientSDK {
|
|
|
12
12
|
* Classify
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against
|
|
15
|
+
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
|
|
16
16
|
*/
|
|
17
17
|
async create(
|
|
18
18
|
request: operations.CreateClassifyRequestBody,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { routerDecisionsCreate } from "../funcs/routerDecisionsCreate.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Decisions extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Decisions
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
|
|
16
|
+
*/
|
|
17
|
+
async create(
|
|
18
|
+
request: operations.CreateDecisionsRequestBody,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.CreateDecisionsResponseBody> {
|
|
21
|
+
return unwrapAsync(routerDecisionsCreate(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/sdk/router.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Audio } from "./audio.js";
|
|
|
10
10
|
import { Chat } from "./chat.js";
|
|
11
11
|
import { Classify } from "./classify.js";
|
|
12
12
|
import { Completions } from "./completions.js";
|
|
13
|
+
import { Decisions } from "./decisions.js";
|
|
13
14
|
import { Embeddings } from "./embeddings.js";
|
|
14
15
|
import { Images } from "./images.js";
|
|
15
16
|
import { Moderations } from "./moderations.js";
|
|
@@ -56,6 +57,11 @@ export class Router extends ClientSDK {
|
|
|
56
57
|
return (this._classify ??= new Classify(this._options));
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
private _decisions?: Decisions;
|
|
61
|
+
get decisions(): Decisions {
|
|
62
|
+
return (this._decisions ??= new Decisions(this._options));
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
/**
|
|
60
66
|
* Extracts text content while maintaining document structure and hierarchy
|
|
61
67
|
*/
|