@orq-ai/node 4.5.0-rc.26 → 4.5.0-rc.33
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 +38 -28
- package/funcs/agentsList.d.ts +1 -1
- package/funcs/agentsList.d.ts.map +1 -1
- package/funcs/agentsList.js +5 -3
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
- package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsA2a.js +120 -0
- package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
- package/funcs/agentsResponsesGet.d.ts +19 -0
- package/funcs/agentsResponsesGet.d.ts.map +1 -0
- package/funcs/agentsResponsesGet.js +128 -0
- package/funcs/agentsResponsesGet.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/extendedmessage.d.ts +71 -0
- package/models/components/extendedmessage.d.ts.map +1 -0
- package/models/components/extendedmessage.js +98 -0
- package/models/components/extendedmessage.js.map +1 -0
- package/models/components/getagentresponse.d.ts +157 -0
- package/models/components/getagentresponse.d.ts.map +1 -0
- package/models/components/getagentresponse.js +175 -0
- package/models/components/getagentresponse.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/postv2agentsa2a.d.ts +43 -0
- package/models/errors/postv2agentsa2a.d.ts.map +1 -0
- package/models/errors/postv2agentsa2a.js +94 -0
- package/models/errors/postv2agentsa2a.js.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.js +94 -0
- package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +309 -142
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +292 -160
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +10 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +1 -1
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +4 -0
- package/models/operations/createannotation.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/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +52 -49
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +14 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +16 -1
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +14 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +16 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getagentresponse.d.ts +20 -0
- package/models/operations/getagentresponse.d.ts.map +1 -0
- package/models/operations/getagentresponse.js +56 -0
- package/models/operations/getagentresponse.js.map +1 -0
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +49 -47
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +26 -1
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +12 -1
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +331 -147
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +314 -171
- package/models/operations/listagents.js.map +1 -1
- 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/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +13 -15
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/postv2agentsa2a.d.ts +119 -0
- package/models/operations/postv2agentsa2a.d.ts.map +1 -0
- package/models/operations/postv2agentsa2a.js +147 -0
- package/models/operations/postv2agentsa2a.js.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.js +71 -0
- package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/retrieveagentrequest.d.ts +316 -150
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +307 -173
- package/models/operations/retrieveagentrequest.js.map +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.d.ts +15 -11
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +12 -12
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +22 -1
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +11 -1
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +370 -157
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +336 -179
- package/models/operations/updateagent.js.map +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/sdk/agents.d.ts +16 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +22 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +8 -0
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +10 -0
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsList.ts +5 -0
- package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/src/funcs/agentsResponsesGet.ts +182 -0
- package/src/funcs/agentsUpdate.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/extendedmessage.ts +146 -0
- package/src/models/components/getagentresponse.ts +348 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/postv2agentsa2a.ts +96 -0
- package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/src/models/operations/createagentrequest.ts +714 -360
- package/src/models/operations/createagentresponserequest.ts +35 -1
- package/src/models/operations/createannotation.ts +5 -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/createknowledge.ts +19 -17
- package/src/models/operations/createtool.ts +103 -91
- package/src/models/operations/deploymentinvoke.ts +38 -0
- package/src/models/operations/deploymentstream.ts +38 -0
- 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/getagentresponse.ts +46 -0
- package/src/models/operations/getalltools.ts +93 -87
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/invokeagent.ts +45 -1
- package/src/models/operations/listagents.ts +723 -366
- 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/listknowledgebases.ts +72 -64
- package/src/models/operations/postv2agentsa2a.ts +252 -0
- package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/src/models/operations/retrieveagentrequest.ts +975 -468
- 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 +35 -21
- package/src/models/operations/streamagent.ts +40 -1
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updateagent.ts +876 -385
- 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
- package/src/sdk/agents.ts +39 -1
- package/src/sdk/responses.ts +19 -0
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-03-
|
|
1210
|
+
"2026-03-05T14:31:21.911Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-03-
|
|
1258
|
+
"2026-03-05T14:31:21.910Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-03-
|
|
1303
|
+
"2026-03-05T14:31:21.910Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-03-
|
|
1380
|
+
"2026-03-05T14:31:06.324Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-03-
|
|
129
|
+
"2026-03-05T14:31:06.324Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KJZ6J3E3B6BV4J6NCKSRFY20"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -95,7 +95,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
95
95
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
96
96
|
.optional(),
|
|
97
97
|
updated: z.string().datetime({ offset: true }).default(
|
|
98
|
-
"2026-03-
|
|
98
|
+
"2026-03-05T14:31:06.324Z",
|
|
99
99
|
).transform(v => new Date(v)),
|
|
100
100
|
}).transform((v) => {
|
|
101
101
|
return remap$(v, {
|
|
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
754
754
|
z.ZodTypeDef,
|
|
755
755
|
unknown
|
|
756
756
|
> = z.object({
|
|
757
|
-
_id: z.string().default("
|
|
757
|
+
_id: z.string().default("tool_01KJZ6J3AG3M4E6VCYSP0V10GV"),
|
|
758
758
|
path: z.string(),
|
|
759
759
|
key: z.string(),
|
|
760
760
|
display_name: z.string().optional(),
|
|
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
862
862
|
z.ZodTypeDef,
|
|
863
863
|
unknown
|
|
864
864
|
> = z.object({
|
|
865
|
-
id: z.string().default("
|
|
865
|
+
id: z.string().default("01KJZ6J3AF76YAZWP0N4JD17MR"),
|
|
866
866
|
name: z.string(),
|
|
867
867
|
description: z.string().optional(),
|
|
868
868
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KJZ6J3AEDWDSE9WXW0HRQBSE"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
unknown
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
_id: z.string().default("
|
|
1114
|
+
_id: z.string().default("tool_01KJZ6J3ACGXATDR85Q3QFQRWF"),
|
|
1115
1115
|
path: z.string(),
|
|
1116
1116
|
key: z.string(),
|
|
1117
1117
|
display_name: z.string().optional(),
|
|
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1209
1209
|
z.ZodTypeDef,
|
|
1210
1210
|
unknown
|
|
1211
1211
|
> = z.object({
|
|
1212
|
-
_id: z.string().default("
|
|
1212
|
+
_id: z.string().default("tool_01KJZ6J3A3G99YGA2R5Z6Y33V2"),
|
|
1213
1213
|
path: z.string(),
|
|
1214
1214
|
key: z.string(),
|
|
1215
1215
|
display_name: z.string().optional(),
|
|
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1317
1317
|
z.ZodTypeDef,
|
|
1318
1318
|
unknown
|
|
1319
1319
|
> = z.object({
|
|
1320
|
-
_id: z.string().default("
|
|
1320
|
+
_id: z.string().default("tool_01KJZ6J3A13KJ6A73BA1C7SFEA"),
|
|
1321
1321
|
path: z.string(),
|
|
1322
1322
|
key: z.string(),
|
|
1323
1323
|
display_name: z.string().optional(),
|
|
@@ -872,7 +872,7 @@ export type RunAgentA2AMessage = {
|
|
|
872
872
|
*/
|
|
873
873
|
role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
874
874
|
/**
|
|
875
|
-
* A2A message parts (text, file, or tool_result only)
|
|
875
|
+
* A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
|
|
876
876
|
*/
|
|
877
877
|
parts: Array<
|
|
878
878
|
| components.TextPart
|
|
@@ -986,7 +986,7 @@ export type RunAgentTeamOfAgents = {
|
|
|
986
986
|
role?: string | undefined;
|
|
987
987
|
};
|
|
988
988
|
|
|
989
|
-
export type
|
|
989
|
+
export type RunAgentAgentToolInputRunHeaders = {
|
|
990
990
|
value: string;
|
|
991
991
|
encrypted?: boolean | undefined;
|
|
992
992
|
};
|
|
@@ -1033,7 +1033,7 @@ export type Mcp = {
|
|
|
1033
1033
|
/**
|
|
1034
1034
|
* HTTP headers for MCP server requests with encryption support
|
|
1035
1035
|
*/
|
|
1036
|
-
headers?: { [k: string]:
|
|
1036
|
+
headers?: { [k: string]: RunAgentAgentToolInputRunHeaders } | undefined;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Array of tools available from the MCP server
|
|
1039
1039
|
*/
|
|
@@ -1280,7 +1280,7 @@ export type Headers2 = {
|
|
|
1280
1280
|
encrypted?: boolean | undefined;
|
|
1281
1281
|
};
|
|
1282
1282
|
|
|
1283
|
-
export type
|
|
1283
|
+
export type AgentToolInputRunHeaders = Headers2 | string;
|
|
1284
1284
|
|
|
1285
1285
|
/**
|
|
1286
1286
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
@@ -1845,6 +1845,10 @@ export type RunAgentA2ATaskResponse = {
|
|
|
1845
1845
|
* Current task status information
|
|
1846
1846
|
*/
|
|
1847
1847
|
status: RunAgentTaskStatus;
|
|
1848
|
+
/**
|
|
1849
|
+
* Array of messages in the task conversation. Only present when blocking mode is enabled.
|
|
1850
|
+
*/
|
|
1851
|
+
messages?: Array<components.ExtendedMessage> | undefined;
|
|
1848
1852
|
/**
|
|
1849
1853
|
* Task metadata containing workspace_id and trace_id for feedback and tracking
|
|
1850
1854
|
*/
|
|
@@ -3521,26 +3525,28 @@ export function runAgentTeamOfAgentsToJSON(
|
|
|
3521
3525
|
}
|
|
3522
3526
|
|
|
3523
3527
|
/** @internal */
|
|
3524
|
-
export type
|
|
3528
|
+
export type RunAgentAgentToolInputRunHeaders$Outbound = {
|
|
3525
3529
|
value: string;
|
|
3526
3530
|
encrypted: boolean;
|
|
3527
3531
|
};
|
|
3528
3532
|
|
|
3529
3533
|
/** @internal */
|
|
3530
|
-
export const
|
|
3531
|
-
|
|
3534
|
+
export const RunAgentAgentToolInputRunHeaders$outboundSchema: z.ZodType<
|
|
3535
|
+
RunAgentAgentToolInputRunHeaders$Outbound,
|
|
3532
3536
|
z.ZodTypeDef,
|
|
3533
|
-
|
|
3537
|
+
RunAgentAgentToolInputRunHeaders
|
|
3534
3538
|
> = z.object({
|
|
3535
3539
|
value: z.string(),
|
|
3536
3540
|
encrypted: z.boolean().default(false),
|
|
3537
3541
|
});
|
|
3538
3542
|
|
|
3539
|
-
export function
|
|
3540
|
-
|
|
3543
|
+
export function runAgentAgentToolInputRunHeadersToJSON(
|
|
3544
|
+
runAgentAgentToolInputRunHeaders: RunAgentAgentToolInputRunHeaders,
|
|
3541
3545
|
): string {
|
|
3542
3546
|
return JSON.stringify(
|
|
3543
|
-
|
|
3547
|
+
RunAgentAgentToolInputRunHeaders$outboundSchema.parse(
|
|
3548
|
+
runAgentAgentToolInputRunHeaders,
|
|
3549
|
+
),
|
|
3544
3550
|
);
|
|
3545
3551
|
}
|
|
3546
3552
|
|
|
@@ -3593,7 +3599,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3593
3599
|
z.ZodTypeDef,
|
|
3594
3600
|
Tools
|
|
3595
3601
|
> = z.object({
|
|
3596
|
-
id: z.string().default("
|
|
3602
|
+
id: z.string().default("01KJZ6J2SPJR976554V1PQKJCY"),
|
|
3597
3603
|
name: z.string(),
|
|
3598
3604
|
description: z.string().optional(),
|
|
3599
3605
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3611,7 +3617,9 @@ export const ConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
|
3611
3617
|
/** @internal */
|
|
3612
3618
|
export type Mcp$Outbound = {
|
|
3613
3619
|
server_url: string;
|
|
3614
|
-
headers?:
|
|
3620
|
+
headers?:
|
|
3621
|
+
| { [k: string]: RunAgentAgentToolInputRunHeaders$Outbound }
|
|
3622
|
+
| undefined;
|
|
3615
3623
|
tools: Array<Tools$Outbound>;
|
|
3616
3624
|
connection_type: string;
|
|
3617
3625
|
};
|
|
@@ -3620,8 +3628,9 @@ export type Mcp$Outbound = {
|
|
|
3620
3628
|
export const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp> = z
|
|
3621
3629
|
.object({
|
|
3622
3630
|
serverUrl: z.string(),
|
|
3623
|
-
headers: z.record(
|
|
3624
|
-
.
|
|
3631
|
+
headers: z.record(
|
|
3632
|
+
z.lazy(() => RunAgentAgentToolInputRunHeaders$outboundSchema),
|
|
3633
|
+
).optional(),
|
|
3625
3634
|
tools: z.array(z.lazy(() => Tools$outboundSchema)),
|
|
3626
3635
|
connectionType: ConnectionType$outboundSchema,
|
|
3627
3636
|
}).transform((v) => {
|
|
@@ -4021,17 +4030,21 @@ export function headers2ToJSON(headers2: Headers2): string {
|
|
|
4021
4030
|
}
|
|
4022
4031
|
|
|
4023
4032
|
/** @internal */
|
|
4024
|
-
export type
|
|
4033
|
+
export type AgentToolInputRunHeaders$Outbound = Headers2$Outbound | string;
|
|
4025
4034
|
|
|
4026
4035
|
/** @internal */
|
|
4027
|
-
export const
|
|
4028
|
-
|
|
4036
|
+
export const AgentToolInputRunHeaders$outboundSchema: z.ZodType<
|
|
4037
|
+
AgentToolInputRunHeaders$Outbound,
|
|
4029
4038
|
z.ZodTypeDef,
|
|
4030
|
-
|
|
4039
|
+
AgentToolInputRunHeaders
|
|
4031
4040
|
> = z.union([z.lazy(() => Headers2$outboundSchema), z.string()]);
|
|
4032
4041
|
|
|
4033
|
-
export function
|
|
4034
|
-
|
|
4042
|
+
export function agentToolInputRunHeadersToJSON(
|
|
4043
|
+
agentToolInputRunHeaders: AgentToolInputRunHeaders,
|
|
4044
|
+
): string {
|
|
4045
|
+
return JSON.stringify(
|
|
4046
|
+
AgentToolInputRunHeaders$outboundSchema.parse(agentToolInputRunHeaders),
|
|
4047
|
+
);
|
|
4035
4048
|
}
|
|
4036
4049
|
|
|
4037
4050
|
/** @internal */
|
|
@@ -4899,6 +4912,7 @@ export const RunAgentA2ATaskResponse$inboundSchema: z.ZodType<
|
|
|
4899
4912
|
contextId: z.string(),
|
|
4900
4913
|
kind: RunAgentKind$inboundSchema,
|
|
4901
4914
|
status: z.lazy(() => RunAgentTaskStatus$inboundSchema),
|
|
4915
|
+
messages: z.array(components.ExtendedMessage$inboundSchema).optional(),
|
|
4902
4916
|
metadata: z.record(z.any()).optional(),
|
|
4903
4917
|
});
|
|
4904
4918
|
|
|
@@ -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, {
|
|
@@ -896,7 +896,7 @@ export type StreamRunAgentA2AMessage = {
|
|
|
896
896
|
*/
|
|
897
897
|
role: StreamRunAgentRoleUserMessage | StreamRunAgentRoleToolMessage;
|
|
898
898
|
/**
|
|
899
|
-
* A2A message parts (text, file, or tool_result only)
|
|
899
|
+
* A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
|
|
900
900
|
*/
|
|
901
901
|
parts: Array<
|
|
902
902
|
| components.TextPart
|
|
@@ -3646,7 +3646,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3646
3646
|
z.ZodTypeDef,
|
|
3647
3647
|
AgentToolInputRunTools
|
|
3648
3648
|
> = z.object({
|
|
3649
|
-
id: z.string().default("
|
|
3649
|
+
id: z.string().default("01KJZ6J2W74JBMWHXD7TM5M96B"),
|
|
3650
3650
|
name: z.string(),
|
|
3651
3651
|
description: z.string().optional(),
|
|
3652
3652
|
schema: z.lazy(() =>
|