@mongodb-js/agent-engine-sdk 0.11.3
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/LICENSE.md +201 -0
- package/README.md +20 -0
- package/dist/api/events.d.ts +39 -0
- package/dist/api/events.d.ts.map +1 -0
- package/dist/api/events.js +9 -0
- package/dist/api/v1/memory.d.ts +257 -0
- package/dist/api/v1/memory.d.ts.map +1 -0
- package/dist/api/v1/memory.js +219 -0
- package/dist/app.d.ts +27 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +19 -0
- package/dist/clients/events.d.ts +11 -0
- package/dist/clients/events.d.ts.map +1 -0
- package/dist/clients/events.js +67 -0
- package/dist/clients/memory.d.ts +358 -0
- package/dist/clients/memory.d.ts.map +1 -0
- package/dist/clients/memory.js +658 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/interfaces.d.ts +111 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/interfaces.js +22 -0
- package/dist/models.d.ts +593 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +588 -0
- package/package.json +50 -0
package/dist/models.d.ts
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
/** Framework-neutral types and models for the Atlas Agent Engine SDK. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
4
|
+
[key: string]: JsonValue;
|
|
5
|
+
};
|
|
6
|
+
/** Runtime schema for the recursive `JsonValue` type. */
|
|
7
|
+
export declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
8
|
+
export type Role = "user" | "assistant" | "tool" | "system";
|
|
9
|
+
/** Text content block. */
|
|
10
|
+
export declare const TextBlockSchema: z.ZodObject<{
|
|
11
|
+
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
12
|
+
text: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type TextBlock = z.infer<typeof TextBlockSchema>;
|
|
15
|
+
/** Image content block. */
|
|
16
|
+
export declare const ImageBlockSchema: z.ZodObject<{
|
|
17
|
+
type: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type ImageBlock = z.infer<typeof ImageBlockSchema>;
|
|
22
|
+
/** Document/file content block. */
|
|
23
|
+
export declare const DocumentBlockSchema: z.ZodObject<{
|
|
24
|
+
type: z.ZodDefault<z.ZodLiteral<"document">>;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
27
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type DocumentBlock = z.infer<typeof DocumentBlockSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* Discriminated on `type` so a document block is never misparsed as an image
|
|
32
|
+
* (a plain union would match `{ url }` against `ImageBlockSchema` first and
|
|
33
|
+
* silently drop `filename`). Inputs must carry an explicit `type`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const AnyContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
type: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodDefault<z.ZodLiteral<"document">>;
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
46
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>], "type">;
|
|
48
|
+
export type AnyContentBlock = z.infer<typeof AnyContentBlockSchema>;
|
|
49
|
+
/** Framework-neutral tool definition. */
|
|
50
|
+
export declare const ToolDefinitionSchema: z.ZodObject<{
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
description: z.ZodString;
|
|
53
|
+
args_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
54
|
+
callable: z.ZodCustom<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>;
|
|
55
|
+
remote: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
provider_type: z.ZodOptional<z.ZodString>;
|
|
57
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
58
|
+
network: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
redact_fields: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type ToolDefinition = z.infer<typeof ToolDefinitionSchema>;
|
|
63
|
+
export type ToolDefinitionInput = z.input<typeof ToolDefinitionSchema>;
|
|
64
|
+
/** Constructs a ToolDefinition, applying Python-parity defaults (remote=true, network=[], timeout_seconds=30, redact_fields=[]). */
|
|
65
|
+
export declare function createToolDefinition(input: ToolDefinitionInput): ToolDefinition;
|
|
66
|
+
/** Typed token-usage metadata for LLM calls. */
|
|
67
|
+
export declare class LLMTokenUsage {
|
|
68
|
+
readonly inputTokens?: number;
|
|
69
|
+
readonly outputTokens?: number;
|
|
70
|
+
readonly promptTokens?: number;
|
|
71
|
+
readonly completionTokens?: number;
|
|
72
|
+
totalTokens?: number;
|
|
73
|
+
readonly model?: string;
|
|
74
|
+
constructor(data: {
|
|
75
|
+
input_tokens?: number;
|
|
76
|
+
output_tokens?: number;
|
|
77
|
+
prompt_tokens?: number;
|
|
78
|
+
completion_tokens?: number;
|
|
79
|
+
total_tokens?: number;
|
|
80
|
+
model?: string;
|
|
81
|
+
});
|
|
82
|
+
/** Serializes to snake_case wire format so JSON.stringify round-trips through LLMTokenUsageSchema. */
|
|
83
|
+
toJSON(): Record<string, unknown>;
|
|
84
|
+
/** Returns LangChain's expected usage-metadata keys. */
|
|
85
|
+
toLangchainUsageMetadata(): {
|
|
86
|
+
input_tokens: number;
|
|
87
|
+
output_tokens: number;
|
|
88
|
+
total_tokens: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** Runtime validation schema for LLMTokenUsage wire data. All fields optional, matching the class constructor. */
|
|
92
|
+
export declare const LLMTokenUsageSchema: z.ZodPreprocess<z.ZodPipe<z.ZodObject<{
|
|
93
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
model: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>, z.ZodTransform<LLMTokenUsage, {
|
|
100
|
+
input_tokens?: number | undefined;
|
|
101
|
+
output_tokens?: number | undefined;
|
|
102
|
+
prompt_tokens?: number | undefined;
|
|
103
|
+
completion_tokens?: number | undefined;
|
|
104
|
+
total_tokens?: number | undefined;
|
|
105
|
+
model?: string | undefined;
|
|
106
|
+
}>>>;
|
|
107
|
+
/** Typed final tool call requested by an LLM. */
|
|
108
|
+
export declare class LLMToolCall {
|
|
109
|
+
readonly id?: string;
|
|
110
|
+
readonly name?: string;
|
|
111
|
+
readonly args?: JsonValue;
|
|
112
|
+
readonly type?: string;
|
|
113
|
+
readonly index?: number;
|
|
114
|
+
constructor(data: {
|
|
115
|
+
id?: string;
|
|
116
|
+
name?: string;
|
|
117
|
+
args?: JsonValue;
|
|
118
|
+
arguments?: JsonValue;
|
|
119
|
+
type?: string;
|
|
120
|
+
index?: number;
|
|
121
|
+
});
|
|
122
|
+
/** Returns a LangChain-compatible tool-call dict (excludes index). */
|
|
123
|
+
toLangchainDict(): Record<string, JsonValue>;
|
|
124
|
+
}
|
|
125
|
+
/** Runtime validation schema for LLMToolCall wire data. */
|
|
126
|
+
export declare const LLMToolCallSchema: z.ZodPipe<z.ZodObject<{
|
|
127
|
+
id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
name: z.ZodOptional<z.ZodString>;
|
|
129
|
+
args: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
130
|
+
arguments: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
131
|
+
type: z.ZodOptional<z.ZodString>;
|
|
132
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
}, z.core.$strip>, z.ZodTransform<LLMToolCall, {
|
|
134
|
+
id?: string | undefined;
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
args?: JsonValue | undefined;
|
|
137
|
+
arguments?: JsonValue | undefined;
|
|
138
|
+
type?: string | undefined;
|
|
139
|
+
index?: number | undefined;
|
|
140
|
+
}>>;
|
|
141
|
+
/** Serializable bound-tool schema forwarded with an LLM call. */
|
|
142
|
+
export declare class LLMToolSchema {
|
|
143
|
+
readonly name?: string;
|
|
144
|
+
readonly description?: string;
|
|
145
|
+
readonly parameters?: JsonValue;
|
|
146
|
+
readonly type?: string;
|
|
147
|
+
readonly strict?: boolean;
|
|
148
|
+
readonly function?: JsonValue;
|
|
149
|
+
constructor(data: {
|
|
150
|
+
name?: string;
|
|
151
|
+
description?: string;
|
|
152
|
+
parameters?: JsonValue;
|
|
153
|
+
type?: string;
|
|
154
|
+
strict?: boolean;
|
|
155
|
+
function?: JsonValue;
|
|
156
|
+
});
|
|
157
|
+
/** Returns the schema in the shape LangChain bind_tools expects. */
|
|
158
|
+
toLangchainDict(): Record<string, JsonValue>;
|
|
159
|
+
}
|
|
160
|
+
/** Runtime validation schema for LLMToolSchema wire data. */
|
|
161
|
+
export declare const LLMToolSchemaValidator: z.ZodPipe<z.ZodObject<{
|
|
162
|
+
name: z.ZodOptional<z.ZodString>;
|
|
163
|
+
description: z.ZodOptional<z.ZodString>;
|
|
164
|
+
parameters: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
165
|
+
type: z.ZodOptional<z.ZodString>;
|
|
166
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
function: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
168
|
+
}, z.core.$strip>, z.ZodTransform<LLMToolSchema, {
|
|
169
|
+
name?: string | undefined;
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
parameters?: JsonValue | undefined;
|
|
172
|
+
type?: string | undefined;
|
|
173
|
+
strict?: boolean | undefined;
|
|
174
|
+
function?: JsonValue | undefined;
|
|
175
|
+
}>>;
|
|
176
|
+
/** Explicit provider/model options passed with an LLM invocation. */
|
|
177
|
+
export declare class LLMInvocationOptions {
|
|
178
|
+
readonly maxTokens?: number;
|
|
179
|
+
readonly responseFormat?: JsonValue;
|
|
180
|
+
readonly topP?: number;
|
|
181
|
+
readonly topK?: number;
|
|
182
|
+
readonly frequencyPenalty?: number;
|
|
183
|
+
readonly presencePenalty?: number;
|
|
184
|
+
readonly seed?: number;
|
|
185
|
+
readonly timeout?: number;
|
|
186
|
+
readonly parallelToolCalls?: boolean;
|
|
187
|
+
readonly reasoningEffort?: string;
|
|
188
|
+
/** Provider-specific kwargs not in the standard field set (e.g. temperature). Mirrors Python's extra="allow". */
|
|
189
|
+
readonly extras: Record<string, unknown>;
|
|
190
|
+
constructor(data: {
|
|
191
|
+
max_tokens?: number;
|
|
192
|
+
response_format?: JsonValue;
|
|
193
|
+
top_p?: number;
|
|
194
|
+
top_k?: number;
|
|
195
|
+
frequency_penalty?: number;
|
|
196
|
+
presence_penalty?: number;
|
|
197
|
+
seed?: number;
|
|
198
|
+
timeout?: number;
|
|
199
|
+
parallel_tool_calls?: boolean;
|
|
200
|
+
reasoning_effort?: string;
|
|
201
|
+
[key: string]: unknown;
|
|
202
|
+
});
|
|
203
|
+
/** Serializes to snake_case wire format so JSON.stringify round-trips through LLMInvocationOptionsSchema. */
|
|
204
|
+
toJSON(): Record<string, unknown>;
|
|
205
|
+
/** Converts to kwargs for underlying model invocation. Mirrors Python's model_dump(exclude_none=True) with extra="allow". */
|
|
206
|
+
toModelKwargs(): Record<string, unknown>;
|
|
207
|
+
}
|
|
208
|
+
/** Runtime validation schema for LLMInvocationOptions wire data. */
|
|
209
|
+
export declare const LLMInvocationOptionsSchema: z.ZodPreprocess<z.ZodPipe<z.ZodObject<{
|
|
210
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
response_format: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
212
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
top_k: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
reasoning_effort: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$loose>, z.ZodTransform<LLMInvocationOptions, {
|
|
221
|
+
[x: string]: unknown;
|
|
222
|
+
max_tokens?: number | undefined;
|
|
223
|
+
response_format?: JsonValue | undefined;
|
|
224
|
+
top_p?: number | undefined;
|
|
225
|
+
top_k?: number | undefined;
|
|
226
|
+
frequency_penalty?: number | undefined;
|
|
227
|
+
presence_penalty?: number | undefined;
|
|
228
|
+
seed?: number | undefined;
|
|
229
|
+
timeout?: number | undefined;
|
|
230
|
+
parallel_tool_calls?: boolean | undefined;
|
|
231
|
+
reasoning_effort?: string | undefined;
|
|
232
|
+
}>>>;
|
|
233
|
+
/**
|
|
234
|
+
* Framework-neutral message.
|
|
235
|
+
*
|
|
236
|
+
* Content can be a simple string for text-only messages, or a list of
|
|
237
|
+
* content blocks for multimodal content (images, documents, etc.).
|
|
238
|
+
*/
|
|
239
|
+
export interface Message {
|
|
240
|
+
role: Role;
|
|
241
|
+
content: string | AnyContentBlock[];
|
|
242
|
+
toolCalls?: LLMToolCall[];
|
|
243
|
+
toolCallId?: string;
|
|
244
|
+
isError?: boolean;
|
|
245
|
+
name?: string;
|
|
246
|
+
id?: string;
|
|
247
|
+
additionalKwargs?: Record<string, JsonValue>;
|
|
248
|
+
responseMetadata?: Record<string, JsonValue>;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Runtime validation schema for Message wire data. Parses snake_case wire
|
|
252
|
+
* fields and transforms them to the camelCase Message interface shape,
|
|
253
|
+
* matching how LLMToolCallSchema/LLMTokenUsageSchema handle the same mapping.
|
|
254
|
+
*/
|
|
255
|
+
export declare const MessageSchema: z.ZodPipe<z.ZodObject<{
|
|
256
|
+
role: z.ZodEnum<{
|
|
257
|
+
user: "user";
|
|
258
|
+
assistant: "assistant";
|
|
259
|
+
tool: "tool";
|
|
260
|
+
system: "system";
|
|
261
|
+
}>;
|
|
262
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
263
|
+
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
264
|
+
text: z.ZodString;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
type: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
267
|
+
url: z.ZodString;
|
|
268
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
270
|
+
type: z.ZodDefault<z.ZodLiteral<"document">>;
|
|
271
|
+
url: z.ZodString;
|
|
272
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
273
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>], "type">>]>;
|
|
275
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
276
|
+
id: z.ZodOptional<z.ZodString>;
|
|
277
|
+
name: z.ZodOptional<z.ZodString>;
|
|
278
|
+
args: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
279
|
+
arguments: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
280
|
+
type: z.ZodOptional<z.ZodString>;
|
|
281
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
}, z.core.$strip>, z.ZodTransform<LLMToolCall, {
|
|
283
|
+
id?: string | undefined;
|
|
284
|
+
name?: string | undefined;
|
|
285
|
+
args?: JsonValue | undefined;
|
|
286
|
+
arguments?: JsonValue | undefined;
|
|
287
|
+
type?: string | undefined;
|
|
288
|
+
index?: number | undefined;
|
|
289
|
+
}>>>>;
|
|
290
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
291
|
+
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
name: z.ZodOptional<z.ZodString>;
|
|
293
|
+
id: z.ZodOptional<z.ZodString>;
|
|
294
|
+
additional_kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
295
|
+
response_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
296
|
+
}, z.core.$loose>, z.ZodTransform<Message, {
|
|
297
|
+
[x: string]: unknown;
|
|
298
|
+
role: "user" | "assistant" | "tool" | "system";
|
|
299
|
+
content: string | ({
|
|
300
|
+
type: "text";
|
|
301
|
+
text: string;
|
|
302
|
+
} | {
|
|
303
|
+
type: "image";
|
|
304
|
+
url: string;
|
|
305
|
+
mime_type?: string | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
type: "document";
|
|
308
|
+
url: string;
|
|
309
|
+
mime_type?: string | undefined;
|
|
310
|
+
filename?: string | undefined;
|
|
311
|
+
})[];
|
|
312
|
+
tool_calls?: LLMToolCall[] | undefined;
|
|
313
|
+
tool_call_id?: string | undefined;
|
|
314
|
+
is_error?: boolean | undefined;
|
|
315
|
+
name?: string | undefined;
|
|
316
|
+
id?: string | undefined;
|
|
317
|
+
additional_kwargs?: Record<string, JsonValue> | undefined;
|
|
318
|
+
response_metadata?: Record<string, JsonValue> | undefined;
|
|
319
|
+
}>>;
|
|
320
|
+
/**
|
|
321
|
+
* Serialize a Message to its snake_case wire shape — the camel→snake "dump"
|
|
322
|
+
* half that mirrors Python's `model_dump(by_alias=True)`. `MessageSchema` is
|
|
323
|
+
* the inverse snake→camel "parse" half.
|
|
324
|
+
*
|
|
325
|
+
* Keeping these two symmetric is what makes the representation safe: messages
|
|
326
|
+
* are camelCase internally (the `Message` interface) and snake_case on the
|
|
327
|
+
* wire, and conversion happens exactly once at each boundary. Use this when
|
|
328
|
+
* dumping an already-internal `Message`; never re-run an internal Message
|
|
329
|
+
* through `MessageSchema`, whose transform would blank the camelCase fields.
|
|
330
|
+
*/
|
|
331
|
+
export declare function serializeMessage(message: Message): Record<string, unknown>;
|
|
332
|
+
/** Framework-neutral LLM response. */
|
|
333
|
+
export declare class LLMResponse {
|
|
334
|
+
readonly content: string;
|
|
335
|
+
readonly toolCalls?: LLMToolCall[];
|
|
336
|
+
readonly metadata: Record<string, JsonValue>;
|
|
337
|
+
readonly usage?: LLMTokenUsage;
|
|
338
|
+
readonly id?: string;
|
|
339
|
+
readonly name?: string;
|
|
340
|
+
readonly additionalKwargs?: Record<string, JsonValue>;
|
|
341
|
+
readonly responseMetadata?: Record<string, JsonValue>;
|
|
342
|
+
constructor(data: {
|
|
343
|
+
content: string;
|
|
344
|
+
toolCalls?: LLMToolCall[];
|
|
345
|
+
metadata?: Record<string, JsonValue>;
|
|
346
|
+
usage?: LLMTokenUsage;
|
|
347
|
+
id?: string;
|
|
348
|
+
name?: string;
|
|
349
|
+
additionalKwargs?: Record<string, JsonValue>;
|
|
350
|
+
responseMetadata?: Record<string, JsonValue>;
|
|
351
|
+
});
|
|
352
|
+
/**
|
|
353
|
+
* Constructs an LLMResponse from a raw provider dict, normalizing usage
|
|
354
|
+
* from either a top-level 'usage' key or token keys embedded in 'metadata'.
|
|
355
|
+
*/
|
|
356
|
+
static fromRaw(data: Record<string, unknown>): LLMResponse;
|
|
357
|
+
}
|
|
358
|
+
/** Runtime validation schema for LLMResponse wire data. `content` is the only required field. */
|
|
359
|
+
export declare const LLMResponseSchema: z.ZodObject<{
|
|
360
|
+
content: z.ZodString;
|
|
361
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
362
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
363
|
+
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
364
|
+
id: z.ZodOptional<z.ZodString>;
|
|
365
|
+
name: z.ZodOptional<z.ZodString>;
|
|
366
|
+
additional_kwargs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
367
|
+
response_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
368
|
+
}, z.core.$loose>;
|
|
369
|
+
/**
|
|
370
|
+
* Partial tool call during streaming.
|
|
371
|
+
*
|
|
372
|
+
* All fields are optional since chunks may contain partial data
|
|
373
|
+
* (e.g., just the start of arguments, or just the tool name).
|
|
374
|
+
*/
|
|
375
|
+
export interface ToolCallChunk {
|
|
376
|
+
id?: string;
|
|
377
|
+
name?: string;
|
|
378
|
+
args?: string;
|
|
379
|
+
type?: string;
|
|
380
|
+
index?: number;
|
|
381
|
+
}
|
|
382
|
+
/** Runtime validation schema for ToolCallChunk wire data. */
|
|
383
|
+
export declare const ToolCallChunkSchema: z.ZodObject<{
|
|
384
|
+
id: z.ZodOptional<z.ZodString>;
|
|
385
|
+
name: z.ZodOptional<z.ZodString>;
|
|
386
|
+
args: z.ZodOptional<z.ZodString>;
|
|
387
|
+
type: z.ZodOptional<z.ZodString>;
|
|
388
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
/**
|
|
391
|
+
* Rich streaming chunk following OpenAI/Anthropic patterns.
|
|
392
|
+
*
|
|
393
|
+
* All fields are optional since different chunks contain different data:
|
|
394
|
+
* - Content chunks: text deltas during generation
|
|
395
|
+
* - Tool call chunks: partial tool calls being built up
|
|
396
|
+
* - Usage chunks: token counts at end of stream
|
|
397
|
+
*/
|
|
398
|
+
export interface LLMStreamChunk {
|
|
399
|
+
content?: string;
|
|
400
|
+
toolCalls?: ToolCallChunk[];
|
|
401
|
+
usage?: LLMTokenUsage;
|
|
402
|
+
id?: string;
|
|
403
|
+
name?: string;
|
|
404
|
+
additionalKwargs?: Record<string, JsonValue>;
|
|
405
|
+
responseMetadata?: Record<string, JsonValue>;
|
|
406
|
+
}
|
|
407
|
+
/** Input for an agent execution. Payload is an opaque JSON value. */
|
|
408
|
+
export interface AgentInput {
|
|
409
|
+
payload: JsonValue;
|
|
410
|
+
}
|
|
411
|
+
/** Output from an agent execution. Response is an opaque JSON value. */
|
|
412
|
+
export interface AgentOutput {
|
|
413
|
+
response: JsonValue;
|
|
414
|
+
}
|
|
415
|
+
/** Event streamed back to the caller during execution. */
|
|
416
|
+
export interface StreamEvent {
|
|
417
|
+
data: JsonValue;
|
|
418
|
+
event?: string;
|
|
419
|
+
}
|
|
420
|
+
/** Runtime validation schema for AgentInput wire data. */
|
|
421
|
+
export declare const AgentInputSchema: z.ZodObject<{
|
|
422
|
+
payload: z.ZodUnknown & z.ZodType<{} | null, unknown, z.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
423
|
+
}, z.core.$loose>;
|
|
424
|
+
/** Runtime validation schema for AgentOutput wire data. */
|
|
425
|
+
export declare const AgentOutputSchema: z.ZodObject<{
|
|
426
|
+
response: z.ZodUnknown & z.ZodType<{} | null, unknown, z.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
427
|
+
}, z.core.$loose>;
|
|
428
|
+
/** Runtime validation schema for StreamEvent wire data. */
|
|
429
|
+
export declare const StreamEventSchema: z.ZodObject<{
|
|
430
|
+
data: z.ZodUnknown & z.ZodType<{} | null, unknown, z.core.$ZodTypeInternals<{} | null, unknown>>;
|
|
431
|
+
event: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$loose>;
|
|
433
|
+
/**
|
|
434
|
+
* Request-scoped context passed to every agent execution.
|
|
435
|
+
*
|
|
436
|
+
* Carries framework-neutral execution identity and platform plumbing. The
|
|
437
|
+
* caller's invocation input lives in `AgentInput.payload`, not here.
|
|
438
|
+
* Suspend/resume state is opaque to the platform: `metadata` is a
|
|
439
|
+
* framework-owned blob that the platform forwards unchanged on resume.
|
|
440
|
+
*/
|
|
441
|
+
export interface RequestContext {
|
|
442
|
+
executionId?: string;
|
|
443
|
+
sessionId?: string;
|
|
444
|
+
userId?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Tenant scope of the executing agent. Framework adapters use it to scope
|
|
447
|
+
* state stores keyed only by sessionId (e.g. the LangGraph checkpoint
|
|
448
|
+
* thread_id) so agents in the same project DB cannot collide. Mirrors
|
|
449
|
+
* Python's `RequestContext.workspace_id`.
|
|
450
|
+
*/
|
|
451
|
+
workspaceId?: string;
|
|
452
|
+
requestHeaders?: Record<string, string>;
|
|
453
|
+
/** Platform suspend/resume plumbing (framework-neutral). */
|
|
454
|
+
resume?: boolean;
|
|
455
|
+
resumeData?: JsonValue | null;
|
|
456
|
+
/**
|
|
457
|
+
* True when this session's most recent prior execution was cancelled (its
|
|
458
|
+
* pod torn down mid-run). Framework adapters that persist per-step state
|
|
459
|
+
* use it to fence off the killed step's partial writes before running this
|
|
460
|
+
* turn. Mirrors Python's `previous_execution_cancelled`.
|
|
461
|
+
*/
|
|
462
|
+
previousExecutionCancelled?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Opaque framework-owned state passed through by the SDK and AER. Only the
|
|
465
|
+
* selected framework adapter may interpret its keys and values.
|
|
466
|
+
*/
|
|
467
|
+
metadata?: Record<string, JsonValue> | null;
|
|
468
|
+
/**
|
|
469
|
+
* Cancellation signal for execution timeout or forced abort. The runtime
|
|
470
|
+
* (and any agent implementation that honours it) should unwind pending
|
|
471
|
+
* awaits and stop emitting events when this signal fires. Python relies on
|
|
472
|
+
* `asyncio.wait_for` for the same semantics; JS has no implicit
|
|
473
|
+
* cancellation, so the signal must be plumbed explicitly.
|
|
474
|
+
*/
|
|
475
|
+
signal?: AbortSignal;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Per-session summary sourced from framework-specific persistence.
|
|
479
|
+
*
|
|
480
|
+
* Returned by the AER's session-enrichment endpoint. The platform layer
|
|
481
|
+
* (OE) merges this with its own tenant fields (user_id, project_id,
|
|
482
|
+
* workspace_id, visibility) when assembling the public sessions list.
|
|
483
|
+
*
|
|
484
|
+
* Mirrors Python's `SessionSummary` in `agent_engine_sdk/models.py`.
|
|
485
|
+
*/
|
|
486
|
+
export declare const SessionSummarySchema: z.ZodObject<{
|
|
487
|
+
session_id: z.ZodString;
|
|
488
|
+
last_activity: z.ZodString;
|
|
489
|
+
created_at: z.ZodString;
|
|
490
|
+
message_count: z.ZodNumber;
|
|
491
|
+
first_message_preview: z.ZodDefault<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
export type SessionSummary = z.infer<typeof SessionSummarySchema>;
|
|
494
|
+
/** Response for the AER's session-summary enrichment endpoint. */
|
|
495
|
+
export declare const SessionsSummaryResponseSchema: z.ZodObject<{
|
|
496
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
497
|
+
session_id: z.ZodString;
|
|
498
|
+
last_activity: z.ZodString;
|
|
499
|
+
created_at: z.ZodString;
|
|
500
|
+
message_count: z.ZodNumber;
|
|
501
|
+
first_message_preview: z.ZodDefault<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
}, z.core.$strip>;
|
|
504
|
+
export type SessionsSummaryResponse = z.infer<typeof SessionsSummaryResponseSchema>;
|
|
505
|
+
/**
|
|
506
|
+
* A single message in a session's conversation history.
|
|
507
|
+
*
|
|
508
|
+
* `role` uses the same vocabulary as `Message` ("user", "assistant",
|
|
509
|
+
* "tool", "system"). `name` carries the tool name on tool messages.
|
|
510
|
+
*
|
|
511
|
+
* Mirrors Python's `SessionMessage` in `agent_engine_sdk/models.py`.
|
|
512
|
+
*/
|
|
513
|
+
export declare const SessionMessageSchema: z.ZodObject<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
role: z.ZodString;
|
|
516
|
+
content: z.ZodString;
|
|
517
|
+
timestamp: z.ZodString;
|
|
518
|
+
session_id: z.ZodString;
|
|
519
|
+
name: z.ZodDefault<z.ZodString>;
|
|
520
|
+
tool_calls: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
521
|
+
id: z.ZodOptional<z.ZodString>;
|
|
522
|
+
name: z.ZodOptional<z.ZodString>;
|
|
523
|
+
args: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
524
|
+
arguments: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
525
|
+
type: z.ZodOptional<z.ZodString>;
|
|
526
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
}, z.core.$strip>, z.ZodTransform<LLMToolCall, {
|
|
528
|
+
id?: string | undefined;
|
|
529
|
+
name?: string | undefined;
|
|
530
|
+
args?: JsonValue | undefined;
|
|
531
|
+
arguments?: JsonValue | undefined;
|
|
532
|
+
type?: string | undefined;
|
|
533
|
+
index?: number | undefined;
|
|
534
|
+
}>>>>>;
|
|
535
|
+
tool_call_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
536
|
+
additional_kwargs: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
export type SessionMessage = z.infer<typeof SessionMessageSchema>;
|
|
539
|
+
/** Response for the AER's session-messages endpoint. */
|
|
540
|
+
export declare const SessionMessagesResponseSchema: z.ZodObject<{
|
|
541
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
542
|
+
id: z.ZodString;
|
|
543
|
+
role: z.ZodString;
|
|
544
|
+
content: z.ZodString;
|
|
545
|
+
timestamp: z.ZodString;
|
|
546
|
+
session_id: z.ZodString;
|
|
547
|
+
name: z.ZodDefault<z.ZodString>;
|
|
548
|
+
tool_calls: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
549
|
+
id: z.ZodOptional<z.ZodString>;
|
|
550
|
+
name: z.ZodOptional<z.ZodString>;
|
|
551
|
+
args: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
552
|
+
arguments: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
553
|
+
type: z.ZodOptional<z.ZodString>;
|
|
554
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
}, z.core.$strip>, z.ZodTransform<LLMToolCall, {
|
|
556
|
+
id?: string | undefined;
|
|
557
|
+
name?: string | undefined;
|
|
558
|
+
args?: JsonValue | undefined;
|
|
559
|
+
arguments?: JsonValue | undefined;
|
|
560
|
+
type?: string | undefined;
|
|
561
|
+
index?: number | undefined;
|
|
562
|
+
}>>>>>;
|
|
563
|
+
tool_call_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
564
|
+
additional_kwargs: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
565
|
+
}, z.core.$strip>>;
|
|
566
|
+
}, z.core.$strip>;
|
|
567
|
+
export type SessionMessagesResponse = z.infer<typeof SessionMessagesResponseSchema>;
|
|
568
|
+
/** Parses an ISO datetime string into a Date. Rejects unparseable input. */
|
|
569
|
+
export declare const DateFromStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
|
|
570
|
+
/** Reference to a branch and its fork point. */
|
|
571
|
+
export declare const BranchRefSchema: z.ZodObject<{
|
|
572
|
+
name: z.ZodString;
|
|
573
|
+
root_event_id: z.ZodString;
|
|
574
|
+
}, z.core.$loose>;
|
|
575
|
+
export type BranchRef = z.infer<typeof BranchRefSchema>;
|
|
576
|
+
/** Platform event — the storage envelope. Payloads are opaque. */
|
|
577
|
+
export declare const EventSchema: z.ZodObject<{
|
|
578
|
+
event_id: z.ZodString;
|
|
579
|
+
session_id: z.ZodString;
|
|
580
|
+
parent_event_id: z.ZodOptional<z.ZodString>;
|
|
581
|
+
actor_id: z.ZodString;
|
|
582
|
+
payload: z.ZodPipe<z.ZodUnknown, z.ZodTransform<string | number | boolean | JsonValue[] | {
|
|
583
|
+
[key: string]: JsonValue;
|
|
584
|
+
} | null, unknown>>;
|
|
585
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
586
|
+
branch: z.ZodOptional<z.ZodObject<{
|
|
587
|
+
name: z.ZodString;
|
|
588
|
+
root_event_id: z.ZodString;
|
|
589
|
+
}, z.core.$loose>>;
|
|
590
|
+
timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
|
|
591
|
+
}, z.core.$loose>;
|
|
592
|
+
export type Event = z.infer<typeof EventSchema>;
|
|
593
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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