@orq-ai/node 3.12.13 → 3.12.16
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 +2 -5
- package/bin/mcp-server.js +114 -113
- package/bin/mcp-server.js.map +33 -33
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +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 +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- 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 +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/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 +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +91 -96
- package/packages/orq-rc/docs/sdks/agents/README.md +102 -82
- package/packages/orq-rc/docs/sdks/evals/README.md +2 -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/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/url.ts +1 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +167 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- 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 +2 -9
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- 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/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
- 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 +2 -2
- 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/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +14 -16
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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/runagent.ts +207 -31
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +219 -32
- 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 +2 -2
- 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 +181 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/sdk/agents.ts +2 -20
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/index.ts +1 -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 +16 -16
- 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/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 +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/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 +16 -16
- package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
- package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
- package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* [streamRun](#streamrun) - Run and stream agent execution
|
|
13
13
|
* [listActions](#listactions) - List all actions
|
|
14
14
|
* [retrieveAction](#retrieveaction) - Retrieve an action executed by an agent task.
|
|
15
|
-
* [reviewAction](#reviewaction) - Review a tool execution
|
|
16
15
|
|
|
17
16
|
## list
|
|
18
17
|
|
|
@@ -235,7 +234,7 @@ run();
|
|
|
235
234
|
|
|
236
235
|
## run
|
|
237
236
|
|
|
238
|
-
Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
237
|
+
Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
239
238
|
|
|
240
239
|
### Example Usage
|
|
241
240
|
|
|
@@ -257,10 +256,36 @@ async function run() {
|
|
|
257
256
|
role: "tool",
|
|
258
257
|
parts: [
|
|
259
258
|
{
|
|
260
|
-
kind: "
|
|
259
|
+
kind: "file",
|
|
260
|
+
file: {
|
|
261
|
+
uri: "https://front-pecan.info",
|
|
262
|
+
},
|
|
261
263
|
},
|
|
262
264
|
],
|
|
263
265
|
},
|
|
266
|
+
contact: {
|
|
267
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
268
|
+
displayName: "Jane Doe",
|
|
269
|
+
email: "jane.doe@example.com",
|
|
270
|
+
metadata: [
|
|
271
|
+
{
|
|
272
|
+
"department": "Engineering",
|
|
273
|
+
"role": "Senior Developer",
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
277
|
+
tags: [
|
|
278
|
+
"hr",
|
|
279
|
+
"engineering",
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
thread: {
|
|
283
|
+
id: "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
284
|
+
tags: [
|
|
285
|
+
"customer-support",
|
|
286
|
+
"priority-high",
|
|
287
|
+
],
|
|
288
|
+
},
|
|
264
289
|
path: "Default",
|
|
265
290
|
settings: {
|
|
266
291
|
tools: [
|
|
@@ -302,9 +327,35 @@ async function run() {
|
|
|
302
327
|
role: "tool",
|
|
303
328
|
parts: [
|
|
304
329
|
{
|
|
305
|
-
kind: "
|
|
330
|
+
kind: "file",
|
|
331
|
+
file: {
|
|
332
|
+
uri: "https://front-pecan.info",
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
contact: {
|
|
338
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
339
|
+
displayName: "Jane Doe",
|
|
340
|
+
email: "jane.doe@example.com",
|
|
341
|
+
metadata: [
|
|
342
|
+
{
|
|
343
|
+
"department": "Engineering",
|
|
344
|
+
"role": "Senior Developer",
|
|
306
345
|
},
|
|
307
346
|
],
|
|
347
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
348
|
+
tags: [
|
|
349
|
+
"hr",
|
|
350
|
+
"engineering",
|
|
351
|
+
],
|
|
352
|
+
},
|
|
353
|
+
thread: {
|
|
354
|
+
id: "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
355
|
+
tags: [
|
|
356
|
+
"customer-support",
|
|
357
|
+
"priority-high",
|
|
358
|
+
],
|
|
308
359
|
},
|
|
309
360
|
path: "Default",
|
|
310
361
|
settings: {
|
|
@@ -348,7 +399,7 @@ run();
|
|
|
348
399
|
|
|
349
400
|
## streamRun
|
|
350
401
|
|
|
351
|
-
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.
|
|
402
|
+
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.
|
|
352
403
|
|
|
353
404
|
### Example Usage
|
|
354
405
|
|
|
@@ -377,6 +428,29 @@ async function run() {
|
|
|
377
428
|
},
|
|
378
429
|
],
|
|
379
430
|
},
|
|
431
|
+
contact: {
|
|
432
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
433
|
+
displayName: "Jane Doe",
|
|
434
|
+
email: "jane.doe@example.com",
|
|
435
|
+
metadata: [
|
|
436
|
+
{
|
|
437
|
+
"department": "Engineering",
|
|
438
|
+
"role": "Senior Developer",
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
442
|
+
tags: [
|
|
443
|
+
"hr",
|
|
444
|
+
"engineering",
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
thread: {
|
|
448
|
+
id: "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
449
|
+
tags: [
|
|
450
|
+
"customer-support",
|
|
451
|
+
"priority-high",
|
|
452
|
+
],
|
|
453
|
+
},
|
|
380
454
|
path: "Default",
|
|
381
455
|
settings: {
|
|
382
456
|
tools: [
|
|
@@ -427,6 +501,29 @@ async function run() {
|
|
|
427
501
|
},
|
|
428
502
|
],
|
|
429
503
|
},
|
|
504
|
+
contact: {
|
|
505
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
506
|
+
displayName: "Jane Doe",
|
|
507
|
+
email: "jane.doe@example.com",
|
|
508
|
+
metadata: [
|
|
509
|
+
{
|
|
510
|
+
"department": "Engineering",
|
|
511
|
+
"role": "Senior Developer",
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
515
|
+
tags: [
|
|
516
|
+
"hr",
|
|
517
|
+
"engineering",
|
|
518
|
+
],
|
|
519
|
+
},
|
|
520
|
+
thread: {
|
|
521
|
+
id: "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
522
|
+
tags: [
|
|
523
|
+
"customer-support",
|
|
524
|
+
"priority-high",
|
|
525
|
+
],
|
|
526
|
+
},
|
|
430
527
|
path: "Default",
|
|
431
528
|
settings: {
|
|
432
529
|
tools: [
|
|
@@ -618,83 +715,6 @@ run();
|
|
|
618
715
|
|
|
619
716
|
### Errors
|
|
620
717
|
|
|
621
|
-
| Error Type | Status Code | Content Type |
|
|
622
|
-
| --------------- | --------------- | --------------- |
|
|
623
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
624
|
-
|
|
625
|
-
## reviewAction
|
|
626
|
-
|
|
627
|
-
Review a tool execution and approve, reject or mock it. This will trigger the next step in the agent execution.
|
|
628
|
-
|
|
629
|
-
### Example Usage
|
|
630
|
-
|
|
631
|
-
<!-- UsageSnippet language="typescript" operationID="ReviewAction" method="post" path="/v2/agents/{agent_key}/tasks/{task_id}/actions/{action_id}/review" -->
|
|
632
|
-
```typescript
|
|
633
|
-
import { Orq } from "@orq-ai/node";
|
|
634
|
-
|
|
635
|
-
const orq = new Orq({
|
|
636
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
async function run() {
|
|
640
|
-
const result = await orq.agents.reviewAction({
|
|
641
|
-
agentKey: "<value>",
|
|
642
|
-
taskId: "<id>",
|
|
643
|
-
actionId: "<id>",
|
|
644
|
-
});
|
|
645
|
-
|
|
646
|
-
console.log(result);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
run();
|
|
650
|
-
```
|
|
651
|
-
|
|
652
|
-
### Standalone function
|
|
653
|
-
|
|
654
|
-
The standalone function version of this method:
|
|
655
|
-
|
|
656
|
-
```typescript
|
|
657
|
-
import { OrqCore } from "@orq-ai/node/core.js";
|
|
658
|
-
import { agentsReviewAction } from "@orq-ai/node/funcs/agentsReviewAction.js";
|
|
659
|
-
|
|
660
|
-
// Use `OrqCore` for best tree-shaking performance.
|
|
661
|
-
// You can create one instance of it to use across an application.
|
|
662
|
-
const orq = new OrqCore({
|
|
663
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
async function run() {
|
|
667
|
-
const res = await agentsReviewAction(orq, {
|
|
668
|
-
agentKey: "<value>",
|
|
669
|
-
taskId: "<id>",
|
|
670
|
-
actionId: "<id>",
|
|
671
|
-
});
|
|
672
|
-
if (res.ok) {
|
|
673
|
-
const { value: result } = res;
|
|
674
|
-
console.log(result);
|
|
675
|
-
} else {
|
|
676
|
-
console.log("agentsReviewAction failed:", res.error);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
run();
|
|
681
|
-
```
|
|
682
|
-
|
|
683
|
-
### Parameters
|
|
684
|
-
|
|
685
|
-
| Parameter | Type | Required | Description |
|
|
686
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
687
|
-
| `request` | [operations.ReviewActionRequest](../../models/operations/reviewactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
688
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
689
|
-
| `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. |
|
|
690
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
691
|
-
|
|
692
|
-
### Response
|
|
693
|
-
|
|
694
|
-
**Promise\<[operations.ReviewActionResponseBody](../../models/operations/reviewactionresponsebody.md)\>**
|
|
695
|
-
|
|
696
|
-
### Errors
|
|
697
|
-
|
|
698
718
|
| Error Type | Status Code | Content Type |
|
|
699
719
|
| --------------- | --------------- | --------------- |
|
|
700
720
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
@@ -134,6 +134,7 @@ const orq = new Orq({
|
|
|
134
134
|
|
|
135
135
|
async function run() {
|
|
136
136
|
const result = await orq.evals.create({
|
|
137
|
+
outputType: "string",
|
|
137
138
|
type: "http_eval",
|
|
138
139
|
url: "https://total-unit.name",
|
|
139
140
|
method: "GET",
|
|
@@ -172,6 +173,7 @@ const orq = new OrqCore({
|
|
|
172
173
|
|
|
173
174
|
async function run() {
|
|
174
175
|
const res = await evalsCreate(orq, {
|
|
176
|
+
outputType: "string",
|
|
175
177
|
type: "http_eval",
|
|
176
178
|
url: "https://total-unit.name",
|
|
177
179
|
method: "GET",
|
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "3.13.0-rc.
|
|
3
|
+
"version": "3.13.0-rc.30",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@orq-ai/node",
|
|
9
|
-
"version": "3.13.0-rc.
|
|
9
|
+
"version": "3.13.0-rc.30",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"zod": "^3.20.0"
|
|
12
12
|
},
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* Run an agent
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
31
|
+
* Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
32
32
|
*/
|
|
33
33
|
export function agentsRun(
|
|
34
34
|
client: OrqCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Run and stream agent execution
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* 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.
|
|
34
|
+
* 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.
|
|
35
35
|
*/
|
|
36
36
|
export function agentsStreamRun(
|
|
37
37
|
client: OrqCore,
|
|
@@ -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: "3.13.0-rc.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.13.0-rc.
|
|
71
|
+
sdkVersion: "3.13.0-rc.30",
|
|
72
|
+
genVersion: "2.714.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.13.0-rc.30 2.714.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -18,7 +18,6 @@ import { tool$agentsListActions } from "./tools/agentsListActions.js";
|
|
|
18
18
|
import { tool$agentsRetrieve } from "./tools/agentsRetrieve.js";
|
|
19
19
|
import { tool$agentsRetrieveAction } from "./tools/agentsRetrieveAction.js";
|
|
20
20
|
import { tool$agentsRetrieveTask } from "./tools/agentsRetrieveTask.js";
|
|
21
|
-
import { tool$agentsReviewAction } from "./tools/agentsReviewAction.js";
|
|
22
21
|
import { tool$agentsRun } from "./tools/agentsRun.js";
|
|
23
22
|
import { tool$agentsStreamRun } from "./tools/agentsStreamRun.js";
|
|
24
23
|
import { tool$budgetsCreate } from "./tools/budgetsCreate.js";
|
|
@@ -148,7 +147,7 @@ export function createMCPServer(deps: {
|
|
|
148
147
|
}) {
|
|
149
148
|
const server = new McpServer({
|
|
150
149
|
name: "Orq",
|
|
151
|
-
version: "3.13.0-rc.
|
|
150
|
+
version: "3.13.0-rc.30",
|
|
152
151
|
});
|
|
153
152
|
|
|
154
153
|
const client = new OrqCore({
|
|
@@ -197,7 +196,6 @@ export function createMCPServer(deps: {
|
|
|
197
196
|
tool(tool$agentsStreamRun);
|
|
198
197
|
tool(tool$agentsListActions);
|
|
199
198
|
tool(tool$agentsRetrieveAction);
|
|
200
|
-
tool(tool$agentsReviewAction);
|
|
201
199
|
tool(tool$filesCreate);
|
|
202
200
|
tool(tool$filesList);
|
|
203
201
|
tool(tool$filesGet);
|
|
@@ -14,7 +14,7 @@ export const tool$agentsRun: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "agents-run",
|
|
15
15
|
description: `Run an agent
|
|
16
16
|
|
|
17
|
-
Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution
|
|
17
|
+
Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await agentsRun(
|
|
@@ -14,7 +14,7 @@ export const tool$agentsStreamRun: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "agents-stream-run",
|
|
15
15
|
description: `Run and stream agent execution
|
|
16
16
|
|
|
17
|
-
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
|
|
17
|
+
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.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await agentsStreamRun(
|
|
@@ -50,6 +50,7 @@ export * from "./getpromptversion.js";
|
|
|
50
50
|
export * from "./honoapierror.js";
|
|
51
51
|
export * from "./httpclienterrors.js";
|
|
52
52
|
export * from "./invokeeval.js";
|
|
53
|
+
export * from "./orqerror.js";
|
|
53
54
|
export * from "./responsevalidationerror.js";
|
|
54
55
|
export * from "./retrievecontact.js";
|
|
55
56
|
export * from "./sdkvalidationerror.js";
|
|
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
658
658
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
659
659
|
.optional(),
|
|
660
660
|
updated: z.string().datetime({ offset: true }).default(
|
|
661
|
-
"2025-09-
|
|
661
|
+
"2025-09-24T04:54:52.401Z",
|
|
662
662
|
).transform(v => new Date(v)),
|
|
663
663
|
}).transform((v) => {
|
|
664
664
|
return remap$(v, {
|
|
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
693
693
|
isActive: z.boolean(),
|
|
694
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
695
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
696
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
697
697
|
.transform(v => v.toISOString()),
|
|
698
698
|
}).transform((v) => {
|
|
699
699
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-09-
|
|
185
|
+
"2025-09-24T04:54:52.401Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-09-
|
|
214
|
+
"2025-09-24T04:54:52.401Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -6081,7 +6081,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6081
6081
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6082
6082
|
.optional(),
|
|
6083
6083
|
updated: z.string().datetime({ offset: true }).default(
|
|
6084
|
-
"2025-09-
|
|
6084
|
+
"2025-09-24T04:54:52.401Z",
|
|
6085
6085
|
).transform(v => new Date(v)),
|
|
6086
6086
|
}).transform((v) => {
|
|
6087
6087
|
return remap$(v, {
|
|
@@ -6145,7 +6145,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6145
6145
|
createdById: z.string().optional(),
|
|
6146
6146
|
updatedById: z.string().optional(),
|
|
6147
6147
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6148
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
6148
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
6149
6149
|
.transform(v => v.toISOString()),
|
|
6150
6150
|
}).transform((v) => {
|
|
6151
6151
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01K5X16BZMYXH42ZZACKKE4YPB"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01K5X16BZMYXH42ZZACKKE4YPB"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|