@orq-ai/node 4.0.0-rc.33 → 4.0.0-rc.35
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 +397 -235
- package/bin/mcp-server.js.map +44 -44
- package/docs/sdks/agents/README.md +2 -0
- package/examples/package-lock.json +2 -10
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +61 -3
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +63 -6
- package/models/operations/createagent.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 +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/duplicateagent.d.ts +29 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +30 -2
- package/models/operations/duplicateagent.js.map +1 -1
- 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/getagent.d.ts +29 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +30 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +29 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +31 -2
- package/models/operations/listagents.js.map +1 -1
- 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/runagent.d.ts +30 -1
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +35 -6
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +30 -1
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +36 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.js +10 -10
- package/models/operations/updateagent.d.ts +61 -3
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +62 -6
- package/models/operations/updateagent.js.map +1 -1
- 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 +3 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +138 -3
- 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/duplicateagent.ts +71 -0
- 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/getagent.ts +67 -0
- 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/listagents.ts +69 -0
- 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/runagent.ts +75 -1
- package/src/models/operations/streamrunagent.ts +77 -1
- package/src/models/operations/syncmcptool.ts +10 -10
- package/src/models/operations/updateagent.ts +145 -3
- 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
|
@@ -431,6 +431,7 @@ async function run() {
|
|
|
431
431
|
const result = await orq.agents.update({
|
|
432
432
|
agentKey: "<value>",
|
|
433
433
|
requestBody: {
|
|
434
|
+
model: "El Camino",
|
|
434
435
|
path: "Default",
|
|
435
436
|
knowledgeBases: [
|
|
436
437
|
{
|
|
@@ -464,6 +465,7 @@ async function run() {
|
|
|
464
465
|
const res = await agentsUpdate(orq, {
|
|
465
466
|
agentKey: "<value>",
|
|
466
467
|
requestBody: {
|
|
468
|
+
model: "El Camino",
|
|
467
469
|
path: "Default",
|
|
468
470
|
knowledgeBases: [
|
|
469
471
|
{
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"..": {
|
|
20
20
|
"name": "@orq-ai/node",
|
|
21
|
-
"version": "4.0.0-rc.
|
|
21
|
+
"version": "4.0.0-rc.35",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
23
24
|
"zod": "^3.25.0 || ^4.0.0"
|
|
24
25
|
},
|
|
25
26
|
"bin": {
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@eslint/js": "^9.19.0",
|
|
30
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
31
31
|
"@stricli/core": "^1.1.1",
|
|
32
32
|
"@types/express": "^4.17.21",
|
|
33
33
|
"bun": "1.2.17",
|
|
@@ -37,14 +37,6 @@
|
|
|
37
37
|
"globals": "^15.14.0",
|
|
38
38
|
"typescript": "~5.8.3",
|
|
39
39
|
"typescript-eslint": "^8.26.0"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
|
43
|
-
},
|
|
44
|
-
"peerDependenciesMeta": {
|
|
45
|
-
"@modelcontextprotocol/sdk": {
|
|
46
|
-
"optional": true
|
|
47
|
-
}
|
|
48
40
|
}
|
|
49
41
|
},
|
|
50
42
|
"node_modules/@esbuild/aix-ppc64": {
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "2.0";
|
|
42
|
-
readonly sdkVersion: "4.0.0-rc.
|
|
43
|
-
readonly genVersion: "2.753.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
42
|
+
readonly sdkVersion: "4.0.0-rc.35";
|
|
43
|
+
readonly genVersion: "2.753.7";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.35 2.753.7 2.0 @orq-ai/node";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.0.0-rc.
|
|
32
|
-
genVersion: "2.753.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
31
|
+
sdkVersion: "4.0.0-rc.35",
|
|
32
|
+
genVersion: "2.753.7",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.35 2.753.7 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "4.0.0-rc.
|
|
25
|
+
currentVersion: "4.0.0-rc.35",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -112,7 +112,7 @@ const toolsUpdate_js_1 = require("./tools/toolsUpdate.js");
|
|
|
112
112
|
function createMCPServer(deps) {
|
|
113
113
|
const server = new mcp_js_1.McpServer({
|
|
114
114
|
name: "Orq",
|
|
115
|
-
version: "4.0.0-rc.
|
|
115
|
+
version: "4.0.0-rc.35",
|
|
116
116
|
});
|
|
117
117
|
const client = new core_js_1.OrqCore({
|
|
118
118
|
apiKey: deps.apiKey,
|
|
@@ -265,10 +265,23 @@ export type ParametersT = {
|
|
|
265
265
|
*/
|
|
266
266
|
modalities?: Array<Modalities> | null | undefined;
|
|
267
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
270
|
+
*/
|
|
271
|
+
export type Retry = {
|
|
272
|
+
/**
|
|
273
|
+
* Number of retry attempts (1-5)
|
|
274
|
+
*/
|
|
275
|
+
count?: number | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* HTTP status codes that trigger retry logic
|
|
278
|
+
*/
|
|
279
|
+
onCodes?: Array<number> | undefined;
|
|
280
|
+
};
|
|
268
281
|
/**
|
|
269
282
|
* @remarks
|
|
270
283
|
*
|
|
271
|
-
* Model configuration with parameters.
|
|
284
|
+
* Model configuration with parameters and retry settings.
|
|
272
285
|
*/
|
|
273
286
|
export type ModelConfiguration2 = {
|
|
274
287
|
/**
|
|
@@ -279,9 +292,13 @@ export type ModelConfiguration2 = {
|
|
|
279
292
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
280
293
|
*/
|
|
281
294
|
parameters?: ParametersT | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
297
|
+
*/
|
|
298
|
+
retry?: Retry | undefined;
|
|
282
299
|
};
|
|
283
300
|
/**
|
|
284
|
-
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
|
|
301
|
+
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
|
|
285
302
|
*/
|
|
286
303
|
export type ModelConfiguration = ModelConfiguration2 | string;
|
|
287
304
|
/**
|
|
@@ -983,7 +1000,7 @@ export type CreateAgentRequestBody = {
|
|
|
983
1000
|
*/
|
|
984
1001
|
path: string;
|
|
985
1002
|
/**
|
|
986
|
-
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
|
|
1003
|
+
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
|
|
987
1004
|
*/
|
|
988
1005
|
model: ModelConfiguration2 | string;
|
|
989
1006
|
/**
|
|
@@ -1407,6 +1424,19 @@ export type CreateAgentParameters = {
|
|
|
1407
1424
|
*/
|
|
1408
1425
|
modalities?: Array<CreateAgentModalities> | null | undefined;
|
|
1409
1426
|
};
|
|
1427
|
+
/**
|
|
1428
|
+
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
1429
|
+
*/
|
|
1430
|
+
export type CreateAgentRetry = {
|
|
1431
|
+
/**
|
|
1432
|
+
* Number of retry attempts (1-5)
|
|
1433
|
+
*/
|
|
1434
|
+
count?: number | undefined;
|
|
1435
|
+
/**
|
|
1436
|
+
* HTTP status codes that trigger retry logic
|
|
1437
|
+
*/
|
|
1438
|
+
onCodes?: Array<number> | undefined;
|
|
1439
|
+
};
|
|
1410
1440
|
/**
|
|
1411
1441
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1412
1442
|
*/
|
|
@@ -1700,6 +1730,10 @@ export type CreateAgentModel = {
|
|
|
1700
1730
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
1701
1731
|
*/
|
|
1702
1732
|
parameters?: CreateAgentParameters | undefined;
|
|
1733
|
+
/**
|
|
1734
|
+
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
1735
|
+
*/
|
|
1736
|
+
retry?: CreateAgentRetry | undefined;
|
|
1703
1737
|
/**
|
|
1704
1738
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
1705
1739
|
*/
|
|
@@ -1964,11 +1998,23 @@ export declare const ParametersT$outboundSchema: z.ZodType<ParametersT$Outbound,
|
|
|
1964
1998
|
export declare function parametersToJSON(parametersT: ParametersT): string;
|
|
1965
1999
|
export declare function parametersFromJSON(jsonString: string): SafeParseResult<ParametersT, SDKValidationError>;
|
|
1966
2000
|
/** @internal */
|
|
2001
|
+
export declare const Retry$inboundSchema: z.ZodType<Retry, z.ZodTypeDef, unknown>;
|
|
2002
|
+
/** @internal */
|
|
2003
|
+
export type Retry$Outbound = {
|
|
2004
|
+
count: number;
|
|
2005
|
+
on_codes?: Array<number> | undefined;
|
|
2006
|
+
};
|
|
2007
|
+
/** @internal */
|
|
2008
|
+
export declare const Retry$outboundSchema: z.ZodType<Retry$Outbound, z.ZodTypeDef, Retry>;
|
|
2009
|
+
export declare function retryToJSON(retry: Retry): string;
|
|
2010
|
+
export declare function retryFromJSON(jsonString: string): SafeParseResult<Retry, SDKValidationError>;
|
|
2011
|
+
/** @internal */
|
|
1967
2012
|
export declare const ModelConfiguration2$inboundSchema: z.ZodType<ModelConfiguration2, z.ZodTypeDef, unknown>;
|
|
1968
2013
|
/** @internal */
|
|
1969
2014
|
export type ModelConfiguration2$Outbound = {
|
|
1970
2015
|
id: string;
|
|
1971
2016
|
parameters?: ParametersT$Outbound | undefined;
|
|
2017
|
+
retry?: Retry$Outbound | undefined;
|
|
1972
2018
|
};
|
|
1973
2019
|
/** @internal */
|
|
1974
2020
|
export declare const ModelConfiguration2$outboundSchema: z.ZodType<ModelConfiguration2$Outbound, z.ZodTypeDef, ModelConfiguration2>;
|
|
@@ -2797,6 +2843,17 @@ export declare const CreateAgentParameters$outboundSchema: z.ZodType<CreateAgent
|
|
|
2797
2843
|
export declare function createAgentParametersToJSON(createAgentParameters: CreateAgentParameters): string;
|
|
2798
2844
|
export declare function createAgentParametersFromJSON(jsonString: string): SafeParseResult<CreateAgentParameters, SDKValidationError>;
|
|
2799
2845
|
/** @internal */
|
|
2846
|
+
export declare const CreateAgentRetry$inboundSchema: z.ZodType<CreateAgentRetry, z.ZodTypeDef, unknown>;
|
|
2847
|
+
/** @internal */
|
|
2848
|
+
export type CreateAgentRetry$Outbound = {
|
|
2849
|
+
count: number;
|
|
2850
|
+
on_codes?: Array<number> | undefined;
|
|
2851
|
+
};
|
|
2852
|
+
/** @internal */
|
|
2853
|
+
export declare const CreateAgentRetry$outboundSchema: z.ZodType<CreateAgentRetry$Outbound, z.ZodTypeDef, CreateAgentRetry>;
|
|
2854
|
+
export declare function createAgentRetryToJSON(createAgentRetry: CreateAgentRetry): string;
|
|
2855
|
+
export declare function createAgentRetryFromJSON(jsonString: string): SafeParseResult<CreateAgentRetry, SDKValidationError>;
|
|
2856
|
+
/** @internal */
|
|
2800
2857
|
export declare const CreateAgentFallbackModelConfigurationVoice$inboundSchema: z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationVoice>;
|
|
2801
2858
|
/** @internal */
|
|
2802
2859
|
export declare const CreateAgentFallbackModelConfigurationVoice$outboundSchema: z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationVoice>;
|
|
@@ -3009,6 +3066,7 @@ export type CreateAgentModel$Outbound = {
|
|
|
3009
3066
|
id: string;
|
|
3010
3067
|
integration_id?: string | null | undefined;
|
|
3011
3068
|
parameters?: CreateAgentParameters$Outbound | undefined;
|
|
3069
|
+
retry?: CreateAgentRetry$Outbound | undefined;
|
|
3012
3070
|
fallback_models?: Array<CreateAgentFallbackModelConfiguration2$Outbound | string> | null | undefined;
|
|
3013
3071
|
};
|
|
3014
3072
|
/** @internal */
|