@orq-ai/node 4.0.4 → 4.0.6
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 +213 -213
- package/bin/mcp-server.js.map +36 -36
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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 +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- 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 +12 -12
- 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 +8 -8
- 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 +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- 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/README.md +38 -47
- package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
- package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
- 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/agentsCreate.ts +16 -14
- package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -9
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
- package/packages/orq-rc/src/models/errors/index.ts +2 -3
- package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
- package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
- package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
- 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 +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- 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/getalltools.ts +12 -12
- 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/index.ts +3 -7
- package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
- 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 +8 -8
- 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/retrieveagentrequest.ts +3741 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- 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 +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
- package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
- package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
- 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 +8 -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 +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/agents.ts +51 -99
- package/packages/orq-rc/src/sdk/responses.ts +7 -5
- package/src/lib/config.ts +2 -2
- 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 +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- 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 +12 -12
- 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 +8 -8
- 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 +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.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 +8 -8
- 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
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
|
@@ -2990,8 +2990,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
2990
2990
|
> = z.object({
|
|
2991
2991
|
_id: z.string(),
|
|
2992
2992
|
description: z.string(),
|
|
2993
|
-
created: z.string().default("2025-11-
|
|
2994
|
-
updated: z.string().default("2025-11-
|
|
2993
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
2994
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
2995
2995
|
guardrail_config: z.union([
|
|
2996
2996
|
z.lazy(() =>
|
|
2997
2997
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3033,8 +3033,8 @@ export const ResponseBodyTypescript$outboundSchema: z.ZodType<
|
|
|
3033
3033
|
> = z.object({
|
|
3034
3034
|
id: z.string(),
|
|
3035
3035
|
description: z.string(),
|
|
3036
|
-
created: z.string().default("2025-11-
|
|
3037
|
-
updated: z.string().default("2025-11-
|
|
3036
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3037
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3038
3038
|
guardrailConfig: z.union([
|
|
3039
3039
|
z.lazy(() =>
|
|
3040
3040
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
_id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-11-
|
|
3328
|
-
updated: z.string().default("2025-11-
|
|
3327
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3328
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3329
3329
|
guardrail_config: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3370,8 +3370,8 @@ export const ResponseBodyRagas$outboundSchema: z.ZodType<
|
|
|
3370
3370
|
> = z.object({
|
|
3371
3371
|
id: z.string(),
|
|
3372
3372
|
description: z.string(),
|
|
3373
|
-
created: z.string().default("2025-11-
|
|
3374
|
-
updated: z.string().default("2025-11-
|
|
3373
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3374
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
3375
3375
|
guardrailConfig: z.union([
|
|
3376
3376
|
z.lazy(() =>
|
|
3377
3377
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -5709,8 +5709,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
5709
5709
|
> = z.object({
|
|
5710
5710
|
_id: z.string(),
|
|
5711
5711
|
description: z.string(),
|
|
5712
|
-
created: z.string().default("2025-11-
|
|
5713
|
-
updated: z.string().default("2025-11-
|
|
5712
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
5713
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
5714
5714
|
guardrail_config: z.union([
|
|
5715
5715
|
z.lazy(() =>
|
|
5716
5716
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -5823,8 +5823,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
5823
5823
|
> = z.object({
|
|
5824
5824
|
id: z.string(),
|
|
5825
5825
|
description: z.string(),
|
|
5826
|
-
created: z.string().default("2025-11-
|
|
5827
|
-
updated: z.string().default("2025-11-
|
|
5826
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
5827
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
5828
5828
|
guardrailConfig: z.union([
|
|
5829
5829
|
z.lazy(() =>
|
|
5830
5830
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -6140,8 +6140,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
6140
6140
|
> = z.object({
|
|
6141
6141
|
_id: z.string(),
|
|
6142
6142
|
description: z.string(),
|
|
6143
|
-
created: z.string().default("2025-11-
|
|
6144
|
-
updated: z.string().default("2025-11-
|
|
6143
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6144
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6145
6145
|
guardrail_config: z.union([
|
|
6146
6146
|
z.lazy(() =>
|
|
6147
6147
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -6182,8 +6182,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
6182
6182
|
> = z.object({
|
|
6183
6183
|
id: z.string(),
|
|
6184
6184
|
description: z.string(),
|
|
6185
|
-
created: z.string().default("2025-11-
|
|
6186
|
-
updated: z.string().default("2025-11-
|
|
6185
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6186
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6187
6187
|
guardrailConfig: z.union([
|
|
6188
6188
|
z.lazy(() =>
|
|
6189
6189
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -6468,8 +6468,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
6468
6468
|
> = z.object({
|
|
6469
6469
|
_id: z.string(),
|
|
6470
6470
|
description: z.string(),
|
|
6471
|
-
created: z.string().default("2025-11-
|
|
6472
|
-
updated: z.string().default("2025-11-
|
|
6471
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6472
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6473
6473
|
guardrail_config: z.union([
|
|
6474
6474
|
z.lazy(() =>
|
|
6475
6475
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -6516,8 +6516,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
6516
6516
|
> = z.object({
|
|
6517
6517
|
id: z.string(),
|
|
6518
6518
|
description: z.string(),
|
|
6519
|
-
created: z.string().default("2025-11-
|
|
6520
|
-
updated: z.string().default("2025-11-
|
|
6519
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6520
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6521
6521
|
guardrailConfig: z.union([
|
|
6522
6522
|
z.lazy(() =>
|
|
6523
6523
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -6786,8 +6786,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
6786
6786
|
> = z.object({
|
|
6787
6787
|
_id: z.string(),
|
|
6788
6788
|
description: z.string(),
|
|
6789
|
-
created: z.string().default("2025-11-
|
|
6790
|
-
updated: z.string().default("2025-11-
|
|
6789
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6790
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6791
6791
|
guardrail_config: z.union([
|
|
6792
6792
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
6793
6793
|
z.lazy(() =>
|
|
@@ -6826,8 +6826,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
6826
6826
|
> = z.object({
|
|
6827
6827
|
id: z.string(),
|
|
6828
6828
|
description: z.string(),
|
|
6829
|
-
created: z.string().default("2025-11-
|
|
6830
|
-
updated: z.string().default("2025-11-
|
|
6829
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6830
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
6831
6831
|
guardrailConfig: z.union([
|
|
6832
6832
|
z.lazy(() =>
|
|
6833
6833
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -7066,8 +7066,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
7066
7066
|
> = z.object({
|
|
7067
7067
|
_id: z.string(),
|
|
7068
7068
|
description: z.string(),
|
|
7069
|
-
created: z.string().default("2025-11-
|
|
7070
|
-
updated: z.string().default("2025-11-
|
|
7069
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
7070
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
7071
7071
|
guardrail_config: z.union([
|
|
7072
7072
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
7073
7073
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -7106,8 +7106,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
7106
7106
|
> = z.object({
|
|
7107
7107
|
id: z.string(),
|
|
7108
7108
|
description: z.string(),
|
|
7109
|
-
created: z.string().default("2025-11-
|
|
7110
|
-
updated: z.string().default("2025-11-
|
|
7109
|
+
created: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
7110
|
+
updated: z.string().default("2025-11-24T13:35:00.305Z"),
|
|
7111
7111
|
guardrailConfig: z.union([
|
|
7112
7112
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
7113
7113
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -1030,7 +1030,7 @@ export type UpdatePromptResponseFormatPromptsRequestJsonSchema = {
|
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
1032
1032
|
*/
|
|
1033
|
-
strict?: boolean |
|
|
1033
|
+
strict?: boolean | undefined;
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
1036
|
/**
|
|
@@ -4536,14 +4536,14 @@ export const UpdatePromptResponseFormatPromptsRequestJsonSchema$inboundSchema:
|
|
|
4536
4536
|
description: z.string().optional(),
|
|
4537
4537
|
name: z.string(),
|
|
4538
4538
|
schema: z.any().optional(),
|
|
4539
|
-
strict: z.
|
|
4539
|
+
strict: z.boolean().default(false),
|
|
4540
4540
|
});
|
|
4541
4541
|
/** @internal */
|
|
4542
4542
|
export type UpdatePromptResponseFormatPromptsRequestJsonSchema$Outbound = {
|
|
4543
4543
|
description?: string | undefined;
|
|
4544
4544
|
name: string;
|
|
4545
4545
|
schema?: any | undefined;
|
|
4546
|
-
strict
|
|
4546
|
+
strict: boolean;
|
|
4547
4547
|
};
|
|
4548
4548
|
|
|
4549
4549
|
/** @internal */
|
|
@@ -4556,7 +4556,7 @@ export const UpdatePromptResponseFormatPromptsRequestJsonSchema$outboundSchema:
|
|
|
4556
4556
|
description: z.string().optional(),
|
|
4557
4557
|
name: z.string(),
|
|
4558
4558
|
schema: z.any().optional(),
|
|
4559
|
-
strict: z.
|
|
4559
|
+
strict: z.boolean().default(false),
|
|
4560
4560
|
});
|
|
4561
4561
|
|
|
4562
4562
|
export function updatePromptResponseFormatPromptsRequestJsonSchemaToJSON(
|
|
@@ -1617,7 +1617,7 @@ export const RequestBodyTools$inboundSchema: z.ZodType<
|
|
|
1617
1617
|
z.ZodTypeDef,
|
|
1618
1618
|
unknown
|
|
1619
1619
|
> = z.object({
|
|
1620
|
-
id: z.string().default("
|
|
1620
|
+
id: z.string().default("01KAV16P1BE6GFJG1T34XJ3DT2"),
|
|
1621
1621
|
name: z.string(),
|
|
1622
1622
|
description: z.string().optional(),
|
|
1623
1623
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$inboundSchema),
|
|
@@ -1636,7 +1636,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1636
1636
|
z.ZodTypeDef,
|
|
1637
1637
|
RequestBodyTools
|
|
1638
1638
|
> = z.object({
|
|
1639
|
-
id: z.string().default("
|
|
1639
|
+
id: z.string().default("01KAV16P1BE6GFJG1T34XJ3DT2"),
|
|
1640
1640
|
name: z.string(),
|
|
1641
1641
|
description: z.string().optional(),
|
|
1642
1642
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2857,7 +2857,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2857
2857
|
z.ZodTypeDef,
|
|
2858
2858
|
unknown
|
|
2859
2859
|
> = z.object({
|
|
2860
|
-
_id: z.string().default("
|
|
2860
|
+
_id: z.string().default("tool_01KAV16P16668876YWWP9244C9"),
|
|
2861
2861
|
path: z.string(),
|
|
2862
2862
|
key: z.string(),
|
|
2863
2863
|
display_name: z.string().optional(),
|
|
@@ -2911,7 +2911,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2911
2911
|
z.ZodTypeDef,
|
|
2912
2912
|
UpdateToolResponseBodyCodeExecutionTool
|
|
2913
2913
|
> = z.object({
|
|
2914
|
-
id: z.string().default("
|
|
2914
|
+
id: z.string().default("tool_01KAV16P16668876YWWP9244C9"),
|
|
2915
2915
|
path: z.string(),
|
|
2916
2916
|
key: z.string(),
|
|
2917
2917
|
displayName: z.string().optional(),
|
|
@@ -3096,7 +3096,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
3096
3096
|
z.ZodTypeDef,
|
|
3097
3097
|
unknown
|
|
3098
3098
|
> = z.object({
|
|
3099
|
-
id: z.string().default("
|
|
3099
|
+
id: z.string().default("01KAV16P15BPRE238CW29VNDX3"),
|
|
3100
3100
|
name: z.string(),
|
|
3101
3101
|
description: z.string().optional(),
|
|
3102
3102
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -3115,7 +3115,7 @@ export const UpdateToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
3115
3115
|
z.ZodTypeDef,
|
|
3116
3116
|
UpdateToolResponseBodyTools
|
|
3117
3117
|
> = z.object({
|
|
3118
|
-
id: z.string().default("
|
|
3118
|
+
id: z.string().default("01KAV16P15BPRE238CW29VNDX3"),
|
|
3119
3119
|
name: z.string(),
|
|
3120
3120
|
description: z.string().optional(),
|
|
3121
3121
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -3216,7 +3216,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
3216
3216
|
z.ZodTypeDef,
|
|
3217
3217
|
unknown
|
|
3218
3218
|
> = z.object({
|
|
3219
|
-
_id: z.string().default("
|
|
3219
|
+
_id: z.string().default("tool_01KAV16P14A96CDJAF0S8KP34N"),
|
|
3220
3220
|
path: z.string(),
|
|
3221
3221
|
key: z.string(),
|
|
3222
3222
|
display_name: z.string().optional(),
|
|
@@ -3269,7 +3269,7 @@ export const UpdateToolResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
3269
3269
|
z.ZodTypeDef,
|
|
3270
3270
|
UpdateToolResponseBodyMCPTool
|
|
3271
3271
|
> = z.object({
|
|
3272
|
-
id: z.string().default("
|
|
3272
|
+
id: z.string().default("tool_01KAV16P14A96CDJAF0S8KP34N"),
|
|
3273
3273
|
path: z.string(),
|
|
3274
3274
|
key: z.string(),
|
|
3275
3275
|
displayName: z.string().optional(),
|
|
@@ -3646,7 +3646,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
3646
3646
|
z.ZodTypeDef,
|
|
3647
3647
|
unknown
|
|
3648
3648
|
> = z.object({
|
|
3649
|
-
_id: z.string().default("
|
|
3649
|
+
_id: z.string().default("tool_01KAV16P122ZWG18CR3XQRPJ9S"),
|
|
3650
3650
|
path: z.string(),
|
|
3651
3651
|
key: z.string(),
|
|
3652
3652
|
display_name: z.string().optional(),
|
|
@@ -3699,7 +3699,7 @@ export const UpdateToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
3699
3699
|
z.ZodTypeDef,
|
|
3700
3700
|
UpdateToolResponseBodyHTTPTool
|
|
3701
3701
|
> = z.object({
|
|
3702
|
-
id: z.string().default("
|
|
3702
|
+
id: z.string().default("tool_01KAV16P122ZWG18CR3XQRPJ9S"),
|
|
3703
3703
|
path: z.string(),
|
|
3704
3704
|
key: z.string(),
|
|
3705
3705
|
displayName: z.string().optional(),
|
|
@@ -3881,7 +3881,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
3881
3881
|
z.ZodTypeDef,
|
|
3882
3882
|
unknown
|
|
3883
3883
|
> = z.object({
|
|
3884
|
-
_id: z.string().default("
|
|
3884
|
+
_id: z.string().default("tool_01KAV16P11M22PWPRBAF68BKZ5"),
|
|
3885
3885
|
path: z.string(),
|
|
3886
3886
|
key: z.string(),
|
|
3887
3887
|
display_name: z.string().optional(),
|
|
@@ -3933,7 +3933,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
3933
3933
|
z.ZodTypeDef,
|
|
3934
3934
|
UpdateToolResponseBodyJSONSchemaTool
|
|
3935
3935
|
> = z.object({
|
|
3936
|
-
id: z.string().default("
|
|
3936
|
+
id: z.string().default("tool_01KAV16P11M22PWPRBAF68BKZ5"),
|
|
3937
3937
|
path: z.string(),
|
|
3938
3938
|
key: z.string(),
|
|
3939
3939
|
displayName: z.string().optional(),
|
|
@@ -4130,7 +4130,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
4130
4130
|
z.ZodTypeDef,
|
|
4131
4131
|
unknown
|
|
4132
4132
|
> = z.object({
|
|
4133
|
-
_id: z.string().default("
|
|
4133
|
+
_id: z.string().default("tool_01KAV16P0QGPN9JYBQVMQFX02G"),
|
|
4134
4134
|
path: z.string(),
|
|
4135
4135
|
key: z.string(),
|
|
4136
4136
|
display_name: z.string().optional(),
|
|
@@ -4181,7 +4181,7 @@ export const UpdateToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
4181
4181
|
z.ZodTypeDef,
|
|
4182
4182
|
UpdateToolResponseBodyFunctionTool
|
|
4183
4183
|
> = z.object({
|
|
4184
|
-
id: z.string().default("
|
|
4184
|
+
id: z.string().default("tool_01KAV16P0QGPN9JYBQVMQFX02G"),
|
|
4185
4185
|
path: z.string(),
|
|
4186
4186
|
key: z.string(),
|
|
4187
4187
|
displayName: z.string().optional(),
|
|
@@ -6,11 +6,7 @@ import { agentsCreate } from "../funcs/agentsCreate.js";
|
|
|
6
6
|
import { agentsDelete } from "../funcs/agentsDelete.js";
|
|
7
7
|
import { agentsInvoke } from "../funcs/agentsInvoke.js";
|
|
8
8
|
import { agentsList } from "../funcs/agentsList.js";
|
|
9
|
-
import { agentsListActions } from "../funcs/agentsListActions.js";
|
|
10
|
-
import { agentsListTasks } from "../funcs/agentsListTasks.js";
|
|
11
9
|
import { agentsRetrieve } from "../funcs/agentsRetrieve.js";
|
|
12
|
-
import { agentsRetrieveAction } from "../funcs/agentsRetrieveAction.js";
|
|
13
|
-
import { agentsRetrieveTask } from "../funcs/agentsRetrieveTask.js";
|
|
14
10
|
import { agentsRun } from "../funcs/agentsRun.js";
|
|
15
11
|
import { agentsStream } from "../funcs/agentsStream.js";
|
|
16
12
|
import { agentsStreamRun } from "../funcs/agentsStreamRun.js";
|
|
@@ -28,15 +24,15 @@ export class Agents extends ClientSDK {
|
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
/**
|
|
31
|
-
* Create
|
|
27
|
+
* Create agent
|
|
32
28
|
*
|
|
33
29
|
* @remarks
|
|
34
|
-
* Creates a new
|
|
30
|
+
* Creates a new agent with the specified configuration, including model selection, instructions, tools, and knowledge bases. Agents are intelligent assistants that can execute tasks, interact with tools, and maintain context through memory stores. The agent can be configured with a primary model and optional fallback models for automatic failover, custom instructions for behavior control, and various settings to control execution limits and tool usage.
|
|
35
31
|
*/
|
|
36
32
|
async create(
|
|
37
|
-
request?: operations.
|
|
33
|
+
request?: operations.CreateAgentRequestRequestBody | undefined,
|
|
38
34
|
options?: RequestOptions,
|
|
39
|
-
): Promise<operations.
|
|
35
|
+
): Promise<operations.CreateAgentRequestResponseBody> {
|
|
40
36
|
return unwrapAsync(agentsCreate(
|
|
41
37
|
this,
|
|
42
38
|
request,
|
|
@@ -45,129 +41,107 @@ export class Agents extends ClientSDK {
|
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
/**
|
|
48
|
-
* Delete
|
|
44
|
+
* Delete agent
|
|
49
45
|
*
|
|
50
46
|
* @remarks
|
|
51
|
-
* Permanently
|
|
47
|
+
* Permanently removes an agent from the workspace. This operation is irreversible and will delete all associated configuration including model assignments, tools, knowledge bases, memory stores, and cached data. Active agent sessions will be terminated, and the agent key will become available for reuse.
|
|
52
48
|
*/
|
|
53
49
|
async delete(
|
|
54
|
-
|
|
50
|
+
agentKey: string,
|
|
55
51
|
options?: RequestOptions,
|
|
56
52
|
): Promise<void> {
|
|
57
53
|
return unwrapAsync(agentsDelete(
|
|
58
54
|
this,
|
|
59
|
-
|
|
55
|
+
agentKey,
|
|
60
56
|
options,
|
|
61
57
|
));
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
/**
|
|
65
|
-
*
|
|
61
|
+
* Retrieve agent
|
|
66
62
|
*
|
|
67
63
|
* @remarks
|
|
68
|
-
* Retrieves a
|
|
64
|
+
* Retrieves detailed information about a specific agent identified by its unique key or identifier. Returns the complete agent manifest including configuration settings, model assignments (primary and fallback), tools, knowledge bases, memory stores, instructions, and execution parameters. Use this endpoint to fetch the current state and configuration of an individual agent.
|
|
69
65
|
*/
|
|
70
66
|
async retrieve(
|
|
71
|
-
|
|
67
|
+
agentKey: string,
|
|
72
68
|
options?: RequestOptions,
|
|
73
|
-
): Promise<operations.
|
|
69
|
+
): Promise<operations.RetrieveAgentRequestResponseBody> {
|
|
74
70
|
return unwrapAsync(agentsRetrieve(
|
|
75
71
|
this,
|
|
76
|
-
|
|
72
|
+
agentKey,
|
|
77
73
|
options,
|
|
78
74
|
));
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
/**
|
|
82
|
-
* Update
|
|
78
|
+
* Update agent
|
|
83
79
|
*
|
|
84
80
|
* @remarks
|
|
85
|
-
*
|
|
81
|
+
* Modifies an existing agent's configuration with partial updates. Supports updating any aspect of the agent including model assignments (primary and fallback), instructions, tools, knowledge bases, memory stores, and execution parameters. Only the fields provided in the request body will be updated; all other fields remain unchanged. Changes take effect immediately for new agent invocations.
|
|
86
82
|
*/
|
|
87
83
|
async update(
|
|
88
|
-
|
|
84
|
+
agentKey: string,
|
|
85
|
+
requestBody?: operations.UpdateAgentUpdateAgentRequest | undefined,
|
|
89
86
|
options?: RequestOptions,
|
|
90
87
|
): Promise<operations.UpdateAgentResponseBody> {
|
|
91
88
|
return unwrapAsync(agentsUpdate(
|
|
92
89
|
this,
|
|
93
|
-
|
|
90
|
+
agentKey,
|
|
91
|
+
requestBody,
|
|
94
92
|
options,
|
|
95
93
|
));
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
/**
|
|
99
|
-
*
|
|
97
|
+
* Execute an agent task
|
|
100
98
|
*
|
|
101
99
|
* @remarks
|
|
102
|
-
*
|
|
100
|
+
* Invokes an agent to perform a task with the provided input message. The agent will process the request using its configured model and tools, maintaining context through memory stores if configured. Supports automatic model fallback on primary model failure, tool execution, knowledge base retrieval, and continuation of previous conversations. Returns a task response that can be used to track execution status and retrieve results.
|
|
101
|
+
*
|
|
102
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
103
103
|
*/
|
|
104
104
|
async invoke(
|
|
105
|
-
|
|
105
|
+
key: string,
|
|
106
|
+
requestBody?: operations.InvokeAgentRequestBody | undefined,
|
|
106
107
|
options?: RequestOptions,
|
|
107
108
|
): Promise<operations.InvokeAgentA2ATaskResponse> {
|
|
108
109
|
return unwrapAsync(agentsInvoke(
|
|
109
110
|
this,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* List all tasks for an agent
|
|
117
|
-
*
|
|
118
|
-
* @remarks
|
|
119
|
-
* Retrieves a paginated list of all tasks associated with a specific agent, optionally filtered by status.
|
|
120
|
-
*/
|
|
121
|
-
async listTasks(
|
|
122
|
-
request: operations.ListAgentTasksRequest,
|
|
123
|
-
options?: RequestOptions,
|
|
124
|
-
): Promise<operations.ListAgentTasksAgentTasksListResponse> {
|
|
125
|
-
return unwrapAsync(agentsListTasks(
|
|
126
|
-
this,
|
|
127
|
-
request,
|
|
128
|
-
options,
|
|
129
|
-
));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Retrieve a specific agent task
|
|
134
|
-
*
|
|
135
|
-
* @remarks
|
|
136
|
-
* Retrieves detailed information about a specific task for a given agent, including execution status and results.
|
|
137
|
-
*/
|
|
138
|
-
async retrieveTask(
|
|
139
|
-
request: operations.GetAgentTaskRequest,
|
|
140
|
-
options?: RequestOptions,
|
|
141
|
-
): Promise<operations.GetAgentTaskExtendedTaskResponse> {
|
|
142
|
-
return unwrapAsync(agentsRetrieveTask(
|
|
143
|
-
this,
|
|
144
|
-
request,
|
|
111
|
+
key,
|
|
112
|
+
requestBody,
|
|
145
113
|
options,
|
|
146
114
|
));
|
|
147
115
|
}
|
|
148
116
|
|
|
149
117
|
/**
|
|
150
|
-
* List
|
|
118
|
+
* List agents
|
|
151
119
|
*
|
|
152
120
|
* @remarks
|
|
153
|
-
* Retrieves a list of
|
|
121
|
+
* Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
|
|
154
122
|
*/
|
|
155
123
|
async list(
|
|
156
|
-
|
|
124
|
+
limit?: number | undefined,
|
|
125
|
+
startingAfter?: string | undefined,
|
|
126
|
+
endingBefore?: string | undefined,
|
|
157
127
|
options?: RequestOptions,
|
|
158
128
|
): Promise<operations.ListAgentsResponseBody> {
|
|
159
129
|
return unwrapAsync(agentsList(
|
|
160
130
|
this,
|
|
161
|
-
|
|
131
|
+
limit,
|
|
132
|
+
startingAfter,
|
|
133
|
+
endingBefore,
|
|
162
134
|
options,
|
|
163
135
|
));
|
|
164
136
|
}
|
|
165
137
|
|
|
166
138
|
/**
|
|
167
|
-
* Run an agent
|
|
139
|
+
* Run an agent with configuration
|
|
168
140
|
*
|
|
169
141
|
* @remarks
|
|
170
|
-
* Executes an agent
|
|
142
|
+
* Executes an agent using inline configuration or references an existing agent. Supports dynamic agent creation where the system automatically manages agent versioning - reusing existing agents with matching configurations or creating new versions when configurations differ. Ideal for programmatic agent execution with flexible configuration management. The agent processes messages in A2A format with support for memory context, tool execution, and automatic model fallback on failure.
|
|
143
|
+
*
|
|
144
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
171
145
|
*/
|
|
172
146
|
async run(
|
|
173
147
|
request?: operations.RunAgentRequestBody | undefined,
|
|
@@ -181,10 +155,12 @@ export class Agents extends ClientSDK {
|
|
|
181
155
|
}
|
|
182
156
|
|
|
183
157
|
/**
|
|
184
|
-
* Run
|
|
158
|
+
* Run agent with streaming response
|
|
185
159
|
*
|
|
186
160
|
* @remarks
|
|
187
|
-
*
|
|
161
|
+
* Dynamically configures and executes an agent while streaming the interaction in real-time via Server-Sent Events (SSE). Intelligently manages agent versioning by reusing existing agents with matching configurations or creating new versions when configurations differ. Combines the flexibility of inline configuration with real-time streaming, making it ideal for dynamic agent interactions with live feedback. The stream provides continuous updates including message chunks, tool executions, and status changes until completion or timeout.
|
|
162
|
+
*
|
|
163
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
188
164
|
*/
|
|
189
165
|
async streamRun(
|
|
190
166
|
request?: operations.StreamRunAgentRequestBody | undefined,
|
|
@@ -198,46 +174,22 @@ export class Agents extends ClientSDK {
|
|
|
198
174
|
}
|
|
199
175
|
|
|
200
176
|
/**
|
|
201
|
-
* Stream agent execution
|
|
177
|
+
* Stream agent execution in real-time
|
|
202
178
|
*
|
|
203
179
|
* @remarks
|
|
204
|
-
* Executes an agent and streams
|
|
180
|
+
* Executes an agent and streams the interaction in real-time using Server-Sent Events (SSE). Provides live updates as the agent processes the request, including message chunks, tool calls, and execution status. Perfect for building responsive chat interfaces and monitoring agent progress. The stream continues until the agent completes its task, encounters an error, or reaches the configured timeout (default 30 minutes, configurable 1-3600 seconds).
|
|
181
|
+
*
|
|
182
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
205
183
|
*/
|
|
206
184
|
async stream(
|
|
207
|
-
|
|
185
|
+
key: string,
|
|
186
|
+
requestBody?: operations.StreamAgentRequestBody | undefined,
|
|
208
187
|
options?: RequestOptions,
|
|
209
188
|
): Promise<EventStream<operations.StreamAgentResponseBody>> {
|
|
210
189
|
return unwrapAsync(agentsStream(
|
|
211
190
|
this,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
));
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* List all actions
|
|
219
|
-
*/
|
|
220
|
-
async listActions(
|
|
221
|
-
request: operations.ListActionsRequest,
|
|
222
|
-
options?: RequestOptions,
|
|
223
|
-
): Promise<operations.ListActionsResponseBody> {
|
|
224
|
-
return unwrapAsync(agentsListActions(
|
|
225
|
-
this,
|
|
226
|
-
request,
|
|
227
|
-
options,
|
|
228
|
-
));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Retrieve an action executed by an agent task.
|
|
233
|
-
*/
|
|
234
|
-
async retrieveAction(
|
|
235
|
-
request: operations.RetrieveActionRequest,
|
|
236
|
-
options?: RequestOptions,
|
|
237
|
-
): Promise<operations.RetrieveActionResponseBody> {
|
|
238
|
-
return unwrapAsync(agentsRetrieveAction(
|
|
239
|
-
this,
|
|
240
|
-
request,
|
|
191
|
+
key,
|
|
192
|
+
requestBody,
|
|
241
193
|
options,
|
|
242
194
|
));
|
|
243
195
|
}
|
|
@@ -9,18 +9,20 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
9
9
|
|
|
10
10
|
export class Responses extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
* Create
|
|
12
|
+
* Create response
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
|
|
16
16
|
*/
|
|
17
17
|
async create(
|
|
18
|
-
|
|
18
|
+
agentKey: string,
|
|
19
|
+
requestBody?: operations.CreateAgentResponseRequestRequestBody | undefined,
|
|
19
20
|
options?: RequestOptions,
|
|
20
|
-
): Promise<operations.
|
|
21
|
+
): Promise<operations.CreateAgentResponseRequestResponseBody> {
|
|
21
22
|
return unwrapAsync(agentsResponsesCreate(
|
|
22
23
|
this,
|
|
23
|
-
|
|
24
|
+
agentKey,
|
|
25
|
+
requestBody,
|
|
24
26
|
options,
|
|
25
27
|
));
|
|
26
28
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.0.
|
|
71
|
+
sdkVersion: "4.0.6",
|
|
72
72
|
genVersion: "2.760.2",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.0.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.0.6 2.760.2 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|