@orq-ai/node 3.12.14 → 3.12.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/bin/mcp-server.js +113 -113
- package/bin/mcp-server.js.map +31 -31
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +108 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +8 -2
- package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
- package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/url.ts +1 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +13 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
- package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
- package/packages/orq-rc/src/models/components/deployments.ts +52 -45
- package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
- package/packages/orq-rc/src/models/components/httptool.ts +532 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
- package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +199 -56
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
- package/packages/orq-rc/src/models/operations/createprompt.ts +633 -314
- package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +363 -194
- package/packages/orq-rc/src/models/operations/deployments.ts +330 -160
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
- package/packages/orq-rc/src/models/operations/getallprompts.ts +334 -168
- package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +330 -167
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +338 -168
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +355 -183
- package/packages/orq-rc/src/models/operations/parse.ts +20 -335
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +428 -1384
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +409 -1452
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +210 -57
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
- package/packages/orq-rc/src/models/operations/updateprompt.ts +670 -335
- package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/tools.ts +117 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -16,6 +16,7 @@ export * from "./creatememory.js";
|
|
|
16
16
|
export * from "./creatememorydocument.js";
|
|
17
17
|
export * from "./creatememorystore.js";
|
|
18
18
|
export * from "./createprompt.js";
|
|
19
|
+
export * from "./createtool.js";
|
|
19
20
|
export * from "./deletebudget.js";
|
|
20
21
|
export * from "./deletechunk.js";
|
|
21
22
|
export * from "./deletecontact.js";
|
|
@@ -28,11 +29,13 @@ export * from "./deletememory.js";
|
|
|
28
29
|
export * from "./deletememorydocument.js";
|
|
29
30
|
export * from "./deletememorystore.js";
|
|
30
31
|
export * from "./deleteprompt.js";
|
|
32
|
+
export * from "./deletetool.js";
|
|
31
33
|
export * from "./deploymentcreatemetric.js";
|
|
32
34
|
export * from "./deploymentgetconfig.js";
|
|
33
35
|
export * from "./deploymentinvoke.js";
|
|
34
36
|
export * from "./deployments.js";
|
|
35
37
|
export * from "./deploymentstream.js";
|
|
38
|
+
export * from "./duplicatetool.js";
|
|
36
39
|
export * from "./evalsageappropriate.js";
|
|
37
40
|
export * from "./evalsbertscore.js";
|
|
38
41
|
export * from "./evalsbleuscore.js";
|
|
@@ -80,6 +83,7 @@ export * from "./getallmemories.js";
|
|
|
80
83
|
export * from "./getallmemorydocuments.js";
|
|
81
84
|
export * from "./getallmemorystores.js";
|
|
82
85
|
export * from "./getallprompts.js";
|
|
86
|
+
export * from "./getalltools.js";
|
|
83
87
|
export * from "./getbudget.js";
|
|
84
88
|
export * from "./getevals.js";
|
|
85
89
|
export * from "./getonechunk.js";
|
|
@@ -108,6 +112,7 @@ export * from "./retrievedatasource.js";
|
|
|
108
112
|
export * from "./retrievememory.js";
|
|
109
113
|
export * from "./retrievememorydocument.js";
|
|
110
114
|
export * from "./retrievememorystore.js";
|
|
115
|
+
export * from "./retrievetool.js";
|
|
111
116
|
export * from "./runagent.js";
|
|
112
117
|
export * from "./searchknowledge.js";
|
|
113
118
|
export * from "./streamrunagent.js";
|
|
@@ -123,3 +128,4 @@ export * from "./updatememory.js";
|
|
|
123
128
|
export * from "./updatememorydocument.js";
|
|
124
129
|
export * from "./updatememorystore.js";
|
|
125
130
|
export * from "./updateprompt.js";
|
|
131
|
+
export * from "./updatetool.js";
|
|
@@ -199,8 +199,8 @@ export type ListAgentsData = {
|
|
|
199
199
|
key: string;
|
|
200
200
|
workspaceId: string;
|
|
201
201
|
projectId: string;
|
|
202
|
-
createdById?: string | undefined;
|
|
203
|
-
updatedById?: string | undefined;
|
|
202
|
+
createdById?: string | null | undefined;
|
|
203
|
+
updatedById?: string | null | undefined;
|
|
204
204
|
created?: string | undefined;
|
|
205
205
|
updated?: string | undefined;
|
|
206
206
|
role: string;
|
|
@@ -1022,7 +1022,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
id: z.string().default("
|
|
1025
|
+
id: z.string().default("01K5ZT3CQ2P6FDBCDT64FNA01H"),
|
|
1026
1026
|
knowledge_id: z.string(),
|
|
1027
1027
|
configuration: z.union([
|
|
1028
1028
|
z.lazy(() => ListAgentsConfiguration2$inboundSchema),
|
|
@@ -1049,7 +1049,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1049
1049
|
z.ZodTypeDef,
|
|
1050
1050
|
ListAgentsKnowledgeBases
|
|
1051
1051
|
> = z.object({
|
|
1052
|
-
id: z.string().default("
|
|
1052
|
+
id: z.string().default("01K5ZT3CQ2P6FDBCDT64FNA01H"),
|
|
1053
1053
|
knowledgeId: z.string(),
|
|
1054
1054
|
configuration: z.union([
|
|
1055
1055
|
z.lazy(() => ListAgentsConfiguration2$outboundSchema),
|
|
@@ -1123,8 +1123,8 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
1123
1123
|
key: z.string(),
|
|
1124
1124
|
workspace_id: z.string(),
|
|
1125
1125
|
project_id: z.string(),
|
|
1126
|
-
created_by_id: z.string().optional(),
|
|
1127
|
-
updated_by_id: z.string().optional(),
|
|
1126
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
1127
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
1128
1128
|
created: z.string().optional(),
|
|
1129
1129
|
updated: z.string().optional(),
|
|
1130
1130
|
role: z.string(),
|
|
@@ -1165,8 +1165,8 @@ export type ListAgentsData$Outbound = {
|
|
|
1165
1165
|
key: string;
|
|
1166
1166
|
workspace_id: string;
|
|
1167
1167
|
project_id: string;
|
|
1168
|
-
created_by_id?: string | undefined;
|
|
1169
|
-
updated_by_id?: string | undefined;
|
|
1168
|
+
created_by_id?: string | null | undefined;
|
|
1169
|
+
updated_by_id?: string | null | undefined;
|
|
1170
1170
|
created?: string | undefined;
|
|
1171
1171
|
updated?: string | undefined;
|
|
1172
1172
|
role: string;
|
|
@@ -1196,8 +1196,8 @@ export const ListAgentsData$outboundSchema: z.ZodType<
|
|
|
1196
1196
|
key: z.string(),
|
|
1197
1197
|
workspaceId: z.string(),
|
|
1198
1198
|
projectId: z.string(),
|
|
1199
|
-
createdById: z.string().optional(),
|
|
1200
|
-
updatedById: z.string().optional(),
|
|
1199
|
+
createdById: z.nullable(z.string()).optional(),
|
|
1200
|
+
updatedById: z.nullable(z.string()).optional(),
|
|
1201
1201
|
created: z.string().optional(),
|
|
1202
1202
|
updated: z.string().optional(),
|
|
1203
1203
|
role: z.string(),
|
|
@@ -464,7 +464,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
464
464
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
465
465
|
.optional(),
|
|
466
466
|
updated: z.string().datetime({ offset: true }).default(
|
|
467
|
-
"2025-09-
|
|
467
|
+
"2025-09-25T06:48:39.657Z",
|
|
468
468
|
).transform(v => new Date(v)),
|
|
469
469
|
}).transform((v) => {
|
|
470
470
|
return remap$(v, {
|
|
@@ -499,7 +499,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
499
499
|
isActive: z.boolean(),
|
|
500
500
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
501
501
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
502
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
502
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
503
503
|
.transform(v => v.toISOString()),
|
|
504
504
|
}).transform((v) => {
|
|
505
505
|
return remap$(v, {
|
|
@@ -352,7 +352,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
352
352
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
353
353
|
.optional(),
|
|
354
354
|
updated: z.string().datetime({ offset: true }).default(
|
|
355
|
-
"2025-09-
|
|
355
|
+
"2025-09-25T06:48:39.657Z",
|
|
356
356
|
).transform(v => new Date(v)),
|
|
357
357
|
metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
|
|
358
358
|
}).transform((v) => {
|
|
@@ -389,7 +389,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
389
389
|
tags: z.array(z.string()).optional(),
|
|
390
390
|
metadata: z.record(z.any()).optional(),
|
|
391
391
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
392
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
392
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
393
393
|
.transform(v => v.toISOString()),
|
|
394
394
|
metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
|
|
395
395
|
}).transform((v) => {
|
|
@@ -187,13 +187,14 @@ export type ListDatasetDatapointsMessagesDatasetsContent =
|
|
|
187
187
|
>;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* The role of the messages author, in this case `assistant`.
|
|
190
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
191
191
|
*/
|
|
192
192
|
export const ListDatasetDatapointsMessagesDatasetsResponse200Role = {
|
|
193
193
|
Assistant: "assistant",
|
|
194
|
+
Exception: "exception",
|
|
194
195
|
} as const;
|
|
195
196
|
/**
|
|
196
|
-
* The role of the messages author, in this case `assistant`.
|
|
197
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
197
198
|
*/
|
|
198
199
|
export type ListDatasetDatapointsMessagesDatasetsResponse200Role = ClosedEnum<
|
|
199
200
|
typeof ListDatasetDatapointsMessagesDatasetsResponse200Role
|
|
@@ -262,7 +263,7 @@ export type ListDatasetDatapointsMessagesAssistantMessage = {
|
|
|
262
263
|
*/
|
|
263
264
|
refusal?: string | null | undefined;
|
|
264
265
|
/**
|
|
265
|
-
* The role of the messages author, in this case `assistant`.
|
|
266
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
266
267
|
*/
|
|
267
268
|
role: ListDatasetDatapointsMessagesDatasetsResponse200Role;
|
|
268
269
|
/**
|
|
@@ -3100,7 +3101,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3100
3101
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3101
3102
|
.optional(),
|
|
3102
3103
|
updated: z.string().datetime({ offset: true }).default(
|
|
3103
|
-
"2025-09-
|
|
3104
|
+
"2025-09-25T06:48:39.657Z",
|
|
3104
3105
|
).transform(v => new Date(v)),
|
|
3105
3106
|
}).transform((v) => {
|
|
3106
3107
|
return remap$(v, {
|
|
@@ -3164,7 +3165,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3164
3165
|
createdById: z.string().optional(),
|
|
3165
3166
|
updatedById: z.string().optional(),
|
|
3166
3167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3167
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3168
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
3168
3169
|
.transform(v => v.toISOString()),
|
|
3169
3170
|
}).transform((v) => {
|
|
3170
3171
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-09-
|
|
256
|
+
"2025-09-25T06:48:39.657Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -285,7 +285,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
285
285
|
z.ZodTypeDef,
|
|
286
286
|
unknown
|
|
287
287
|
> = z.object({
|
|
288
|
-
_id: z.string().default("
|
|
288
|
+
_id: z.string().default("01K5ZT3CV84M7WC2SHW3YJHN1W"),
|
|
289
289
|
display_name: z.string(),
|
|
290
290
|
description: z.string().optional(),
|
|
291
291
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -329,7 +329,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
329
329
|
z.ZodTypeDef,
|
|
330
330
|
ListDatasourcesData
|
|
331
331
|
> = z.object({
|
|
332
|
-
id: z.string().default("
|
|
332
|
+
id: z.string().default("01K5ZT3CV84M7WC2SHW3YJHN1W"),
|
|
333
333
|
displayName: z.string(),
|
|
334
334
|
description: z.string().optional(),
|
|
335
335
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -50,6 +50,10 @@ export type ListKnowledgeBasesRetrievalType = ClosedEnum<
|
|
|
50
50
|
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
51
51
|
*/
|
|
52
52
|
export type ListKnowledgeBasesRerankConfig = {
|
|
53
|
+
/**
|
|
54
|
+
* The number of results to return by the reranking model
|
|
55
|
+
*/
|
|
56
|
+
topK?: number | undefined;
|
|
53
57
|
/**
|
|
54
58
|
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
55
59
|
*/
|
|
@@ -267,10 +271,12 @@ export const ListKnowledgeBasesRerankConfig$inboundSchema: z.ZodType<
|
|
|
267
271
|
z.ZodTypeDef,
|
|
268
272
|
unknown
|
|
269
273
|
> = z.object({
|
|
274
|
+
top_k: z.number().int().default(5),
|
|
270
275
|
rerank_threshold: z.number().default(0.5),
|
|
271
276
|
rerank_model: z.string(),
|
|
272
277
|
}).transform((v) => {
|
|
273
278
|
return remap$(v, {
|
|
279
|
+
"top_k": "topK",
|
|
274
280
|
"rerank_threshold": "rerankThreshold",
|
|
275
281
|
"rerank_model": "rerankModel",
|
|
276
282
|
});
|
|
@@ -278,6 +284,7 @@ export const ListKnowledgeBasesRerankConfig$inboundSchema: z.ZodType<
|
|
|
278
284
|
|
|
279
285
|
/** @internal */
|
|
280
286
|
export type ListKnowledgeBasesRerankConfig$Outbound = {
|
|
287
|
+
top_k: number;
|
|
281
288
|
rerank_threshold: number;
|
|
282
289
|
rerank_model: string;
|
|
283
290
|
};
|
|
@@ -288,10 +295,12 @@ export const ListKnowledgeBasesRerankConfig$outboundSchema: z.ZodType<
|
|
|
288
295
|
z.ZodTypeDef,
|
|
289
296
|
ListKnowledgeBasesRerankConfig
|
|
290
297
|
> = z.object({
|
|
298
|
+
topK: z.number().int().default(5),
|
|
291
299
|
rerankThreshold: z.number().default(0.5),
|
|
292
300
|
rerankModel: z.string(),
|
|
293
301
|
}).transform((v) => {
|
|
294
302
|
return remap$(v, {
|
|
303
|
+
topK: "top_k",
|
|
295
304
|
rerankThreshold: "rerank_threshold",
|
|
296
305
|
rerankModel: "rerank_model",
|
|
297
306
|
});
|