@orq-ai/node 4.14.17 → 4.14.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +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/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.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/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +5 -4
- package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +6 -6
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +6 -6
- package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +6 -6
- package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +10 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsValidate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/webhooksGet.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/aggregatelogsrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +1 -1
- package/packages/orq-rc/src/models/components/evaluationcontext.ts +4 -20
- package/packages/orq-rc/src/models/components/evaluationresult.ts +7 -11
- package/packages/orq-rc/src/models/components/index.ts +0 -4
- package/packages/orq-rc/src/models/components/invokeevaluatorrequest.ts +6 -29
- package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/searchknowledgematch.ts +1 -4
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +4 -4
- package/packages/orq-rc/src/models/components/searchretrievalconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/skill.ts +2 -3
- package/packages/orq-rc/src/models/components/spansummary.ts +21 -0
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/traceusage.ts +3 -0
- package/packages/orq-rc/src/models/components/webhook.ts +2 -2
- package/packages/orq-rc/src/models/operations/budgetlist.ts +2 -3
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +5 -5
- package/packages/orq-rc/src/models/operations/createcompletion.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +8 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +8 -0
- package/packages/orq-rc/src/models/operations/parse.ts +3 -3
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +2 -0
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +2 -0
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/annotationqueues.ts +4 -4
- package/packages/orq-rc/src/sdk/budgets.ts +1 -1
- package/packages/orq-rc/src/sdk/projects.ts +3 -3
- package/packages/orq-rc/src/sdk/webhooks.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- 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/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.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/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +0 -38
- package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +0 -28
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
| SDKValidationError
|
|
159
159
|
>(
|
|
160
160
|
M.json(200, operations.ModelUpdateAwsBedrockResponseBody$inboundSchema),
|
|
161
|
-
M.fail([400, 404, "4XX"]),
|
|
161
|
+
M.fail([400, 401, 404, "4XX"]),
|
|
162
162
|
M.fail("5XX"),
|
|
163
163
|
)(response, req);
|
|
164
164
|
if (!result.ok) {
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
| SDKValidationError
|
|
159
159
|
>(
|
|
160
160
|
M.json(200, operations.ModelUpdateOpenAILikeResponseBody$inboundSchema),
|
|
161
|
-
M.fail([400, 404, "4XX"]),
|
|
161
|
+
M.fail([400, 401, 404, "4XX"]),
|
|
162
162
|
M.fail("5XX"),
|
|
163
163
|
)(response, req);
|
|
164
164
|
if (!result.ok) {
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create a new project
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
|
|
32
|
+
* Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
|
|
33
33
|
*/
|
|
34
34
|
export function projectsCreate(
|
|
35
35
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Delete a project
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Deletes a project from the workspace. The response body is empty when the delete succeeds.
|
|
33
|
+
* Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
|
|
34
34
|
*/
|
|
35
35
|
export function projectsDelete(
|
|
36
36
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Update a project
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Updates the specified project by setting the values of the parameters passed.
|
|
33
|
+
* Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
|
|
34
34
|
*/
|
|
35
35
|
export function projectsUpdate(
|
|
36
36
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Retrieve a webhook
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Retrieves a webhook in the current workspace by ID. The
|
|
33
|
+
* Retrieves a webhook in the current workspace by ID. The signing secret is returned masked; it is only shown in full when the webhook is created.
|
|
34
34
|
*/
|
|
35
35
|
export function webhooksGet(
|
|
36
36
|
client: OrqCore,
|
|
@@ -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.15.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
61
|
+
sdkVersion: "4.15.0-rc.51",
|
|
62
|
+
genVersion: "2.937.18",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.51 2.937.18 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -13,11 +13,11 @@ export type AggregateLogsRequest = {
|
|
|
13
13
|
from?: Date | undefined;
|
|
14
14
|
to?: Date | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* Time bucket grain: "auto" | "minute" | "hour" | "day"
|
|
16
|
+
* Time bucket grain: "auto" | "minute" | "hour" | "day". "auto" picks the
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* grain from the requested time range. Empty returns rows without time
|
|
20
|
+
* buckets.
|
|
21
21
|
*/
|
|
22
22
|
grain?: string | undefined;
|
|
23
23
|
filters?: Array<TraceFilter> | undefined;
|
|
@@ -13,7 +13,7 @@ export type AuditLogFilter = {
|
|
|
13
13
|
*/
|
|
14
14
|
type: string;
|
|
15
15
|
/**
|
|
16
|
-
* Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, and metadata.display_name.
|
|
16
|
+
* Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, origin, and metadata.display_name.
|
|
17
17
|
*/
|
|
18
18
|
path: string;
|
|
19
19
|
/**
|
|
@@ -14,17 +14,15 @@ import {
|
|
|
14
14
|
StructuredOutput$outboundSchema,
|
|
15
15
|
} from "./structuredoutput.js";
|
|
16
16
|
|
|
17
|
-
export type Messages = {};
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* The data to grade. When `messages` is present it is the conversation and
|
|
21
19
|
*
|
|
22
20
|
* @remarks
|
|
23
21
|
* `input.user_query` is ignored; `output.response` is appended only when the
|
|
24
|
-
* conversation carries no assistant turn.
|
|
22
|
+
* conversation carries no assistant turn.
|
|
25
23
|
*/
|
|
26
24
|
export type EvaluationContext = {
|
|
27
|
-
messages?: Array<
|
|
25
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
28
26
|
/**
|
|
29
27
|
* StructuredInput names its fields after the template variables they feed, so
|
|
30
28
|
*
|
|
@@ -36,23 +34,9 @@ export type EvaluationContext = {
|
|
|
36
34
|
variables?: { [k: string]: any } | undefined;
|
|
37
35
|
};
|
|
38
36
|
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type Messages$Outbound = {};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const Messages$outboundSchema: z.ZodType<
|
|
44
|
-
Messages$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
Messages
|
|
47
|
-
> = z.object({});
|
|
48
|
-
|
|
49
|
-
export function messagesToJSON(messages: Messages): string {
|
|
50
|
-
return JSON.stringify(Messages$outboundSchema.parse(messages));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
37
|
/** @internal */
|
|
54
38
|
export type EvaluationContext$Outbound = {
|
|
55
|
-
messages?: Array<
|
|
39
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
56
40
|
input?: StructuredInput$Outbound | undefined;
|
|
57
41
|
output?: StructuredOutput$Outbound | undefined;
|
|
58
42
|
variables?: { [k: string]: any } | undefined;
|
|
@@ -64,7 +48,7 @@ export const EvaluationContext$outboundSchema: z.ZodType<
|
|
|
64
48
|
z.ZodTypeDef,
|
|
65
49
|
EvaluationContext
|
|
66
50
|
> = z.object({
|
|
67
|
-
messages: z.array(z.
|
|
51
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
68
52
|
input: StructuredInput$outboundSchema.optional(),
|
|
69
53
|
output: StructuredOutput$outboundSchema.optional(),
|
|
70
54
|
variables: z.record(z.any()).optional(),
|
|
@@ -9,14 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* The verdict.
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* TypeScript route returned, so existing consumers read the same JSON.
|
|
12
|
+
* The verdict. Its shape is fixed so existing consumers read the same JSON.
|
|
16
13
|
*/
|
|
17
14
|
export type EvaluationResult = {
|
|
18
15
|
/**
|
|
19
|
-
* Discriminator
|
|
16
|
+
* Discriminator for the verdict shape: "string", "number", "boolean",
|
|
20
17
|
*
|
|
21
18
|
* @remarks
|
|
22
19
|
* "string_array", "rouge_n", "bert_score", "llm_evaluator", "http_eval".
|
|
@@ -34,17 +31,16 @@ export type EvaluationResult = {
|
|
|
34
31
|
* Trace reference of the evaluator's own span. Optional so an absent
|
|
35
32
|
*
|
|
36
33
|
* @remarks
|
|
37
|
-
* reference is omitted rather than emitted as an empty string
|
|
38
|
-
* legacy body.
|
|
34
|
+
* reference is omitted rather than emitted as an empty string.
|
|
39
35
|
*/
|
|
40
36
|
traceId?: string | undefined;
|
|
41
37
|
spanId?: string | undefined;
|
|
42
38
|
evaluatorId?: string | undefined;
|
|
43
39
|
/**
|
|
44
|
-
* How the run ended, as distinct from `passed`: "passed", "condition_failed"
|
|
40
|
+
* How the run ended, as distinct from `passed`: "passed", "condition_failed",
|
|
45
41
|
*
|
|
46
42
|
* @remarks
|
|
47
|
-
* or "timed_out". A string, not an enum, because the engine owns the
|
|
43
|
+
* "failed" or "timed_out". A string, not an enum, because the engine owns the
|
|
48
44
|
* vocabulary.
|
|
49
45
|
*/
|
|
50
46
|
status?: string | undefined;
|
|
@@ -52,8 +48,8 @@ export type EvaluationResult = {
|
|
|
52
48
|
* The guardrail's decision when the evaluator has one, the grader's own
|
|
53
49
|
*
|
|
54
50
|
* @remarks
|
|
55
|
-
* judgement otherwise. Always present
|
|
56
|
-
*
|
|
51
|
+
* judgement otherwise. Always present, so read `guardrail_config` to detect
|
|
52
|
+
* a guardrail, not this.
|
|
57
53
|
*/
|
|
58
54
|
passed?: boolean | undefined;
|
|
59
55
|
explanation?: string | undefined;
|
|
@@ -6,7 +6,6 @@ export * from "./accesslevel.js";
|
|
|
6
6
|
export * from "./actionreviewedstreamingevent.js";
|
|
7
7
|
export * from "./actionreviewrequestedstreamingevent.js";
|
|
8
8
|
export * from "./addannotationqueueitemsrequest.js";
|
|
9
|
-
export * from "./addannotationqueueitemsresponse.js";
|
|
10
9
|
export * from "./addiprangerequest.js";
|
|
11
10
|
export * from "./addiprangeresponse.js";
|
|
12
11
|
export * from "./advisortoolinput.js";
|
|
@@ -90,7 +89,6 @@ export * from "./chunksservicelistpaginatedresponse.js";
|
|
|
90
89
|
export * from "./chunksservicelistresponse.js";
|
|
91
90
|
export * from "./chunksservicesetenabledrequest.js";
|
|
92
91
|
export * from "./chunksserviceupdaterequest.js";
|
|
93
|
-
export * from "./clearannotationqueueresponse.js";
|
|
94
92
|
export * from "./codeinterpretertoolinput.js";
|
|
95
93
|
export * from "./codetoolinput.js";
|
|
96
94
|
export * from "./conversationparam.js";
|
|
@@ -148,7 +146,6 @@ export * from "./datasourcesservicepreviewchunksrequest.js";
|
|
|
148
146
|
export * from "./datasourcesservicepreviewchunksresponse.js";
|
|
149
147
|
export * from "./datasourcesserviceupdaterequest.js";
|
|
150
148
|
export * from "./deletealertresponse.js";
|
|
151
|
-
export * from "./deleteannotationqueueresponse.js";
|
|
152
149
|
export * from "./deletebudgetresponse.js";
|
|
153
150
|
export * from "./deleteevaluatorresponse.js";
|
|
154
151
|
export * from "./deletefileresponse.js";
|
|
@@ -435,7 +432,6 @@ export * from "./redactrequest.js";
|
|
|
435
432
|
export * from "./redactresponse.js";
|
|
436
433
|
export * from "./refusalpartschema.js";
|
|
437
434
|
export * from "./removeannotationqueueitemsrequest.js";
|
|
438
|
-
export * from "./removeannotationqueueitemsresponse.js";
|
|
439
435
|
export * from "./requestlimit.js";
|
|
440
436
|
export * from "./rerankconfig.js";
|
|
441
437
|
export * from "./rerankmodelparameters.js";
|
|
@@ -9,14 +9,12 @@ import {
|
|
|
9
9
|
EvaluationContext$outboundSchema,
|
|
10
10
|
} from "./evaluationcontext.js";
|
|
11
11
|
|
|
12
|
-
export type InvokeEvaluatorRequestMessages = {};
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* Accepts two shapes. `context` names its fields after the template variables
|
|
16
14
|
*
|
|
17
15
|
* @remarks
|
|
18
|
-
* they feed and is the one to use; the flat fields below are
|
|
19
|
-
*
|
|
16
|
+
* they feed and is the one to use; the flat fields below are folded into
|
|
17
|
+
* `context` when it is absent. Setting `context` wins.
|
|
20
18
|
*/
|
|
21
19
|
export type InvokeEvaluatorRequest = {
|
|
22
20
|
/**
|
|
@@ -24,7 +22,7 @@ export type InvokeEvaluatorRequest = {
|
|
|
24
22
|
*
|
|
25
23
|
* @remarks
|
|
26
24
|
* `input.user_query` is ignored; `output.response` is appended only when the
|
|
27
|
-
* conversation carries no assistant turn.
|
|
25
|
+
* conversation carries no assistant turn.
|
|
28
26
|
*/
|
|
29
27
|
context?: EvaluationContext | undefined;
|
|
30
28
|
/**
|
|
@@ -65,7 +63,7 @@ export type InvokeEvaluatorRequest = {
|
|
|
65
63
|
* @remarks
|
|
66
64
|
* `context.messages`.
|
|
67
65
|
*/
|
|
68
|
-
messages?: Array<
|
|
66
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
69
67
|
/**
|
|
70
68
|
* Template variables for evaluator prompt substitution. Folds into
|
|
71
69
|
*
|
|
@@ -75,26 +73,6 @@ export type InvokeEvaluatorRequest = {
|
|
|
75
73
|
variables?: { [k: string]: any } | undefined;
|
|
76
74
|
};
|
|
77
75
|
|
|
78
|
-
/** @internal */
|
|
79
|
-
export type InvokeEvaluatorRequestMessages$Outbound = {};
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const InvokeEvaluatorRequestMessages$outboundSchema: z.ZodType<
|
|
83
|
-
InvokeEvaluatorRequestMessages$Outbound,
|
|
84
|
-
z.ZodTypeDef,
|
|
85
|
-
InvokeEvaluatorRequestMessages
|
|
86
|
-
> = z.object({});
|
|
87
|
-
|
|
88
|
-
export function invokeEvaluatorRequestMessagesToJSON(
|
|
89
|
-
invokeEvaluatorRequestMessages: InvokeEvaluatorRequestMessages,
|
|
90
|
-
): string {
|
|
91
|
-
return JSON.stringify(
|
|
92
|
-
InvokeEvaluatorRequestMessages$outboundSchema.parse(
|
|
93
|
-
invokeEvaluatorRequestMessages,
|
|
94
|
-
),
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
76
|
/** @internal */
|
|
99
77
|
export type InvokeEvaluatorRequest$Outbound = {
|
|
100
78
|
context?: EvaluationContext$Outbound | undefined;
|
|
@@ -103,7 +81,7 @@ export type InvokeEvaluatorRequest$Outbound = {
|
|
|
103
81
|
output?: string | undefined;
|
|
104
82
|
reference?: string | undefined;
|
|
105
83
|
retrievals?: Array<string> | undefined;
|
|
106
|
-
messages?: Array<
|
|
84
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
107
85
|
variables?: { [k: string]: any } | undefined;
|
|
108
86
|
};
|
|
109
87
|
|
|
@@ -119,8 +97,7 @@ export const InvokeEvaluatorRequest$outboundSchema: z.ZodType<
|
|
|
119
97
|
output: z.string().optional(),
|
|
120
98
|
reference: z.string().optional(),
|
|
121
99
|
retrievals: z.array(z.string()).optional(),
|
|
122
|
-
messages: z.array(z.
|
|
123
|
-
.optional(),
|
|
100
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
124
101
|
variables: z.record(z.any()).optional(),
|
|
125
102
|
});
|
|
126
103
|
|
|
@@ -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 knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the
|
|
12
|
+
* The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the [Supported models](/docs/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_01m2jktwbaerm0jddw9vawcwt0"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -20,10 +20,7 @@ export type SearchKnowledgeMatch = {
|
|
|
20
20
|
id: string;
|
|
21
21
|
text: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* repeated fields are omitted by proto JSON, preserving optional vectors.
|
|
23
|
+
* Embedding vector of the chunk, returned only when requested.
|
|
27
24
|
*/
|
|
28
25
|
vector?: Array<number> | undefined;
|
|
29
26
|
/**
|
|
@@ -311,7 +311,7 @@ export type Two = {
|
|
|
311
311
|
*/
|
|
312
312
|
model?: string | undefined;
|
|
313
313
|
/**
|
|
314
|
-
*
|
|
314
|
+
* Identifier of the stored model configuration to use.
|
|
315
315
|
*/
|
|
316
316
|
modelDbId: string;
|
|
317
317
|
/**
|
|
@@ -330,7 +330,7 @@ export type AgenticRagConfig1 = {
|
|
|
330
330
|
*/
|
|
331
331
|
model: string;
|
|
332
332
|
/**
|
|
333
|
-
*
|
|
333
|
+
* Identifier of the stored model configuration to use.
|
|
334
334
|
*/
|
|
335
335
|
modelDbId?: string | undefined;
|
|
336
336
|
/**
|
|
@@ -349,10 +349,10 @@ export type AgenticRagConfig1 = {
|
|
|
349
349
|
export type SearchKnowledgeRequestAgenticRagConfig = Two | AgenticRagConfig1;
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
352
|
+
* Search request. Sets the knowledge base and query, plus optional retrieval
|
|
353
353
|
*
|
|
354
354
|
* @remarks
|
|
355
|
-
*
|
|
355
|
+
* settings.
|
|
356
356
|
*/
|
|
357
357
|
export type SearchKnowledgeRequest = {
|
|
358
358
|
/**
|
|
@@ -31,7 +31,7 @@ export type SearchRetrievalConfigRerankConfig = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* SearchRetrievalConfig
|
|
34
|
+
* SearchRetrievalConfig is the retrieval strategy configuration. Type remains
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* optional because external knowledge bases use the same base configuration
|
|
@@ -58,11 +58,10 @@ export type Skill = {
|
|
|
58
58
|
*/
|
|
59
59
|
instructions: string;
|
|
60
60
|
/**
|
|
61
|
-
* Latest semver
|
|
61
|
+
* Latest semver for the skill. It advances when the skill's definition
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
*
|
|
65
|
-
* workspaces.activities.
|
|
64
|
+
* changes and is returned on every read.
|
|
66
65
|
*/
|
|
67
66
|
version: string;
|
|
68
67
|
};
|
|
@@ -27,6 +27,18 @@ export type SpanSummary = {
|
|
|
27
27
|
usage?: TraceUsage | undefined;
|
|
28
28
|
cost?: TraceCost | undefined;
|
|
29
29
|
hasDetail?: boolean | undefined;
|
|
30
|
+
level?: number | undefined;
|
|
31
|
+
hasChildren?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Row badge inputs, so the tree does not need a detail fetch per span:
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* trace_framework is set on the trace root, leading_span_type where the
|
|
37
|
+
* ingest marked one, guardrail_enabled on evaluator spans run as guardrails.
|
|
38
|
+
*/
|
|
39
|
+
traceFramework?: string | undefined;
|
|
40
|
+
leadingSpanType?: string | undefined;
|
|
41
|
+
guardrailEnabled?: boolean | undefined;
|
|
30
42
|
};
|
|
31
43
|
|
|
32
44
|
/** @internal */
|
|
@@ -53,6 +65,11 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
53
65
|
usage: TraceUsage$inboundSchema.optional(),
|
|
54
66
|
cost: TraceCost$inboundSchema.optional(),
|
|
55
67
|
has_detail: z.boolean().optional(),
|
|
68
|
+
level: z.number().int().optional(),
|
|
69
|
+
has_children: z.boolean().optional(),
|
|
70
|
+
trace_framework: z.string().optional(),
|
|
71
|
+
leading_span_type: z.string().optional(),
|
|
72
|
+
guardrail_enabled: z.boolean().optional(),
|
|
56
73
|
}).transform((v) => {
|
|
57
74
|
return remap$(v, {
|
|
58
75
|
"trace_id": "traceId",
|
|
@@ -62,6 +79,10 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
62
79
|
"ended_at": "endedAt",
|
|
63
80
|
"duration_ms": "durationMs",
|
|
64
81
|
"has_detail": "hasDetail",
|
|
82
|
+
"has_children": "hasChildren",
|
|
83
|
+
"trace_framework": "traceFramework",
|
|
84
|
+
"leading_span_type": "leadingSpanType",
|
|
85
|
+
"guardrail_enabled": "guardrailEnabled",
|
|
65
86
|
});
|
|
66
87
|
});
|
|
67
88
|
|
|
@@ -18,6 +18,7 @@ export type TraceUsage = {
|
|
|
18
18
|
completionAudioTokens?: number | undefined;
|
|
19
19
|
completionAcceptedPredictionTokens?: number | undefined;
|
|
20
20
|
completionRejectedPredictionTokens?: number | undefined;
|
|
21
|
+
promptCacheCreationTokens?: number | undefined;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
/** @internal */
|
|
@@ -35,6 +36,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
|
|
|
35
36
|
completion_audio_tokens: z.number().int().optional(),
|
|
36
37
|
completion_accepted_prediction_tokens: z.number().int().optional(),
|
|
37
38
|
completion_rejected_prediction_tokens: z.number().int().optional(),
|
|
39
|
+
prompt_cache_creation_tokens: z.number().int().optional(),
|
|
38
40
|
}).transform((v) => {
|
|
39
41
|
return remap$(v, {
|
|
40
42
|
"prompt_tokens": "promptTokens",
|
|
@@ -48,6 +50,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
|
|
|
48
50
|
"completionAcceptedPredictionTokens",
|
|
49
51
|
"completion_rejected_prediction_tokens":
|
|
50
52
|
"completionRejectedPredictionTokens",
|
|
53
|
+
"prompt_cache_creation_tokens": "promptCacheCreationTokens",
|
|
51
54
|
});
|
|
52
55
|
});
|
|
53
56
|
|
|
@@ -22,7 +22,7 @@ export const ContentType = {
|
|
|
22
22
|
export type ContentType = ClosedEnum<typeof ContentType>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* A webhook subscription and its delivery configuration.
|
|
25
|
+
* A webhook subscription and its delivery configuration. The signing secret is shown in full only in the create response and is masked everywhere else.
|
|
26
26
|
*/
|
|
27
27
|
export type Webhook = {
|
|
28
28
|
/**
|
|
@@ -46,7 +46,7 @@ export type Webhook = {
|
|
|
46
46
|
*/
|
|
47
47
|
events: Array<string>;
|
|
48
48
|
/**
|
|
49
|
-
* Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes.
|
|
49
|
+
* Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Shown in full only in the create response; list and get return a masked value.
|
|
50
50
|
*/
|
|
51
51
|
secret: string;
|
|
52
52
|
/**
|
|
@@ -48,11 +48,10 @@ export type BudgetListRequest = {
|
|
|
48
48
|
*/
|
|
49
49
|
period?: Array<components.BudgetPeriod> | undefined;
|
|
50
50
|
/**
|
|
51
|
-
* Optional free-text query
|
|
51
|
+
* Optional free-text query matched against a budget's scope target
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
55
|
-
* the per-workspace `{workspace_id}_budgets` collection.
|
|
54
|
+
* name and id.
|
|
56
55
|
*/
|
|
57
56
|
query?: string | undefined;
|
|
58
57
|
/**
|
|
@@ -1229,7 +1229,7 @@ export type FilterBy1 =
|
|
|
1229
1229
|
| CreateChatCompletion1Nin;
|
|
1230
1230
|
|
|
1231
1231
|
/**
|
|
1232
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge
|
|
1232
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
|
|
1233
1233
|
*/
|
|
1234
1234
|
export type FilterBy = FilterByAnd | FilterByOr | {
|
|
1235
1235
|
[k: string]:
|
|
@@ -1266,7 +1266,7 @@ export type SearchOptions = {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
export type RerankConfig = {
|
|
1268
1268
|
/**
|
|
1269
|
-
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/
|
|
1269
|
+
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/ai-gateway/supported-models#rerank-models).
|
|
1270
1270
|
*/
|
|
1271
1271
|
model: string;
|
|
1272
1272
|
/**
|
|
@@ -1284,7 +1284,7 @@ export type RerankConfig = {
|
|
|
1284
1284
|
*/
|
|
1285
1285
|
export type AgenticRagConfig = {
|
|
1286
1286
|
/**
|
|
1287
|
-
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/
|
|
1287
|
+
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/ai-gateway/supported-models#chat-models).
|
|
1288
1288
|
*/
|
|
1289
1289
|
model: string;
|
|
1290
1290
|
};
|
|
@@ -1303,7 +1303,7 @@ export type CreateChatCompletionKnowledgeBases = {
|
|
|
1303
1303
|
*/
|
|
1304
1304
|
searchType?: SearchType | null | undefined;
|
|
1305
1305
|
/**
|
|
1306
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge
|
|
1306
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
|
|
1307
1307
|
*/
|
|
1308
1308
|
filterBy?: FilterByAnd | FilterByOr | {
|
|
1309
1309
|
[k: string]:
|
|
@@ -1449,7 +1449,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1449
1449
|
| CreateChatCompletionMessagesToolMessage
|
|
1450
1450
|
>;
|
|
1451
1451
|
/**
|
|
1452
|
-
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the
|
|
1452
|
+
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
|
|
1453
1453
|
*/
|
|
1454
1454
|
model: string;
|
|
1455
1455
|
/**
|