avantgate 1.1.1 → 1.2.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/README.md +15 -398
- package/dist/agent/adapters/custom-adapter.d.ts +50 -0
- package/dist/agent/adapters/custom-adapter.d.ts.map +1 -0
- package/dist/agent/adapters/index.d.ts +6 -0
- package/dist/agent/adapters/index.d.ts.map +1 -0
- package/dist/agent/adapters/memory-adapter.d.ts +34 -0
- package/dist/agent/adapters/memory-adapter.d.ts.map +1 -0
- package/dist/agent/adapters/platform-adapter.d.ts +32 -0
- package/dist/agent/adapters/platform-adapter.d.ts.map +1 -0
- package/dist/agent/adapters/prisma-adapter.d.ts +55 -0
- package/dist/agent/adapters/prisma-adapter.d.ts.map +1 -0
- package/dist/agent/adapters/sqlite-adapter.d.ts +31 -0
- package/dist/agent/adapters/sqlite-adapter.d.ts.map +1 -0
- package/dist/agent/dto.d.ts +32 -0
- package/dist/agent/dto.d.ts.map +1 -0
- package/dist/agent/errors.d.ts +50 -0
- package/dist/agent/errors.d.ts.map +1 -0
- package/dist/agent/factory.d.ts +21 -0
- package/dist/agent/factory.d.ts.map +1 -0
- package/dist/agent/guardrails.d.ts +14 -0
- package/dist/agent/guardrails.d.ts.map +1 -0
- package/dist/agent/index.d.ts +17 -703
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +294 -30
- package/dist/agent/index.mjs +290 -29
- package/dist/agent/isolated-tool.d.ts +9 -0
- package/dist/agent/isolated-tool.d.ts.map +1 -0
- package/dist/agent/registry.d.ts +71 -0
- package/dist/agent/registry.d.ts.map +1 -0
- package/dist/agent/step-runner.d.ts +12 -0
- package/dist/agent/step-runner.d.ts.map +1 -0
- package/dist/agent/strategy.d.ts +37 -0
- package/dist/agent/strategy.d.ts.map +1 -0
- package/dist/agent/telemetry/http-exporter.d.ts +24 -0
- package/dist/agent/telemetry/http-exporter.d.ts.map +1 -0
- package/dist/agent/telemetry/index.d.ts +3 -0
- package/dist/agent/telemetry/index.d.ts.map +1 -0
- package/dist/agent/telemetry/types.d.ts +92 -0
- package/dist/agent/telemetry/types.d.ts.map +1 -0
- package/dist/agent/tool-invoker.d.ts +17 -0
- package/dist/agent/tool-invoker.d.ts.map +1 -0
- package/dist/agent/tool-state.d.ts +7 -0
- package/dist/agent/tool-state.d.ts.map +1 -0
- package/dist/agent/types.d.ts +243 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/control-layer.d.ts +49 -0
- package/dist/control-layer.d.ts.map +1 -0
- package/dist/finance/factory.d.ts +11 -0
- package/dist/finance/factory.d.ts.map +1 -0
- package/dist/finance/index.d.ts +9 -76
- package/dist/finance/index.d.ts.map +1 -0
- package/dist/finance/normalizer.d.ts +19 -0
- package/dist/finance/normalizer.d.ts.map +1 -0
- package/dist/finance/strategies/french-pcg.strategy.d.ts +10 -0
- package/dist/finance/strategies/french-pcg.strategy.d.ts.map +1 -0
- package/dist/finance/strategies/international.strategy.d.ts +10 -0
- package/dist/finance/strategies/international.strategy.d.ts.map +1 -0
- package/dist/finance/strategies/swiss-co.strategy.d.ts +10 -0
- package/dist/finance/strategies/swiss-co.strategy.d.ts.map +1 -0
- package/dist/finance/strategies/uk-ifrs.strategy.d.ts +10 -0
- package/dist/finance/strategies/uk-ifrs.strategy.d.ts.map +1 -0
- package/dist/finance/strategies/us-gaap.strategy.d.ts +10 -0
- package/dist/finance/strategies/us-gaap.strategy.d.ts.map +1 -0
- package/dist/{strategy.interface-CB4_ZAuk.d.ts → finance/strategy.interface.d.ts} +5 -6
- package/dist/finance/strategy.interface.d.ts.map +1 -0
- package/dist/index.d.ts +9 -390
- package/dist/index.d.ts.map +1 -0
- package/dist/input-guard.d.ts +13 -0
- package/dist/input-guard.d.ts.map +1 -0
- package/dist/pricing.d.ts +49 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/prompts/index.d.ts +5 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/prompt-builder.d.ts +31 -0
- package/dist/prompts/prompt-builder.d.ts.map +1 -0
- package/dist/prompts/prompt-registry.d.ts +13 -0
- package/dist/prompts/prompt-registry.d.ts.map +1 -0
- package/dist/prompts/prompt-template.d.ts +17 -0
- package/dist/prompts/prompt-template.d.ts.map +1 -0
- package/dist/prompts/types.d.ts +39 -0
- package/dist/prompts/types.d.ts.map +1 -0
- package/dist/providers/http-client.d.ts +18 -0
- package/dist/providers/http-client.d.ts.map +1 -0
- package/dist/response-validator.d.ts +18 -0
- package/dist/response-validator.d.ts.map +1 -0
- package/dist/sanitizer.d.ts +11 -0
- package/dist/sanitizer.d.ts.map +1 -0
- package/dist/types.d.ts +146 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/agent/index.d.mts +0 -704
- package/dist/finance/index.d.mts +0 -76
- package/dist/index.d.mts +0 -390
- package/dist/strategy.interface-CB4_ZAuk.d.mts +0 -16
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,704 +1,18 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
runId?: string;
|
|
22
|
-
status: StepStatus;
|
|
23
|
-
result?: TResult;
|
|
24
|
-
error?: string;
|
|
25
|
-
piiDetectedCount?: number;
|
|
26
|
-
tokens?: TokenUsage;
|
|
27
|
-
costUsd?: number;
|
|
28
|
-
metadata?: Record<string, unknown>;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Record representing a durable tool execution stored in persistence for hierarchical tracing.
|
|
34
|
-
*/
|
|
35
|
-
interface ToolExecutionRecord {
|
|
36
|
-
executionId: string;
|
|
37
|
-
workflowId?: string;
|
|
38
|
-
stepId?: string;
|
|
39
|
-
runId?: string;
|
|
40
|
-
toolId: string;
|
|
41
|
-
parentToolId?: string;
|
|
42
|
-
aliasUsed?: string;
|
|
43
|
-
depth: number;
|
|
44
|
-
inputArgs?: unknown;
|
|
45
|
-
outputSummary?: unknown;
|
|
46
|
-
durationMs: number;
|
|
47
|
-
status: "SUCCESS" | "FAILED";
|
|
48
|
-
error?: string;
|
|
49
|
-
cached?: boolean;
|
|
50
|
-
piiFilteredCount?: number;
|
|
51
|
-
tokens?: TokenUsage;
|
|
52
|
-
costUsd?: number;
|
|
53
|
-
createdAt: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Shared Blackboard state interface enabling inter-tool data exchange without context pollution.
|
|
57
|
-
*/
|
|
58
|
-
interface ToolSharedState {
|
|
59
|
-
get<T = unknown>(key: string): Promise<T | null>;
|
|
60
|
-
set<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
61
|
-
delete(key: string): Promise<void>;
|
|
62
|
-
clear?(): Promise<void>;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Hexagonal Port Interface: Pure abstract storage contract.
|
|
66
|
-
* Any storage backend (Prisma, Drizzle, Kysely, SQLite, Mongo, Redis, Supabase)
|
|
67
|
-
* can plug into avantgate/agent by implementing this contract.
|
|
68
|
-
*/
|
|
69
|
-
interface StepStorageAdapter {
|
|
70
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
71
|
-
saveStep<T = unknown>(step: StepRecord<T>): Promise<void>;
|
|
72
|
-
updateStepStatus<T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>): Promise<void>;
|
|
73
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
74
|
-
saveToolExecution?(record: ToolExecutionRecord): Promise<void>;
|
|
75
|
-
listToolExecutions?(workflowId?: string, stepId?: string): Promise<ToolExecutionRecord[]>;
|
|
76
|
-
getCachedToolResult?<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
77
|
-
setCachedToolResult?<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
78
|
-
getStateValue?<T = unknown>(key: string): Promise<T | null>;
|
|
79
|
-
setStateValue?<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
80
|
-
deleteStateValue?(key: string): Promise<void>;
|
|
81
|
-
clearStateValues?(): Promise<void>;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Options for step approval in Human-in-the-Loop workflows.
|
|
85
|
-
*/
|
|
86
|
-
interface StepApprovalOptions<T = unknown> {
|
|
87
|
-
prompt?: string;
|
|
88
|
-
metadata?: Record<string, unknown>;
|
|
89
|
-
defaultResult?: T;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Execution context passed to workflow handlers.
|
|
93
|
-
*/
|
|
94
|
-
interface StepRunnerContext {
|
|
95
|
-
workflowId: string;
|
|
96
|
-
run<T>(stepId: string, executeFn: () => Promise<T>): Promise<T>;
|
|
97
|
-
waitForApproval<T = unknown>(stepId: string, options?: StepApprovalOptions<T>): Promise<T>;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Configuration options for creating a durable step runner.
|
|
101
|
-
*/
|
|
102
|
-
interface StepRunnerConfig {
|
|
103
|
-
workflowId: string;
|
|
104
|
-
runId?: string;
|
|
105
|
-
storage?: StepStorageAdapter;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Context received by tool execution, supporting inter-tool chaining and shared state.
|
|
109
|
-
*/
|
|
110
|
-
interface ToolExecutionContext {
|
|
111
|
-
toolCallId?: string;
|
|
112
|
-
messages?: unknown[];
|
|
113
|
-
abortSignal?: AbortSignal;
|
|
114
|
-
workflowId?: string;
|
|
115
|
-
runId?: string;
|
|
116
|
-
stepId?: string;
|
|
117
|
-
callChain?: readonly string[];
|
|
118
|
-
callTool?: <TResult = unknown>(toolId: string, args: unknown) => Promise<TResult>;
|
|
119
|
-
state?: ToolSharedState;
|
|
120
|
-
storage?: StepStorageAdapter;
|
|
121
|
-
tokens?: TokenUsage;
|
|
122
|
-
costUsd?: number;
|
|
123
|
-
[key: string]: unknown;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* User and environment context injected into tools.
|
|
127
|
-
*/
|
|
128
|
-
interface ToolContext {
|
|
129
|
-
userId?: string;
|
|
130
|
-
tenantId?: string;
|
|
131
|
-
role?: string;
|
|
132
|
-
phase?: string;
|
|
133
|
-
metadata?: Record<string, unknown>;
|
|
134
|
-
[key: string]: unknown;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Transformer converting raw tool result into a safe, minimal LLM message.
|
|
138
|
-
*/
|
|
139
|
-
type LLMSummaryTransformer<TArgs = unknown, TResult = unknown> = (result: TResult, args: TArgs) => unknown;
|
|
140
|
-
/**
|
|
141
|
-
* Out-of-band callback streaming raw or rich tool data directly to the client UI.
|
|
142
|
-
*/
|
|
143
|
-
type ClientDataCallback<TResult = unknown> = (data: TResult) => void | Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* Configuration for creating an isolated tool with PII protection, Dual-Channel,
|
|
146
|
-
* stable ID, aliasing and caching.
|
|
147
|
-
*/
|
|
148
|
-
interface IsolatedToolConfig<TArgs = any, TResult = any> {
|
|
149
|
-
id?: string;
|
|
150
|
-
name: string;
|
|
151
|
-
alias?: string;
|
|
152
|
-
description: string;
|
|
153
|
-
parameters: z.ZodType<TArgs> | unknown;
|
|
154
|
-
cacheTTL?: number;
|
|
155
|
-
execute: (args: TArgs, context?: ToolExecutionContext) => Promise<TResult>;
|
|
156
|
-
toLLMSummary?: LLMSummaryTransformer<TArgs, TResult>;
|
|
157
|
-
toClientData?: ClientDataCallback<TResult>;
|
|
158
|
-
sanitizePii?: boolean;
|
|
159
|
-
throwOnPii?: boolean;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Standard tool contract compatible with Vercel AI SDK (ai) tool definition.
|
|
163
|
-
*/
|
|
164
|
-
interface VercelAiCoreTool<TArgs = any, TResult = any> {
|
|
165
|
-
description: string;
|
|
166
|
-
parameters: any;
|
|
167
|
-
execute: (args: TArgs, context?: ToolExecutionContext) => Promise<TResult>;
|
|
168
|
-
/**
|
|
169
|
-
* Internal identifiers and metadata.
|
|
170
|
-
*/
|
|
171
|
-
readonly _toolId: string;
|
|
172
|
-
readonly _toolName: string;
|
|
173
|
-
readonly _toolAlias?: string;
|
|
174
|
-
readonly _isIsolated: boolean;
|
|
175
|
-
readonly _cacheTTL?: number;
|
|
176
|
-
_lastPiiFilteredCount?: number;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Metadata and descriptor for registered tools in the registry.
|
|
180
|
-
*/
|
|
181
|
-
interface RegisteredTool<TArgs = any, TResult = any> {
|
|
182
|
-
id: string;
|
|
183
|
-
name: string;
|
|
184
|
-
alias?: string;
|
|
185
|
-
description: string;
|
|
186
|
-
phases?: string[];
|
|
187
|
-
requiredRoles?: string[];
|
|
188
|
-
tags?: string[];
|
|
189
|
-
tool: VercelAiCoreTool<TArgs, TResult>;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Strategy interface for dynamically selecting a subset of tools for LLM prompts.
|
|
193
|
-
*/
|
|
194
|
-
interface ToolSelectionStrategy {
|
|
195
|
-
selectTools(tools: RegisteredTool[], context: ToolContext): RegisteredTool[] | Promise<RegisteredTool[]>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Domain and operational errors for avantgate/agent.
|
|
200
|
-
*/
|
|
201
|
-
declare class StepSuspendedError extends Error {
|
|
202
|
-
readonly stepId: string;
|
|
203
|
-
readonly workflowId: string;
|
|
204
|
-
readonly metadata?: Record<string, unknown>;
|
|
205
|
-
constructor(stepId: string, workflowId: string, metadata?: Record<string, unknown>);
|
|
206
|
-
}
|
|
207
|
-
declare class PiiLeakError extends Error {
|
|
208
|
-
readonly toolName: string;
|
|
209
|
-
readonly maskedCount: number;
|
|
210
|
-
constructor(toolName: string, maskedCount: number);
|
|
211
|
-
}
|
|
212
|
-
declare class StepExecutionError extends Error {
|
|
213
|
-
readonly stepId: string;
|
|
214
|
-
readonly workflowId: string;
|
|
215
|
-
readonly originalError?: unknown;
|
|
216
|
-
constructor(stepId: string, workflowId: string, message: string, originalError?: unknown);
|
|
217
|
-
}
|
|
218
|
-
declare class ToolAccessDeniedError extends Error {
|
|
219
|
-
readonly toolName: string;
|
|
220
|
-
readonly requiredRole?: string;
|
|
221
|
-
constructor(toolName: string, requiredRole?: string);
|
|
222
|
-
}
|
|
223
|
-
declare class CircularToolCallError extends Error {
|
|
224
|
-
readonly cycle: string[];
|
|
225
|
-
constructor(cycle: string[]);
|
|
226
|
-
}
|
|
227
|
-
declare class ToolCallDepthExceededError extends Error {
|
|
228
|
-
readonly depth: number;
|
|
229
|
-
readonly maxDepth: number;
|
|
230
|
-
constructor(depth: number, maxDepth: number);
|
|
231
|
-
}
|
|
232
|
-
declare class ToolSubCallQuotaError extends Error {
|
|
233
|
-
readonly totalCalls: number;
|
|
234
|
-
readonly maxCalls: number;
|
|
235
|
-
constructor(totalCalls: number, maxCalls: number);
|
|
236
|
-
}
|
|
237
|
-
declare class ToolNotFoundError extends Error {
|
|
238
|
-
readonly toolId: string;
|
|
239
|
-
constructor(toolId: string);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface AuditToolResultOutput {
|
|
243
|
-
sanitizedData: unknown;
|
|
244
|
-
maskedCount: number;
|
|
245
|
-
}
|
|
246
|
-
interface AuditToolResultOptions {
|
|
247
|
-
toolName: string;
|
|
248
|
-
throwOnPii?: boolean;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Audits and sanitizes data returned by tools before sending it to the LLM.
|
|
252
|
-
* Throws PiiLeakError if throwOnPii is enabled and PII is detected.
|
|
253
|
-
*/
|
|
254
|
-
declare function auditToolResult(data: unknown, options: AuditToolResultOptions): AuditToolResultOutput;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Creates an isolated tool compatible with Vercel AI SDK (ai) tool contract.
|
|
258
|
-
* Features dual-channel separation (client data vs minimal LLM summary),
|
|
259
|
-
* stable ID, aliasing, caching and automatic in-flight PII redaction.
|
|
260
|
-
*/
|
|
261
|
-
declare function createIsolatedTool<TArgs = any, TResult = any>(config: IsolatedToolConfig<TArgs, TResult>): VercelAiCoreTool<TArgs, TResult>;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Factory for creating isolated tools with injected context and dependencies.
|
|
265
|
-
*/
|
|
266
|
-
declare class AgentToolFactory {
|
|
267
|
-
private readonly context;
|
|
268
|
-
constructor(defaultContext?: ToolContext);
|
|
269
|
-
/**
|
|
270
|
-
* Returns a new factory instance with merged context.
|
|
271
|
-
*/
|
|
272
|
-
withContext(extraContext: ToolContext): AgentToolFactory;
|
|
273
|
-
/**
|
|
274
|
-
* Returns current factory context.
|
|
275
|
-
*/
|
|
276
|
-
getContext(): ToolContext;
|
|
277
|
-
/**
|
|
278
|
-
* Instantiates an isolated tool by injecting factory context into the builder function.
|
|
279
|
-
*/
|
|
280
|
-
createTool<TArgs = any, TResult = any>(builder: (context: ToolContext) => IsolatedToolConfig<TArgs, TResult>): VercelAiCoreTool<TArgs, TResult>;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
interface ToRecordOptions {
|
|
284
|
-
anonymize?: boolean;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Centralized catalog for managing and filtering tools with permissions and metadata.
|
|
288
|
-
* Supports O(1) Key-Value lookup by technical ID and by public alias.
|
|
289
|
-
*/
|
|
290
|
-
declare class ToolRegistry {
|
|
291
|
-
private readonly toolsById;
|
|
292
|
-
private readonly toolsByPublicName;
|
|
293
|
-
/**
|
|
294
|
-
* Registers a new tool in the registry.
|
|
295
|
-
*/
|
|
296
|
-
register(toolDef: RegisteredTool): this;
|
|
297
|
-
/**
|
|
298
|
-
* Retrieves a tool by its ID or public name/alias.
|
|
299
|
-
*/
|
|
300
|
-
get(idOrName: string): RegisteredTool | undefined;
|
|
301
|
-
/**
|
|
302
|
-
* Retrieves a tool strictly by its immutable technical ID (O(1)).
|
|
303
|
-
*/
|
|
304
|
-
getById(id: string): RegisteredTool | undefined;
|
|
305
|
-
/**
|
|
306
|
-
* Retrieves a tool by its public alias seen by the LLM (O(1)).
|
|
307
|
-
*/
|
|
308
|
-
getByPublicName(publicName: string): RegisteredTool | undefined;
|
|
309
|
-
/**
|
|
310
|
-
* Checks if a tool is registered by ID or public name.
|
|
311
|
-
*/
|
|
312
|
-
has(idOrName: string): boolean;
|
|
313
|
-
/**
|
|
314
|
-
* Returns all registered tools without duplicates.
|
|
315
|
-
*/
|
|
316
|
-
getAll(): RegisteredTool[];
|
|
317
|
-
/**
|
|
318
|
-
* Filters tools matching a specific workflow phase.
|
|
319
|
-
*/
|
|
320
|
-
getByPhase(phase: string): RegisteredTool[];
|
|
321
|
-
/**
|
|
322
|
-
* Filters tools matching the user's roles (RBAC).
|
|
323
|
-
*/
|
|
324
|
-
filterByRoles(userRoles: string[]): RegisteredTool[];
|
|
325
|
-
/**
|
|
326
|
-
* Converts instance registered tools to the record map format required by Vercel AI SDK.
|
|
327
|
-
*/
|
|
328
|
-
toRecord(options?: ToRecordOptions): Record<string, VercelAiCoreTool>;
|
|
329
|
-
/**
|
|
330
|
-
* Converts a list of registered tools to the record map format required by Vercel AI SDK.
|
|
331
|
-
* If anonymize is true, uses alias (if defined) as dictionary key instead of technical name.
|
|
332
|
-
*/
|
|
333
|
-
static toRecord(tools: RegisteredTool[], options?: ToRecordOptions): Record<string, VercelAiCoreTool>;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Strategy selecting tools that match the current workflow phase.
|
|
338
|
-
*/
|
|
339
|
-
declare class PhaseBasedToolStrategy implements ToolSelectionStrategy {
|
|
340
|
-
selectTools(tools: RegisteredTool[], context: ToolContext): RegisteredTool[];
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Strategy selecting tools permitted for the user's role (RBAC).
|
|
344
|
-
*/
|
|
345
|
-
declare class RoleBasedToolStrategy implements ToolSelectionStrategy {
|
|
346
|
-
selectTools(tools: RegisteredTool[], context: ToolContext): RegisteredTool[];
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Composite strategy applying multiple selection strategies sequentially (intersection).
|
|
350
|
-
*/
|
|
351
|
-
declare class CompositeToolStrategy implements ToolSelectionStrategy {
|
|
352
|
-
private readonly strategies;
|
|
353
|
-
constructor(strategies: ToolSelectionStrategy[]);
|
|
354
|
-
selectTools(tools: RegisteredTool[], context: ToolContext): Promise<RegisteredTool[]>;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Convenience helper to execute a strategy and convert selected tools to Vercel AI SDK format.
|
|
358
|
-
*/
|
|
359
|
-
declare function applyToolStrategy(tools: RegisteredTool[], strategy: ToolSelectionStrategy, context: ToolContext): Promise<Record<string, VercelAiCoreTool>>;
|
|
360
|
-
|
|
361
|
-
interface StepRunnerInstance extends StepRunnerContext {
|
|
362
|
-
storage: StepStorageAdapter;
|
|
363
|
-
approveStep<T = unknown>(stepId: string, approvalData?: T): Promise<void>;
|
|
364
|
-
rejectStep(stepId: string, reason?: string): Promise<void>;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Creates a serverless durable step runner for stateful multi-step agent execution
|
|
368
|
-
* with automatic idempotence and Human-in-the-Loop approval capability.
|
|
369
|
-
*/
|
|
370
|
-
declare function createStepRunner(config: StepRunnerConfig): StepRunnerInstance;
|
|
371
|
-
|
|
372
|
-
interface ToolInvokerOptions {
|
|
373
|
-
maxDepth?: number;
|
|
374
|
-
maxTotalSubCalls?: number;
|
|
375
|
-
workflowId?: string;
|
|
376
|
-
stepId?: string;
|
|
377
|
-
}
|
|
378
|
-
interface ToolInvoker {
|
|
379
|
-
invokeTool<TResult = unknown>(toolId: string, args: unknown, context?: ToolExecutionContext): Promise<TResult>;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Creates an intelligent, concurrency-safe tool invoker with cycle detection,
|
|
383
|
-
* depth guard, result caching, and database execution tracing.
|
|
384
|
-
*/
|
|
385
|
-
declare function createToolInvoker(registry: ToolRegistry, storage?: StepStorageAdapter, options?: ToolInvokerOptions): ToolInvoker;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Creates a shared blackboard state instance for inter-tool data sharing.
|
|
389
|
-
* Backed by the persistent storage adapter if available, otherwise runs in-memory.
|
|
390
|
-
*/
|
|
391
|
-
declare function createToolSharedState(storage?: StepStorageAdapter): ToolSharedState;
|
|
392
|
-
|
|
393
|
-
interface MemoryAdapterOptions {
|
|
394
|
-
ttlMs?: number;
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* In-memory storage adapter for development, prototyping, and tests.
|
|
398
|
-
* Zero-infrastructure and ultra-fast with complete tool trace and cache support.
|
|
399
|
-
*/
|
|
400
|
-
declare class MemoryStorageAdapter implements StepStorageAdapter {
|
|
401
|
-
private readonly storage;
|
|
402
|
-
private readonly toolExecutions;
|
|
403
|
-
private readonly cacheStorage;
|
|
404
|
-
private readonly stateStorage;
|
|
405
|
-
private readonly ttlMs?;
|
|
406
|
-
constructor(options?: MemoryAdapterOptions);
|
|
407
|
-
private buildKey;
|
|
408
|
-
private isExpired;
|
|
409
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
410
|
-
saveStep<T = unknown>(step: StepRecord<T>): Promise<void>;
|
|
411
|
-
updateStepStatus<T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>): Promise<void>;
|
|
412
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
413
|
-
saveToolExecution(record: ToolExecutionRecord): Promise<void>;
|
|
414
|
-
listToolExecutions(workflowId?: string, stepId?: string): Promise<ToolExecutionRecord[]>;
|
|
415
|
-
getCachedToolResult<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
416
|
-
setCachedToolResult<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
417
|
-
getStateValue<T = unknown>(key: string): Promise<T | null>;
|
|
418
|
-
setStateValue<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
419
|
-
deleteStateValue(key: string): Promise<void>;
|
|
420
|
-
/**
|
|
421
|
-
* Resets all internal in-memory maps (useful for test isolation).
|
|
422
|
-
*/
|
|
423
|
-
clear(): void;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
interface CustomStorageHandlers {
|
|
427
|
-
getStep: <T = unknown>(workflowId: string, stepId: string) => Promise<StepRecord<T> | null>;
|
|
428
|
-
saveStep: <T = unknown>(step: StepRecord<T>) => Promise<void>;
|
|
429
|
-
updateStepStatus: <T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>) => Promise<void>;
|
|
430
|
-
listSteps: (workflowId: string) => Promise<StepRecord[]>;
|
|
431
|
-
saveToolExecution?: (record: ToolExecutionRecord) => Promise<void>;
|
|
432
|
-
listToolExecutions?: (workflowId?: string, stepId?: string) => Promise<ToolExecutionRecord[]>;
|
|
433
|
-
getCachedToolResult?: <T = unknown>(cacheKey: string) => Promise<T | null>;
|
|
434
|
-
setCachedToolResult?: <T = unknown>(cacheKey: string, result: T, ttlSeconds: number) => Promise<void>;
|
|
435
|
-
getStateValue?: <T = unknown>(key: string) => Promise<T | null>;
|
|
436
|
-
setStateValue?: <T = unknown>(key: string, value: T, ttlSeconds?: number) => Promise<void>;
|
|
437
|
-
deleteStateValue?: (key: string) => Promise<void>;
|
|
438
|
-
}
|
|
439
|
-
interface KeyValueStoreClient {
|
|
440
|
-
get(key: string): Promise<string | null> | string | null;
|
|
441
|
-
set(key: string, value: string, ttlSeconds?: number): Promise<void | unknown> | void | unknown;
|
|
442
|
-
del?(key: string): Promise<void | unknown> | void | unknown;
|
|
443
|
-
keys?(pattern?: string): Promise<string[]> | string[];
|
|
444
|
-
}
|
|
445
|
-
interface KeyValueAdapterOptions {
|
|
446
|
-
prefix?: string;
|
|
447
|
-
ttlSeconds?: number;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Universal functional builder for plugging any external storage library
|
|
451
|
-
* (Drizzle, Kysely, Supabase, TypeORM, Mongo, custom REST API...)
|
|
452
|
-
*/
|
|
453
|
-
declare function createCustomStorageAdapter(handlers: CustomStorageHandlers): StepStorageAdapter;
|
|
454
|
-
/**
|
|
455
|
-
* Universal Key-Value adapter enabling any KV client (Redis, Upstash, Cloudflare KV,
|
|
456
|
-
* Keyv, Memcached) to be plugged in with simple get/set operations.
|
|
457
|
-
*/
|
|
458
|
-
declare class KeyValueStorageAdapter implements StepStorageAdapter {
|
|
459
|
-
private readonly client;
|
|
460
|
-
private readonly prefix;
|
|
461
|
-
private readonly ttlSeconds?;
|
|
462
|
-
constructor(client: KeyValueStoreClient, options?: KeyValueAdapterOptions);
|
|
463
|
-
private buildKey;
|
|
464
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
465
|
-
saveStep<T = unknown>(step: StepRecord<T>): Promise<void>;
|
|
466
|
-
updateStepStatus<T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>): Promise<void>;
|
|
467
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
468
|
-
getCachedToolResult<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
469
|
-
setCachedToolResult<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
470
|
-
getStateValue<T = unknown>(key: string): Promise<T | null>;
|
|
471
|
-
setStateValue<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
472
|
-
deleteStateValue(key: string): Promise<void>;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
interface PrismaStepModelDelegate {
|
|
476
|
-
findUnique(args: {
|
|
477
|
-
where: {
|
|
478
|
-
workflowId_stepId: {
|
|
479
|
-
workflowId: string;
|
|
480
|
-
stepId: string;
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
}): Promise<any>;
|
|
484
|
-
upsert(args: {
|
|
485
|
-
where: {
|
|
486
|
-
workflowId_stepId: {
|
|
487
|
-
workflowId: string;
|
|
488
|
-
stepId: string;
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
create: any;
|
|
492
|
-
update: any;
|
|
493
|
-
}): Promise<any>;
|
|
494
|
-
findMany(args: {
|
|
495
|
-
where: {
|
|
496
|
-
workflowId: string;
|
|
497
|
-
};
|
|
498
|
-
orderBy?: any;
|
|
499
|
-
}): Promise<any[]>;
|
|
500
|
-
}
|
|
501
|
-
interface PrismaToolDelegates {
|
|
502
|
-
toolExecution?: any;
|
|
503
|
-
toolCache?: any;
|
|
504
|
-
sharedState?: any;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Storage adapter integrating with Prisma ORM without imposing a direct dependency.
|
|
508
|
-
*/
|
|
509
|
-
declare class PrismaStorageAdapter implements StepStorageAdapter {
|
|
510
|
-
private readonly model;
|
|
511
|
-
private readonly toolDelegates?;
|
|
512
|
-
private readonly volatileCache;
|
|
513
|
-
private readonly volatileState;
|
|
514
|
-
private readonly volatileExecutions;
|
|
515
|
-
constructor(model: PrismaStepModelDelegate, toolDelegates?: PrismaToolDelegates);
|
|
516
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
517
|
-
saveStep<T = unknown>(step: StepRecord<T>): Promise<void>;
|
|
518
|
-
updateStepStatus<T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>): Promise<void>;
|
|
519
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
520
|
-
saveToolExecution(record: ToolExecutionRecord): Promise<void>;
|
|
521
|
-
listToolExecutions(workflowId?: string, stepId?: string): Promise<ToolExecutionRecord[]>;
|
|
522
|
-
getCachedToolResult<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
523
|
-
setCachedToolResult<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
524
|
-
getStateValue<T = unknown>(key: string): Promise<T | null>;
|
|
525
|
-
setStateValue<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
526
|
-
deleteStateValue(key: string): Promise<void>;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
interface SQLiteStatementLike {
|
|
530
|
-
get(...params: any[]): any;
|
|
531
|
-
all(...params: any[]): any[];
|
|
532
|
-
run(...params: any[]): any;
|
|
533
|
-
}
|
|
534
|
-
interface SQLiteDatabaseLike {
|
|
535
|
-
exec(sql: string): void;
|
|
536
|
-
prepare(sql: string): SQLiteStatementLike;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* SQLite storage adapter for local edge execution and serverless durable workflows.
|
|
540
|
-
* Automatically initializes tables for steps, tool executions, cache and blackboard state.
|
|
541
|
-
*/
|
|
542
|
-
declare class SQLiteStorageAdapter implements StepStorageAdapter {
|
|
543
|
-
private readonly db;
|
|
544
|
-
constructor(db: SQLiteDatabaseLike);
|
|
545
|
-
private initTables;
|
|
546
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
547
|
-
saveStep<T = unknown>(step: StepRecord<T>): Promise<void>;
|
|
548
|
-
updateStepStatus<T = unknown>(workflowId: string, stepId: string, status: StepStatus, patch?: Partial<StepRecord<T>>): Promise<void>;
|
|
549
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
550
|
-
saveToolExecution(record: ToolExecutionRecord): Promise<void>;
|
|
551
|
-
listToolExecutions(workflowId?: string, stepId?: string): Promise<ToolExecutionRecord[]>;
|
|
552
|
-
getCachedToolResult<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
553
|
-
setCachedToolResult<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
554
|
-
getStateValue<T = unknown>(key: string): Promise<T | null>;
|
|
555
|
-
setStateValue<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
556
|
-
deleteStateValue(key: string): Promise<void>;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Supported telemetry event types for the avantGate observability platform.
|
|
561
|
-
*/
|
|
562
|
-
type TelemetryEventType = "STEP_START" | "STEP_COMPLETED" | "STEP_FAILED" | "STEP_APPROVAL_REQUEST" | "TOOL_EXECUTION";
|
|
563
|
-
/**
|
|
564
|
-
* Base properties shared across all telemetry events.
|
|
565
|
-
*/
|
|
566
|
-
interface BaseTelemetryEvent {
|
|
567
|
-
type: TelemetryEventType;
|
|
568
|
-
timestamp: string;
|
|
569
|
-
}
|
|
570
|
-
interface StepStartEvent extends BaseTelemetryEvent {
|
|
571
|
-
type: "STEP_START";
|
|
572
|
-
stepName: string;
|
|
573
|
-
metadata?: Record<string, unknown>;
|
|
574
|
-
}
|
|
575
|
-
interface StepCompletedEvent extends BaseTelemetryEvent {
|
|
576
|
-
type: "STEP_COMPLETED";
|
|
577
|
-
stepName: string;
|
|
578
|
-
durationMs?: number;
|
|
579
|
-
piiDetectedCount?: number;
|
|
580
|
-
resultSummary?: unknown;
|
|
581
|
-
metadata?: Record<string, unknown>;
|
|
582
|
-
}
|
|
583
|
-
interface StepFailedEvent extends BaseTelemetryEvent {
|
|
584
|
-
type: "STEP_FAILED";
|
|
585
|
-
stepName: string;
|
|
586
|
-
durationMs?: number;
|
|
587
|
-
error: string;
|
|
588
|
-
}
|
|
589
|
-
interface StepApprovalRequestEvent extends BaseTelemetryEvent {
|
|
590
|
-
type: "STEP_APPROVAL_REQUEST";
|
|
591
|
-
stepName: string;
|
|
592
|
-
actionType?: string;
|
|
593
|
-
payloadSummary?: unknown;
|
|
594
|
-
}
|
|
595
|
-
interface ToolExecutionTelemetryEvent extends BaseTelemetryEvent {
|
|
596
|
-
type: "TOOL_EXECUTION";
|
|
597
|
-
toolId: string;
|
|
598
|
-
toolName: string;
|
|
599
|
-
aliasUsed?: string;
|
|
600
|
-
durationMs: number;
|
|
601
|
-
success: boolean;
|
|
602
|
-
parentToolId?: string;
|
|
603
|
-
depth?: number;
|
|
604
|
-
llmSummary?: unknown;
|
|
605
|
-
piiFilteredCount?: number;
|
|
606
|
-
tokenCount?: number;
|
|
607
|
-
tokens?: {
|
|
608
|
-
promptTokens?: number;
|
|
609
|
-
completionTokens?: number;
|
|
610
|
-
totalTokens?: number;
|
|
611
|
-
};
|
|
612
|
-
costUsd?: number;
|
|
613
|
-
cached?: boolean;
|
|
614
|
-
error?: string;
|
|
615
|
-
}
|
|
616
|
-
type TelemetryEvent = StepStartEvent | StepCompletedEvent | StepFailedEvent | StepApprovalRequestEvent | ToolExecutionTelemetryEvent;
|
|
617
|
-
/**
|
|
618
|
-
* Consolidates token usage and FinOps metrics for a batch or run.
|
|
619
|
-
*/
|
|
620
|
-
interface TelemetryUsageSummary {
|
|
621
|
-
model?: string;
|
|
622
|
-
promptTokens?: number;
|
|
623
|
-
completionTokens?: number;
|
|
624
|
-
totalTokens?: number;
|
|
625
|
-
costUsd?: number;
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Payload schema ingested by POST /api/v1/ingest/events according to DESIGN-005 §5.1.
|
|
629
|
-
*/
|
|
630
|
-
interface TelemetryIngestPayload {
|
|
631
|
-
runId: string;
|
|
632
|
-
agentName?: string;
|
|
633
|
-
timestamp: string;
|
|
634
|
-
events: TelemetryEvent[];
|
|
635
|
-
usage?: TelemetryUsageSummary;
|
|
636
|
-
}
|
|
637
|
-
/**
|
|
638
|
-
* Configuration options for the HTTP Telemetry Exporter.
|
|
639
|
-
*/
|
|
640
|
-
interface HttpTelemetryExporterOptions {
|
|
641
|
-
apiKey: string;
|
|
642
|
-
endpoint?: string;
|
|
643
|
-
agentName?: string;
|
|
644
|
-
batchIntervalMs?: number;
|
|
645
|
-
maxBatchSize?: number;
|
|
646
|
-
maxQueueSize?: number;
|
|
647
|
-
fetchFn?: typeof fetch;
|
|
648
|
-
onError?: (error: Error) => void;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Asynchronous, zero-dependency HTTP Telemetry Exporter for the avantGate platform.
|
|
653
|
-
* Batches events in memory and sends them in background without blocking agent execution.
|
|
654
|
-
*/
|
|
655
|
-
declare class HttpTelemetryExporter {
|
|
656
|
-
private readonly apiKey;
|
|
657
|
-
private readonly endpoint;
|
|
658
|
-
private readonly agentName?;
|
|
659
|
-
private readonly batchIntervalMs;
|
|
660
|
-
private readonly maxBatchSize;
|
|
661
|
-
private readonly maxQueueSize;
|
|
662
|
-
private readonly fetchFn;
|
|
663
|
-
private readonly onError?;
|
|
664
|
-
private queue;
|
|
665
|
-
private timer;
|
|
666
|
-
private isFlushing;
|
|
667
|
-
constructor(options: HttpTelemetryExporterOptions);
|
|
668
|
-
private startTimer;
|
|
669
|
-
enqueue(runId: string, event: TelemetryEvent, usage?: TelemetryUsageSummary): void;
|
|
670
|
-
flush(): Promise<void>;
|
|
671
|
-
shutdown(): Promise<void>;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
interface PlatformStorageAdapterConfig {
|
|
675
|
-
exporter: HttpTelemetryExporter;
|
|
676
|
-
primaryStorage?: StepStorageAdapter;
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Hexagonal Hybrid Storage Adapter: persists steps and tool executions locally
|
|
680
|
-
* while mirroring telemetry events asynchronously to avantGate Cloud.
|
|
681
|
-
*/
|
|
682
|
-
declare class PlatformStorageAdapter implements StepStorageAdapter {
|
|
683
|
-
private readonly exporter;
|
|
684
|
-
private readonly primary;
|
|
685
|
-
constructor(config: PlatformStorageAdapterConfig);
|
|
686
|
-
getStep<T = unknown>(workflowId: string, stepId: string): Promise<StepRecord<T> | null>;
|
|
687
|
-
saveStep<T = unknown>(record: StepRecord<T>): Promise<void>;
|
|
688
|
-
updateStepStatus(workflowId: string, stepId: string, status: StepStatus, updates?: {
|
|
689
|
-
result?: unknown;
|
|
690
|
-
error?: string;
|
|
691
|
-
metadata?: Record<string, unknown>;
|
|
692
|
-
}): Promise<void>;
|
|
693
|
-
listSteps(workflowId: string): Promise<StepRecord[]>;
|
|
694
|
-
saveToolExecution(record: ToolExecutionRecord): Promise<void>;
|
|
695
|
-
listToolExecutions(workflowId?: string, stepId?: string): Promise<ToolExecutionRecord[]>;
|
|
696
|
-
getCachedToolResult<T = unknown>(cacheKey: string): Promise<T | null>;
|
|
697
|
-
setCachedToolResult<T = unknown>(cacheKey: string, result: T, ttlSeconds: number): Promise<void>;
|
|
698
|
-
getStateValue<T = unknown>(key: string): Promise<T | null>;
|
|
699
|
-
setStateValue<T = unknown>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
700
|
-
deleteStateValue(key: string): Promise<void>;
|
|
701
|
-
clearStateValues(): Promise<void>;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
export { AgentToolFactory, type AuditToolResultOptions, type AuditToolResultOutput, type BaseTelemetryEvent, CircularToolCallError, type ClientDataCallback, CompositeToolStrategy, type CustomStorageHandlers, HttpTelemetryExporter, type HttpTelemetryExporterOptions, type IsolatedToolConfig, type KeyValueAdapterOptions, KeyValueStorageAdapter, type KeyValueStoreClient, type LLMSummaryTransformer, type MemoryAdapterOptions, MemoryStorageAdapter, PhaseBasedToolStrategy, PiiLeakError, PlatformStorageAdapter, type PlatformStorageAdapterConfig, type PrismaStepModelDelegate, PrismaStorageAdapter, type PrismaToolDelegates, type RegisteredTool, RoleBasedToolStrategy, type SQLiteDatabaseLike, type SQLiteStatementLike, SQLiteStorageAdapter, type StepApprovalOptions, type StepApprovalRequestEvent, type StepCompletedEvent, StepExecutionError, type StepFailedEvent, type StepRecord, type StepRunnerConfig, type StepRunnerContext, type StepRunnerInstance, type StepStartEvent, type StepStatus, type StepStorageAdapter, StepSuspendedError, type TelemetryEvent, type TelemetryEventType, type TelemetryIngestPayload, type TelemetryUsageSummary, type ToRecordOptions, type TokenUsage, ToolAccessDeniedError, ToolCallDepthExceededError, type ToolContext, type ToolExecutionContext, type ToolExecutionRecord, type ToolExecutionTelemetryEvent, type ToolInvoker, type ToolInvokerOptions, ToolNotFoundError, ToolRegistry, type ToolSelectionStrategy, type ToolSharedState, ToolSubCallQuotaError, type VercelAiCoreTool, applyToolStrategy, auditToolResult, createCustomStorageAdapter, createIsolatedTool, createStepRunner, createToolInvoker, createToolSharedState };
|
|
2
|
+
* avantgate/agent
|
|
3
|
+
* Zero-infrastructure Durable Agent Harness & Tool Data Isolation
|
|
4
|
+
*/
|
|
5
|
+
export * from "./types";
|
|
6
|
+
export * from "./errors";
|
|
7
|
+
export * from "./guardrails";
|
|
8
|
+
export * from "./isolated-tool";
|
|
9
|
+
export * from "./dto";
|
|
10
|
+
export * from "./factory";
|
|
11
|
+
export * from "./registry";
|
|
12
|
+
export * from "./strategy";
|
|
13
|
+
export * from "./step-runner";
|
|
14
|
+
export * from "./tool-invoker";
|
|
15
|
+
export * from "./tool-state";
|
|
16
|
+
export * from "./adapters";
|
|
17
|
+
export * from "./telemetry";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|