@orq-ai/node 4.4.11 → 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/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +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/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +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/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +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/agentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +10 -1
- package/packages/orq-rc/src/lib/matchers.ts +3 -2
- package/packages/orq-rc/src/lib/security.ts +1 -2
- 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 +37 -2
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
- 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/createresponse.ts +2 -1
- 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/updatememorystore.ts +3 -62
- package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -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/createresponse.ts +2 -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
|
@@ -65,7 +65,7 @@ export type StreamAgentA2AMessage = {
|
|
|
65
65
|
*/
|
|
66
66
|
role: StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
|
|
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 StreamAgentMemory = {
|
|
|
161
161
|
entityId: string;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Configuration options for the agent invocation
|
|
166
|
+
*/
|
|
167
|
+
export type StreamAgentConfiguration = {
|
|
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 StreamAgentRequestBody = {
|
|
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 StreamAgentRequestBody = {
|
|
|
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?: StreamAgentConfiguration | undefined;
|
|
199
213
|
/**
|
|
200
214
|
* Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
|
|
201
215
|
*/
|
|
@@ -476,6 +490,28 @@ export function streamAgentMemoryToJSON(
|
|
|
476
490
|
);
|
|
477
491
|
}
|
|
478
492
|
|
|
493
|
+
/** @internal */
|
|
494
|
+
export type StreamAgentConfiguration$Outbound = {
|
|
495
|
+
blocking: boolean;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
/** @internal */
|
|
499
|
+
export const StreamAgentConfiguration$outboundSchema: z.ZodType<
|
|
500
|
+
StreamAgentConfiguration$Outbound,
|
|
501
|
+
z.ZodTypeDef,
|
|
502
|
+
StreamAgentConfiguration
|
|
503
|
+
> = z.object({
|
|
504
|
+
blocking: z.boolean().default(false),
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
export function streamAgentConfigurationToJSON(
|
|
508
|
+
streamAgentConfiguration: StreamAgentConfiguration,
|
|
509
|
+
): string {
|
|
510
|
+
return JSON.stringify(
|
|
511
|
+
StreamAgentConfiguration$outboundSchema.parse(streamAgentConfiguration),
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
|
|
479
515
|
/** @internal */
|
|
480
516
|
export type StreamAgentRequestBody$Outbound = {
|
|
481
517
|
task_id?: string | undefined;
|
|
@@ -486,6 +522,7 @@ export type StreamAgentRequestBody$Outbound = {
|
|
|
486
522
|
thread?: StreamAgentThread$Outbound | undefined;
|
|
487
523
|
memory?: StreamAgentMemory$Outbound | undefined;
|
|
488
524
|
metadata?: { [k: string]: any } | undefined;
|
|
525
|
+
configuration?: StreamAgentConfiguration$Outbound | undefined;
|
|
489
526
|
stream_timeout_seconds?: number | undefined;
|
|
490
527
|
};
|
|
491
528
|
|
|
@@ -503,6 +540,8 @@ export const StreamAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
503
540
|
thread: z.lazy(() => StreamAgentThread$outboundSchema).optional(),
|
|
504
541
|
memory: z.lazy(() => StreamAgentMemory$outboundSchema).optional(),
|
|
505
542
|
metadata: z.record(z.any()).optional(),
|
|
543
|
+
configuration: z.lazy(() => StreamAgentConfiguration$outboundSchema)
|
|
544
|
+
.optional(),
|
|
506
545
|
streamTimeoutSeconds: z.number().optional(),
|
|
507
546
|
}).transform((v) => {
|
|
508
547
|
return remap$(v, {
|