@or-sdk/agents 4.19.0 → 4.20.0-beta.4066.0
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/dist/cjs/types.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/types/Agents.d.ts +196 -0
- package/dist/types/Agents.d.ts.map +1 -1
- package/dist/types/types.d.ts +457 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/types.ts +5 -0
package/dist/cjs/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAolBA,IAAY,OASX;AATD,WAAY,OAAO;IAIjB,kCAAuB,CAAA;IAIvB,4CAAiC,CAAA;AACnC,CAAC,EATW,OAAO,uBAAP,OAAO,QASlB;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;AACjB,CAAC,EAFW,gBAAgB,gCAAhB,gBAAgB,QAE3B;AA6ND,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;AAC3B,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B"}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAolBA,MAAM,CAAN,IAAY,OASX;AATD,WAAY,OAAO;IAIjB,kCAAuB,CAAA;IAIvB,4CAAiC,CAAA;AACnC,CAAC,EATW,OAAO,KAAP,OAAO,QASlB;AAED,MAAM,CAAN,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;AACjB,CAAC,EAFW,gBAAgB,KAAhB,gBAAgB,QAE3B;AA6ND,MAAM,CAAN,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;AAC3B,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B"}
|
package/dist/types/Agents.d.ts
CHANGED
|
@@ -9,15 +9,80 @@ export declare class Agents extends Base {
|
|
|
9
9
|
constructor(params: AgentsConfig);
|
|
10
10
|
private makeRequest;
|
|
11
11
|
parseError(err: unknown): Error;
|
|
12
|
+
/**
|
|
13
|
+
* Create a new agent.
|
|
14
|
+
* @param params - The agent creation parameters.
|
|
15
|
+
* @param options - The API call options.
|
|
16
|
+
* @returns The created agent.
|
|
17
|
+
*/
|
|
12
18
|
createAgent(params: CreateAgent, options?: CallOptions): Promise<Agent>;
|
|
19
|
+
/**
|
|
20
|
+
* Find agents with optional pagination and query.
|
|
21
|
+
* @param params - Optional find parameters.
|
|
22
|
+
* @param options - The API call options.
|
|
23
|
+
* @returns An array of agents.
|
|
24
|
+
*/
|
|
13
25
|
findAgents(params?: FindAgentsOptions, options?: CallOptions): Promise<List<Agent>>;
|
|
26
|
+
/**
|
|
27
|
+
* Get an agent by its ID.
|
|
28
|
+
* @param agentId - The ID of the agent to retrieve.
|
|
29
|
+
* @param options - The API call options.
|
|
30
|
+
* @returns The retrieved agent.
|
|
31
|
+
*/
|
|
14
32
|
getAgent(agentId: string, params?: GetAgentParams, options?: CallOptions): Promise<Agent>;
|
|
33
|
+
/**
|
|
34
|
+
* Get an agent by its ID.
|
|
35
|
+
* @param agentId - The ID of the agent to retrieve.
|
|
36
|
+
* @param options - The API call options.
|
|
37
|
+
* @returns The retrieved agent.
|
|
38
|
+
*/
|
|
15
39
|
getAgentVersions(agentId: string, options?: CallOptions): Promise<AgentVersion[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Update an agent by its ID.
|
|
42
|
+
* @param agentId - The ID of the agent to update.
|
|
43
|
+
* @param params - The update agent parameters.
|
|
44
|
+
* @param options - The API call options.
|
|
45
|
+
* @returns The updated agent.
|
|
46
|
+
*/
|
|
16
47
|
updateAgent(agentId: string, params: UpdateAgent, options?: CallOptions): Promise<Agent>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete an agent by its ID.
|
|
50
|
+
* @param agentId - The ID of the agent to delete.
|
|
51
|
+
* @param options - The API call options.
|
|
52
|
+
* @returns The deleted agent.
|
|
53
|
+
*/
|
|
17
54
|
deleteAgent(agentId: string, options?: CallOptions): Promise<Agent>;
|
|
55
|
+
/**
|
|
56
|
+
* Releases agent's development version by ID.
|
|
57
|
+
* @param agentId - The ID of the agent to delete.
|
|
58
|
+
* @param data - The release label and notes.
|
|
59
|
+
* @param options - The API call options.
|
|
60
|
+
*/
|
|
18
61
|
releaseAgent(agentId: string, data: ReleaseVersion, options?: CallOptions): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Set an agent action.
|
|
64
|
+
* @param agentId - The ID of the agent to delete.
|
|
65
|
+
* @param params - Set action params.
|
|
66
|
+
* @param options - The API call options.
|
|
67
|
+
* @returns The deleted agent.
|
|
68
|
+
*/
|
|
19
69
|
setAgentAction(agentId: string, params: AgentAction, options?: CallOptions): Promise<AgentAction>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete an agent action.
|
|
72
|
+
* @param agentId - The ID of the agent to delete.
|
|
73
|
+
* @param actionName - Set action params.
|
|
74
|
+
* @param options - The API call options.
|
|
75
|
+
* @returns The deleted agent.
|
|
76
|
+
*/
|
|
20
77
|
deleteAgentAction(agentId: string, actionName: string, options?: CallOptions): Promise<AgentAction>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves a list of agent executions for a given agent.
|
|
80
|
+
*
|
|
81
|
+
* @param agentId - The ID of the agent.
|
|
82
|
+
* @param params - Optional parameters for pagination (size, from etc).
|
|
83
|
+
* @param options - Optional call options.
|
|
84
|
+
* @returns A promise that resolves to an array of objects.
|
|
85
|
+
*/
|
|
21
86
|
getAgentExecutionList(agentId: string, params?: {
|
|
22
87
|
size?: number;
|
|
23
88
|
from?: number;
|
|
@@ -31,38 +96,169 @@ export declare class Agents extends Base {
|
|
|
31
96
|
to?: Date;
|
|
32
97
|
};
|
|
33
98
|
}, options?: CallOptions): Promise<ExecutionList>;
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves the execution details of a specific agent.
|
|
101
|
+
*
|
|
102
|
+
* @param agentId - The ID of the agent.
|
|
103
|
+
* @param executionId - The ID of the execution.
|
|
104
|
+
* @param options - Additional options for the API call.
|
|
105
|
+
* @returns A Promise that resolves to the AgentExecutionHistory object representing the execution details.
|
|
106
|
+
*/
|
|
34
107
|
getAgentExecution(agentId: string, executionId: string, params?: {
|
|
35
108
|
orderBy?: string;
|
|
36
109
|
order?: 'ASC' | 'DESC';
|
|
37
110
|
}, options?: CallOptions): Promise<Execution>;
|
|
111
|
+
/**
|
|
112
|
+
* Partially updates an execution belonging to an agent.
|
|
113
|
+
*
|
|
114
|
+
* This method performs a PATCH request and updates only the provided fields.
|
|
115
|
+
* Currently, the API supports patching the `summary` field.
|
|
116
|
+
*
|
|
117
|
+
* @param agentId - The ID of the agent that owns the execution.
|
|
118
|
+
* @param executionId - The ID of the execution to patch.
|
|
119
|
+
* @param patch - Partial execution data to update (currently: `summary`).
|
|
120
|
+
* @param options - Optional request options.
|
|
121
|
+
* @returns A promise that resolves when the patch operation completes.
|
|
122
|
+
*/
|
|
38
123
|
patchAgentExecution(agentId: string, executionId: string, patch: {
|
|
39
124
|
summary?: string;
|
|
40
125
|
}, options?: CallOptions): Promise<unknown>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes an agent execution.
|
|
128
|
+
* @param agentId - The ID of the agent.
|
|
129
|
+
* @param executionId - The ID of the execution.
|
|
130
|
+
* @param options - Optional call options.
|
|
131
|
+
* @returns A promise that resolves to the deleted agent action.
|
|
132
|
+
*/
|
|
41
133
|
deleteAgentExecution(agentId: string, executionId: string, options?: CallOptions): Promise<unknown>;
|
|
134
|
+
/**
|
|
135
|
+
* Runs an agent with the specified agent ID and parameters.
|
|
136
|
+
*
|
|
137
|
+
* @param agentId - The ID of the agent to run.
|
|
138
|
+
* @param executionId - The execution ID of the agent to run.
|
|
139
|
+
* @param params - The parameters for running the agent.
|
|
140
|
+
* @param options - The optional call options.
|
|
141
|
+
* @returns A promise that resolves to the response of running the agent.
|
|
142
|
+
*/
|
|
42
143
|
runAgent(agentId: string, executionId: string, params: RunAgentParams, options?: CallOptions): Promise<RunAgentResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* Set the session ID.
|
|
146
|
+
* @param sessionId - The session ID to set.
|
|
147
|
+
* @returns The session ID.
|
|
148
|
+
*/
|
|
43
149
|
setSessionId(sessionId: string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Find agents with optional pagination and query.
|
|
152
|
+
* @param params - Optional find parameters.
|
|
153
|
+
* @param options - The API call options.
|
|
154
|
+
* @returns An array of agents.
|
|
155
|
+
*/
|
|
44
156
|
findTemplates(params?: FindTemplatesOptions, options?: CallOptions): Promise<List<Partial<Template>>>;
|
|
157
|
+
/**
|
|
158
|
+
* Get a template by its ID.
|
|
159
|
+
* @param templateId - The ID of the template to retrieve.
|
|
160
|
+
* @param options - The API call options.
|
|
161
|
+
* @returns The retrieved template.
|
|
162
|
+
*/
|
|
45
163
|
getTemplate(templateId: string, options?: CallOptions): Promise<Template>;
|
|
164
|
+
/**
|
|
165
|
+
* Create a new template.
|
|
166
|
+
* @param params - The template creation parameters.
|
|
167
|
+
* @param options - The API call options.
|
|
168
|
+
* @returns The created template.
|
|
169
|
+
*/
|
|
46
170
|
createTemplate(params: CreateTemplateParams, options?: CallOptions): Promise<Template>;
|
|
171
|
+
/**
|
|
172
|
+
* Delete a template by its ID.
|
|
173
|
+
* @param templateId - The ID of the template to update.
|
|
174
|
+
* @param params - The update template parameters.
|
|
175
|
+
* @param options - The API call options.
|
|
176
|
+
* @returns The updated template.
|
|
177
|
+
*/
|
|
47
178
|
deleteTemplate(templateId: string, options?: CallOptions): Promise<Template>;
|
|
179
|
+
/**
|
|
180
|
+
* Get markdown for passed url
|
|
181
|
+
* @param url - The web page url.
|
|
182
|
+
* @param question - The question to search.
|
|
183
|
+
* @param options - The API call options.
|
|
184
|
+
* @returns The markdown page passages.
|
|
185
|
+
*/
|
|
48
186
|
htmlToPassages(url: string, question: string, options?: CallOptions): Promise<string[]>;
|
|
187
|
+
/**
|
|
188
|
+
* Creates one or multiple agent test cases by sending a POST request to the 'agents/testing' endpoint.
|
|
189
|
+
*
|
|
190
|
+
* @param cases - A single test case or an array of test cases to be created.
|
|
191
|
+
* @returns A promise that resolves to an array of created test cases.
|
|
192
|
+
*/
|
|
49
193
|
createAgentTestCase(cases: CreateTestCase | CreateTestCase[]): Promise<TestCase | TestCase[]>;
|
|
194
|
+
/**
|
|
195
|
+
* Updates an existing agent test case with the specified parameters.
|
|
196
|
+
*
|
|
197
|
+
* @param testCaseId - The unique identifier of the test case to update.
|
|
198
|
+
* @param params - The updated test case data.
|
|
199
|
+
* @param options - Optional call options for the request.
|
|
200
|
+
* @returns A promise that resolves to the updated test case.
|
|
201
|
+
*/
|
|
50
202
|
updateAgentTestCase(testCaseId: string, params: Partial<CreateTestCase>, options?: CallOptions): Promise<TestCase>;
|
|
203
|
+
/**
|
|
204
|
+
* Deletes a specific agent test case by its ID.
|
|
205
|
+
*
|
|
206
|
+
* @param testCaseId - The unique identifier of the test case to delete.
|
|
207
|
+
* @param options - Optional call options to customize the request.
|
|
208
|
+
* @returns A promise that resolves to the deleted test case object.
|
|
209
|
+
*/
|
|
51
210
|
deleteAgentTestCase(testCaseId: string, options?: CallOptions): Promise<TestCase>;
|
|
211
|
+
/**
|
|
212
|
+
* Fetches the test cases for a specific agent version.
|
|
213
|
+
*
|
|
214
|
+
* @param agentId - The unique identifier of the agent.
|
|
215
|
+
* @param agentVersionId - The unique identifier of the agent version.
|
|
216
|
+
* @param params - Optional query parameters to include in the request.
|
|
217
|
+
* @param options - Optional call options for the request.
|
|
218
|
+
* @returns A promise that resolves to an array of test cases.
|
|
219
|
+
*/
|
|
52
220
|
fetchAgentTestCases(params: {
|
|
53
221
|
agentId: string;
|
|
54
222
|
agentVersionId: string;
|
|
55
223
|
}, options?: CallOptions): Promise<TestCase[]>;
|
|
224
|
+
/**
|
|
225
|
+
* Executes a set of test cases for a specific agent and its version.
|
|
226
|
+
*
|
|
227
|
+
* @param data - The input data required to run the test cases.
|
|
228
|
+
* @param data.agentId - The unique identifier of the agent.
|
|
229
|
+
* @param data.agentVersionId - The unique identifier of the agent's version.
|
|
230
|
+
* @param data.testCaseIds - An array of test case IDs to be executed.
|
|
231
|
+
* @returns A promise that resolves to an array of `TestCase` objects representing the results of the executed test cases.
|
|
232
|
+
*/
|
|
56
233
|
runAgentTestCase(data: {
|
|
57
234
|
agentId: string;
|
|
58
235
|
agentVersionId: string;
|
|
59
236
|
testCaseIds: string[];
|
|
60
237
|
}): Promise<TestCase[]>;
|
|
238
|
+
/**
|
|
239
|
+
* Terminates one or more agent test cases for a specific agent and version.
|
|
240
|
+
*
|
|
241
|
+
* @param data - An object containing the following properties:
|
|
242
|
+
* - agentId: The unique identifier of the agent.
|
|
243
|
+
* - agentVersionId: The unique identifier of the agent version.
|
|
244
|
+
* - testCaseIds: An array of test case IDs to terminate.
|
|
245
|
+
* @returns A promise that resolves to an array of terminated `TestCase` objects.
|
|
246
|
+
*/
|
|
61
247
|
terminateAgentTestCase(data: {
|
|
62
248
|
agentId: string;
|
|
63
249
|
agentVersionId: string;
|
|
64
250
|
testCaseIds: string[];
|
|
65
251
|
}): Promise<TestCase[]>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param agentId Id of an agent to configure
|
|
255
|
+
* @param agentVersionId VersionId of the agent
|
|
256
|
+
* @param executionId ExecutionId to create a session
|
|
257
|
+
* @param flowId FlowId from where session was created
|
|
258
|
+
* @param overrides Overrides to merge
|
|
259
|
+
* @param option Call options
|
|
260
|
+
* @returns Configured agent
|
|
261
|
+
*/
|
|
66
262
|
configureAgent(agentId: string, agentVersionId: string, executionId: string, flowId: string, overrides: Partial<Agent>, options?: CallOptions): Promise<Agent>;
|
|
67
263
|
createResponse(requestBody: OpenAI.Responses.ResponseCreateParamsNonStreaming & Record<string, unknown>): Promise<OpenAI.Responses.Response & {
|
|
68
264
|
_request_id?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../../src/Agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,IAAI,EAAY,MAAM,cAAc,CAAC;AAClE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAI5B,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAIjB,qBAAa,MAAO,SAAQ,IAAI;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,mBAAmB,CAAC,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA0B;gBAEjD,MAAM,EAAE,YAAY;YAsBlB,WAAW;IAmBzB,UAAU,CAAC,GAAG,EAAE,OA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,CAAC,cAAc,CAAC,EAC/B,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC;IAWpB;;;;;;OAMG;IACG,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC;IAUpB;;;;;;;;OAQG;IACG,mBAAmB,CACvB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;KACxB,EACD,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,EAAE,CAAC;IAWtB;;;;;;;;OAQG;IACG,gBAAgB,CACpB,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,EAAE,CAAC;KACvB;IASH;;;;;;;;OAQG;IACG,sBAAsB,CAC1B,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,EAAE,CAAC;KACvB;IASH;;;;;;;;;OASG;IACG,cAAc,CAClB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,EACzB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,KAAK,CAAC;IAcX,cAAc,CAClB,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,gCAAgC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;CAgB3F"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,83 +2,271 @@ import { List, OrderDirection, Token } from '@or-sdk/base';
|
|
|
2
2
|
import type { Bot } from '@or-sdk/bots';
|
|
3
3
|
import type { Flow } from '@or-sdk/deployer';
|
|
4
4
|
export declare enum ActivityKind {
|
|
5
|
+
/** An observation made by the agent. */
|
|
5
6
|
Observation = "OBSERVATION",
|
|
7
|
+
/** A thought process of the agent. */
|
|
6
8
|
Thought = "THOUGHT",
|
|
9
|
+
/** An action taken by the agent. */
|
|
7
10
|
Action = "ACTION"
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Represents an activity performed by the agent, such as an observation, thought, or action.
|
|
14
|
+
*/
|
|
9
15
|
export type AgentActivity = {
|
|
16
|
+
/**
|
|
17
|
+
* The input or content of the activity.
|
|
18
|
+
*/
|
|
10
19
|
input: string;
|
|
20
|
+
/**
|
|
21
|
+
* The kind of activity.
|
|
22
|
+
*/
|
|
11
23
|
kind: ActivityKind;
|
|
12
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Defines call options for asynchronous operations, including the ability to cancel them.
|
|
27
|
+
*/
|
|
13
28
|
export type CallOptions = {
|
|
29
|
+
/**
|
|
30
|
+
* An optional AbortSignal to cancel the request.
|
|
31
|
+
*/
|
|
14
32
|
signal?: AbortSignal;
|
|
15
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Configuration options required for initializing agents, including authentication and service URLs.
|
|
36
|
+
*/
|
|
16
37
|
export type AgentsConfig = {
|
|
38
|
+
/**
|
|
39
|
+
* Authentication token for service access.
|
|
40
|
+
*/
|
|
17
41
|
token: Token;
|
|
42
|
+
/**
|
|
43
|
+
* Optional URL for the OneReach service discovery API.
|
|
44
|
+
*/
|
|
18
45
|
discoveryUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional account ID for making cross-account requests. This is typically required for super admin users.
|
|
48
|
+
*/
|
|
19
49
|
accountId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional URL of the OneReach lookup API.
|
|
52
|
+
*/
|
|
20
53
|
serviceUrl?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Optional feature name for the agent. Defaults to 'master' if not provided.
|
|
56
|
+
*/
|
|
21
57
|
feature?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Flow SessionID (Used for correct tracking)
|
|
60
|
+
*/
|
|
22
61
|
sessionId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Flow beginningSessionId (Used for correct tracking)
|
|
64
|
+
*/
|
|
23
65
|
beginningSessionId?: string;
|
|
24
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Options for configuring the behavior and output of the agent's underlying language model.
|
|
69
|
+
*/
|
|
25
70
|
export type AgentModelOptions = {
|
|
71
|
+
/**
|
|
72
|
+
* Controls the randomness of the output. Higher values may lead to more creative responses.
|
|
73
|
+
*/
|
|
26
74
|
temperature: number;
|
|
75
|
+
/**
|
|
76
|
+
* The maximum length of the output generated by the language model.
|
|
77
|
+
*/
|
|
27
78
|
maxTokens: number;
|
|
79
|
+
/**
|
|
80
|
+
* Adjusts the likelihood of the model repeating the same line of thinking.
|
|
81
|
+
*/
|
|
28
82
|
frequencyPenalty: number;
|
|
83
|
+
/**
|
|
84
|
+
* Discourages the model from using tokens already present in the text.
|
|
85
|
+
*/
|
|
29
86
|
presencePenalty: number;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the name of the large language model to use.
|
|
89
|
+
*/
|
|
30
90
|
modelName: string;
|
|
91
|
+
/**
|
|
92
|
+
* Specifies the name of the provider to use for the agent.
|
|
93
|
+
*/
|
|
31
94
|
provider: string;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the name of the token to use for the agent.
|
|
97
|
+
*/
|
|
32
98
|
tokenName?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies the API type to use for the agent.
|
|
101
|
+
*/
|
|
33
102
|
apiType?: APIType;
|
|
103
|
+
/**
|
|
104
|
+
* Specifies the guardrail identifier to use for the agent.
|
|
105
|
+
*/
|
|
106
|
+
guardrailIdentifier?: string;
|
|
34
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes an example of how an agent action could be used, including a description and relevant activities.
|
|
110
|
+
*/
|
|
35
111
|
export type ActionExample = {
|
|
112
|
+
/**
|
|
113
|
+
* A brief description of what the example demonstrates.
|
|
114
|
+
*/
|
|
36
115
|
description: string;
|
|
116
|
+
/**
|
|
117
|
+
* A series of activities associated with the example.
|
|
118
|
+
*/
|
|
37
119
|
activities: AgentActivity[];
|
|
38
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* Defines an action that an agent can perform, including querying and mutation operations.
|
|
123
|
+
*/
|
|
39
124
|
export type AgentAction = {
|
|
125
|
+
/**
|
|
126
|
+
* The name of the action.
|
|
127
|
+
*/
|
|
40
128
|
name: string;
|
|
129
|
+
/**
|
|
130
|
+
* A detailed description of the action.
|
|
131
|
+
*/
|
|
41
132
|
description: string;
|
|
133
|
+
/**
|
|
134
|
+
* The type definitions associated with the action, described in a schema language.
|
|
135
|
+
*/
|
|
42
136
|
typeDefs: string;
|
|
43
137
|
typeDefsCodeMode?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Optional examples that illustrate how the action can be used.
|
|
140
|
+
*/
|
|
44
141
|
examples?: ActionExample[];
|
|
142
|
+
/**
|
|
143
|
+
* Allow to disable the action.
|
|
144
|
+
*/
|
|
45
145
|
disabled?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Json example of input and result of the action in JSON format
|
|
148
|
+
*/
|
|
46
149
|
outputExample: {
|
|
47
150
|
result: Record<string, unknown>;
|
|
48
151
|
input: Record<string, unknown>;
|
|
49
152
|
};
|
|
50
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* Represents a digital agent capable of performing actions and processing information based on a given model.
|
|
156
|
+
*/
|
|
51
157
|
export type Agent = {
|
|
158
|
+
/**
|
|
159
|
+
* Unique identifier for the agent.
|
|
160
|
+
*/
|
|
52
161
|
id: string;
|
|
162
|
+
/**
|
|
163
|
+
* The account ID associated with the agent.
|
|
164
|
+
*/
|
|
53
165
|
accountId: string;
|
|
166
|
+
/**
|
|
167
|
+
* The name of the agent, which must start with a capital letter.
|
|
168
|
+
*/
|
|
54
169
|
name: string;
|
|
170
|
+
/**
|
|
171
|
+
* Optional description of the agent's purpose and capabilities.
|
|
172
|
+
*/
|
|
55
173
|
description: string;
|
|
174
|
+
/**
|
|
175
|
+
* URL to an image representing the agent.
|
|
176
|
+
*/
|
|
56
177
|
image: string;
|
|
178
|
+
/**
|
|
179
|
+
* Optional metadata associated with the agent.
|
|
180
|
+
*/
|
|
57
181
|
meta?: Record<string, unknown>;
|
|
182
|
+
/**
|
|
183
|
+
* A list of actions the agent is capable of performing.
|
|
184
|
+
*/
|
|
58
185
|
actions: AgentAction[];
|
|
186
|
+
/**
|
|
187
|
+
* The readonly definitions associated with the all the actions, described in a schema language.
|
|
188
|
+
*/
|
|
59
189
|
typeDefs: string;
|
|
190
|
+
/**
|
|
191
|
+
* A description of the objective or goal the agent is designed to achieve.
|
|
192
|
+
*/
|
|
60
193
|
objective: string;
|
|
194
|
+
/**
|
|
195
|
+
* Configuration options for the agent's model, affecting performance and output.
|
|
196
|
+
*/
|
|
61
197
|
model: AgentModelOptions;
|
|
198
|
+
/**
|
|
199
|
+
* The date and time when the agent was created.
|
|
200
|
+
*/
|
|
62
201
|
createdAt: string | Date;
|
|
202
|
+
/**
|
|
203
|
+
* The date and time when the agent was last updated.
|
|
204
|
+
*/
|
|
63
205
|
updatedAt: string | Date;
|
|
206
|
+
/**
|
|
207
|
+
* A starter history of historical interactions or activities for the agent, which can influence its behavior.
|
|
208
|
+
*/
|
|
64
209
|
starterHistory: AgentActivity[];
|
|
210
|
+
/**
|
|
211
|
+
* Knowledge lookup collections
|
|
212
|
+
*/
|
|
65
213
|
collections?: {
|
|
66
214
|
id: string;
|
|
67
215
|
name: string;
|
|
68
216
|
}[];
|
|
217
|
+
/**
|
|
218
|
+
* Allow to use web search
|
|
219
|
+
*/
|
|
69
220
|
webSearch?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Scenario Graph source
|
|
223
|
+
*/
|
|
70
224
|
scenarioGraphSource: ScenarioGraph;
|
|
225
|
+
/**
|
|
226
|
+
* Scenario Graph code in GraphViz
|
|
227
|
+
*/
|
|
71
228
|
scenarioGraphCode: string;
|
|
229
|
+
/**
|
|
230
|
+
* Agent's memory definitions
|
|
231
|
+
*/
|
|
72
232
|
memoryDefs: string;
|
|
73
233
|
memoryCodeMode: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Agent's memory example in JSON format, generated from memoryDefs
|
|
236
|
+
*/
|
|
74
237
|
memoryExample: Record<string, unknown>;
|
|
238
|
+
/**
|
|
239
|
+
* Agent version's release notes
|
|
240
|
+
*/
|
|
75
241
|
releaseNotes?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Agent version's release date
|
|
244
|
+
*/
|
|
76
245
|
releasedAt?: string | Date;
|
|
246
|
+
/**
|
|
247
|
+
* Agent version's date of creation
|
|
248
|
+
*/
|
|
77
249
|
versionCreatedAt: string | Date;
|
|
250
|
+
/**
|
|
251
|
+
* Agent version's ID
|
|
252
|
+
*/
|
|
78
253
|
versionId: string;
|
|
254
|
+
/**
|
|
255
|
+
* Agent version's label
|
|
256
|
+
*/
|
|
79
257
|
versionLabel: string;
|
|
258
|
+
/**
|
|
259
|
+
* Agent version's date of update
|
|
260
|
+
*/
|
|
80
261
|
versionUpdatedAt: string | Date;
|
|
262
|
+
/**
|
|
263
|
+
* List of available agent versions meta info
|
|
264
|
+
*/
|
|
81
265
|
versions: VersionMeta[];
|
|
266
|
+
/**
|
|
267
|
+
* Collaboration agents
|
|
268
|
+
* version ID is optional for use the latest development version
|
|
269
|
+
*/
|
|
82
270
|
collaborationAgents: {
|
|
83
271
|
id: string;
|
|
84
272
|
name: string;
|
|
@@ -86,82 +274,244 @@ export type Agent = {
|
|
|
86
274
|
flowId?: string;
|
|
87
275
|
disabled: boolean;
|
|
88
276
|
}[];
|
|
277
|
+
/**
|
|
278
|
+
* Collaboration definitions
|
|
279
|
+
*/
|
|
89
280
|
collaborationDefs: string;
|
|
281
|
+
/**
|
|
282
|
+
* Collaboration example in JSON format, generated from collaborationDefs
|
|
283
|
+
*/
|
|
90
284
|
collaborationExample: {
|
|
91
285
|
result: Record<string, unknown>;
|
|
92
286
|
input: Record<string, unknown>;
|
|
93
287
|
};
|
|
288
|
+
/**
|
|
289
|
+
* The maximum number of iterations the agent can perform.
|
|
290
|
+
*/
|
|
94
291
|
maxIterations?: number;
|
|
292
|
+
/**
|
|
293
|
+
* The maximum number of retries for actions.
|
|
294
|
+
*/
|
|
95
295
|
maxRetries?: number;
|
|
296
|
+
/**
|
|
297
|
+
* The maximum number of activities present in LLM prompt.
|
|
298
|
+
*/
|
|
96
299
|
historyLength?: number;
|
|
97
300
|
};
|
|
98
301
|
export type VersionMeta = {
|
|
302
|
+
/**
|
|
303
|
+
* Agent version's release date
|
|
304
|
+
*/
|
|
99
305
|
releasedAt?: string | Date;
|
|
306
|
+
/**
|
|
307
|
+
* Agent version's release notes
|
|
308
|
+
*/
|
|
100
309
|
releaseNotes?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Agent version's date of update
|
|
312
|
+
*/
|
|
101
313
|
updatedBy: string;
|
|
314
|
+
/**
|
|
315
|
+
* Agent version's ID
|
|
316
|
+
*/
|
|
102
317
|
versionId: string;
|
|
318
|
+
/**
|
|
319
|
+
* Agent version's label
|
|
320
|
+
*/
|
|
103
321
|
versionLabel: string;
|
|
322
|
+
/**
|
|
323
|
+
* Agent version's date of update
|
|
324
|
+
*/
|
|
104
325
|
versionUpdatedAt: string | Date;
|
|
105
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* Defines the properties that can be modified when updating an existing agent.
|
|
329
|
+
*/
|
|
106
330
|
export type UpdateAgent = Partial<Omit<Agent, 'id' | 'createdAt' | 'updatedAt' | 'accountId' | 'typeDefs'>>;
|
|
331
|
+
/**
|
|
332
|
+
* Defines the properties required to create a new agent, excluding those automatically assigned upon creation.
|
|
333
|
+
*/
|
|
107
334
|
export type CreateAgent = Pick<Agent, 'name'> & UpdateAgent;
|
|
335
|
+
/**
|
|
336
|
+
* Options for querying the list of agents, including search parameters and pagination controls.
|
|
337
|
+
*/
|
|
108
338
|
export type FindAgentsOptions = {
|
|
339
|
+
/**
|
|
340
|
+
* Pagination offset for retrieving a subset of agents.
|
|
341
|
+
*/
|
|
109
342
|
from?: number;
|
|
343
|
+
/**
|
|
344
|
+
* Maximum number of agents to retrieve per page.
|
|
345
|
+
*/
|
|
110
346
|
size?: number;
|
|
347
|
+
/**
|
|
348
|
+
* Text query for searching agents by name, description, or other attributes.
|
|
349
|
+
*/
|
|
111
350
|
query?: string | {
|
|
112
351
|
meta: Record<string, unknown>;
|
|
113
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
* The property name by which to order the results.
|
|
355
|
+
*/
|
|
114
356
|
orderProperty?: string;
|
|
357
|
+
/**
|
|
358
|
+
* The direction in which to order the results, either ascending or descending.
|
|
359
|
+
*/
|
|
115
360
|
orderDirection?: OrderDirection;
|
|
116
361
|
};
|
|
362
|
+
/**
|
|
363
|
+
* Represents a list of executions, including metadata for pagination and record retrieval.
|
|
364
|
+
*/
|
|
117
365
|
export type ExecutionList = List<{
|
|
366
|
+
/**
|
|
367
|
+
* Unique identifier for the agent execution.
|
|
368
|
+
*/
|
|
118
369
|
id: string;
|
|
370
|
+
/**
|
|
371
|
+
* Summary from first user message
|
|
372
|
+
*/
|
|
119
373
|
summary?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Flow ID
|
|
376
|
+
*/
|
|
120
377
|
flowId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Agent ID
|
|
380
|
+
*/
|
|
121
381
|
agentId: string;
|
|
382
|
+
/**
|
|
383
|
+
* Used completion tokens
|
|
384
|
+
*/
|
|
122
385
|
totalCompletionTokens: number;
|
|
386
|
+
/**
|
|
387
|
+
* Used prompt tokens
|
|
388
|
+
*/
|
|
123
389
|
totalPromptTokens: number;
|
|
390
|
+
/**
|
|
391
|
+
* Created date
|
|
392
|
+
*/
|
|
124
393
|
createdAt: string;
|
|
394
|
+
/**
|
|
395
|
+
* Updated date
|
|
396
|
+
*/
|
|
125
397
|
updatedAt: string;
|
|
126
398
|
}>;
|
|
127
399
|
export type Execution = {
|
|
128
400
|
history: (AgentActivity & {
|
|
401
|
+
/**
|
|
402
|
+
* Sequence number of the activity in the execution.
|
|
403
|
+
*/
|
|
129
404
|
id?: number;
|
|
405
|
+
/**
|
|
406
|
+
* Created date
|
|
407
|
+
*/
|
|
130
408
|
createdAt: string;
|
|
409
|
+
/**
|
|
410
|
+
* Updated date
|
|
411
|
+
*/
|
|
131
412
|
updatedAt: string;
|
|
413
|
+
/**
|
|
414
|
+
* Agent overrides
|
|
415
|
+
*/
|
|
132
416
|
overrides: Partial<Agent> & {
|
|
133
417
|
memory: Record<string, unknown>;
|
|
134
418
|
task: Record<string, unknown>;
|
|
135
419
|
};
|
|
420
|
+
/**
|
|
421
|
+
* Model params
|
|
422
|
+
*/
|
|
136
423
|
model: Partial<AgentModelOptions>;
|
|
137
424
|
})[];
|
|
425
|
+
/**
|
|
426
|
+
* Used completion tokens
|
|
427
|
+
*/
|
|
138
428
|
totalCompletionTokens: number;
|
|
429
|
+
/**
|
|
430
|
+
* Used prompt tokens
|
|
431
|
+
*/
|
|
139
432
|
totalPromptTokens: number;
|
|
433
|
+
/**
|
|
434
|
+
* Flow ID
|
|
435
|
+
*/
|
|
140
436
|
flowId?: string;
|
|
141
437
|
};
|
|
438
|
+
/**
|
|
439
|
+
* Parameters for running an agent, including optional agent properties and execution context.
|
|
440
|
+
*/
|
|
142
441
|
export type RunAgentParams = Partial<Agent> & {
|
|
442
|
+
/**
|
|
443
|
+
* A list of activities or events that have occurred prior to running the agent, influencing its behavior.
|
|
444
|
+
*/
|
|
143
445
|
history: AgentActivity[];
|
|
446
|
+
/**
|
|
447
|
+
* Optional identifier for the event triggering the agent execution.
|
|
448
|
+
*/
|
|
144
449
|
eventId?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Optional objective or goal for the agent to achieve during execution.
|
|
452
|
+
*/
|
|
145
453
|
objective?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Optional version ID of the agent to run.
|
|
456
|
+
*/
|
|
146
457
|
versionId?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Optional context for the agent execution.
|
|
460
|
+
*/
|
|
147
461
|
memory?: Record<string, unknown>;
|
|
462
|
+
/**
|
|
463
|
+
* Optional context for collaboration.
|
|
464
|
+
*/
|
|
148
465
|
task?: Record<string, unknown>;
|
|
149
466
|
};
|
|
467
|
+
/**
|
|
468
|
+
* Response from running an agent, including execution results and metadata.
|
|
469
|
+
*/
|
|
150
470
|
export type RunAgentResponse = {
|
|
471
|
+
/**
|
|
472
|
+
* Results of the agent execution, organized by action name and containing input data.
|
|
473
|
+
*/
|
|
151
474
|
results: {
|
|
475
|
+
/**
|
|
476
|
+
* Data generated by the agent execution, keyed by action name.
|
|
477
|
+
*/
|
|
152
478
|
data: {
|
|
153
479
|
[actionName: string]: {
|
|
480
|
+
/**
|
|
481
|
+
* Name of the action performed by the agent.
|
|
482
|
+
*/
|
|
154
483
|
action: string;
|
|
484
|
+
/**
|
|
485
|
+
* Input data provided to the agent for the action.
|
|
486
|
+
*/
|
|
155
487
|
input: object;
|
|
156
488
|
};
|
|
157
489
|
};
|
|
158
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* Unique identifier for the agent execution.
|
|
493
|
+
*/
|
|
159
494
|
executionId: string;
|
|
495
|
+
/**
|
|
496
|
+
* Optional identifier for the event triggering the agent execution.
|
|
497
|
+
*/
|
|
160
498
|
eventId?: string;
|
|
499
|
+
/**
|
|
500
|
+
* All history of run agent during execution
|
|
501
|
+
**/
|
|
161
502
|
history: Execution['history'];
|
|
162
503
|
};
|
|
504
|
+
/**
|
|
505
|
+
* Defines the type of API to use for agent interactions.
|
|
506
|
+
*/
|
|
163
507
|
export declare enum APIType {
|
|
508
|
+
/**
|
|
509
|
+
* Use the Responses API.
|
|
510
|
+
*/
|
|
164
511
|
Responses = "Responses",
|
|
512
|
+
/**
|
|
513
|
+
* Use the ChatCompletion API.
|
|
514
|
+
*/
|
|
165
515
|
ChatCompletion = "ChatCompletion"
|
|
166
516
|
}
|
|
167
517
|
export declare enum TemplateTypeEnum {
|
|
@@ -220,6 +570,9 @@ export type CreateTemplateParams = {
|
|
|
220
570
|
}[];
|
|
221
571
|
type?: TemplateTypeEnum;
|
|
222
572
|
};
|
|
573
|
+
/**
|
|
574
|
+
* Represents a node in a scenario graph.
|
|
575
|
+
*/
|
|
223
576
|
export type Node = {
|
|
224
577
|
id: string;
|
|
225
578
|
label: string;
|
|
@@ -235,6 +588,9 @@ export type Node = {
|
|
|
235
588
|
y: number;
|
|
236
589
|
};
|
|
237
590
|
};
|
|
591
|
+
/**
|
|
592
|
+
* Represents a connection between two nodes in a scenario graph.
|
|
593
|
+
*/
|
|
238
594
|
export type Connection = {
|
|
239
595
|
id: string;
|
|
240
596
|
source: string;
|
|
@@ -242,40 +598,110 @@ export type Connection = {
|
|
|
242
598
|
target: string;
|
|
243
599
|
targetInput: string;
|
|
244
600
|
};
|
|
601
|
+
/**
|
|
602
|
+
* Represents a scenario graph, consisting of nodes and connections.
|
|
603
|
+
*/
|
|
245
604
|
export type ScenarioGraph = {
|
|
246
605
|
nodes?: Node[];
|
|
247
606
|
connections?: Connection[];
|
|
248
607
|
};
|
|
608
|
+
/**
|
|
609
|
+
* Represents required meta information for the version to be released
|
|
610
|
+
*/
|
|
249
611
|
export type ReleaseVersion = {
|
|
612
|
+
/**
|
|
613
|
+
* Released version label
|
|
614
|
+
*/
|
|
250
615
|
label: string;
|
|
616
|
+
/**
|
|
617
|
+
* Release notes
|
|
618
|
+
*/
|
|
251
619
|
notes: string;
|
|
252
620
|
};
|
|
253
621
|
export type GetAgentParams = {
|
|
622
|
+
/**
|
|
623
|
+
* Id of agent version, if absent, development version will be used.
|
|
624
|
+
*/
|
|
254
625
|
versionId?: string;
|
|
626
|
+
/**
|
|
627
|
+
* Available accounts to switch to if agent is found there
|
|
628
|
+
*/
|
|
255
629
|
availableAccounts?: string[];
|
|
256
630
|
};
|
|
257
631
|
export type AgentVersion = {
|
|
632
|
+
/**
|
|
633
|
+
* Agent version's ID
|
|
634
|
+
*/
|
|
258
635
|
versionId: string;
|
|
636
|
+
/**
|
|
637
|
+
* Agent version's release date
|
|
638
|
+
*/
|
|
259
639
|
releasedAt: string | null;
|
|
640
|
+
/**
|
|
641
|
+
* Agent version's label
|
|
642
|
+
*/
|
|
260
643
|
versionLabel: string;
|
|
644
|
+
/**
|
|
645
|
+
* Release notes for the agent version
|
|
646
|
+
*/
|
|
261
647
|
releaseNotes: string;
|
|
648
|
+
/**
|
|
649
|
+
* Agent version's date of creation
|
|
650
|
+
*/
|
|
262
651
|
versionUpdatedAt: string;
|
|
652
|
+
/**
|
|
653
|
+
* Updated by user
|
|
654
|
+
*/
|
|
263
655
|
updatedBy: string | null;
|
|
264
656
|
};
|
|
265
657
|
export type TestCase = {
|
|
658
|
+
/**
|
|
659
|
+
* Unique identifier for the test case.
|
|
660
|
+
*/
|
|
266
661
|
id: string;
|
|
662
|
+
/**
|
|
663
|
+
* Created date
|
|
664
|
+
*/
|
|
267
665
|
updatedAt?: Date;
|
|
666
|
+
/**
|
|
667
|
+
* Updated date
|
|
668
|
+
*/
|
|
268
669
|
createdAt?: Date;
|
|
670
|
+
/**
|
|
671
|
+
* The ID of the agent associated with the test case.
|
|
672
|
+
*/
|
|
269
673
|
agentId: string;
|
|
674
|
+
/**
|
|
675
|
+
* The ID of the agent version associated with the test case.
|
|
676
|
+
*/
|
|
270
677
|
agentVersionId: string;
|
|
678
|
+
/**
|
|
679
|
+
* estimated history example
|
|
680
|
+
*/
|
|
271
681
|
steps: AgentActivity[];
|
|
682
|
+
/**
|
|
683
|
+
* short summary of the test case
|
|
684
|
+
*/
|
|
272
685
|
summary: string;
|
|
686
|
+
/**
|
|
687
|
+
* detailed description of the test case
|
|
688
|
+
*/
|
|
273
689
|
description: string;
|
|
690
|
+
/**
|
|
691
|
+
* number of retries for the test case
|
|
692
|
+
*/
|
|
274
693
|
retries: number;
|
|
694
|
+
/**
|
|
695
|
+
* context for the test case
|
|
696
|
+
* this context will be used to run the test case
|
|
697
|
+
*/
|
|
275
698
|
context?: {
|
|
276
699
|
memory?: Record<string, unknown>;
|
|
277
700
|
task?: Record<string, unknown>;
|
|
278
701
|
};
|
|
702
|
+
/**
|
|
703
|
+
* The expected output of the test case.
|
|
704
|
+
*/
|
|
279
705
|
testResults?: TestResult[];
|
|
280
706
|
};
|
|
281
707
|
export type CreateTestCase = Omit<TestCase, 'id' | 'createdAt' | 'updatedAt' | 'testResults'>;
|
|
@@ -290,13 +716,41 @@ export declare enum TestResultVerdict {
|
|
|
290
716
|
TERMINATED = "TERMINATED"
|
|
291
717
|
}
|
|
292
718
|
export type TestResult = {
|
|
719
|
+
/**
|
|
720
|
+
* Unique identifier for the test result.
|
|
721
|
+
*/
|
|
293
722
|
id: string;
|
|
723
|
+
/**
|
|
724
|
+
* The ID of the test case associated with the test result.
|
|
725
|
+
*/
|
|
294
726
|
testCaseId: string;
|
|
727
|
+
/**
|
|
728
|
+
* Created date
|
|
729
|
+
*/
|
|
295
730
|
updatedAt?: Date;
|
|
731
|
+
/**
|
|
732
|
+
* Updated date
|
|
733
|
+
*/
|
|
296
734
|
createdAt?: Date;
|
|
735
|
+
/**
|
|
736
|
+
* execution ID of the test case
|
|
737
|
+
*/
|
|
297
738
|
executionId?: string;
|
|
739
|
+
/**
|
|
740
|
+
* Current status of the test result.
|
|
741
|
+
* Possible values include 'PENDING', 'PASSED', and 'FAILED'.
|
|
742
|
+
* 'PENDING' indicates that the test case is still running.
|
|
743
|
+
* 'PASSED' indicates that the test case has passed successfully.
|
|
744
|
+
* 'FAILED' indicates that the test case has failed.
|
|
745
|
+
*/
|
|
298
746
|
status: TestResultVerdict;
|
|
747
|
+
/**
|
|
748
|
+
* Prompt that will be used for agent improvements based on testing results.
|
|
749
|
+
*/
|
|
299
750
|
improvePrompt?: string;
|
|
751
|
+
/**
|
|
752
|
+
* The expected output of the test case.
|
|
753
|
+
*/
|
|
300
754
|
result?: {
|
|
301
755
|
executions: {
|
|
302
756
|
executionId: string;
|
|
@@ -314,6 +768,9 @@ export type TestResult = {
|
|
|
314
768
|
overallVerdict: TestResultVerdict;
|
|
315
769
|
overallScore: number;
|
|
316
770
|
};
|
|
771
|
+
/**
|
|
772
|
+
* The actual output of the test case.
|
|
773
|
+
*/
|
|
317
774
|
error?: Record<string, unknown>;
|
|
318
775
|
};
|
|
319
776
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,CAAC,OAAO,MAAM,YAAY;IAE9B,WAAW,gBAAgB;IAE3B,OAAO,YAAY;IAEnB,MAAM,WAAW;CAClB;AAKD,MAAM,MAAM,aAAa,GAAG;IAI1B,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,YAAY,CAAC;CACpB,CAAA;AAKD,MAAM,MAAM,WAAW,GAAG;IAIxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG;IAIzB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAKF,MAAM,MAAM,iBAAiB,GAAG;IAI9B,WAAW,EAAE,MAAM,CAAC;IAKpB,SAAS,EAAE,MAAM,CAAC;IAKlB,gBAAgB,EAAE,MAAM,CAAC;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IAAI,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE;QAMP,UAAU,EAAE;YACV,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,KAAK,EAAE;gBACL,kBAAkB,EAAE,MAAM,CAAC;gBAC3B,OAAO,EAAE,iBAAiB,CAAC;gBAC3B,SAAS,EAAE,MAAM,CAAC;gBAClB,KAAK,EAAE,MAAM,CAAC;aACf,EAAE,CAAC;YAIJ,cAAc,EAAE,iBAAiB,CAAC;YAClC,YAAY,EAAE,MAAM,CAAC;YACrB,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB,EAAE,CAAC;QAMJ,cAAc,EAAE,iBAAiB,CAAC;QAClC,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/agents",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.0-beta.4066.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -36,6 +36,5 @@
|
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
|
-
}
|
|
40
|
-
"gitHead": "1edcec2e869951d88f8741c5bd004a001997b8b9"
|
|
39
|
+
}
|
|
41
40
|
}
|
package/src/types.ts
CHANGED
|
@@ -120,6 +120,11 @@ export type AgentModelOptions = {
|
|
|
120
120
|
* Specifies the API type to use for the agent.
|
|
121
121
|
*/
|
|
122
122
|
apiType?: APIType;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Specifies the guardrail identifier to use for the agent.
|
|
126
|
+
*/
|
|
127
|
+
guardrailIdentifier?: string;
|
|
123
128
|
};
|
|
124
129
|
|
|
125
130
|
/**
|