@orq-ai/node 3.14.43 → 3.14.45
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 +209 -209
- package/bin/mcp-server.js.map +35 -35
- 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 +10 -10
- package/models/operations/duplicatetool.js +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +21 -31
- package/packages/orq-rc/docs/sdks/agents/README.md +195 -235
- package/packages/orq-rc/docs/sdks/chunking/README.md +2 -0
- package/packages/orq-rc/docs/sdks/memorystores/README.md +3 -4
- package/packages/orq-rc/docs/sdks/tools/README.md +1 -152
- 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 +1 -1
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +8 -8
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsStream.ts +1 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +2 -11
- 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 +3 -9
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagent.ts +35 -17
- 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 +368 -294
- package/packages/orq-rc/src/models/operations/createknowledge.ts +33 -47
- package/packages/orq-rc/src/models/operations/createtool.ts +198 -161
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +17 -24
- 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 +9 -0
- package/packages/orq-rc/src/models/operations/getagenttask.ts +1873 -428
- package/packages/orq-rc/src/models/operations/getalltools.ts +284 -231
- 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 +0 -3
- package/packages/orq-rc/src/models/operations/invokeagent.ts +319 -299
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -0
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +2029 -540
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +14 -14
- 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 +15 -22
- package/packages/orq-rc/src/models/operations/parse.ts +16 -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 +168 -132
- package/packages/orq-rc/src/models/operations/runagent.ts +264 -220
- package/packages/orq-rc/src/models/operations/streamagent.ts +7635 -414
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +10745 -3582
- package/packages/orq-rc/src/models/operations/updateagent.ts +56 -31
- 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 +138 -104
- package/packages/orq-rc/src/sdk/agents.ts +36 -54
- package/packages/orq-rc/src/sdk/tools.ts +0 -36
- 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 +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/packages/orq-rc/src/funcs/agentsDuplicate.ts +0 -179
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsSync.ts +0 -176
- package/packages/orq-rc/src/mcp-server/tools/agentsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +0 -37
- package/packages/orq-rc/src/models/errors/duplicateagent.ts +0 -128
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -78
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -67
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +0 -3598
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2395
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +0 -2603
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
* [update](#update) - Update tool
|
|
11
11
|
* [delete](#delete) - Delete tool
|
|
12
12
|
* [retrieve](#retrieve) - Retrieve tool
|
|
13
|
-
* [duplicate](#duplicate) - Duplicate tool
|
|
14
|
-
* [sync](#sync) - Sync MCP tool
|
|
15
13
|
|
|
16
14
|
## list
|
|
17
15
|
|
|
@@ -419,153 +417,4 @@ run();
|
|
|
419
417
|
|
|
420
418
|
| Error Type | Status Code | Content Type |
|
|
421
419
|
| --------------- | --------------- | --------------- |
|
|
422
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
423
|
-
|
|
424
|
-
## duplicate
|
|
425
|
-
|
|
426
|
-
Creates a copy of an existing tool with a new id and ID.
|
|
427
|
-
|
|
428
|
-
### Example Usage
|
|
429
|
-
|
|
430
|
-
<!-- UsageSnippet language="typescript" operationID="DuplicateTool" method="post" path="/v2/tools/{tool_id}/duplicate" -->
|
|
431
|
-
```typescript
|
|
432
|
-
import { Orq } from "@orq-ai/node";
|
|
433
|
-
|
|
434
|
-
const orq = new Orq({
|
|
435
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
async function run() {
|
|
439
|
-
const result = await orq.tools.duplicate({
|
|
440
|
-
toolId: "<id>",
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
console.log(result);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
run();
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
### Standalone function
|
|
450
|
-
|
|
451
|
-
The standalone function version of this method:
|
|
452
|
-
|
|
453
|
-
```typescript
|
|
454
|
-
import { OrqCore } from "@orq-ai/node/core.js";
|
|
455
|
-
import { toolsDuplicate } from "@orq-ai/node/funcs/toolsDuplicate.js";
|
|
456
|
-
|
|
457
|
-
// Use `OrqCore` for best tree-shaking performance.
|
|
458
|
-
// You can create one instance of it to use across an application.
|
|
459
|
-
const orq = new OrqCore({
|
|
460
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
async function run() {
|
|
464
|
-
const res = await toolsDuplicate(orq, {
|
|
465
|
-
toolId: "<id>",
|
|
466
|
-
});
|
|
467
|
-
if (res.ok) {
|
|
468
|
-
const { value: result } = res;
|
|
469
|
-
console.log(result);
|
|
470
|
-
} else {
|
|
471
|
-
console.log("toolsDuplicate failed:", res.error);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
run();
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
### Parameters
|
|
479
|
-
|
|
480
|
-
| Parameter | Type | Required | Description |
|
|
481
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
482
|
-
| `request` | [operations.DuplicateToolRequest](../../models/operations/duplicatetoolrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
483
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
484
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
485
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
486
|
-
|
|
487
|
-
### Response
|
|
488
|
-
|
|
489
|
-
**Promise\<[operations.DuplicateToolResponseBody](../../models/operations/duplicatetoolresponsebody.md)\>**
|
|
490
|
-
|
|
491
|
-
### Errors
|
|
492
|
-
|
|
493
|
-
| Error Type | Status Code | Content Type |
|
|
494
|
-
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
495
|
-
| errors.DuplicateToolResponseBody | 404 | application/json |
|
|
496
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
497
|
-
|
|
498
|
-
## sync
|
|
499
|
-
|
|
500
|
-
Manually triggers tool discovery and synchronization from the MCP server. Fetches the latest tools and updates the tool configuration.
|
|
501
|
-
|
|
502
|
-
### Example Usage
|
|
503
|
-
|
|
504
|
-
<!-- UsageSnippet language="typescript" operationID="SyncMcpTool" method="post" path="/v2/tools/{tool_id}/sync" -->
|
|
505
|
-
```typescript
|
|
506
|
-
import { Orq } from "@orq-ai/node";
|
|
507
|
-
|
|
508
|
-
const orq = new Orq({
|
|
509
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
510
|
-
});
|
|
511
|
-
|
|
512
|
-
async function run() {
|
|
513
|
-
const result = await orq.tools.sync({
|
|
514
|
-
toolId: "<id>",
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
console.log(result);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
run();
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
### Standalone function
|
|
524
|
-
|
|
525
|
-
The standalone function version of this method:
|
|
526
|
-
|
|
527
|
-
```typescript
|
|
528
|
-
import { OrqCore } from "@orq-ai/node/core.js";
|
|
529
|
-
import { toolsSync } from "@orq-ai/node/funcs/toolsSync.js";
|
|
530
|
-
|
|
531
|
-
// Use `OrqCore` for best tree-shaking performance.
|
|
532
|
-
// You can create one instance of it to use across an application.
|
|
533
|
-
const orq = new OrqCore({
|
|
534
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
535
|
-
});
|
|
536
|
-
|
|
537
|
-
async function run() {
|
|
538
|
-
const res = await toolsSync(orq, {
|
|
539
|
-
toolId: "<id>",
|
|
540
|
-
});
|
|
541
|
-
if (res.ok) {
|
|
542
|
-
const { value: result } = res;
|
|
543
|
-
console.log(result);
|
|
544
|
-
} else {
|
|
545
|
-
console.log("toolsSync failed:", res.error);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
run();
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
### Parameters
|
|
553
|
-
|
|
554
|
-
| Parameter | Type | Required | Description |
|
|
555
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
556
|
-
| `request` | [operations.SyncMcpToolRequest](../../models/operations/syncmcptoolrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
557
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
558
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
559
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
560
|
-
|
|
561
|
-
### Response
|
|
562
|
-
|
|
563
|
-
**Promise\<[operations.SyncMcpToolResponseBody](../../models/operations/syncmcptoolresponsebody.md)\>**
|
|
564
|
-
|
|
565
|
-
### Errors
|
|
566
|
-
|
|
567
|
-
| Error Type | Status Code | Content Type |
|
|
568
|
-
| ------------------- | ------------------- | ------------------- |
|
|
569
|
-
| errors.HonoApiError | 400, 404 | application/json |
|
|
570
|
-
| errors.HonoApiError | 500 | application/json |
|
|
571
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
420
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.63",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@orq-ai/node",
|
|
9
|
-
"version": "4.0.0-rc.
|
|
9
|
+
"version": "4.0.0-rc.63",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
12
12
|
"zod": "^3.25.0 || ^4.0.0"
|
|
@@ -91,7 +91,7 @@ async function $do(
|
|
|
91
91
|
? null
|
|
92
92
|
: encodeJSON("body", payload, { explode: true });
|
|
93
93
|
|
|
94
|
-
const path = pathToFunc("/v2/agents
|
|
94
|
+
const path = pathToFunc("/v2/agents")();
|
|
95
95
|
|
|
96
96
|
const headers = new Headers(compactMap({
|
|
97
97
|
"Content-Type": "application/json",
|
|
@@ -36,7 +36,7 @@ export function agentsInvoke(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.InvokeAgentA2ATaskResponse,
|
|
40
40
|
| OrqError
|
|
41
41
|
| ResponseValidationError
|
|
42
42
|
| ConnectionError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
operations.
|
|
64
|
+
operations.InvokeAgentA2ATaskResponse,
|
|
65
65
|
| OrqError
|
|
66
66
|
| ResponseValidationError
|
|
67
67
|
| ConnectionError
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
const response = doResult.value;
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
|
-
operations.
|
|
148
|
+
operations.InvokeAgentA2ATaskResponse,
|
|
149
149
|
| OrqError
|
|
150
150
|
| ResponseValidationError
|
|
151
151
|
| ConnectionError
|
|
@@ -155,7 +155,7 @@ async function $do(
|
|
|
155
155
|
| UnexpectedClientError
|
|
156
156
|
| SDKValidationError
|
|
157
157
|
>(
|
|
158
|
-
M.json(200, operations.
|
|
158
|
+
M.json(200, operations.InvokeAgentA2ATaskResponse$inboundSchema),
|
|
159
159
|
M.fail("4XX"),
|
|
160
160
|
M.fail("5XX"),
|
|
161
161
|
)(response, req);
|
|
@@ -37,7 +37,7 @@ export function agentsListTasks(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
operations.
|
|
40
|
+
operations.ListAgentTasksAgentTasksListResponse,
|
|
41
41
|
| errors.ListAgentTasksResponseBody
|
|
42
42
|
| OrqError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
operations.
|
|
66
|
+
operations.ListAgentTasksAgentTasksListResponse,
|
|
67
67
|
| errors.ListAgentTasksResponseBody
|
|
68
68
|
| OrqError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const [result] = await M.match<
|
|
162
|
-
operations.
|
|
162
|
+
operations.ListAgentTasksAgentTasksListResponse,
|
|
163
163
|
| errors.ListAgentTasksResponseBody
|
|
164
164
|
| OrqError
|
|
165
165
|
| ResponseValidationError
|
|
@@ -170,7 +170,7 @@ async function $do(
|
|
|
170
170
|
| UnexpectedClientError
|
|
171
171
|
| SDKValidationError
|
|
172
172
|
>(
|
|
173
|
-
M.json(200, operations.
|
|
173
|
+
M.json(200, operations.ListAgentTasksAgentTasksListResponse$inboundSchema),
|
|
174
174
|
M.jsonErr(404, errors.ListAgentTasksResponseBody$inboundSchema),
|
|
175
175
|
M.fail("4XX"),
|
|
176
176
|
M.fail("5XX"),
|
|
@@ -37,8 +37,8 @@ export function agentsRetrieveTask(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
operations.
|
|
41
|
-
| errors.
|
|
40
|
+
operations.GetAgentTaskExtendedTaskResponse,
|
|
41
|
+
| errors.HonoApiError
|
|
42
42
|
| OrqError
|
|
43
43
|
| ResponseValidationError
|
|
44
44
|
| ConnectionError
|
|
@@ -63,8 +63,8 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
operations.
|
|
67
|
-
| errors.
|
|
66
|
+
operations.GetAgentTaskExtendedTaskResponse,
|
|
67
|
+
| errors.HonoApiError
|
|
68
68
|
| OrqError
|
|
69
69
|
| ResponseValidationError
|
|
70
70
|
| ConnectionError
|
|
@@ -155,8 +155,8 @@ async function $do(
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
const [result] = await M.match<
|
|
158
|
-
operations.
|
|
159
|
-
| errors.
|
|
158
|
+
operations.GetAgentTaskExtendedTaskResponse,
|
|
159
|
+
| errors.HonoApiError
|
|
160
160
|
| OrqError
|
|
161
161
|
| ResponseValidationError
|
|
162
162
|
| ConnectionError
|
|
@@ -166,8 +166,8 @@ async function $do(
|
|
|
166
166
|
| UnexpectedClientError
|
|
167
167
|
| SDKValidationError
|
|
168
168
|
>(
|
|
169
|
-
M.json(200, operations.
|
|
170
|
-
M.jsonErr(404, errors.
|
|
169
|
+
M.json(200, operations.GetAgentTaskExtendedTaskResponse$inboundSchema),
|
|
170
|
+
M.jsonErr(404, errors.HonoApiError$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
172
172
|
M.fail("5XX"),
|
|
173
173
|
)(response, req, { extraFields: responseFields });
|
|
@@ -36,7 +36,7 @@ export function agentsRun(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.RunAgentA2ATaskResponse,
|
|
40
40
|
| OrqError
|
|
41
41
|
| ResponseValidationError
|
|
42
42
|
| ConnectionError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
operations.
|
|
64
|
+
operations.RunAgentA2ATaskResponse,
|
|
65
65
|
| OrqError
|
|
66
66
|
| ResponseValidationError
|
|
67
67
|
| ConnectionError
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
const response = doResult.value;
|
|
142
142
|
|
|
143
143
|
const [result] = await M.match<
|
|
144
|
-
operations.
|
|
144
|
+
operations.RunAgentA2ATaskResponse,
|
|
145
145
|
| OrqError
|
|
146
146
|
| ResponseValidationError
|
|
147
147
|
| ConnectionError
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
| UnexpectedClientError
|
|
152
152
|
| SDKValidationError
|
|
153
153
|
>(
|
|
154
|
-
M.json(200, operations.
|
|
154
|
+
M.json(200, operations.RunAgentA2ATaskResponse$inboundSchema),
|
|
155
155
|
M.fail("4XX"),
|
|
156
156
|
M.fail("5XX"),
|
|
157
157
|
)(response, req);
|
|
@@ -170,6 +170,7 @@ async function $do(
|
|
|
170
170
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
171
171
|
.transform(stream => {
|
|
172
172
|
return new EventStream(stream, rawEvent => {
|
|
173
|
+
if (rawEvent.data === "[DONE]") return { done: true };
|
|
173
174
|
return {
|
|
174
175
|
value: operations.StreamAgentResponseBody$inboundSchema.parse(
|
|
175
176
|
rawEvent,
|
|
@@ -168,6 +168,7 @@ async function $do(
|
|
|
168
168
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
169
169
|
.transform(stream => {
|
|
170
170
|
return new EventStream(stream, rawEvent => {
|
|
171
|
+
if (rawEvent.data === "[DONE]") return { done: true };
|
|
171
172
|
return {
|
|
172
173
|
value: operations.StreamRunAgentResponseBody$inboundSchema.parse(
|
|
173
174
|
rawEvent,
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
RequestTimeoutError,
|
|
18
18
|
UnexpectedClientError,
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
|
-
import * as errors from "../models/errors/index.js";
|
|
21
20
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
21
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -35,7 +34,6 @@ export function memoryStoresCreate(
|
|
|
35
34
|
): APIPromise<
|
|
36
35
|
Result<
|
|
37
36
|
operations.CreateMemoryStoreResponseBody,
|
|
38
|
-
| errors.HonoApiError
|
|
39
37
|
| OrqError
|
|
40
38
|
| ResponseValidationError
|
|
41
39
|
| ConnectionError
|
|
@@ -61,7 +59,6 @@ async function $do(
|
|
|
61
59
|
[
|
|
62
60
|
Result<
|
|
63
61
|
operations.CreateMemoryStoreResponseBody,
|
|
64
|
-
| errors.HonoApiError
|
|
65
62
|
| OrqError
|
|
66
63
|
| ResponseValidationError
|
|
67
64
|
| ConnectionError
|
|
@@ -133,7 +130,7 @@ async function $do(
|
|
|
133
130
|
|
|
134
131
|
const doResult = await client._do(req, {
|
|
135
132
|
context,
|
|
136
|
-
errorCodes: ["
|
|
133
|
+
errorCodes: ["4XX", "5XX"],
|
|
137
134
|
retryConfig: context.retryConfig,
|
|
138
135
|
retryCodes: context.retryCodes,
|
|
139
136
|
});
|
|
@@ -142,13 +139,8 @@ async function $do(
|
|
|
142
139
|
}
|
|
143
140
|
const response = doResult.value;
|
|
144
141
|
|
|
145
|
-
const responseFields = {
|
|
146
|
-
HttpMeta: { Response: response, Request: req },
|
|
147
|
-
};
|
|
148
|
-
|
|
149
142
|
const [result] = await M.match<
|
|
150
143
|
operations.CreateMemoryStoreResponseBody,
|
|
151
|
-
| errors.HonoApiError
|
|
152
144
|
| OrqError
|
|
153
145
|
| ResponseValidationError
|
|
154
146
|
| ConnectionError
|
|
@@ -159,10 +151,9 @@ async function $do(
|
|
|
159
151
|
| SDKValidationError
|
|
160
152
|
>(
|
|
161
153
|
M.json(201, operations.CreateMemoryStoreResponseBody$inboundSchema),
|
|
162
|
-
M.jsonErr(400, errors.HonoApiError$inboundSchema),
|
|
163
154
|
M.fail("4XX"),
|
|
164
155
|
M.fail("5XX"),
|
|
165
|
-
)(response, req
|
|
156
|
+
)(response, req);
|
|
166
157
|
if (!result.ok) {
|
|
167
158
|
return [result, { status: "complete", request: req, response }];
|
|
168
159
|
}
|
|
@@ -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.0-rc.
|
|
71
|
+
sdkVersion: "4.0.0-rc.63",
|
|
72
72
|
genVersion: "2.755.9",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.63 2.755.9 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -15,7 +15,6 @@ import { MCPScope } from "./scopes.js";
|
|
|
15
15
|
import { createRegisterTool } from "./tools.js";
|
|
16
16
|
import { tool$agentsCreate } from "./tools/agentsCreate.js";
|
|
17
17
|
import { tool$agentsDelete } from "./tools/agentsDelete.js";
|
|
18
|
-
import { tool$agentsDuplicate } from "./tools/agentsDuplicate.js";
|
|
19
18
|
import { tool$agentsInvoke } from "./tools/agentsInvoke.js";
|
|
20
19
|
import { tool$agentsList } from "./tools/agentsList.js";
|
|
21
20
|
import { tool$agentsListActions } from "./tools/agentsListActions.js";
|
|
@@ -108,10 +107,8 @@ import { tool$promptsUpdate } from "./tools/promptsUpdate.js";
|
|
|
108
107
|
import { tool$remoteconfigsRetrieve } from "./tools/remoteconfigsRetrieve.js";
|
|
109
108
|
import { tool$toolsCreate } from "./tools/toolsCreate.js";
|
|
110
109
|
import { tool$toolsDelete } from "./tools/toolsDelete.js";
|
|
111
|
-
import { tool$toolsDuplicate } from "./tools/toolsDuplicate.js";
|
|
112
110
|
import { tool$toolsList } from "./tools/toolsList.js";
|
|
113
111
|
import { tool$toolsRetrieve } from "./tools/toolsRetrieve.js";
|
|
114
|
-
import { tool$toolsSync } from "./tools/toolsSync.js";
|
|
115
112
|
import { tool$toolsUpdate } from "./tools/toolsUpdate.js";
|
|
116
113
|
|
|
117
114
|
export function createMCPServer(deps: {
|
|
@@ -126,7 +123,7 @@ export function createMCPServer(deps: {
|
|
|
126
123
|
}) {
|
|
127
124
|
const server = new McpServer({
|
|
128
125
|
name: "Orq",
|
|
129
|
-
version: "4.0.0-rc.
|
|
126
|
+
version: "4.0.0-rc.63",
|
|
130
127
|
});
|
|
131
128
|
|
|
132
129
|
const client = new OrqCore({
|
|
@@ -172,15 +169,14 @@ export function createMCPServer(deps: {
|
|
|
172
169
|
tool(tool$deploymentsList);
|
|
173
170
|
tool(tool$deploymentsGetConfig);
|
|
174
171
|
tool(tool$deploymentsStream);
|
|
175
|
-
tool(tool$agentsRetrieveTask);
|
|
176
172
|
tool(tool$agentsCreate);
|
|
177
|
-
tool(tool$agentsList);
|
|
178
173
|
tool(tool$agentsDelete);
|
|
179
174
|
tool(tool$agentsRetrieve);
|
|
180
175
|
tool(tool$agentsUpdate);
|
|
181
|
-
tool(tool$agentsDuplicate);
|
|
182
176
|
tool(tool$agentsInvoke);
|
|
183
177
|
tool(tool$agentsListTasks);
|
|
178
|
+
tool(tool$agentsRetrieveTask);
|
|
179
|
+
tool(tool$agentsList);
|
|
184
180
|
tool(tool$agentsRun);
|
|
185
181
|
tool(tool$agentsStreamRun);
|
|
186
182
|
tool(tool$agentsStream);
|
|
@@ -204,8 +200,6 @@ export function createMCPServer(deps: {
|
|
|
204
200
|
tool(tool$toolsUpdate);
|
|
205
201
|
tool(tool$toolsDelete);
|
|
206
202
|
tool(tool$toolsRetrieve);
|
|
207
|
-
tool(tool$toolsDuplicate);
|
|
208
|
-
tool(tool$toolsSync);
|
|
209
203
|
tool(tool$budgetsList);
|
|
210
204
|
tool(tool$budgetsCreate);
|
|
211
205
|
tool(tool$budgetsGet);
|
|
@@ -8,10 +8,7 @@ export * from "./createeval.js";
|
|
|
8
8
|
export * from "./deleteagent.js";
|
|
9
9
|
export * from "./deletecontact.js";
|
|
10
10
|
export * from "./deleteeval.js";
|
|
11
|
-
export * from "./duplicateagent.js";
|
|
12
|
-
export * from "./duplicatetool.js";
|
|
13
11
|
export * from "./getagent.js";
|
|
14
|
-
export * from "./getagenttask.js";
|
|
15
12
|
export * from "./getevals.js";
|
|
16
13
|
export * from "./getpromptversion.js";
|
|
17
14
|
export * from "./honoapierror.js";
|