@orq-ai/node 4.0.0-rc.26 → 4.0.0-rc.28
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 +788 -281
- package/bin/mcp-server.js.map +50 -50
- package/docs/sdks/agents/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/funcs/toolsDuplicate.js +2 -1
- package/funcs/toolsDuplicate.js.map +1 -1
- 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 +195 -11
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +189 -13
- 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.d.ts +2 -0
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +30 -28
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +0 -2
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +0 -4
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicateagent.d.ts +94 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +95 -3
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.d.ts +18 -0
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +40 -12
- 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 +94 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +95 -3
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallprompts.d.ts +0 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +0 -4
- package/models/operations/getallprompts.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/getoneprompt.d.ts +0 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +0 -4
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +0 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +0 -4
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +94 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +96 -3
- 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/listpromptversions.d.ts +0 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +0 -4
- package/models/operations/listpromptversions.js.map +1 -1
- 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 +92 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +97 -7
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +92 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +96 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +188 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +192 -7
- 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.d.ts +2 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +30 -28
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +0 -4
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +0 -8
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/src/funcs/toolsDuplicate.ts +3 -2
- 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 +403 -17
- 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 +30 -28
- package/src/models/operations/createprompt.ts +0 -6
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicateagent.ts +206 -0
- package/src/models/operations/duplicatetool.ts +70 -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 +204 -0
- package/src/models/operations/getallprompts.ts +0 -6
- 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/getoneprompt.ts +0 -6
- package/src/models/operations/getpromptversion.ts +0 -6
- package/src/models/operations/listagents.ts +204 -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/listpromptversions.ts +0 -6
- 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 +202 -0
- package/src/models/operations/streamrunagent.ts +204 -0
- package/src/models/operations/updateagent.ts +415 -0
- 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 +30 -28
- package/src/models/operations/updateprompt.ts +0 -12
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -112,11 +112,11 @@ const orq = new Orq({
|
|
|
112
112
|
|
|
113
113
|
async function run() {
|
|
114
114
|
const result = await orq.agents.create({
|
|
115
|
-
path: "Default",
|
|
116
115
|
key: "<key>",
|
|
117
116
|
role: "<value>",
|
|
118
117
|
description: "neatly unless refine aside platter alarmed shampoo shakily yippee",
|
|
119
118
|
instructions: "<value>",
|
|
119
|
+
path: "Default",
|
|
120
120
|
model: "Camaro",
|
|
121
121
|
settings: {},
|
|
122
122
|
knowledgeBases: [
|
|
@@ -148,11 +148,11 @@ const orq = new OrqCore({
|
|
|
148
148
|
|
|
149
149
|
async function run() {
|
|
150
150
|
const res = await agentsCreate(orq, {
|
|
151
|
-
path: "Default",
|
|
152
151
|
key: "<key>",
|
|
153
152
|
role: "<value>",
|
|
154
153
|
description: "neatly unless refine aside platter alarmed shampoo shakily yippee",
|
|
155
154
|
instructions: "<value>",
|
|
155
|
+
path: "Default",
|
|
156
156
|
model: "Camaro",
|
|
157
157
|
settings: {},
|
|
158
158
|
knowledgeBases: [
|
package/funcs/toolsDuplicate.js
CHANGED
|
@@ -61,7 +61,7 @@ async function $do(client, request, options) {
|
|
|
61
61
|
return [parsed, { status: "invalid" }];
|
|
62
62
|
}
|
|
63
63
|
const payload = parsed.value;
|
|
64
|
-
const body =
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.RequestBody, { explode: true });
|
|
65
65
|
const pathParams = {
|
|
66
66
|
tool_id: (0, encodings_js_1.encodeSimple)("tool_id", payload.tool_id, {
|
|
67
67
|
explode: false,
|
|
@@ -70,6 +70,7 @@ async function $do(client, request, options) {
|
|
|
70
70
|
};
|
|
71
71
|
const path = (0, url_js_1.pathToFunc)("/v2/tools/{tool_id}/duplicate")(pathParams);
|
|
72
72
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
73
|
+
"Content-Type": "application/json",
|
|
73
74
|
Accept: "application/json",
|
|
74
75
|
}));
|
|
75
76
|
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolsDuplicate.js","sourceRoot":"","sources":["../src/funcs/toolsDuplicate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,wCAuBC;AAnDD,
|
|
1
|
+
{"version":3,"file":"toolsDuplicate.js","sourceRoot":"","sources":["../src/funcs/toolsDuplicate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,wCAuBC;AAnDD,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,MAAe,EACf,OAAwC,EACxC,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL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AC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,uCAAuC,CAAC,EAC/D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uCAAuC,CAAC,EAC9D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
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.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
42
|
+
readonly sdkVersion: "4.0.0-rc.28";
|
|
43
|
+
readonly genVersion: "2.753.1";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.28 2.753.1 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.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
31
|
+
sdkVersion: "4.0.0-rc.28",
|
|
32
|
+
genVersion: "2.753.1",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.28 2.753.1 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.28",
|
|
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
|
@@ -111,7 +111,7 @@ const toolsUpdate_js_1 = require("./tools/toolsUpdate.js");
|
|
|
111
111
|
function createMCPServer(deps) {
|
|
112
112
|
const server = new mcp_js_1.McpServer({
|
|
113
113
|
name: "Orq",
|
|
114
|
-
version: "4.0.0-rc.
|
|
114
|
+
version: "4.0.0-rc.28",
|
|
115
115
|
});
|
|
116
116
|
const client = new core_js_1.OrqCore({
|
|
117
117
|
apiKey: deps.apiKey,
|
|
@@ -827,6 +827,56 @@ export type GoogleSearchTool = {
|
|
|
827
827
|
* Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function) must reference pre-created tools by key or id.
|
|
828
828
|
*/
|
|
829
829
|
export type AgentToolInputCRUD = GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryDocumentTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool | HTTPTool | CodeExecutionTool | FunctionTool;
|
|
830
|
+
/**
|
|
831
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
832
|
+
*/
|
|
833
|
+
export declare const ExecuteOn: {
|
|
834
|
+
readonly Input: "input";
|
|
835
|
+
readonly Output: "output";
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
839
|
+
*/
|
|
840
|
+
export type ExecuteOn = ClosedEnum<typeof ExecuteOn>;
|
|
841
|
+
export type Evaluators = {
|
|
842
|
+
/**
|
|
843
|
+
* Unique key or identifier of the evaluator
|
|
844
|
+
*/
|
|
845
|
+
id: string;
|
|
846
|
+
/**
|
|
847
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
848
|
+
*/
|
|
849
|
+
sampleRate?: number | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
852
|
+
*/
|
|
853
|
+
executeOn: ExecuteOn;
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
857
|
+
*/
|
|
858
|
+
export declare const CreateAgentExecuteOn: {
|
|
859
|
+
readonly Input: "input";
|
|
860
|
+
readonly Output: "output";
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
864
|
+
*/
|
|
865
|
+
export type CreateAgentExecuteOn = ClosedEnum<typeof CreateAgentExecuteOn>;
|
|
866
|
+
export type Guardrails = {
|
|
867
|
+
/**
|
|
868
|
+
* Unique key or identifier of the evaluator
|
|
869
|
+
*/
|
|
870
|
+
id: string;
|
|
871
|
+
/**
|
|
872
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
873
|
+
*/
|
|
874
|
+
sampleRate?: number | undefined;
|
|
875
|
+
/**
|
|
876
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
877
|
+
*/
|
|
878
|
+
executeOn: CreateAgentExecuteOn;
|
|
879
|
+
};
|
|
830
880
|
/**
|
|
831
881
|
* Configuration settings for the agent's behavior
|
|
832
882
|
*/
|
|
@@ -847,6 +897,14 @@ export type Settings = {
|
|
|
847
897
|
* Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
|
|
848
898
|
*/
|
|
849
899
|
tools?: Array<GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryDocumentTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool | HTTPTool | CodeExecutionTool | FunctionTool> | undefined;
|
|
900
|
+
/**
|
|
901
|
+
* Configuration for an evaluator applied to the agent
|
|
902
|
+
*/
|
|
903
|
+
evaluators?: Array<Evaluators> | undefined;
|
|
904
|
+
/**
|
|
905
|
+
* Configuration for a guardrail applied to the agent
|
|
906
|
+
*/
|
|
907
|
+
guardrails?: Array<Guardrails> | undefined;
|
|
850
908
|
};
|
|
851
909
|
export type KnowledgeBases = {
|
|
852
910
|
/**
|
|
@@ -865,14 +923,6 @@ export type TeamOfAgents = {
|
|
|
865
923
|
role?: string | undefined;
|
|
866
924
|
};
|
|
867
925
|
export type CreateAgentRequestBody = {
|
|
868
|
-
/**
|
|
869
|
-
* The path where the agent will be stored in the project structure. The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
870
|
-
*
|
|
871
|
-
* @remarks
|
|
872
|
-
*
|
|
873
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
874
|
-
*/
|
|
875
|
-
path: string;
|
|
876
926
|
/**
|
|
877
927
|
* Unique identifier for the agent within the workspace
|
|
878
928
|
*/
|
|
@@ -893,6 +943,14 @@ export type CreateAgentRequestBody = {
|
|
|
893
943
|
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
894
944
|
*/
|
|
895
945
|
systemPrompt?: string | undefined;
|
|
946
|
+
/**
|
|
947
|
+
* The path where the agent will be stored in the project structure. The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
948
|
+
*
|
|
949
|
+
* @remarks
|
|
950
|
+
*
|
|
951
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
952
|
+
*/
|
|
953
|
+
path: string;
|
|
896
954
|
/**
|
|
897
955
|
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
|
|
898
956
|
*/
|
|
@@ -982,6 +1040,56 @@ export type CreateAgentTools = {
|
|
|
982
1040
|
*/
|
|
983
1041
|
timeout?: number | undefined;
|
|
984
1042
|
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1045
|
+
*/
|
|
1046
|
+
export declare const CreateAgentAgentsExecuteOn: {
|
|
1047
|
+
readonly Input: "input";
|
|
1048
|
+
readonly Output: "output";
|
|
1049
|
+
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1052
|
+
*/
|
|
1053
|
+
export type CreateAgentAgentsExecuteOn = ClosedEnum<typeof CreateAgentAgentsExecuteOn>;
|
|
1054
|
+
export type CreateAgentEvaluators = {
|
|
1055
|
+
/**
|
|
1056
|
+
* Unique key or identifier of the evaluator
|
|
1057
|
+
*/
|
|
1058
|
+
id: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1061
|
+
*/
|
|
1062
|
+
sampleRate?: number | undefined;
|
|
1063
|
+
/**
|
|
1064
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1065
|
+
*/
|
|
1066
|
+
executeOn: CreateAgentAgentsExecuteOn;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1070
|
+
*/
|
|
1071
|
+
export declare const CreateAgentAgentsResponseExecuteOn: {
|
|
1072
|
+
readonly Input: "input";
|
|
1073
|
+
readonly Output: "output";
|
|
1074
|
+
};
|
|
1075
|
+
/**
|
|
1076
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1077
|
+
*/
|
|
1078
|
+
export type CreateAgentAgentsResponseExecuteOn = ClosedEnum<typeof CreateAgentAgentsResponseExecuteOn>;
|
|
1079
|
+
export type CreateAgentGuardrails = {
|
|
1080
|
+
/**
|
|
1081
|
+
* Unique key or identifier of the evaluator
|
|
1082
|
+
*/
|
|
1083
|
+
id: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1086
|
+
*/
|
|
1087
|
+
sampleRate?: number | undefined;
|
|
1088
|
+
/**
|
|
1089
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1090
|
+
*/
|
|
1091
|
+
executeOn: CreateAgentAgentsResponseExecuteOn;
|
|
1092
|
+
};
|
|
985
1093
|
export type CreateAgentSettings = {
|
|
986
1094
|
/**
|
|
987
1095
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
@@ -996,6 +1104,14 @@ export type CreateAgentSettings = {
|
|
|
996
1104
|
*/
|
|
997
1105
|
toolApprovalRequired?: CreateAgentToolApprovalRequired | undefined;
|
|
998
1106
|
tools?: Array<CreateAgentTools> | undefined;
|
|
1107
|
+
/**
|
|
1108
|
+
* Configuration for an evaluator applied to the agent
|
|
1109
|
+
*/
|
|
1110
|
+
evaluators?: Array<CreateAgentEvaluators> | undefined;
|
|
1111
|
+
/**
|
|
1112
|
+
* Configuration for a guardrail applied to the agent
|
|
1113
|
+
*/
|
|
1114
|
+
guardrails?: Array<CreateAgentGuardrails> | undefined;
|
|
999
1115
|
};
|
|
1000
1116
|
/**
|
|
1001
1117
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
@@ -1583,6 +1699,8 @@ export declare const CreateAgentCollapsedConfigurationSections: {
|
|
|
1583
1699
|
readonly Tools: "tools";
|
|
1584
1700
|
readonly Context: "context";
|
|
1585
1701
|
readonly RuntimeConstraints: "runtime_constraints";
|
|
1702
|
+
readonly Evaluators: "evaluators";
|
|
1703
|
+
readonly Guardrails: "guardrails";
|
|
1586
1704
|
};
|
|
1587
1705
|
export type CreateAgentCollapsedConfigurationSections = ClosedEnum<typeof CreateAgentCollapsedConfigurationSections>;
|
|
1588
1706
|
/**
|
|
@@ -1591,7 +1709,6 @@ export type CreateAgentCollapsedConfigurationSections = ClosedEnum<typeof Create
|
|
|
1591
1709
|
export type CreateAgentResponseBody = {
|
|
1592
1710
|
id: string;
|
|
1593
1711
|
key: string;
|
|
1594
|
-
workspaceId: string;
|
|
1595
1712
|
projectId: string;
|
|
1596
1713
|
createdById?: string | null | undefined;
|
|
1597
1714
|
updatedById?: string | null | undefined;
|
|
@@ -2283,6 +2400,38 @@ export declare const AgentToolInputCRUD$outboundSchema: z.ZodType<AgentToolInput
|
|
|
2283
2400
|
export declare function agentToolInputCRUDToJSON(agentToolInputCRUD: AgentToolInputCRUD): string;
|
|
2284
2401
|
export declare function agentToolInputCRUDFromJSON(jsonString: string): SafeParseResult<AgentToolInputCRUD, SDKValidationError>;
|
|
2285
2402
|
/** @internal */
|
|
2403
|
+
export declare const ExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ExecuteOn>;
|
|
2404
|
+
/** @internal */
|
|
2405
|
+
export declare const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn>;
|
|
2406
|
+
/** @internal */
|
|
2407
|
+
export declare const Evaluators$inboundSchema: z.ZodType<Evaluators, z.ZodTypeDef, unknown>;
|
|
2408
|
+
/** @internal */
|
|
2409
|
+
export type Evaluators$Outbound = {
|
|
2410
|
+
id: string;
|
|
2411
|
+
sample_rate: number;
|
|
2412
|
+
execute_on: string;
|
|
2413
|
+
};
|
|
2414
|
+
/** @internal */
|
|
2415
|
+
export declare const Evaluators$outboundSchema: z.ZodType<Evaluators$Outbound, z.ZodTypeDef, Evaluators>;
|
|
2416
|
+
export declare function evaluatorsToJSON(evaluators: Evaluators): string;
|
|
2417
|
+
export declare function evaluatorsFromJSON(jsonString: string): SafeParseResult<Evaluators, SDKValidationError>;
|
|
2418
|
+
/** @internal */
|
|
2419
|
+
export declare const CreateAgentExecuteOn$inboundSchema: z.ZodNativeEnum<typeof CreateAgentExecuteOn>;
|
|
2420
|
+
/** @internal */
|
|
2421
|
+
export declare const CreateAgentExecuteOn$outboundSchema: z.ZodNativeEnum<typeof CreateAgentExecuteOn>;
|
|
2422
|
+
/** @internal */
|
|
2423
|
+
export declare const Guardrails$inboundSchema: z.ZodType<Guardrails, z.ZodTypeDef, unknown>;
|
|
2424
|
+
/** @internal */
|
|
2425
|
+
export type Guardrails$Outbound = {
|
|
2426
|
+
id: string;
|
|
2427
|
+
sample_rate: number;
|
|
2428
|
+
execute_on: string;
|
|
2429
|
+
};
|
|
2430
|
+
/** @internal */
|
|
2431
|
+
export declare const Guardrails$outboundSchema: z.ZodType<Guardrails$Outbound, z.ZodTypeDef, Guardrails>;
|
|
2432
|
+
export declare function guardrailsToJSON(guardrails: Guardrails): string;
|
|
2433
|
+
export declare function guardrailsFromJSON(jsonString: string): SafeParseResult<Guardrails, SDKValidationError>;
|
|
2434
|
+
/** @internal */
|
|
2286
2435
|
export declare const Settings$inboundSchema: z.ZodType<Settings, z.ZodTypeDef, unknown>;
|
|
2287
2436
|
/** @internal */
|
|
2288
2437
|
export type Settings$Outbound = {
|
|
@@ -2290,6 +2439,8 @@ export type Settings$Outbound = {
|
|
|
2290
2439
|
max_execution_time: number;
|
|
2291
2440
|
tool_approval_required: string;
|
|
2292
2441
|
tools?: Array<GoogleSearchTool$Outbound | WebScraperTool$Outbound | CallSubAgentTool$Outbound | RetrieveAgentsTool$Outbound | QueryMemoryStoreTool$Outbound | WriteMemoryStoreTool$Outbound | RetrieveMemoryStoresTool$Outbound | DeleteMemoryDocumentTool$Outbound | RetrieveKnowledgeBasesTool$Outbound | QueryKnowledgeBaseTool$Outbound | CurrentDateTool$Outbound | HTTPTool$Outbound | CodeExecutionTool$Outbound | FunctionTool$Outbound> | undefined;
|
|
2442
|
+
evaluators?: Array<Evaluators$Outbound> | undefined;
|
|
2443
|
+
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
2293
2444
|
};
|
|
2294
2445
|
/** @internal */
|
|
2295
2446
|
export declare const Settings$outboundSchema: z.ZodType<Settings$Outbound, z.ZodTypeDef, Settings>;
|
|
@@ -2320,12 +2471,12 @@ export declare function teamOfAgentsFromJSON(jsonString: string): SafeParseResul
|
|
|
2320
2471
|
export declare const CreateAgentRequestBody$inboundSchema: z.ZodType<CreateAgentRequestBody, z.ZodTypeDef, unknown>;
|
|
2321
2472
|
/** @internal */
|
|
2322
2473
|
export type CreateAgentRequestBody$Outbound = {
|
|
2323
|
-
path: string;
|
|
2324
2474
|
key: string;
|
|
2325
2475
|
role: string;
|
|
2326
2476
|
description: string;
|
|
2327
2477
|
instructions: string;
|
|
2328
2478
|
system_prompt?: string | undefined;
|
|
2479
|
+
path: string;
|
|
2329
2480
|
model: ModelConfiguration2$Outbound | string;
|
|
2330
2481
|
fallback_models?: Array<FallbackModelConfiguration2$Outbound | string> | undefined;
|
|
2331
2482
|
settings: Settings$Outbound;
|
|
@@ -2378,6 +2529,38 @@ export declare const CreateAgentTools$outboundSchema: z.ZodType<CreateAgentTools
|
|
|
2378
2529
|
export declare function createAgentToolsToJSON(createAgentTools: CreateAgentTools): string;
|
|
2379
2530
|
export declare function createAgentToolsFromJSON(jsonString: string): SafeParseResult<CreateAgentTools, SDKValidationError>;
|
|
2380
2531
|
/** @internal */
|
|
2532
|
+
export declare const CreateAgentAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<typeof CreateAgentAgentsExecuteOn>;
|
|
2533
|
+
/** @internal */
|
|
2534
|
+
export declare const CreateAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<typeof CreateAgentAgentsExecuteOn>;
|
|
2535
|
+
/** @internal */
|
|
2536
|
+
export declare const CreateAgentEvaluators$inboundSchema: z.ZodType<CreateAgentEvaluators, z.ZodTypeDef, unknown>;
|
|
2537
|
+
/** @internal */
|
|
2538
|
+
export type CreateAgentEvaluators$Outbound = {
|
|
2539
|
+
id: string;
|
|
2540
|
+
sample_rate: number;
|
|
2541
|
+
execute_on: string;
|
|
2542
|
+
};
|
|
2543
|
+
/** @internal */
|
|
2544
|
+
export declare const CreateAgentEvaluators$outboundSchema: z.ZodType<CreateAgentEvaluators$Outbound, z.ZodTypeDef, CreateAgentEvaluators>;
|
|
2545
|
+
export declare function createAgentEvaluatorsToJSON(createAgentEvaluators: CreateAgentEvaluators): string;
|
|
2546
|
+
export declare function createAgentEvaluatorsFromJSON(jsonString: string): SafeParseResult<CreateAgentEvaluators, SDKValidationError>;
|
|
2547
|
+
/** @internal */
|
|
2548
|
+
export declare const CreateAgentAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<typeof CreateAgentAgentsResponseExecuteOn>;
|
|
2549
|
+
/** @internal */
|
|
2550
|
+
export declare const CreateAgentAgentsResponseExecuteOn$outboundSchema: z.ZodNativeEnum<typeof CreateAgentAgentsResponseExecuteOn>;
|
|
2551
|
+
/** @internal */
|
|
2552
|
+
export declare const CreateAgentGuardrails$inboundSchema: z.ZodType<CreateAgentGuardrails, z.ZodTypeDef, unknown>;
|
|
2553
|
+
/** @internal */
|
|
2554
|
+
export type CreateAgentGuardrails$Outbound = {
|
|
2555
|
+
id: string;
|
|
2556
|
+
sample_rate: number;
|
|
2557
|
+
execute_on: string;
|
|
2558
|
+
};
|
|
2559
|
+
/** @internal */
|
|
2560
|
+
export declare const CreateAgentGuardrails$outboundSchema: z.ZodType<CreateAgentGuardrails$Outbound, z.ZodTypeDef, CreateAgentGuardrails>;
|
|
2561
|
+
export declare function createAgentGuardrailsToJSON(createAgentGuardrails: CreateAgentGuardrails): string;
|
|
2562
|
+
export declare function createAgentGuardrailsFromJSON(jsonString: string): SafeParseResult<CreateAgentGuardrails, SDKValidationError>;
|
|
2563
|
+
/** @internal */
|
|
2381
2564
|
export declare const CreateAgentSettings$inboundSchema: z.ZodType<CreateAgentSettings, z.ZodTypeDef, unknown>;
|
|
2382
2565
|
/** @internal */
|
|
2383
2566
|
export type CreateAgentSettings$Outbound = {
|
|
@@ -2385,6 +2568,8 @@ export type CreateAgentSettings$Outbound = {
|
|
|
2385
2568
|
max_execution_time: number;
|
|
2386
2569
|
tool_approval_required: string;
|
|
2387
2570
|
tools?: Array<CreateAgentTools$Outbound> | undefined;
|
|
2571
|
+
evaluators?: Array<CreateAgentEvaluators$Outbound> | undefined;
|
|
2572
|
+
guardrails?: Array<CreateAgentGuardrails$Outbound> | undefined;
|
|
2388
2573
|
};
|
|
2389
2574
|
/** @internal */
|
|
2390
2575
|
export declare const CreateAgentSettings$outboundSchema: z.ZodType<CreateAgentSettings$Outbound, z.ZodTypeDef, CreateAgentSettings>;
|
|
@@ -2837,7 +3022,6 @@ export declare const CreateAgentResponseBody$inboundSchema: z.ZodType<CreateAgen
|
|
|
2837
3022
|
export type CreateAgentResponseBody$Outbound = {
|
|
2838
3023
|
_id: string;
|
|
2839
3024
|
key: string;
|
|
2840
|
-
workspace_id: string;
|
|
2841
3025
|
project_id: string;
|
|
2842
3026
|
created_by_id?: string | null | undefined;
|
|
2843
3027
|
updated_by_id?: string | null | undefined;
|