@orq-ai/node 4.10.22 → 4.10.23
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/retries.js +7 -0
- package/lib/retries.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/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 +8 -8
- package/packages/orq-rc/src/funcs/knowledgeList.ts +3 -0
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +2 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/modelmetadata.ts +12 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +13 -7
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +25 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createknowledge.ts +12 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +13 -0
- 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/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- 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/listknowledgebases.ts +38 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- 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/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +29 -8
- 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/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/feedback.ts +1 -4
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +8 -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/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
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KV81C1M7AGWKX2SCYCD6P3PQ"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KV81C1M6X6XZT3X5QRN5TGHJ"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KV81C1M4FPFD67R9XN96MEAJ"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KV81C1M2MWNRBQF6WPCWG2XP"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KV81C1M0YH73KPS4WXJW4KNC"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KV81C1KZM1AK8B6N0769MY6P"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -3861,7 +3861,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3861
3861
|
z.ZodTypeDef,
|
|
3862
3862
|
Tools
|
|
3863
3863
|
> = z.object({
|
|
3864
|
-
id: z.string().default("
|
|
3864
|
+
id: z.string().default("01KV81C1BPVVZ6VQNR318YW4NR"),
|
|
3865
3865
|
name: z.string(),
|
|
3866
3866
|
description: z.string().optional(),
|
|
3867
3867
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3916,7 +3916,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3916
3916
|
z.ZodTypeDef,
|
|
3917
3917
|
AgentToolInputRunTools
|
|
3918
3918
|
> = z.object({
|
|
3919
|
-
id: z.string().default("
|
|
3919
|
+
id: z.string().default("01KV81C1DA95NMJ14YPNMHK3DF"),
|
|
3920
3920
|
name: z.string(),
|
|
3921
3921
|
description: z.string().optional(),
|
|
3922
3922
|
schema: z.lazy(() =>
|
|
@@ -10,6 +10,8 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
+
export type UpdateDatapointInputs = string | number | boolean;
|
|
14
|
+
|
|
13
15
|
export type UpdateDatapointContentDatasetsRequest2 =
|
|
14
16
|
components.TextContentPartSchema;
|
|
15
17
|
|
|
@@ -364,9 +366,9 @@ export type UpdateDatapointMessages =
|
|
|
364
366
|
|
|
365
367
|
export type UpdateDatapointRequestBody = {
|
|
366
368
|
/**
|
|
367
|
-
* The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
|
|
369
|
+
* The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects and arrays are not supported.
|
|
368
370
|
*/
|
|
369
|
-
inputs?: { [k: string]:
|
|
371
|
+
inputs?: { [k: string]: string | number | boolean | null } | undefined;
|
|
370
372
|
/**
|
|
371
373
|
* A list of messages comprising the conversation so far
|
|
372
374
|
*/
|
|
@@ -958,6 +960,24 @@ export type UpdateDatapointResponseBody = {
|
|
|
958
960
|
updated: Date;
|
|
959
961
|
};
|
|
960
962
|
|
|
963
|
+
/** @internal */
|
|
964
|
+
export type UpdateDatapointInputs$Outbound = string | number | boolean;
|
|
965
|
+
|
|
966
|
+
/** @internal */
|
|
967
|
+
export const UpdateDatapointInputs$outboundSchema: z.ZodType<
|
|
968
|
+
UpdateDatapointInputs$Outbound,
|
|
969
|
+
z.ZodTypeDef,
|
|
970
|
+
UpdateDatapointInputs
|
|
971
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
972
|
+
|
|
973
|
+
export function updateDatapointInputsToJSON(
|
|
974
|
+
updateDatapointInputs: UpdateDatapointInputs,
|
|
975
|
+
): string {
|
|
976
|
+
return JSON.stringify(
|
|
977
|
+
UpdateDatapointInputs$outboundSchema.parse(updateDatapointInputs),
|
|
978
|
+
);
|
|
979
|
+
}
|
|
980
|
+
|
|
961
981
|
/** @internal */
|
|
962
982
|
export type UpdateDatapointContentDatasetsRequest2$Outbound =
|
|
963
983
|
components.TextContentPartSchema$Outbound;
|
|
@@ -1636,7 +1656,7 @@ export function updateDatapointMessagesToJSON(
|
|
|
1636
1656
|
|
|
1637
1657
|
/** @internal */
|
|
1638
1658
|
export type UpdateDatapointRequestBody$Outbound = {
|
|
1639
|
-
inputs?: { [k: string]:
|
|
1659
|
+
inputs?: { [k: string]: string | number | boolean | null } | undefined;
|
|
1640
1660
|
messages?:
|
|
1641
1661
|
| Array<
|
|
1642
1662
|
| UpdateDatapointMessagesSystemMessage$Outbound
|
|
@@ -1655,7 +1675,8 @@ export const UpdateDatapointRequestBody$outboundSchema: z.ZodType<
|
|
|
1655
1675
|
z.ZodTypeDef,
|
|
1656
1676
|
UpdateDatapointRequestBody
|
|
1657
1677
|
> = z.object({
|
|
1658
|
-
inputs: z.record(z.
|
|
1678
|
+
inputs: z.record(z.nullable(z.union([z.string(), z.number(), z.boolean()])))
|
|
1679
|
+
.optional(),
|
|
1659
1680
|
messages: z.array(
|
|
1660
1681
|
z.union([
|
|
1661
1682
|
z.lazy(() => UpdateDatapointMessagesSystemMessage$outboundSchema),
|
|
@@ -2358,7 +2379,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2379
|
.default("orq"),
|
|
2359
2380
|
reviewed_by_id: z.string(),
|
|
2360
2381
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-06-
|
|
2382
|
+
"2026-06-16T10:59:25.131Z",
|
|
2362
2383
|
).transform(v => new Date(v)),
|
|
2363
2384
|
type: z.literal("string_array"),
|
|
2364
2385
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2425,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2425
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2426
|
reviewed_by_id: z.string(),
|
|
2406
2427
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-06-
|
|
2428
|
+
"2026-06-16T10:59:25.130Z",
|
|
2408
2429
|
).transform(v => new Date(v)),
|
|
2409
2430
|
type: z.literal("number"),
|
|
2410
2431
|
value: z.number(),
|
|
@@ -2449,7 +2470,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2470
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2471
|
reviewed_by_id: z.string(),
|
|
2451
2472
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-06-
|
|
2473
|
+
"2026-06-16T10:59:25.130Z",
|
|
2453
2474
|
).transform(v => new Date(v)),
|
|
2454
2475
|
type: z.literal("string"),
|
|
2455
2476
|
value: z.string(),
|
|
@@ -2530,7 +2551,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2551
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2552
|
.optional(),
|
|
2532
2553
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-06-
|
|
2554
|
+
"2026-06-16T10:59:02.870Z",
|
|
2534
2555
|
).transform(v => new Date(v)),
|
|
2535
2556
|
}).transform((v) => {
|
|
2536
2557
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-06-
|
|
185
|
+
"2026-06-16T10:59:02.870Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KV81C1PZFQ4PB71YA6YB6V3J"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.nullable(z.string()).optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -1553,8 +1553,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1553
1553
|
> = z.object({
|
|
1554
1554
|
_id: z.string(),
|
|
1555
1555
|
description: z.string(),
|
|
1556
|
-
created: z.string().default("2026-06-
|
|
1557
|
-
updated: z.string().default("2026-06-
|
|
1556
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
1557
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
1558
1558
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1559
1559
|
guardrail_config: z.nullable(
|
|
1560
1560
|
z.union([
|
|
@@ -1749,8 +1749,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
> = z.object({
|
|
1750
1750
|
_id: z.string(),
|
|
1751
1751
|
description: z.string(),
|
|
1752
|
-
created: z.string().default("2026-06-
|
|
1753
|
-
updated: z.string().default("2026-06-
|
|
1752
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
1753
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
1754
1754
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1755
1755
|
guardrail_config: z.nullable(
|
|
1756
1756
|
z.union([
|
|
@@ -2608,8 +2608,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2608
2608
|
> = z.object({
|
|
2609
2609
|
_id: z.string(),
|
|
2610
2610
|
description: z.string(),
|
|
2611
|
-
created: z.string().default("2026-06-
|
|
2612
|
-
updated: z.string().default("2026-06-
|
|
2611
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
2612
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
2613
2613
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2614
2614
|
guardrail_config: z.nullable(
|
|
2615
2615
|
z.union([
|
|
@@ -2827,8 +2827,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2827
2827
|
> = z.object({
|
|
2828
2828
|
_id: z.string(),
|
|
2829
2829
|
description: z.string(),
|
|
2830
|
-
created: z.string().default("2026-06-
|
|
2831
|
-
updated: z.string().default("2026-06-
|
|
2830
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
2831
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
2832
2832
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2833
2833
|
guardrail_config: z.nullable(
|
|
2834
2834
|
z.union([
|
|
@@ -2996,8 +2996,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2996
2996
|
> = z.object({
|
|
2997
2997
|
_id: z.string(),
|
|
2998
2998
|
description: z.string(),
|
|
2999
|
-
created: z.string().default("2026-06-
|
|
3000
|
-
updated: z.string().default("2026-06-
|
|
2999
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3000
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3001
3001
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3002
3002
|
guardrail_config: z.nullable(
|
|
3003
3003
|
z.union([
|
|
@@ -3150,8 +3150,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3150
3150
|
> = z.object({
|
|
3151
3151
|
_id: z.string(),
|
|
3152
3152
|
description: z.string(),
|
|
3153
|
-
created: z.string().default("2026-06-
|
|
3154
|
-
updated: z.string().default("2026-06-
|
|
3153
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3154
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3155
3155
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3156
3156
|
guardrail_config: z.nullable(
|
|
3157
3157
|
z.union([
|
|
@@ -3513,8 +3513,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3513
3513
|
> = z.object({
|
|
3514
3514
|
_id: z.string(),
|
|
3515
3515
|
description: z.string(),
|
|
3516
|
-
created: z.string().default("2026-06-
|
|
3517
|
-
updated: z.string().default("2026-06-
|
|
3516
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3517
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3518
3518
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3519
3519
|
guardrail_config: z.nullable(
|
|
3520
3520
|
z.union([
|
|
@@ -3726,8 +3726,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3726
3726
|
> = z.object({
|
|
3727
3727
|
_id: z.string(),
|
|
3728
3728
|
description: z.string(),
|
|
3729
|
-
created: z.string().default("2026-06-
|
|
3730
|
-
updated: z.string().default("2026-06-
|
|
3729
|
+
created: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3730
|
+
updated: z.string().default("2026-06-16T10:59:04.173Z"),
|
|
3731
3731
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3732
3732
|
guardrail_config: z.nullable(
|
|
3733
3733
|
z.union([
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KV81C1K15AKNBK03NRSWH169"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KV81C1JVPC32DVMFXXXH9CC0"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KV81C1JTRZVBCGE1V996NVB0"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KV81C1JRAPQSJG9GFD7KNV0K"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KV81C1JP2RPFFV86YD6S6QAC"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KV81C1JMASXE2JT3H3Q32XXG"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KV81C1JJKV5G4EYZPQ2J4X3J"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -45,10 +45,7 @@ export class Feedback extends ClientSDK {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* Creates a new agent with the specified configuration, including model selection, instructions, tools, and knowledge bases. Agents are intelligent assistants that can execute tasks, interact with tools, and maintain context through memory stores. The agent can be configured with a primary model and optional fallback models for automatic failover, custom instructions for behavior control, and various settings to control execution limits and tool usage.
|
|
48
|
+
* Create a knowledge
|
|
52
49
|
*/
|
|
53
50
|
async create(
|
|
54
51
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
package/sdk/feedback.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export declare class Feedback extends ClientSDK {
|
|
|
5
5
|
createEvaluation(request?: operations.PostV2FeedbackEvaluationRequestBody | undefined, options?: RequestOptions): Promise<void>;
|
|
6
6
|
remove(request?: operations.PostV2FeedbackRemoveRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackRemoveResponseBody>;
|
|
7
7
|
/**
|
|
8
|
-
* Create
|
|
8
|
+
* Create response
|
|
9
9
|
*
|
|
10
10
|
* @remarks
|
|
11
|
-
*
|
|
11
|
+
* Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
|
|
12
12
|
*/
|
|
13
13
|
create(request?: operations.PostV2FeedbackRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackResponseBody>;
|
|
14
14
|
}
|
package/sdk/feedback.js
CHANGED
|
@@ -21,10 +21,10 @@ class Feedback extends sdks_js_1.ClientSDK {
|
|
|
21
21
|
return (0, fp_js_1.unwrapAsync)((0, feedbackRemove_js_1.feedbackRemove)(this, request, options));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Create
|
|
24
|
+
* Create response
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
*
|
|
27
|
+
* Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
|
|
28
28
|
*/
|
|
29
29
|
async create(request, options) {
|
|
30
30
|
return (0, fp_js_1.unwrapAsync)((0, feedbackCreate_js_1.feedbackCreate)(this, request, options));
|
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.10.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.10.
|
|
61
|
+
sdkVersion: "4.10.23",
|
|
62
|
+
genVersion: "2.907.0",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.10.23 2.907.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
package/src/lib/retries.ts
CHANGED
|
@@ -194,6 +194,14 @@ async function retryBackoff(
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
function retryIntervalFromResponse(res: Response): number {
|
|
197
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
198
|
+
if (retryAfterMsVal) {
|
|
199
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
200
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
201
|
+
return parsedMs;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
const retryVal = res.headers.get("retry-after") || "";
|
|
198
206
|
if (!retryVal) {
|
|
199
207
|
return 0;
|
|
@@ -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_01kv985nqfts3ypcgcw2fp3z6h"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-16T22:17:09.631Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2372,7 +2372,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2372
2372
|
),
|
|
2373
2373
|
reviewed_by_id: z.string(),
|
|
2374
2374
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2375
|
-
"2026-06-
|
|
2375
|
+
"2026-06-16T22:17:31.144Z",
|
|
2376
2376
|
).transform(v => new Date(v)),
|
|
2377
2377
|
type: z.literal("string_array"),
|
|
2378
2378
|
values: z.array(z.string()),
|
|
@@ -2417,7 +2417,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2417
2417
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2418
2418
|
reviewed_by_id: z.string(),
|
|
2419
2419
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2420
|
-
"2026-06-
|
|
2420
|
+
"2026-06-16T22:17:31.143Z",
|
|
2421
2421
|
).transform(v => new Date(v)),
|
|
2422
2422
|
type: z.literal("number"),
|
|
2423
2423
|
value: z.number(),
|
|
@@ -2463,7 +2463,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2463
2463
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2464
2464
|
reviewed_by_id: z.string(),
|
|
2465
2465
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2466
|
-
"2026-06-
|
|
2466
|
+
"2026-06-16T22:17:31.143Z",
|
|
2467
2467
|
).transform(v => new Date(v)),
|
|
2468
2468
|
type: z.literal("string"),
|
|
2469
2469
|
value: z.string(),
|
|
@@ -2546,7 +2546,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2546
2546
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2547
2547
|
.optional(),
|
|
2548
2548
|
updated: z.string().datetime({ offset: true }).default(
|
|
2549
|
-
"2026-06-
|
|
2549
|
+
"2026-06-16T22:17:09.631Z",
|
|
2550
2550
|
).transform(v => new Date(v)),
|
|
2551
2551
|
}).transform((v) => {
|
|
2552
2552
|
return remap$(v, {
|
|
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
409
409
|
z.ZodTypeDef,
|
|
410
410
|
unknown
|
|
411
411
|
> = z.object({
|
|
412
|
-
_id: z.string().default("
|
|
412
|
+
_id: z.string().default("01KV985P5P7419TRXCA0D248TZ"),
|
|
413
413
|
display_name: z.string(),
|
|
414
414
|
description: z.nullable(z.string()).optional(),
|
|
415
415
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
> = z.object({
|
|
2194
2194
|
_id: z.string(),
|
|
2195
2195
|
description: z.string(),
|
|
2196
|
-
created: z.string().default("2026-06-
|
|
2197
|
-
updated: z.string().default("2026-06-
|
|
2196
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
2197
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
2198
2198
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2199
2199
|
guardrail_config: z.nullable(
|
|
2200
2200
|
z.union([
|
|
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2384
2384
|
.object({
|
|
2385
2385
|
_id: z.string(),
|
|
2386
2386
|
description: z.string(),
|
|
2387
|
-
created: z.string().default("2026-06-
|
|
2388
|
-
updated: z.string().default("2026-06-
|
|
2387
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
2388
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
2389
2389
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2390
2390
|
guardrail_config: z.nullable(
|
|
2391
2391
|
z.union([
|
|
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3210
3210
|
> = z.object({
|
|
3211
3211
|
_id: z.string(),
|
|
3212
3212
|
description: z.string(),
|
|
3213
|
-
created: z.string().default("2026-06-
|
|
3214
|
-
updated: z.string().default("2026-06-
|
|
3213
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3214
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3215
3215
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3216
3216
|
guardrail_config: z.nullable(
|
|
3217
3217
|
z.union([
|
|
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3430
3430
|
> = z.object({
|
|
3431
3431
|
_id: z.string(),
|
|
3432
3432
|
description: z.string(),
|
|
3433
|
-
created: z.string().default("2026-06-
|
|
3434
|
-
updated: z.string().default("2026-06-
|
|
3433
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3434
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3435
3435
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3436
3436
|
guardrail_config: z.nullable(
|
|
3437
3437
|
z.union([
|
|
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3612
3612
|
> = z.object({
|
|
3613
3613
|
_id: z.string(),
|
|
3614
3614
|
description: z.string(),
|
|
3615
|
-
created: z.string().default("2026-06-
|
|
3616
|
-
updated: z.string().default("2026-06-
|
|
3615
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3616
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3617
3617
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3618
3618
|
guardrail_config: z.nullable(
|
|
3619
3619
|
z.union([
|
|
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
|
3772
3772
|
.object({
|
|
3773
3773
|
_id: z.string(),
|
|
3774
3774
|
description: z.string(),
|
|
3775
|
-
created: z.string().default("2026-06-
|
|
3776
|
-
updated: z.string().default("2026-06-
|
|
3775
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3776
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
3777
3777
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3778
3778
|
guardrail_config: z.nullable(
|
|
3779
3779
|
z.union([
|
|
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4143
4143
|
> = z.object({
|
|
4144
4144
|
_id: z.string(),
|
|
4145
4145
|
description: z.string(),
|
|
4146
|
-
created: z.string().default("2026-06-
|
|
4147
|
-
updated: z.string().default("2026-06-
|
|
4146
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
4147
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
4148
4148
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4149
4149
|
guardrail_config: z.nullable(
|
|
4150
4150
|
z.union([
|
|
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4363
4363
|
> = z.object({
|
|
4364
4364
|
_id: z.string(),
|
|
4365
4365
|
description: z.string(),
|
|
4366
|
-
created: z.string().default("2026-06-
|
|
4367
|
-
updated: z.string().default("2026-06-
|
|
4366
|
+
created: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
4367
|
+
updated: z.string().default("2026-06-16T22:17:11.203Z"),
|
|
4368
4368
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4369
4369
|
guardrail_config: z.nullable(
|
|
4370
4370
|
z.union([
|
|
@@ -1898,7 +1898,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1898
1898
|
z.ZodTypeDef,
|
|
1899
1899
|
unknown
|
|
1900
1900
|
> = z.object({
|
|
1901
|
-
_id: z.string().default("
|
|
1901
|
+
_id: z.string().default("tool_01KV985P18QXBHENHSASDRQ1AZ"),
|
|
1902
1902
|
path: z.string(),
|
|
1903
1903
|
key: z.string(),
|
|
1904
1904
|
display_name: z.string().optional(),
|
|
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1995
1995
|
z.ZodTypeDef,
|
|
1996
1996
|
unknown
|
|
1997
1997
|
> = z.object({
|
|
1998
|
-
id: z.string().default("
|
|
1998
|
+
id: z.string().default("01KV985P172ADGMC1WTFF1QMFK"),
|
|
1999
1999
|
name: z.string(),
|
|
2000
2000
|
description: z.string().optional(),
|
|
2001
2001
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2051,7 +2051,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2051
2051
|
z.ZodTypeDef,
|
|
2052
2052
|
unknown
|
|
2053
2053
|
> = z.object({
|
|
2054
|
-
_id: z.string().default("
|
|
2054
|
+
_id: z.string().default("tool_01KV985P16GB979JWWDNSJKG9S"),
|
|
2055
2055
|
path: z.string(),
|
|
2056
2056
|
key: z.string(),
|
|
2057
2057
|
display_name: z.string().optional(),
|
|
@@ -2237,7 +2237,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2237
2237
|
z.ZodTypeDef,
|
|
2238
2238
|
unknown
|
|
2239
2239
|
> = z.object({
|
|
2240
|
-
_id: z.string().default("
|
|
2240
|
+
_id: z.string().default("tool_01KV985P14T6RJ74HD5ZK5MC98"),
|
|
2241
2241
|
path: z.string(),
|
|
2242
2242
|
key: z.string(),
|
|
2243
2243
|
display_name: z.string().optional(),
|
|
@@ -2330,7 +2330,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2330
2330
|
z.ZodTypeDef,
|
|
2331
2331
|
unknown
|
|
2332
2332
|
> = z.object({
|
|
2333
|
-
_id: z.string().default("
|
|
2333
|
+
_id: z.string().default("tool_01KV985P1208CM6HP1ZPJ7NMQY"),
|
|
2334
2334
|
path: z.string(),
|
|
2335
2335
|
key: z.string(),
|
|
2336
2336
|
display_name: z.string().optional(),
|
|
@@ -2431,7 +2431,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2431
2431
|
z.ZodTypeDef,
|
|
2432
2432
|
unknown
|
|
2433
2433
|
> = z.object({
|
|
2434
|
-
_id: z.string().default("
|
|
2434
|
+
_id: z.string().default("tool_01KV985P11B9W962KZQXX0ZPDS"),
|
|
2435
2435
|
path: z.string(),
|
|
2436
2436
|
key: z.string(),
|
|
2437
2437
|
display_name: z.string().optional(),
|