@orq-ai/node 3.13.11 → 3.13.13
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/bin/mcp-server.js +266 -222
- package/bin/mcp-server.js.map +40 -40
- 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/config.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +18 -1
- package/lib/env.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +38 -0
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +35 -1
- package/models/operations/createagent.js.map +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 +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- 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/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +15 -15
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +20 -18
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +53 -18
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +54 -19
- package/models/operations/updateagent.js.map +1 -1
- 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 +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/prompts/README.md +47 -13
- package/packages/orq-rc/docs/sdks/tools/README.md +7 -3
- 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/promptsCreate.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +4 -4
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/env.ts +20 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +6 -6
- package/packages/orq-rc/src/models/operations/createagent.ts +73 -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 +14 -14
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +108 -40
- package/packages/orq-rc/src/models/operations/createprompt.ts +4603 -1478
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- 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/getallmemorystores.ts +56 -20
- package/packages/orq-rc/src/models/operations/getallprompts.ts +48 -52
- package/packages/orq-rc/src/models/operations/getalltools.ts +14 -14
- 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/getoneprompt.ts +22 -22
- 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 +11 -11
- 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/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +11 -11
- 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/retrievememorystore.ts +56 -20
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +30 -24
- package/packages/orq-rc/src/models/operations/updateagent.ts +110 -28
- 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 +14 -14
- 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 +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +52 -20
- package/packages/orq-rc/src/models/operations/updateprompt.ts +5018 -1772
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/prompts.ts +3 -3
- package/packages/orq-rc/src/sdk/tools.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +20 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +73 -0
- 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 +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getalltools.ts +10 -10
- 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/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +30 -24
- package/src/models/operations/updateagent.ts +110 -28
- 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 +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -14,7 +14,7 @@ export const tool$toolsList: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "tools-list",
|
|
15
15
|
description: `List tools
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Lists all workspace tools. By default, returns all tools in a single response. Set \`limit\` to enable cursor-based pagination with \`starting_after\` and \`ending_before\`.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await toolsList(
|
|
@@ -143,13 +143,13 @@ export type PrefixMessagesContent =
|
|
|
143
143
|
| Array<TextContentPart | RefusalContentPart>;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* The role of the messages author, in this case `assistant
|
|
146
|
+
* The role of the messages author, in this case `assistant`.
|
|
147
147
|
*/
|
|
148
148
|
export const DeploymentsPrefixMessages4Role = {
|
|
149
149
|
Assistant: "assistant",
|
|
150
150
|
} as const;
|
|
151
151
|
/**
|
|
152
|
-
* The role of the messages author, in this case `assistant
|
|
152
|
+
* The role of the messages author, in this case `assistant`.
|
|
153
153
|
*/
|
|
154
154
|
export type DeploymentsPrefixMessages4Role = ClosedEnum<
|
|
155
155
|
typeof DeploymentsPrefixMessages4Role
|
|
@@ -213,7 +213,7 @@ export type AssistantMessage = {
|
|
|
213
213
|
*/
|
|
214
214
|
refusal?: string | null | undefined;
|
|
215
215
|
/**
|
|
216
|
-
* The role of the messages author, in this case `assistant
|
|
216
|
+
* The role of the messages author, in this case `assistant`.
|
|
217
217
|
*/
|
|
218
218
|
role: DeploymentsPrefixMessages4Role;
|
|
219
219
|
/**
|
|
@@ -589,13 +589,13 @@ export type DeploymentsMessagesContent =
|
|
|
589
589
|
| Array<TwoTextContentPart | TwoRefusalContentPart>;
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
|
-
* The role of the messages author, in this case `assistant
|
|
592
|
+
* The role of the messages author, in this case `assistant`.
|
|
593
593
|
*/
|
|
594
594
|
export const DeploymentsMessages4Role = {
|
|
595
595
|
Assistant: "assistant",
|
|
596
596
|
} as const;
|
|
597
597
|
/**
|
|
598
|
-
* The role of the messages author, in this case `assistant
|
|
598
|
+
* The role of the messages author, in this case `assistant`.
|
|
599
599
|
*/
|
|
600
600
|
export type DeploymentsMessages4Role = ClosedEnum<
|
|
601
601
|
typeof DeploymentsMessages4Role
|
|
@@ -659,7 +659,7 @@ export type MessagesAssistantMessage = {
|
|
|
659
659
|
*/
|
|
660
660
|
refusal?: string | null | undefined;
|
|
661
661
|
/**
|
|
662
|
-
* The role of the messages author, in this case `assistant
|
|
662
|
+
* The role of the messages author, in this case `assistant`.
|
|
663
663
|
*/
|
|
664
664
|
role: DeploymentsMessages4Role;
|
|
665
665
|
/**
|
|
@@ -408,6 +408,17 @@ export type KnowledgeBases = {
|
|
|
408
408
|
knowledgeId: string;
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
+
export type TeamOfAgents = {
|
|
412
|
+
/**
|
|
413
|
+
* The unique key of the agent within the workspace
|
|
414
|
+
*/
|
|
415
|
+
key: string;
|
|
416
|
+
/**
|
|
417
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
418
|
+
*/
|
|
419
|
+
role?: string | undefined;
|
|
420
|
+
};
|
|
421
|
+
|
|
411
422
|
export type CreateAgentRequestBody = {
|
|
412
423
|
/**
|
|
413
424
|
* The path where the agent will be stored in the project structure
|
|
@@ -453,6 +464,10 @@ export type CreateAgentRequestBody = {
|
|
|
453
464
|
* Optional array of knowledge base configurations for the agent to access
|
|
454
465
|
*/
|
|
455
466
|
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
469
|
+
*/
|
|
470
|
+
teamOfAgents?: Array<TeamOfAgents> | undefined;
|
|
456
471
|
};
|
|
457
472
|
|
|
458
473
|
/**
|
|
@@ -2239,6 +2254,59 @@ export function knowledgeBasesFromJSON(
|
|
|
2239
2254
|
);
|
|
2240
2255
|
}
|
|
2241
2256
|
|
|
2257
|
+
/** @internal */
|
|
2258
|
+
export const TeamOfAgents$inboundSchema: z.ZodType<
|
|
2259
|
+
TeamOfAgents,
|
|
2260
|
+
z.ZodTypeDef,
|
|
2261
|
+
unknown
|
|
2262
|
+
> = z.object({
|
|
2263
|
+
key: z.string(),
|
|
2264
|
+
role: z.string().optional(),
|
|
2265
|
+
});
|
|
2266
|
+
|
|
2267
|
+
/** @internal */
|
|
2268
|
+
export type TeamOfAgents$Outbound = {
|
|
2269
|
+
key: string;
|
|
2270
|
+
role?: string | undefined;
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
/** @internal */
|
|
2274
|
+
export const TeamOfAgents$outboundSchema: z.ZodType<
|
|
2275
|
+
TeamOfAgents$Outbound,
|
|
2276
|
+
z.ZodTypeDef,
|
|
2277
|
+
TeamOfAgents
|
|
2278
|
+
> = z.object({
|
|
2279
|
+
key: z.string(),
|
|
2280
|
+
role: z.string().optional(),
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* @internal
|
|
2285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2286
|
+
*/
|
|
2287
|
+
export namespace TeamOfAgents$ {
|
|
2288
|
+
/** @deprecated use `TeamOfAgents$inboundSchema` instead. */
|
|
2289
|
+
export const inboundSchema = TeamOfAgents$inboundSchema;
|
|
2290
|
+
/** @deprecated use `TeamOfAgents$outboundSchema` instead. */
|
|
2291
|
+
export const outboundSchema = TeamOfAgents$outboundSchema;
|
|
2292
|
+
/** @deprecated use `TeamOfAgents$Outbound` instead. */
|
|
2293
|
+
export type Outbound = TeamOfAgents$Outbound;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
|
|
2297
|
+
return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
export function teamOfAgentsFromJSON(
|
|
2301
|
+
jsonString: string,
|
|
2302
|
+
): SafeParseResult<TeamOfAgents, SDKValidationError> {
|
|
2303
|
+
return safeParse(
|
|
2304
|
+
jsonString,
|
|
2305
|
+
(x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2306
|
+
`Failed to parse 'TeamOfAgents' from JSON`,
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2242
2310
|
/** @internal */
|
|
2243
2311
|
export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
2244
2312
|
CreateAgentRequestBody,
|
|
@@ -2257,12 +2325,14 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
2257
2325
|
memory_stores: z.array(z.string()).optional(),
|
|
2258
2326
|
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
2259
2327
|
.optional(),
|
|
2328
|
+
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
2260
2329
|
}).transform((v) => {
|
|
2261
2330
|
return remap$(v, {
|
|
2262
2331
|
"system_prompt": "systemPrompt",
|
|
2263
2332
|
"fallback_models": "fallbackModels",
|
|
2264
2333
|
"memory_stores": "memoryStores",
|
|
2265
2334
|
"knowledge_bases": "knowledgeBases",
|
|
2335
|
+
"team_of_agents": "teamOfAgents",
|
|
2266
2336
|
});
|
|
2267
2337
|
});
|
|
2268
2338
|
|
|
@@ -2279,6 +2349,7 @@ export type CreateAgentRequestBody$Outbound = {
|
|
|
2279
2349
|
settings: Settings$Outbound;
|
|
2280
2350
|
memory_stores?: Array<string> | undefined;
|
|
2281
2351
|
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
2352
|
+
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
2282
2353
|
};
|
|
2283
2354
|
|
|
2284
2355
|
/** @internal */
|
|
@@ -2299,12 +2370,14 @@ export const CreateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
2299
2370
|
memoryStores: z.array(z.string()).optional(),
|
|
2300
2371
|
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
2301
2372
|
.optional(),
|
|
2373
|
+
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
2302
2374
|
}).transform((v) => {
|
|
2303
2375
|
return remap$(v, {
|
|
2304
2376
|
systemPrompt: "system_prompt",
|
|
2305
2377
|
fallbackModels: "fallback_models",
|
|
2306
2378
|
memoryStores: "memory_stores",
|
|
2307
2379
|
knowledgeBases: "knowledge_bases",
|
|
2380
|
+
teamOfAgents: "team_of_agents",
|
|
2308
2381
|
});
|
|
2309
2382
|
});
|
|
2310
2383
|
|
|
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
658
658
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
659
659
|
.optional(),
|
|
660
660
|
updated: z.string().datetime({ offset: true }).default(
|
|
661
|
-
"2025-10-
|
|
661
|
+
"2025-10-21T15:04:06.875Z",
|
|
662
662
|
).transform(v => new Date(v)),
|
|
663
663
|
}).transform((v) => {
|
|
664
664
|
return remap$(v, {
|
|
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
693
693
|
isActive: z.boolean(),
|
|
694
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
695
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
696
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
697
697
|
.transform(v => v.toISOString()),
|
|
698
698
|
}).transform((v) => {
|
|
699
699
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$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
|
-
"2025-10-
|
|
185
|
+
"2025-10-21T15:04:06.875Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -217,7 +217,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
217
217
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
218
218
|
.optional(),
|
|
219
219
|
updated: z.string().datetime({ offset: true }).default(
|
|
220
|
-
"2025-10-
|
|
220
|
+
"2025-10-21T15:04:06.875Z",
|
|
221
221
|
).transform(v => new Date(v)),
|
|
222
222
|
}).transform((v) => {
|
|
223
223
|
return remap$(v, {
|
|
@@ -257,7 +257,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
257
257
|
createdById: z.string().optional(),
|
|
258
258
|
updatedById: z.string().optional(),
|
|
259
259
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
260
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
260
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
261
261
|
.transform(v => v.toISOString()),
|
|
262
262
|
}).transform((v) => {
|
|
263
263
|
return remap$(v, {
|
|
@@ -152,13 +152,13 @@ export type CreateDatasetItemMessagesDatasetsContent =
|
|
|
152
152
|
>;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The role of the messages author, in this case `assistant
|
|
155
|
+
* The role of the messages author, in this case `assistant`.
|
|
156
156
|
*/
|
|
157
157
|
export const CreateDatasetItemMessagesDatasetsRequestRequestBodyRole = {
|
|
158
158
|
Assistant: "assistant",
|
|
159
159
|
} as const;
|
|
160
160
|
/**
|
|
161
|
-
* The role of the messages author, in this case `assistant
|
|
161
|
+
* The role of the messages author, in this case `assistant`.
|
|
162
162
|
*/
|
|
163
163
|
export type CreateDatasetItemMessagesDatasetsRequestRequestBodyRole =
|
|
164
164
|
ClosedEnum<typeof CreateDatasetItemMessagesDatasetsRequestRequestBodyRole>;
|
|
@@ -225,7 +225,7 @@ export type CreateDatasetItemMessagesAssistantMessage = {
|
|
|
225
225
|
*/
|
|
226
226
|
refusal?: string | null | undefined;
|
|
227
227
|
/**
|
|
228
|
-
* The role of the messages author, in this case `assistant
|
|
228
|
+
* The role of the messages author, in this case `assistant`.
|
|
229
229
|
*/
|
|
230
230
|
role: CreateDatasetItemMessagesDatasetsRequestRequestBodyRole;
|
|
231
231
|
/**
|
|
@@ -671,14 +671,14 @@ export type CreateDatasetItemMessagesDatasetsResponse200Content =
|
|
|
671
671
|
>;
|
|
672
672
|
|
|
673
673
|
/**
|
|
674
|
-
* The role of the messages author, in this case `assistant
|
|
674
|
+
* The role of the messages author, in this case `assistant`.
|
|
675
675
|
*/
|
|
676
676
|
export const CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
|
|
677
677
|
{
|
|
678
678
|
Assistant: "assistant",
|
|
679
679
|
} as const;
|
|
680
680
|
/**
|
|
681
|
-
* The role of the messages author, in this case `assistant
|
|
681
|
+
* The role of the messages author, in this case `assistant`.
|
|
682
682
|
*/
|
|
683
683
|
export type CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
|
|
684
684
|
ClosedEnum<
|
|
@@ -748,7 +748,7 @@ export type CreateDatasetItemMessagesDatasetsAssistantMessage = {
|
|
|
748
748
|
*/
|
|
749
749
|
refusal?: string | null | undefined;
|
|
750
750
|
/**
|
|
751
|
-
* The role of the messages author, in this case `assistant
|
|
751
|
+
* The role of the messages author, in this case `assistant`.
|
|
752
752
|
*/
|
|
753
753
|
role:
|
|
754
754
|
CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyRole;
|
|
@@ -6294,7 +6294,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
6294
6294
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
6295
6295
|
reviewed_by_id: z.string(),
|
|
6296
6296
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6297
|
-
"2025-10-
|
|
6297
|
+
"2025-10-21T15:04:16.417Z",
|
|
6298
6298
|
).transform(v => new Date(v)),
|
|
6299
6299
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
6300
6300
|
values: z.array(z.string()),
|
|
@@ -6330,7 +6330,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
6330
6330
|
humanReviewId: z.string(),
|
|
6331
6331
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
6332
6332
|
reviewedById: z.string(),
|
|
6333
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6333
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.417Z"))
|
|
6334
6334
|
.transform(v => v.toISOString()),
|
|
6335
6335
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
6336
6336
|
values: z.array(z.string()),
|
|
@@ -6445,7 +6445,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
6445
6445
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
6446
6446
|
reviewed_by_id: z.string(),
|
|
6447
6447
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6448
|
-
"2025-10-
|
|
6448
|
+
"2025-10-21T15:04:16.416Z",
|
|
6449
6449
|
).transform(v => new Date(v)),
|
|
6450
6450
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
6451
6451
|
value: z.number(),
|
|
@@ -6481,7 +6481,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
6481
6481
|
humanReviewId: z.string(),
|
|
6482
6482
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
6483
6483
|
reviewedById: z.string(),
|
|
6484
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6484
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.416Z"))
|
|
6485
6485
|
.transform(v => v.toISOString()),
|
|
6486
6486
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
6487
6487
|
value: z.number(),
|
|
@@ -6594,7 +6594,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
6594
6594
|
source: Source$inboundSchema.default("orq"),
|
|
6595
6595
|
reviewed_by_id: z.string(),
|
|
6596
6596
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6597
|
-
"2025-10-
|
|
6597
|
+
"2025-10-21T15:04:16.416Z",
|
|
6598
6598
|
).transform(v => new Date(v)),
|
|
6599
6599
|
type: EvaluationsType$inboundSchema,
|
|
6600
6600
|
value: z.string(),
|
|
@@ -6630,7 +6630,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
6630
6630
|
humanReviewId: z.string(),
|
|
6631
6631
|
source: Source$outboundSchema.default("orq"),
|
|
6632
6632
|
reviewedById: z.string(),
|
|
6633
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6633
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.416Z"))
|
|
6634
6634
|
.transform(v => v.toISOString()),
|
|
6635
6635
|
type: EvaluationsType$outboundSchema,
|
|
6636
6636
|
value: z.string(),
|
|
@@ -6764,7 +6764,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6764
6764
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6765
6765
|
.optional(),
|
|
6766
6766
|
updated: z.string().datetime({ offset: true }).default(
|
|
6767
|
-
"2025-10-
|
|
6767
|
+
"2025-10-21T15:04:06.875Z",
|
|
6768
6768
|
).transform(v => new Date(v)),
|
|
6769
6769
|
}).transform((v) => {
|
|
6770
6770
|
return remap$(v, {
|
|
@@ -6843,7 +6843,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6843
6843
|
createdById: z.string().optional(),
|
|
6844
6844
|
updatedById: z.string().optional(),
|
|
6845
6845
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6846
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
6846
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
6847
6847
|
.transform(v => v.toISOString()),
|
|
6848
6848
|
}).transform((v) => {
|
|
6849
6849
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01K83MSATKVG65V1626Q5FV34S"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01K83MSATKVG65V1626Q5FV34S"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|