@orq-ai/node 3.13.9 → 3.13.11
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 +107 -93
- package/bin/mcp-server.js +43652 -40649
- package/bin/mcp-server.js.map +117 -98
- package/docs/sdks/agents/README.md +566 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +18 -0
- package/funcs/agentsCreate.d.ts.map +1 -0
- package/funcs/agentsCreate.js +120 -0
- package/funcs/agentsCreate.js.map +1 -0
- package/funcs/agentsDelete.d.ts +18 -0
- package/funcs/agentsDelete.d.ts.map +1 -0
- package/funcs/agentsDelete.js +124 -0
- package/funcs/agentsDelete.js.map +1 -0
- package/funcs/agentsInvoke.d.ts +17 -0
- package/funcs/agentsInvoke.d.ts.map +1 -0
- package/funcs/agentsInvoke.js +120 -0
- package/funcs/agentsInvoke.js.map +1 -0
- package/funcs/agentsStream.d.ts +19 -0
- package/funcs/agentsStream.d.ts.map +1 -0
- package/funcs/agentsStream.js +134 -0
- package/funcs/agentsStream.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +18 -0
- package/funcs/agentsUpdate.d.ts.map +1 -0
- package/funcs/agentsUpdate.js +124 -0
- package/funcs/agentsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +8 -0
- package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsCreate.js +64 -0
- package/mcp-server/tools/agentsCreate.js.map +1 -0
- package/mcp-server/tools/agentsDelete.d.ts +8 -0
- package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
- package/mcp-server/tools/agentsDelete.js +63 -0
- package/mcp-server/tools/agentsDelete.js.map +1 -0
- package/mcp-server/tools/agentsInvoke.d.ts +8 -0
- package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/agentsInvoke.js +64 -0
- package/mcp-server/tools/agentsInvoke.js.map +1 -0
- package/mcp-server/tools/agentsStream.d.ts +8 -0
- package/mcp-server/tools/agentsStream.d.ts.map +1 -0
- package/mcp-server/tools/agentsStream.js +64 -0
- package/mcp-server/tools/agentsStream.js.map +1 -0
- package/mcp-server/tools/agentsUpdate.d.ts +8 -0
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/agentsUpdate.js +64 -0
- package/mcp-server/tools/agentsUpdate.js.map +1 -0
- package/models/errors/createagent.d.ts +41 -0
- package/models/errors/createagent.d.ts.map +1 -0
- package/models/errors/createagent.js +85 -0
- package/models/errors/createagent.js.map +1 -0
- package/models/errors/deleteagent.d.ts +41 -0
- package/models/errors/deleteagent.d.ts.map +1 -0
- package/models/errors/deleteagent.js +85 -0
- package/models/errors/deleteagent.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/streamagent.d.ts +41 -0
- package/models/errors/streamagent.d.ts.map +1 -0
- package/models/errors/streamagent.js +85 -0
- package/models/errors/streamagent.js.map +1 -0
- package/models/errors/updateagent.d.ts +41 -0
- package/models/errors/updateagent.d.ts.map +1 -0
- package/models/errors/updateagent.js +85 -0
- package/models/errors/updateagent.js.map +1 -0
- package/models/operations/createagent.d.ts +1504 -0
- package/models/operations/createagent.d.ts.map +1 -0
- package/models/operations/createagent.js +1530 -0
- package/models/operations/createagent.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +20 -20
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +34 -34
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteagent.d.ts +32 -0
- package/models/operations/deleteagent.d.ts.map +1 -0
- package/models/operations/deleteagent.js +78 -0
- package/models/operations/deleteagent.js.map +1 -0
- package/models/operations/duplicatetool.d.ts +10 -10
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +20 -20
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +44 -175
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +51 -184
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +20 -20
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +912 -0
- package/models/operations/invokeagent.d.ts.map +1 -0
- package/models/operations/invokeagent.js +824 -0
- package/models/operations/invokeagent.js.map +1 -0
- package/models/operations/listagents.d.ts +6 -137
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +5 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +2 -0
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +20 -20
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +640 -721
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +817 -928
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +676 -0
- package/models/operations/streamagent.d.ts.map +1 -0
- package/models/operations/streamagent.js +670 -0
- package/models/operations/streamagent.js.map +1 -0
- package/models/operations/streamrunagent.d.ts +567 -648
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +721 -835
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +1515 -0
- package/models/operations/updateagent.d.ts.map +1 -0
- package/models/operations/updateagent.js +1576 -0
- package/models/operations/updateagent.js.map +1 -0
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.d.ts +18 -18
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +36 -36
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/README.md +103 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
- 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 +172 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
- 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 +7 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +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/createtool.ts +50 -50
- package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
- 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/getagent.ts +87 -387
- package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
- 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 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
- 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/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 +30 -30
- package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
- package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
- 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/updatetool.ts +56 -56
- package/packages/orq-rc/src/sdk/agents.ts +54 -0
- package/sdk/agents.d.ts +35 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +50 -0
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +172 -0
- package/src/funcs/agentsDelete.ts +176 -0
- package/src/funcs/agentsInvoke.ts +167 -0
- package/src/funcs/agentsStream.ts +191 -0
- package/src/funcs/agentsUpdate.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/src/mcp-server/tools/agentsStream.ts +37 -0
- package/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/src/models/errors/createagent.ts +80 -0
- package/src/models/errors/deleteagent.ts +80 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/streamagent.ts +80 -0
- package/src/models/errors/updateagent.ts +80 -0
- package/src/models/operations/createagent.ts +3021 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +54 -54
- package/src/models/operations/deleteagent.ts +78 -0
- package/src/models/operations/duplicatetool.ts +30 -30
- 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/getagent.ts +87 -387
- package/src/models/operations/getalltools.ts +30 -30
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/invokeagent.ts +1569 -0
- package/src/models/operations/listagents.ts +8 -321
- package/src/models/operations/listagenttasks.ts +7 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +30 -30
- package/src/models/operations/runagent.ts +1441 -1488
- package/src/models/operations/streamagent.ts +1367 -0
- package/src/models/operations/streamrunagent.ts +1542 -1657
- package/src/models/operations/updateagent.ts +3227 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +60 -60
- package/src/sdk/agents.ts +90 -0
|
@@ -65,7 +65,7 @@ export type UpdateToolRequestBody5 = {
|
|
|
65
65
|
/**
|
|
66
66
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
67
67
|
*/
|
|
68
|
-
displayName
|
|
68
|
+
displayName?: string | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
71
71
|
*/
|
|
@@ -181,7 +181,7 @@ export type UpdateToolRequestBody4 = {
|
|
|
181
181
|
/**
|
|
182
182
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
183
183
|
*/
|
|
184
|
-
displayName
|
|
184
|
+
displayName?: string | undefined;
|
|
185
185
|
/**
|
|
186
186
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
187
187
|
*/
|
|
@@ -486,11 +486,11 @@ export type UpdateToolRequestBody1 = {
|
|
|
486
486
|
* The tool to update
|
|
487
487
|
*/
|
|
488
488
|
export type UpdateToolRequestBody =
|
|
489
|
-
| UpdateToolRequestBody4
|
|
490
|
-
| UpdateToolRequestBody5
|
|
491
489
|
| UpdateToolRequestBody1
|
|
492
490
|
| UpdateToolRequestBody2
|
|
493
|
-
| UpdateToolRequestBody3
|
|
491
|
+
| UpdateToolRequestBody3
|
|
492
|
+
| UpdateToolRequestBody4
|
|
493
|
+
| UpdateToolRequestBody5;
|
|
494
494
|
|
|
495
495
|
export type UpdateToolRequest = {
|
|
496
496
|
toolId: string;
|
|
@@ -498,11 +498,11 @@ export type UpdateToolRequest = {
|
|
|
498
498
|
* The tool to update
|
|
499
499
|
*/
|
|
500
500
|
requestBody?:
|
|
501
|
-
| UpdateToolRequestBody4
|
|
502
|
-
| UpdateToolRequestBody5
|
|
503
501
|
| UpdateToolRequestBody1
|
|
504
502
|
| UpdateToolRequestBody2
|
|
505
503
|
| UpdateToolRequestBody3
|
|
504
|
+
| UpdateToolRequestBody4
|
|
505
|
+
| UpdateToolRequestBody5
|
|
506
506
|
| undefined;
|
|
507
507
|
};
|
|
508
508
|
|
|
@@ -567,7 +567,7 @@ export type UpdateToolResponseBody5 = {
|
|
|
567
567
|
/**
|
|
568
568
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
569
569
|
*/
|
|
570
|
-
displayName
|
|
570
|
+
displayName?: string | undefined;
|
|
571
571
|
/**
|
|
572
572
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
573
573
|
*/
|
|
@@ -698,7 +698,7 @@ export type UpdateToolResponseBody4 = {
|
|
|
698
698
|
/**
|
|
699
699
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
700
700
|
*/
|
|
701
|
-
displayName
|
|
701
|
+
displayName?: string | undefined;
|
|
702
702
|
/**
|
|
703
703
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
704
704
|
*/
|
|
@@ -853,7 +853,7 @@ export type UpdateToolResponseBody3 = {
|
|
|
853
853
|
/**
|
|
854
854
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
855
855
|
*/
|
|
856
|
-
displayName
|
|
856
|
+
displayName?: string | undefined;
|
|
857
857
|
/**
|
|
858
858
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
859
859
|
*/
|
|
@@ -940,7 +940,7 @@ export type UpdateToolResponseBody2 = {
|
|
|
940
940
|
/**
|
|
941
941
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
942
942
|
*/
|
|
943
|
-
displayName
|
|
943
|
+
displayName?: string | undefined;
|
|
944
944
|
/**
|
|
945
945
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
946
946
|
*/
|
|
@@ -1027,7 +1027,7 @@ export type UpdateToolResponseBody1 = {
|
|
|
1027
1027
|
/**
|
|
1028
1028
|
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
1029
1029
|
*/
|
|
1030
|
-
displayName
|
|
1030
|
+
displayName?: string | undefined;
|
|
1031
1031
|
/**
|
|
1032
1032
|
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
1033
1033
|
*/
|
|
@@ -1200,7 +1200,7 @@ export const UpdateToolRequestBody5$inboundSchema: z.ZodType<
|
|
|
1200
1200
|
unknown
|
|
1201
1201
|
> = z.object({
|
|
1202
1202
|
path: z.string().optional(),
|
|
1203
|
-
display_name: z.string(),
|
|
1203
|
+
display_name: z.string().optional(),
|
|
1204
1204
|
description: z.string().optional(),
|
|
1205
1205
|
status: UpdateToolRequestBodyToolsRequest5Status$inboundSchema.default(
|
|
1206
1206
|
"live",
|
|
@@ -1218,7 +1218,7 @@ export const UpdateToolRequestBody5$inboundSchema: z.ZodType<
|
|
|
1218
1218
|
/** @internal */
|
|
1219
1219
|
export type UpdateToolRequestBody5$Outbound = {
|
|
1220
1220
|
path?: string | undefined;
|
|
1221
|
-
display_name
|
|
1221
|
+
display_name?: string | undefined;
|
|
1222
1222
|
description?: string | undefined;
|
|
1223
1223
|
status: string;
|
|
1224
1224
|
type: string;
|
|
@@ -1232,7 +1232,7 @@ export const UpdateToolRequestBody5$outboundSchema: z.ZodType<
|
|
|
1232
1232
|
UpdateToolRequestBody5
|
|
1233
1233
|
> = z.object({
|
|
1234
1234
|
path: z.string().optional(),
|
|
1235
|
-
displayName: z.string(),
|
|
1235
|
+
displayName: z.string().optional(),
|
|
1236
1236
|
description: z.string().optional(),
|
|
1237
1237
|
status: UpdateToolRequestBodyToolsRequest5Status$outboundSchema.default(
|
|
1238
1238
|
"live",
|
|
@@ -1575,7 +1575,7 @@ export const UpdateToolRequestBody4$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
> = z.object({
|
|
1576
1576
|
path: z.string().optional(),
|
|
1577
1577
|
key: z.string().optional(),
|
|
1578
|
-
display_name: z.string(),
|
|
1578
|
+
display_name: z.string().optional(),
|
|
1579
1579
|
description: z.string().optional(),
|
|
1580
1580
|
status: UpdateToolRequestBodyToolsRequest4Status$inboundSchema.default(
|
|
1581
1581
|
"live",
|
|
@@ -1592,7 +1592,7 @@ export const UpdateToolRequestBody4$inboundSchema: z.ZodType<
|
|
|
1592
1592
|
export type UpdateToolRequestBody4$Outbound = {
|
|
1593
1593
|
path?: string | undefined;
|
|
1594
1594
|
key?: string | undefined;
|
|
1595
|
-
display_name
|
|
1595
|
+
display_name?: string | undefined;
|
|
1596
1596
|
description?: string | undefined;
|
|
1597
1597
|
status: string;
|
|
1598
1598
|
type: string;
|
|
@@ -1607,7 +1607,7 @@ export const UpdateToolRequestBody4$outboundSchema: z.ZodType<
|
|
|
1607
1607
|
> = z.object({
|
|
1608
1608
|
path: z.string().optional(),
|
|
1609
1609
|
key: z.string().optional(),
|
|
1610
|
-
displayName: z.string(),
|
|
1610
|
+
displayName: z.string().optional(),
|
|
1611
1611
|
description: z.string().optional(),
|
|
1612
1612
|
status: UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default(
|
|
1613
1613
|
"live",
|
|
@@ -2468,20 +2468,20 @@ export const UpdateToolRequestBody$inboundSchema: z.ZodType<
|
|
|
2468
2468
|
z.ZodTypeDef,
|
|
2469
2469
|
unknown
|
|
2470
2470
|
> = z.union([
|
|
2471
|
-
z.lazy(() => UpdateToolRequestBody4$inboundSchema),
|
|
2472
|
-
z.lazy(() => UpdateToolRequestBody5$inboundSchema),
|
|
2473
2471
|
z.lazy(() => UpdateToolRequestBody1$inboundSchema),
|
|
2474
2472
|
z.lazy(() => UpdateToolRequestBody2$inboundSchema),
|
|
2475
2473
|
z.lazy(() => UpdateToolRequestBody3$inboundSchema),
|
|
2474
|
+
z.lazy(() => UpdateToolRequestBody4$inboundSchema),
|
|
2475
|
+
z.lazy(() => UpdateToolRequestBody5$inboundSchema),
|
|
2476
2476
|
]);
|
|
2477
2477
|
|
|
2478
2478
|
/** @internal */
|
|
2479
2479
|
export type UpdateToolRequestBody$Outbound =
|
|
2480
|
-
| UpdateToolRequestBody4$Outbound
|
|
2481
|
-
| UpdateToolRequestBody5$Outbound
|
|
2482
2480
|
| UpdateToolRequestBody1$Outbound
|
|
2483
2481
|
| UpdateToolRequestBody2$Outbound
|
|
2484
|
-
| UpdateToolRequestBody3$Outbound
|
|
2482
|
+
| UpdateToolRequestBody3$Outbound
|
|
2483
|
+
| UpdateToolRequestBody4$Outbound
|
|
2484
|
+
| UpdateToolRequestBody5$Outbound;
|
|
2485
2485
|
|
|
2486
2486
|
/** @internal */
|
|
2487
2487
|
export const UpdateToolRequestBody$outboundSchema: z.ZodType<
|
|
@@ -2489,11 +2489,11 @@ export const UpdateToolRequestBody$outboundSchema: z.ZodType<
|
|
|
2489
2489
|
z.ZodTypeDef,
|
|
2490
2490
|
UpdateToolRequestBody
|
|
2491
2491
|
> = z.union([
|
|
2492
|
-
z.lazy(() => UpdateToolRequestBody4$outboundSchema),
|
|
2493
|
-
z.lazy(() => UpdateToolRequestBody5$outboundSchema),
|
|
2494
2492
|
z.lazy(() => UpdateToolRequestBody1$outboundSchema),
|
|
2495
2493
|
z.lazy(() => UpdateToolRequestBody2$outboundSchema),
|
|
2496
2494
|
z.lazy(() => UpdateToolRequestBody3$outboundSchema),
|
|
2495
|
+
z.lazy(() => UpdateToolRequestBody4$outboundSchema),
|
|
2496
|
+
z.lazy(() => UpdateToolRequestBody5$outboundSchema),
|
|
2497
2497
|
]);
|
|
2498
2498
|
|
|
2499
2499
|
/**
|
|
@@ -2535,11 +2535,11 @@ export const UpdateToolRequest$inboundSchema: z.ZodType<
|
|
|
2535
2535
|
> = z.object({
|
|
2536
2536
|
tool_id: z.string(),
|
|
2537
2537
|
RequestBody: z.union([
|
|
2538
|
-
z.lazy(() => UpdateToolRequestBody4$inboundSchema),
|
|
2539
|
-
z.lazy(() => UpdateToolRequestBody5$inboundSchema),
|
|
2540
2538
|
z.lazy(() => UpdateToolRequestBody1$inboundSchema),
|
|
2541
2539
|
z.lazy(() => UpdateToolRequestBody2$inboundSchema),
|
|
2542
2540
|
z.lazy(() => UpdateToolRequestBody3$inboundSchema),
|
|
2541
|
+
z.lazy(() => UpdateToolRequestBody4$inboundSchema),
|
|
2542
|
+
z.lazy(() => UpdateToolRequestBody5$inboundSchema),
|
|
2543
2543
|
]).optional(),
|
|
2544
2544
|
}).transform((v) => {
|
|
2545
2545
|
return remap$(v, {
|
|
@@ -2552,11 +2552,11 @@ export const UpdateToolRequest$inboundSchema: z.ZodType<
|
|
|
2552
2552
|
export type UpdateToolRequest$Outbound = {
|
|
2553
2553
|
tool_id: string;
|
|
2554
2554
|
RequestBody?:
|
|
2555
|
-
| UpdateToolRequestBody4$Outbound
|
|
2556
|
-
| UpdateToolRequestBody5$Outbound
|
|
2557
2555
|
| UpdateToolRequestBody1$Outbound
|
|
2558
2556
|
| UpdateToolRequestBody2$Outbound
|
|
2559
2557
|
| UpdateToolRequestBody3$Outbound
|
|
2558
|
+
| UpdateToolRequestBody4$Outbound
|
|
2559
|
+
| UpdateToolRequestBody5$Outbound
|
|
2560
2560
|
| undefined;
|
|
2561
2561
|
};
|
|
2562
2562
|
|
|
@@ -2568,11 +2568,11 @@ export const UpdateToolRequest$outboundSchema: z.ZodType<
|
|
|
2568
2568
|
> = z.object({
|
|
2569
2569
|
toolId: z.string(),
|
|
2570
2570
|
requestBody: z.union([
|
|
2571
|
-
z.lazy(() => UpdateToolRequestBody4$outboundSchema),
|
|
2572
|
-
z.lazy(() => UpdateToolRequestBody5$outboundSchema),
|
|
2573
2571
|
z.lazy(() => UpdateToolRequestBody1$outboundSchema),
|
|
2574
2572
|
z.lazy(() => UpdateToolRequestBody2$outboundSchema),
|
|
2575
2573
|
z.lazy(() => UpdateToolRequestBody3$outboundSchema),
|
|
2574
|
+
z.lazy(() => UpdateToolRequestBody4$outboundSchema),
|
|
2575
|
+
z.lazy(() => UpdateToolRequestBody5$outboundSchema),
|
|
2576
2576
|
]).optional(),
|
|
2577
2577
|
}).transform((v) => {
|
|
2578
2578
|
return remap$(v, {
|
|
@@ -2751,10 +2751,10 @@ export const UpdateToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
2751
2751
|
z.ZodTypeDef,
|
|
2752
2752
|
unknown
|
|
2753
2753
|
> = z.object({
|
|
2754
|
-
_id: z.string().default("
|
|
2754
|
+
_id: z.string().default("01K7NYJMFPBJRHX99X20FN0WY6"),
|
|
2755
2755
|
path: z.string(),
|
|
2756
2756
|
key: z.string(),
|
|
2757
|
-
display_name: z.string(),
|
|
2757
|
+
display_name: z.string().optional(),
|
|
2758
2758
|
description: z.string(),
|
|
2759
2759
|
created_by_id: z.string().optional(),
|
|
2760
2760
|
updated_by_id: z.string().optional(),
|
|
@@ -2786,7 +2786,7 @@ export type UpdateToolResponseBody5$Outbound = {
|
|
|
2786
2786
|
_id: string;
|
|
2787
2787
|
path: string;
|
|
2788
2788
|
key: string;
|
|
2789
|
-
display_name
|
|
2789
|
+
display_name?: string | undefined;
|
|
2790
2790
|
description: string;
|
|
2791
2791
|
created_by_id?: string | undefined;
|
|
2792
2792
|
updated_by_id?: string | undefined;
|
|
@@ -2806,10 +2806,10 @@ export const UpdateToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
2806
2806
|
z.ZodTypeDef,
|
|
2807
2807
|
UpdateToolResponseBody5
|
|
2808
2808
|
> = z.object({
|
|
2809
|
-
id: z.string().default("
|
|
2809
|
+
id: z.string().default("01K7NYJMFPBJRHX99X20FN0WY6"),
|
|
2810
2810
|
path: z.string(),
|
|
2811
2811
|
key: z.string(),
|
|
2812
|
-
displayName: z.string(),
|
|
2812
|
+
displayName: z.string().optional(),
|
|
2813
2813
|
description: z.string(),
|
|
2814
2814
|
createdById: z.string().optional(),
|
|
2815
2815
|
updatedById: z.string().optional(),
|
|
@@ -3180,10 +3180,10 @@ export const UpdateToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
3180
3180
|
z.ZodTypeDef,
|
|
3181
3181
|
unknown
|
|
3182
3182
|
> = z.object({
|
|
3183
|
-
_id: z.string().default("
|
|
3183
|
+
_id: z.string().default("01K7NYJMFN33MNW6CMD0M36Z2E"),
|
|
3184
3184
|
path: z.string(),
|
|
3185
3185
|
key: z.string(),
|
|
3186
|
-
display_name: z.string(),
|
|
3186
|
+
display_name: z.string().optional(),
|
|
3187
3187
|
description: z.string(),
|
|
3188
3188
|
created_by_id: z.string().optional(),
|
|
3189
3189
|
updated_by_id: z.string().optional(),
|
|
@@ -3214,7 +3214,7 @@ export type UpdateToolResponseBody4$Outbound = {
|
|
|
3214
3214
|
_id: string;
|
|
3215
3215
|
path: string;
|
|
3216
3216
|
key: string;
|
|
3217
|
-
display_name
|
|
3217
|
+
display_name?: string | undefined;
|
|
3218
3218
|
description: string;
|
|
3219
3219
|
created_by_id?: string | undefined;
|
|
3220
3220
|
updated_by_id?: string | undefined;
|
|
@@ -3234,10 +3234,10 @@ export const UpdateToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
3234
3234
|
z.ZodTypeDef,
|
|
3235
3235
|
UpdateToolResponseBody4
|
|
3236
3236
|
> = z.object({
|
|
3237
|
-
id: z.string().default("
|
|
3237
|
+
id: z.string().default("01K7NYJMFN33MNW6CMD0M36Z2E"),
|
|
3238
3238
|
path: z.string(),
|
|
3239
3239
|
key: z.string(),
|
|
3240
|
-
displayName: z.string(),
|
|
3240
|
+
displayName: z.string().optional(),
|
|
3241
3241
|
description: z.string(),
|
|
3242
3242
|
createdById: z.string().optional(),
|
|
3243
3243
|
updatedById: z.string().optional(),
|
|
@@ -3652,10 +3652,10 @@ export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
3652
3652
|
z.ZodTypeDef,
|
|
3653
3653
|
unknown
|
|
3654
3654
|
> = z.object({
|
|
3655
|
-
_id: z.string().default("
|
|
3655
|
+
_id: z.string().default("01K7NYJMFNNCAPT3BT2CVDAFSA"),
|
|
3656
3656
|
path: z.string(),
|
|
3657
3657
|
key: z.string(),
|
|
3658
|
-
display_name: z.string(),
|
|
3658
|
+
display_name: z.string().optional(),
|
|
3659
3659
|
description: z.string(),
|
|
3660
3660
|
created_by_id: z.string().optional(),
|
|
3661
3661
|
updated_by_id: z.string().optional(),
|
|
@@ -3686,7 +3686,7 @@ export type UpdateToolResponseBody3$Outbound = {
|
|
|
3686
3686
|
_id: string;
|
|
3687
3687
|
path: string;
|
|
3688
3688
|
key: string;
|
|
3689
|
-
display_name
|
|
3689
|
+
display_name?: string | undefined;
|
|
3690
3690
|
description: string;
|
|
3691
3691
|
created_by_id?: string | undefined;
|
|
3692
3692
|
updated_by_id?: string | undefined;
|
|
@@ -3706,10 +3706,10 @@ export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
3706
3706
|
z.ZodTypeDef,
|
|
3707
3707
|
UpdateToolResponseBody3
|
|
3708
3708
|
> = z.object({
|
|
3709
|
-
id: z.string().default("
|
|
3709
|
+
id: z.string().default("01K7NYJMFNNCAPT3BT2CVDAFSA"),
|
|
3710
3710
|
path: z.string(),
|
|
3711
3711
|
key: z.string(),
|
|
3712
|
-
displayName: z.string(),
|
|
3712
|
+
displayName: z.string().optional(),
|
|
3713
3713
|
description: z.string(),
|
|
3714
3714
|
createdById: z.string().optional(),
|
|
3715
3715
|
updatedById: z.string().optional(),
|
|
@@ -3880,10 +3880,10 @@ export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
3880
3880
|
z.ZodTypeDef,
|
|
3881
3881
|
unknown
|
|
3882
3882
|
> = z.object({
|
|
3883
|
-
_id: z.string().default("
|
|
3883
|
+
_id: z.string().default("01K7NYJMFM3A2CNNMYME5166BF"),
|
|
3884
3884
|
path: z.string(),
|
|
3885
3885
|
key: z.string(),
|
|
3886
|
-
display_name: z.string(),
|
|
3886
|
+
display_name: z.string().optional(),
|
|
3887
3887
|
description: z.string(),
|
|
3888
3888
|
created_by_id: z.string().optional(),
|
|
3889
3889
|
updated_by_id: z.string().optional(),
|
|
@@ -3913,7 +3913,7 @@ export type UpdateToolResponseBody2$Outbound = {
|
|
|
3913
3913
|
_id: string;
|
|
3914
3914
|
path: string;
|
|
3915
3915
|
key: string;
|
|
3916
|
-
display_name
|
|
3916
|
+
display_name?: string | undefined;
|
|
3917
3917
|
description: string;
|
|
3918
3918
|
created_by_id?: string | undefined;
|
|
3919
3919
|
updated_by_id?: string | undefined;
|
|
@@ -3933,10 +3933,10 @@ export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
3933
3933
|
z.ZodTypeDef,
|
|
3934
3934
|
UpdateToolResponseBody2
|
|
3935
3935
|
> = z.object({
|
|
3936
|
-
id: z.string().default("
|
|
3936
|
+
id: z.string().default("01K7NYJMFM3A2CNNMYME5166BF"),
|
|
3937
3937
|
path: z.string(),
|
|
3938
3938
|
key: z.string(),
|
|
3939
|
-
displayName: z.string(),
|
|
3939
|
+
displayName: z.string().optional(),
|
|
3940
3940
|
description: z.string(),
|
|
3941
3941
|
createdById: z.string().optional(),
|
|
3942
3942
|
updatedById: z.string().optional(),
|
|
@@ -4105,10 +4105,10 @@ export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
4105
4105
|
z.ZodTypeDef,
|
|
4106
4106
|
unknown
|
|
4107
4107
|
> = z.object({
|
|
4108
|
-
_id: z.string().default("
|
|
4108
|
+
_id: z.string().default("01K7NYJMFKEZ03PWYMGZMWRGX3"),
|
|
4109
4109
|
path: z.string(),
|
|
4110
4110
|
key: z.string(),
|
|
4111
|
-
display_name: z.string(),
|
|
4111
|
+
display_name: z.string().optional(),
|
|
4112
4112
|
description: z.string(),
|
|
4113
4113
|
created_by_id: z.string().optional(),
|
|
4114
4114
|
updated_by_id: z.string().optional(),
|
|
@@ -4137,7 +4137,7 @@ export type UpdateToolResponseBody1$Outbound = {
|
|
|
4137
4137
|
_id: string;
|
|
4138
4138
|
path: string;
|
|
4139
4139
|
key: string;
|
|
4140
|
-
display_name
|
|
4140
|
+
display_name?: string | undefined;
|
|
4141
4141
|
description: string;
|
|
4142
4142
|
created_by_id?: string | undefined;
|
|
4143
4143
|
updated_by_id?: string | undefined;
|
|
@@ -4157,10 +4157,10 @@ export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
4157
4157
|
z.ZodTypeDef,
|
|
4158
4158
|
UpdateToolResponseBody1
|
|
4159
4159
|
> = z.object({
|
|
4160
|
-
id: z.string().default("
|
|
4160
|
+
id: z.string().default("01K7NYJMFKEZ03PWYMGZMWRGX3"),
|
|
4161
4161
|
path: z.string(),
|
|
4162
4162
|
key: z.string(),
|
|
4163
|
-
displayName: z.string(),
|
|
4163
|
+
displayName: z.string().optional(),
|
|
4164
4164
|
description: z.string(),
|
|
4165
4165
|
createdById: z.string().optional(),
|
|
4166
4166
|
updatedById: z.string().optional(),
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { agentsCreate } from "../funcs/agentsCreate.js";
|
|
6
|
+
import { agentsDelete } from "../funcs/agentsDelete.js";
|
|
5
7
|
import { agentsInvoke } from "../funcs/agentsInvoke.js";
|
|
6
8
|
import { agentsList } from "../funcs/agentsList.js";
|
|
7
9
|
import { agentsListActions } from "../funcs/agentsListActions.js";
|
|
@@ -12,6 +14,7 @@ import { agentsRetrieveTask } from "../funcs/agentsRetrieveTask.js";
|
|
|
12
14
|
import { agentsRun } from "../funcs/agentsRun.js";
|
|
13
15
|
import { agentsStream } from "../funcs/agentsStream.js";
|
|
14
16
|
import { agentsStreamRun } from "../funcs/agentsStreamRun.js";
|
|
17
|
+
import { agentsUpdate } from "../funcs/agentsUpdate.js";
|
|
15
18
|
import { EventStream } from "../lib/event-streams.js";
|
|
16
19
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
17
20
|
import * as operations from "../models/operations/index.js";
|
|
@@ -35,6 +38,23 @@ export class Agents extends ClientSDK {
|
|
|
35
38
|
));
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Create a new agent
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Creates a new AI agent with specified configuration. Agents can be configured with a primary model and an optional fallback model that will be used automatically if the primary model fails.
|
|
46
|
+
*/
|
|
47
|
+
async create(
|
|
48
|
+
request?: operations.CreateAgentRequestBody | undefined,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): Promise<operations.CreateAgentResponseBody> {
|
|
51
|
+
return unwrapAsync(agentsCreate(
|
|
52
|
+
this,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
38
58
|
/**
|
|
39
59
|
* List all agents
|
|
40
60
|
*
|
|
@@ -52,6 +72,23 @@ export class Agents extends ClientSDK {
|
|
|
52
72
|
));
|
|
53
73
|
}
|
|
54
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Delete an agent
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Permanently deletes an agent and all its configuration, including primary and fallback model settings.
|
|
80
|
+
*/
|
|
81
|
+
async delete(
|
|
82
|
+
request: operations.DeleteAgentRequest,
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): Promise<void> {
|
|
85
|
+
return unwrapAsync(agentsDelete(
|
|
86
|
+
this,
|
|
87
|
+
request,
|
|
88
|
+
options,
|
|
89
|
+
));
|
|
90
|
+
}
|
|
91
|
+
|
|
55
92
|
/**
|
|
56
93
|
* Get an agent
|
|
57
94
|
*
|
|
@@ -69,6 +106,23 @@ export class Agents extends ClientSDK {
|
|
|
69
106
|
));
|
|
70
107
|
}
|
|
71
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Update an agent
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* Updates an existing agent's configuration. You can update various fields including the model configuration and fallback model settings.
|
|
114
|
+
*/
|
|
115
|
+
async update(
|
|
116
|
+
request: operations.UpdateAgentRequest,
|
|
117
|
+
options?: RequestOptions,
|
|
118
|
+
): Promise<operations.UpdateAgentResponseBody> {
|
|
119
|
+
return unwrapAsync(agentsUpdate(
|
|
120
|
+
this,
|
|
121
|
+
request,
|
|
122
|
+
options,
|
|
123
|
+
));
|
|
124
|
+
}
|
|
125
|
+
|
|
72
126
|
/**
|
|
73
127
|
* Invoke an agent
|
|
74
128
|
*
|
package/sdk/agents.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ export declare class Agents extends ClientSDK {
|
|
|
9
9
|
* Retrieves detailed information about a specific task for a given agent, including execution status and results.
|
|
10
10
|
*/
|
|
11
11
|
retrieveTask(request: operations.GetAgentTaskRequest, options?: RequestOptions): Promise<operations.GetAgentTaskResponseBody>;
|
|
12
|
+
/**
|
|
13
|
+
* Create a new agent
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Creates a new AI agent with specified configuration. Agents can be configured with a primary model and an optional fallback model that will be used automatically if the primary model fails.
|
|
17
|
+
*/
|
|
18
|
+
create(request?: operations.CreateAgentRequestBody | undefined, options?: RequestOptions): Promise<operations.CreateAgentResponseBody>;
|
|
12
19
|
/**
|
|
13
20
|
* List all agents
|
|
14
21
|
*
|
|
@@ -16,6 +23,13 @@ export declare class Agents extends ClientSDK {
|
|
|
16
23
|
* Retrieves a paginated list of all agents in your workspace. Each agent includes its configuration, primary model, and optional fallback model settings.
|
|
17
24
|
*/
|
|
18
25
|
list(request?: operations.ListAgentsRequest | undefined, options?: RequestOptions): Promise<operations.ListAgentsResponseBody>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete an agent
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Permanently deletes an agent and all its configuration, including primary and fallback model settings.
|
|
31
|
+
*/
|
|
32
|
+
delete(request: operations.DeleteAgentRequest, options?: RequestOptions): Promise<void>;
|
|
19
33
|
/**
|
|
20
34
|
* Get an agent
|
|
21
35
|
*
|
|
@@ -23,6 +37,20 @@ export declare class Agents extends ClientSDK {
|
|
|
23
37
|
* Retrieves a single agent by its unique key, including its full configuration with primary and fallback model settings.
|
|
24
38
|
*/
|
|
25
39
|
retrieve(request: operations.GetAgentRequest, options?: RequestOptions): Promise<operations.GetAgentResponseBody>;
|
|
40
|
+
/**
|
|
41
|
+
* Update an agent
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Updates an existing agent's configuration. You can update various fields including the model configuration and fallback model settings.
|
|
45
|
+
*/
|
|
46
|
+
update(request: operations.UpdateAgentRequest, options?: RequestOptions): Promise<operations.UpdateAgentResponseBody>;
|
|
47
|
+
/**
|
|
48
|
+
* Invoke an agent
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Executes an existing agent with the provided input. The agent uses its pre-configured primary model and will automatically fall back to its configured fallback model if the primary model fails. Fallback models are configured at the agent level, not during execution.
|
|
52
|
+
*/
|
|
53
|
+
invoke(request: operations.InvokeAgentRequest, options?: RequestOptions): Promise<operations.InvokeAgentResponseBody>;
|
|
26
54
|
/**
|
|
27
55
|
* List all tasks for an agent
|
|
28
56
|
*
|
|
@@ -44,6 +72,13 @@ export declare class Agents extends ClientSDK {
|
|
|
44
72
|
* Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.
|
|
45
73
|
*/
|
|
46
74
|
streamRun(request?: operations.StreamRunAgentRequestBody | undefined, options?: RequestOptions): Promise<EventStream<operations.StreamRunAgentResponseBody>>;
|
|
75
|
+
/**
|
|
76
|
+
* Stream agent execution events
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Executes an agent and streams events via Server-Sent Events (SSE). The stream will continue until the agent completes, errors, or reaches the configured timeout.
|
|
80
|
+
*/
|
|
81
|
+
stream(request: operations.StreamAgentRequest, options?: RequestOptions): Promise<EventStream<operations.StreamAgentResponseBody>>;
|
|
47
82
|
/**
|
|
48
83
|
* List all actions
|
|
49
84
|
*/
|
package/sdk/agents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/sdk/agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/sdk/agents.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;OAKG;IACG,MAAM,CACV,OAAO,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,SAAS,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,GAAG,CACP,OAAO,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,SAAS,CACb,OAAO,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;IAQ9D;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAQ3D;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
|
package/sdk/agents.js
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Agents = void 0;
|
|
7
|
+
const agentsCreate_js_1 = require("../funcs/agentsCreate.js");
|
|
8
|
+
const agentsDelete_js_1 = require("../funcs/agentsDelete.js");
|
|
9
|
+
const agentsInvoke_js_1 = require("../funcs/agentsInvoke.js");
|
|
7
10
|
const agentsList_js_1 = require("../funcs/agentsList.js");
|
|
8
11
|
const agentsListActions_js_1 = require("../funcs/agentsListActions.js");
|
|
9
12
|
const agentsListTasks_js_1 = require("../funcs/agentsListTasks.js");
|
|
@@ -11,7 +14,9 @@ const agentsRetrieve_js_1 = require("../funcs/agentsRetrieve.js");
|
|
|
11
14
|
const agentsRetrieveAction_js_1 = require("../funcs/agentsRetrieveAction.js");
|
|
12
15
|
const agentsRetrieveTask_js_1 = require("../funcs/agentsRetrieveTask.js");
|
|
13
16
|
const agentsRun_js_1 = require("../funcs/agentsRun.js");
|
|
17
|
+
const agentsStream_js_1 = require("../funcs/agentsStream.js");
|
|
14
18
|
const agentsStreamRun_js_1 = require("../funcs/agentsStreamRun.js");
|
|
19
|
+
const agentsUpdate_js_1 = require("../funcs/agentsUpdate.js");
|
|
15
20
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
16
21
|
const fp_js_1 = require("../types/fp.js");
|
|
17
22
|
class Agents extends sdks_js_1.ClientSDK {
|
|
@@ -24,6 +29,15 @@ class Agents extends sdks_js_1.ClientSDK {
|
|
|
24
29
|
async retrieveTask(request, options) {
|
|
25
30
|
return (0, fp_js_1.unwrapAsync)((0, agentsRetrieveTask_js_1.agentsRetrieveTask)(this, request, options));
|
|
26
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a new agent
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Creates a new AI agent with specified configuration. Agents can be configured with a primary model and an optional fallback model that will be used automatically if the primary model fails.
|
|
37
|
+
*/
|
|
38
|
+
async create(request, options) {
|
|
39
|
+
return (0, fp_js_1.unwrapAsync)((0, agentsCreate_js_1.agentsCreate)(this, request, options));
|
|
40
|
+
}
|
|
27
41
|
/**
|
|
28
42
|
* List all agents
|
|
29
43
|
*
|
|
@@ -33,6 +47,15 @@ class Agents extends sdks_js_1.ClientSDK {
|
|
|
33
47
|
async list(request, options) {
|
|
34
48
|
return (0, fp_js_1.unwrapAsync)((0, agentsList_js_1.agentsList)(this, request, options));
|
|
35
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Delete an agent
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Permanently deletes an agent and all its configuration, including primary and fallback model settings.
|
|
55
|
+
*/
|
|
56
|
+
async delete(request, options) {
|
|
57
|
+
return (0, fp_js_1.unwrapAsync)((0, agentsDelete_js_1.agentsDelete)(this, request, options));
|
|
58
|
+
}
|
|
36
59
|
/**
|
|
37
60
|
* Get an agent
|
|
38
61
|
*
|
|
@@ -42,6 +65,24 @@ class Agents extends sdks_js_1.ClientSDK {
|
|
|
42
65
|
async retrieve(request, options) {
|
|
43
66
|
return (0, fp_js_1.unwrapAsync)((0, agentsRetrieve_js_1.agentsRetrieve)(this, request, options));
|
|
44
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Update an agent
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Updates an existing agent's configuration. You can update various fields including the model configuration and fallback model settings.
|
|
73
|
+
*/
|
|
74
|
+
async update(request, options) {
|
|
75
|
+
return (0, fp_js_1.unwrapAsync)((0, agentsUpdate_js_1.agentsUpdate)(this, request, options));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Invoke an agent
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Executes an existing agent with the provided input. The agent uses its pre-configured primary model and will automatically fall back to its configured fallback model if the primary model fails. Fallback models are configured at the agent level, not during execution.
|
|
82
|
+
*/
|
|
83
|
+
async invoke(request, options) {
|
|
84
|
+
return (0, fp_js_1.unwrapAsync)((0, agentsInvoke_js_1.agentsInvoke)(this, request, options));
|
|
85
|
+
}
|
|
45
86
|
/**
|
|
46
87
|
* List all tasks for an agent
|
|
47
88
|
*
|
|
@@ -69,6 +110,15 @@ class Agents extends sdks_js_1.ClientSDK {
|
|
|
69
110
|
async streamRun(request, options) {
|
|
70
111
|
return (0, fp_js_1.unwrapAsync)((0, agentsStreamRun_js_1.agentsStreamRun)(this, request, options));
|
|
71
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Stream agent execution events
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* Executes an agent and streams events via Server-Sent Events (SSE). The stream will continue until the agent completes, errors, or reaches the configured timeout.
|
|
118
|
+
*/
|
|
119
|
+
async stream(request, options) {
|
|
120
|
+
return (0, fp_js_1.unwrapAsync)((0, agentsStream_js_1.agentsStream)(this, request, options));
|
|
121
|
+
}
|
|
72
122
|
/**
|
|
73
123
|
* List all actions
|
|
74
124
|
*/
|
package/sdk/agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/sdk/agents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0DAAoD;AACpD,wEAAkE;AAClE,oEAA8D;AAC9D,kEAA4D;AAC5D,8EAAwE;AACxE,0EAAoE;AACpE,wDAAkD;AAClD,oEAA8D;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/sdk/agents.ts"],"names":[],"mappings":"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"}
|