@orq-ai/node 4.10.25 → 4.10.30
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/event-streams.d.ts +7 -2
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +2 -1
- package/lib/event-streams.js.map +1 -1
- package/models/components/azurefoundrydeployment.d.ts +3 -0
- package/models/components/azurefoundrydeployment.d.ts.map +1 -1
- package/models/components/azurefoundrydeployment.js +4 -0
- package/models/components/azurefoundrydeployment.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/modelcreateawsbedrock.d.ts +4 -0
- package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelcreateawsbedrock.js +4 -0
- package/models/operations/modelcreateawsbedrock.js.map +1 -1
- package/models/operations/modelupdateawsbedrock.d.ts +4 -2
- package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelupdateawsbedrock.js +4 -2
- package/models/operations/modelupdateawsbedrock.js.map +1 -1
- package/models/operations/modelvalidateawsbedrock.d.ts +2 -0
- package/models/operations/modelvalidateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelvalidateawsbedrock.js +2 -0
- package/models/operations/modelvalidateawsbedrock.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +2 -2
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +8 -5
- package/packages/orq-rc/src/funcs/agentsStream.ts +2 -2
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsList.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsCreate.ts +4 -3
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +15 -7
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +7 -0
- package/packages/orq-rc/src/models/components/budget.ts +12 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +12 -4
- package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
- package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
- package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +7 -3
- package/packages/orq-rc/src/models/components/index.ts +4 -4
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/packages/orq-rc/src/models/operations/budgetlist.ts +7 -0
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +4 -550
- package/packages/orq-rc/src/models/operations/createannotation.ts +110 -16
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +335 -19
- package/packages/orq-rc/src/models/operations/createdatasource.ts +4 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +13 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +46 -3
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1156 -1606
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +221 -3675
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +244 -286
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1
- 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/invokeagent.ts +90 -116
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +378 -19
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +8 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +8 -4
- package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +4 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +42 -18
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +363 -19
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamagent.ts +16 -11
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +366 -19
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -12
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +2 -2
- package/packages/orq-rc/src/sdk/annotations.ts +2 -2
- package/packages/orq-rc/src/sdk/deployments.ts +2 -1
- package/packages/orq-rc/src/sdk/feedback.ts +1 -4
- package/packages/orq-rc/src/sdk/models.ts +0 -35
- package/packages/orq-rc/src/sdk/orqresponses.ts +2 -2
- package/packages/orq-rc/src/sdk/prompts.ts +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +15 -7
- package/src/models/components/azurefoundrydeployment.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/modelcreateawsbedrock.ts +8 -0
- package/src/models/operations/modelupdateawsbedrock.ts +8 -4
- package/src/models/operations/modelvalidateawsbedrock.ts +4 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
- package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +0 -166
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +0 -144
- package/packages/orq-rc/src/models/components/litellmmodel.ts +0 -50
- package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +0 -97
- package/packages/orq-rc/src/models/components/litellmparams.ts +0 -43
- package/packages/orq-rc/src/models/components/modeldocument.ts +0 -112
|
@@ -11,6 +11,7 @@ export type ModelValidateAwsBedrockRequestBody = {
|
|
|
11
11
|
authMode: string;
|
|
12
12
|
inferenceProfileArn: string;
|
|
13
13
|
integrationId?: string | undefined;
|
|
14
|
+
modelType?: string | undefined;
|
|
14
15
|
region: string;
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -21,6 +22,7 @@ export type ModelValidateAwsBedrockRequestBody$Outbound = {
|
|
|
21
22
|
auth_mode: string;
|
|
22
23
|
inference_profile_arn: string;
|
|
23
24
|
integration_id?: string | undefined;
|
|
25
|
+
model_type?: string | undefined;
|
|
24
26
|
region: string;
|
|
25
27
|
};
|
|
26
28
|
|
|
@@ -35,6 +37,7 @@ export const ModelValidateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
35
37
|
authMode: z.string(),
|
|
36
38
|
inferenceProfileArn: z.string(),
|
|
37
39
|
integrationId: z.string().optional(),
|
|
40
|
+
modelType: z.string().optional(),
|
|
38
41
|
region: z.string(),
|
|
39
42
|
}).transform((v) => {
|
|
40
43
|
return remap$(v, {
|
|
@@ -43,6 +46,7 @@ export const ModelValidateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
43
46
|
authMode: "auth_mode",
|
|
44
47
|
inferenceProfileArn: "inference_profile_arn",
|
|
45
48
|
integrationId: "integration_id",
|
|
49
|
+
modelType: "model_type",
|
|
46
50
|
});
|
|
47
51
|
});
|
|
48
52
|
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-06-
|
|
321
|
+
"2026-06-21T08:27:58.801Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-06-
|
|
367
|
+
"2026-06-21T08:27:58.801Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -37,12 +37,18 @@ export type RequestBody3 = {
|
|
|
37
37
|
*/
|
|
38
38
|
evaluationType: PostV2FeedbackEvaluationRequestBodyEvaluationType;
|
|
39
39
|
/**
|
|
40
|
-
* The unique identifier of the human review
|
|
40
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
41
41
|
*/
|
|
42
|
-
humanReviewId
|
|
42
|
+
humanReviewId?: string | undefined;
|
|
43
43
|
source?: PostV2FeedbackEvaluationRequestBodyFeedbackSource | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Optional free-text explanation of the value
|
|
46
|
+
*/
|
|
47
|
+
explanation?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Deprecated. The date and time the item was reviewed
|
|
50
|
+
*
|
|
51
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
46
52
|
*/
|
|
47
53
|
reviewedAt?: Date | undefined;
|
|
48
54
|
type: "string_array";
|
|
@@ -81,12 +87,18 @@ export type PostV2FeedbackEvaluationRequestBody2 = {
|
|
|
81
87
|
*/
|
|
82
88
|
evaluationType: RequestBodyEvaluationType;
|
|
83
89
|
/**
|
|
84
|
-
* The unique identifier of the human review
|
|
90
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
85
91
|
*/
|
|
86
|
-
humanReviewId
|
|
92
|
+
humanReviewId?: string | undefined;
|
|
87
93
|
source?: PostV2FeedbackEvaluationRequestBodySource | undefined;
|
|
88
94
|
/**
|
|
89
|
-
*
|
|
95
|
+
* Optional free-text explanation of the value
|
|
96
|
+
*/
|
|
97
|
+
explanation?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Deprecated. The date and time the item was reviewed
|
|
100
|
+
*
|
|
101
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
90
102
|
*/
|
|
91
103
|
reviewedAt?: Date | undefined;
|
|
92
104
|
type: "number";
|
|
@@ -121,12 +133,18 @@ export type PostV2FeedbackEvaluationRequestBody1 = {
|
|
|
121
133
|
*/
|
|
122
134
|
evaluationType: EvaluationType;
|
|
123
135
|
/**
|
|
124
|
-
* The unique identifier of the human review
|
|
136
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
125
137
|
*/
|
|
126
|
-
humanReviewId
|
|
138
|
+
humanReviewId?: string | undefined;
|
|
127
139
|
source?: RequestBodySource | undefined;
|
|
128
140
|
/**
|
|
129
|
-
*
|
|
141
|
+
* Optional free-text explanation of the value
|
|
142
|
+
*/
|
|
143
|
+
explanation?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Deprecated. The date and time the item was reviewed
|
|
146
|
+
*
|
|
147
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
130
148
|
*/
|
|
131
149
|
reviewedAt?: Date | undefined;
|
|
132
150
|
type: "string";
|
|
@@ -153,8 +171,9 @@ export const PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema:
|
|
|
153
171
|
export type RequestBody3$Outbound = {
|
|
154
172
|
id: string;
|
|
155
173
|
evaluation_type: string;
|
|
156
|
-
human_review_id
|
|
174
|
+
human_review_id?: string | undefined;
|
|
157
175
|
source: string;
|
|
176
|
+
explanation?: string | undefined;
|
|
158
177
|
reviewed_at: string;
|
|
159
178
|
type: "string_array";
|
|
160
179
|
values: Array<string>;
|
|
@@ -170,10 +189,11 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
170
189
|
id: z.string(),
|
|
171
190
|
evaluationType:
|
|
172
191
|
PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
|
|
173
|
-
humanReviewId: z.string(),
|
|
192
|
+
humanReviewId: z.string().optional(),
|
|
174
193
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
175
194
|
.default("orq"),
|
|
176
|
-
|
|
195
|
+
explanation: z.string().optional(),
|
|
196
|
+
reviewedAt: z.date().default(() => new Date("2026-06-21T08:28:28.771Z"))
|
|
177
197
|
.transform(v => v.toISOString()),
|
|
178
198
|
type: z.literal("string_array"),
|
|
179
199
|
values: z.array(z.string()),
|
|
@@ -205,8 +225,9 @@ export const PostV2FeedbackEvaluationRequestBodySource$outboundSchema:
|
|
|
205
225
|
export type PostV2FeedbackEvaluationRequestBody2$Outbound = {
|
|
206
226
|
id: string;
|
|
207
227
|
evaluation_type: string;
|
|
208
|
-
human_review_id
|
|
228
|
+
human_review_id?: string | undefined;
|
|
209
229
|
source: string;
|
|
230
|
+
explanation?: string | undefined;
|
|
210
231
|
reviewed_at: string;
|
|
211
232
|
type: "number";
|
|
212
233
|
value: number;
|
|
@@ -221,11 +242,12 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
|
|
|
221
242
|
> = z.object({
|
|
222
243
|
id: z.string(),
|
|
223
244
|
evaluationType: RequestBodyEvaluationType$outboundSchema,
|
|
224
|
-
humanReviewId: z.string(),
|
|
245
|
+
humanReviewId: z.string().optional(),
|
|
225
246
|
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
226
247
|
"orq",
|
|
227
248
|
),
|
|
228
|
-
|
|
249
|
+
explanation: z.string().optional(),
|
|
250
|
+
reviewedAt: z.date().default(() => new Date("2026-06-21T08:28:28.770Z"))
|
|
229
251
|
.transform(v => v.toISOString()),
|
|
230
252
|
type: z.literal("number"),
|
|
231
253
|
value: z.number(),
|
|
@@ -263,8 +285,9 @@ export const RequestBodySource$outboundSchema: z.ZodNativeEnum<
|
|
|
263
285
|
export type PostV2FeedbackEvaluationRequestBody1$Outbound = {
|
|
264
286
|
id: string;
|
|
265
287
|
evaluation_type: string;
|
|
266
|
-
human_review_id
|
|
288
|
+
human_review_id?: string | undefined;
|
|
267
289
|
source: string;
|
|
290
|
+
explanation?: string | undefined;
|
|
268
291
|
reviewed_at: string;
|
|
269
292
|
type: "string";
|
|
270
293
|
value: string;
|
|
@@ -279,9 +302,10 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
|
|
|
279
302
|
> = z.object({
|
|
280
303
|
id: z.string(),
|
|
281
304
|
evaluationType: EvaluationType$outboundSchema,
|
|
282
|
-
humanReviewId: z.string(),
|
|
305
|
+
humanReviewId: z.string().optional(),
|
|
283
306
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
284
|
-
|
|
307
|
+
explanation: z.string().optional(),
|
|
308
|
+
reviewedAt: z.date().default(() => new Date("2026-06-21T08:28:28.770Z"))
|
|
285
309
|
.transform(v => v.toISOString()),
|
|
286
310
|
type: z.literal("string"),
|
|
287
311
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-06-
|
|
274
|
+
"2026-06-21T08:27:58.801Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-06-
|
|
319
|
+
"2026-06-21T08:27:58.801Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|