@orq-ai/node 4.4.12 → 4.4.14
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/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.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/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.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/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- 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/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- 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/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- 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/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- 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/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.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/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- 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/listidentities.ts +1 -1
- 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/retrieveidentity.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/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -906,8 +906,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
906
906
|
> = z.object({
|
|
907
907
|
_id: z.string(),
|
|
908
908
|
description: z.string(),
|
|
909
|
-
created: z.string().default("2026-03-
|
|
910
|
-
updated: z.string().default("2026-03-
|
|
909
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
910
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
911
911
|
guardrail_config: z.union([
|
|
912
912
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
913
913
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
@@ -1045,8 +1045,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1045
1045
|
> = z.object({
|
|
1046
1046
|
_id: z.string(),
|
|
1047
1047
|
description: z.string(),
|
|
1048
|
-
created: z.string().default("2026-03-
|
|
1049
|
-
updated: z.string().default("2026-03-
|
|
1048
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
1049
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
1050
1050
|
guardrail_config: z.union([
|
|
1051
1051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
1052
1052
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -1837,8 +1837,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
1837
1837
|
> = z.object({
|
|
1838
1838
|
_id: z.string(),
|
|
1839
1839
|
description: z.string(),
|
|
1840
|
-
created: z.string().default("2026-03-
|
|
1841
|
-
updated: z.string().default("2026-03-
|
|
1840
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
1841
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
1842
1842
|
guardrail_config: z.union([
|
|
1843
1843
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
1844
1844
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
@@ -1988,8 +1988,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
1988
1988
|
> = z.object({
|
|
1989
1989
|
_id: z.string(),
|
|
1990
1990
|
description: z.string(),
|
|
1991
|
-
created: z.string().default("2026-03-
|
|
1992
|
-
updated: z.string().default("2026-03-
|
|
1991
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
1992
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
1993
1993
|
guardrail_config: z.union([
|
|
1994
1994
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
1995
1995
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
@@ -2128,8 +2128,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2128
2128
|
> = z.object({
|
|
2129
2129
|
_id: z.string(),
|
|
2130
2130
|
description: z.string(),
|
|
2131
|
-
created: z.string().default("2026-03-
|
|
2132
|
-
updated: z.string().default("2026-03-
|
|
2131
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
2132
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
2133
2133
|
guardrail_config: z.union([
|
|
2134
2134
|
z.lazy(() =>
|
|
2135
2135
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -2278,8 +2278,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2278
2278
|
> = z.object({
|
|
2279
2279
|
_id: z.string(),
|
|
2280
2280
|
description: z.string(),
|
|
2281
|
-
created: z.string().default("2026-03-
|
|
2282
|
-
updated: z.string().default("2026-03-
|
|
2281
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
2282
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
2283
2283
|
guardrail_config: z.union([
|
|
2284
2284
|
z.lazy(() =>
|
|
2285
2285
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -2584,8 +2584,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
2584
2584
|
> = z.object({
|
|
2585
2585
|
_id: z.string(),
|
|
2586
2586
|
description: z.string(),
|
|
2587
|
-
created: z.string().default("2026-03-
|
|
2588
|
-
updated: z.string().default("2026-03-
|
|
2587
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
2588
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
2589
2589
|
guardrail_config: z.union([
|
|
2590
2590
|
z.lazy(() =>
|
|
2591
2591
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema
|
|
@@ -2728,8 +2728,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
2728
2728
|
> = z.object({
|
|
2729
2729
|
_id: z.string(),
|
|
2730
2730
|
description: z.string(),
|
|
2731
|
-
created: z.string().default("2026-03-
|
|
2732
|
-
updated: z.string().default("2026-03-
|
|
2731
|
+
created: z.string().default("2026-03-05T14:31:07.602Z"),
|
|
2732
|
+
updated: z.string().default("2026-03-05T14:31:07.603Z"),
|
|
2733
2733
|
guardrail_config: z.union([
|
|
2734
2734
|
z.lazy(() =>
|
|
2735
2735
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema
|
|
@@ -56,6 +56,7 @@ export * from "./filedelete.js";
|
|
|
56
56
|
export * from "./fileget.js";
|
|
57
57
|
export * from "./filelist.js";
|
|
58
58
|
export * from "./fileupload.js";
|
|
59
|
+
export * from "./getagentresponse.js";
|
|
59
60
|
export * from "./getallmemories.js";
|
|
60
61
|
export * from "./getallmemorydocuments.js";
|
|
61
62
|
export * from "./getallmemorystores.js";
|
|
@@ -83,6 +84,8 @@ export * from "./listknowledgebases.js";
|
|
|
83
84
|
export * from "./listmodels.js";
|
|
84
85
|
export * from "./listpromptversions.js";
|
|
85
86
|
export * from "./parse.js";
|
|
87
|
+
export * from "./postv2agentsa2a.js";
|
|
88
|
+
export * from "./postv2agentskeycardrefresh.js";
|
|
86
89
|
export * from "./postv2routerocr.js";
|
|
87
90
|
export * from "./remoteconfigsgetconfig.js";
|
|
88
91
|
export * from "./retrieveagentrequest.js";
|
|
@@ -65,7 +65,7 @@ export type InvokeAgentA2AMessage = {
|
|
|
65
65
|
*/
|
|
66
66
|
role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
|
|
67
67
|
/**
|
|
68
|
-
* A2A message parts (text, file, or tool_result only)
|
|
68
|
+
* A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
|
|
69
69
|
*/
|
|
70
70
|
parts: Array<
|
|
71
71
|
| components.TextPart
|
|
@@ -161,6 +161,16 @@ export type InvokeAgentMemory = {
|
|
|
161
161
|
entityId: string;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Configuration options for the agent invocation
|
|
166
|
+
*/
|
|
167
|
+
export type InvokeAgentConfiguration = {
|
|
168
|
+
/**
|
|
169
|
+
* Whether to block until the agent task completes. When true, the response will include the full task with messages. When false (default), returns immediately with task ID and status.
|
|
170
|
+
*/
|
|
171
|
+
blocking?: boolean | undefined;
|
|
172
|
+
};
|
|
173
|
+
|
|
164
174
|
export type InvokeAgentRequestBody = {
|
|
165
175
|
/**
|
|
166
176
|
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
@@ -196,6 +206,10 @@ export type InvokeAgentRequestBody = {
|
|
|
196
206
|
* Optional metadata for the agent invocation as key-value pairs that will be included in traces
|
|
197
207
|
*/
|
|
198
208
|
metadata?: { [k: string]: any } | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Configuration options for the agent invocation
|
|
211
|
+
*/
|
|
212
|
+
configuration?: InvokeAgentConfiguration | undefined;
|
|
199
213
|
};
|
|
200
214
|
|
|
201
215
|
export type InvokeAgentRequest = {
|
|
@@ -320,6 +334,10 @@ export type InvokeAgentA2ATaskResponse = {
|
|
|
320
334
|
* Current task status information
|
|
321
335
|
*/
|
|
322
336
|
status: TaskStatus;
|
|
337
|
+
/**
|
|
338
|
+
* Array of messages in the task conversation. Only present when blocking mode is enabled.
|
|
339
|
+
*/
|
|
340
|
+
messages?: Array<components.ExtendedMessage> | undefined;
|
|
323
341
|
/**
|
|
324
342
|
* Task metadata containing workspace_id and trace_id for feedback and tracking
|
|
325
343
|
*/
|
|
@@ -549,6 +567,28 @@ export function invokeAgentMemoryToJSON(
|
|
|
549
567
|
);
|
|
550
568
|
}
|
|
551
569
|
|
|
570
|
+
/** @internal */
|
|
571
|
+
export type InvokeAgentConfiguration$Outbound = {
|
|
572
|
+
blocking: boolean;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
/** @internal */
|
|
576
|
+
export const InvokeAgentConfiguration$outboundSchema: z.ZodType<
|
|
577
|
+
InvokeAgentConfiguration$Outbound,
|
|
578
|
+
z.ZodTypeDef,
|
|
579
|
+
InvokeAgentConfiguration
|
|
580
|
+
> = z.object({
|
|
581
|
+
blocking: z.boolean().default(false),
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
export function invokeAgentConfigurationToJSON(
|
|
585
|
+
invokeAgentConfiguration: InvokeAgentConfiguration,
|
|
586
|
+
): string {
|
|
587
|
+
return JSON.stringify(
|
|
588
|
+
InvokeAgentConfiguration$outboundSchema.parse(invokeAgentConfiguration),
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
|
|
552
592
|
/** @internal */
|
|
553
593
|
export type InvokeAgentRequestBody$Outbound = {
|
|
554
594
|
task_id?: string | undefined;
|
|
@@ -559,6 +599,7 @@ export type InvokeAgentRequestBody$Outbound = {
|
|
|
559
599
|
thread?: InvokeAgentThread$Outbound | undefined;
|
|
560
600
|
memory?: InvokeAgentMemory$Outbound | undefined;
|
|
561
601
|
metadata?: { [k: string]: any } | undefined;
|
|
602
|
+
configuration?: InvokeAgentConfiguration$Outbound | undefined;
|
|
562
603
|
};
|
|
563
604
|
|
|
564
605
|
/** @internal */
|
|
@@ -575,6 +616,8 @@ export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
575
616
|
thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
|
|
576
617
|
memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
|
|
577
618
|
metadata: z.record(z.any()).optional(),
|
|
619
|
+
configuration: z.lazy(() => InvokeAgentConfiguration$outboundSchema)
|
|
620
|
+
.optional(),
|
|
578
621
|
}).transform((v) => {
|
|
579
622
|
return remap$(v, {
|
|
580
623
|
taskId: "task_id",
|
|
@@ -719,6 +762,7 @@ export const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<
|
|
|
719
762
|
contextId: z.string(),
|
|
720
763
|
kind: Kind$inboundSchema,
|
|
721
764
|
status: z.lazy(() => TaskStatus$inboundSchema),
|
|
765
|
+
messages: z.array(components.ExtendedMessage$inboundSchema).optional(),
|
|
722
766
|
metadata: z.record(z.any()).optional(),
|
|
723
767
|
});
|
|
724
768
|
|