@iqai/adk 0.8.0 → 0.8.5
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/CHANGELOG.md +49 -0
- package/README.md +2 -2
- package/dist/constants.d.mts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/index.d.mts +79 -50
- package/dist/index.d.ts +79 -50
- package/dist/index.js +391 -127
- package/dist/index.mjs +391 -127
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @iqai/adk
|
|
2
2
|
|
|
3
|
+
## 0.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d25219b: fix: deduplicate concurrent database session initialization
|
|
8
|
+
- 2336621: fix: share endInvocation flag by reference between parent/child contexts
|
|
9
|
+
|
|
10
|
+
endInvocation was a primitive boolean copied by value when creating child
|
|
11
|
+
invocation contexts, so sub-agents setting it to true never propagated to
|
|
12
|
+
the parent. Wrapped in a shared InvocationFlags object passed by reference.
|
|
13
|
+
|
|
14
|
+
- b4b6887: fix: standardize evaluation timestamps to milliseconds
|
|
15
|
+
- 751b3e9: fix: handle all Part types in GcsArtifactService
|
|
16
|
+
- 800239b: fix: use correct invocationId when merging parallel function responses
|
|
17
|
+
- d35873a: fix: guard streaming tool call JSON.parse to prevent generator crashes
|
|
18
|
+
- c6ff7ef: fix: vector storage delete/count bypass stale in-memory cache
|
|
19
|
+
|
|
20
|
+
Filter-based `delete()` and `count()` in `VectorStorageProvider` now delegate to the underlying vector store instead of relying on an in-memory cache that is empty after process restart.
|
|
21
|
+
|
|
22
|
+
- fbb3c30: fix: replace random score stubs with real Vertex AI evaluation API calls
|
|
23
|
+
- 7c9ddf6: fix: resolve race condition in LocalEvalService constructor
|
|
24
|
+
|
|
25
|
+
## 0.8.4
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 621aa3f: fix: align Anthropic non-streaming path to use camelCase for function call properties
|
|
30
|
+
|
|
31
|
+
## 0.8.3
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 0c189c7: security: fix SSRF, API key exposure, pattern bypass, symlink escapes
|
|
36
|
+
|
|
37
|
+
## 0.8.2
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- c1093ed: fix: clear LangGraphAgent results on each invocation
|
|
42
|
+
- deb7ec5: fix: assign decodedData when input is string in getEncodedFileContent
|
|
43
|
+
|
|
44
|
+
## 0.8.1
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 58eeac4: fix: handle null `answer` from Tavily API in WebSearchTool
|
|
49
|
+
|
|
50
|
+
Tavily returns `"answer": null` by default when `include_answer` is not set, but the Zod schema typed `answer` as `z.string().optional()` which rejects `null`. Changed to `z.string().nullish()` to accept both `null` and `undefined`.
|
|
51
|
+
|
|
3
52
|
## 0.8.0
|
|
4
53
|
|
|
5
54
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## 🌟 Overview
|
|
28
28
|
|
|
29
|
-
`@iqai/adk` is the core
|
|
29
|
+
`@iqai/adk` is the core library for ADK-TS — the TypeScript-native AI agent framework. It provides the foundational tools and abstractions to build sophisticated AI agents in TypeScript, with seamless integration across multiple Large Language Models (LLMs), advanced tool usage, and persistent memory capabilities.
|
|
30
30
|
|
|
31
31
|
## 🚀 Key Features
|
|
32
32
|
|
|
@@ -169,7 +169,7 @@ async function createWorkflowAgent() {
|
|
|
169
169
|
- **Automatic Management**: Handles session and runner creation automatically
|
|
170
170
|
- **Quick Execution**: Built-in `ask()` method for immediate responses
|
|
171
171
|
- **Flexible**: Supports all agent types (LLM, Sequential, Parallel, Loop, LangGraph)
|
|
172
|
-
- **Backward Compatible**: Works alongside existing ADK patterns
|
|
172
|
+
- **Backward Compatible**: Works alongside existing ADK-TS patterns
|
|
173
173
|
|
|
174
174
|
## 🛠️ Using Tools with an Agent
|
|
175
175
|
|
package/dist/constants.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Semantic Conventions and Constants
|
|
3
|
-
* OpenTelemetry semantic conventions for ADK telemetry
|
|
3
|
+
* OpenTelemetry semantic conventions for ADK-TS telemetry
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Standard OpenTelemetry GenAI semantic conventions
|
|
@@ -65,7 +65,7 @@ declare const SEMCONV: {
|
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* ADK-specific attribute namespace
|
|
68
|
-
* Custom attributes for IQAI ADK framework
|
|
68
|
+
* Custom attributes for IQAI ADK-TS framework
|
|
69
69
|
*/
|
|
70
70
|
declare const ADK_ATTRS: {
|
|
71
71
|
readonly SYSTEM_NAME: "adk.system.name";
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Semantic Conventions and Constants
|
|
3
|
-
* OpenTelemetry semantic conventions for ADK telemetry
|
|
3
|
+
* OpenTelemetry semantic conventions for ADK-TS telemetry
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Standard OpenTelemetry GenAI semantic conventions
|
|
@@ -65,7 +65,7 @@ declare const SEMCONV: {
|
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* ADK-specific attribute namespace
|
|
68
|
-
* Custom attributes for IQAI ADK framework
|
|
68
|
+
* Custom attributes for IQAI ADK-TS framework
|
|
69
69
|
*/
|
|
70
70
|
declare const ADK_ATTRS: {
|
|
71
71
|
readonly SYSTEM_NAME: "adk.system.name";
|
package/dist/constants.js
CHANGED
|
@@ -198,7 +198,7 @@ var OPERATIONS = {
|
|
|
198
198
|
EXECUTE_TOOL: "execute_tool",
|
|
199
199
|
// ============================================
|
|
200
200
|
// ADK-specific operations (framework extensions)
|
|
201
|
-
// These are non-standard but useful for the ADK framework
|
|
201
|
+
// These are non-standard but useful for the ADK-TS framework
|
|
202
202
|
// ============================================
|
|
203
203
|
TRANSFER_AGENT: "transfer_agent",
|
|
204
204
|
// Multi-agent transfer
|
package/dist/constants.mjs
CHANGED
|
@@ -168,7 +168,7 @@ var OPERATIONS = {
|
|
|
168
168
|
EXECUTE_TOOL: "execute_tool",
|
|
169
169
|
// ============================================
|
|
170
170
|
// ADK-specific operations (framework extensions)
|
|
171
|
-
// These are non-standard but useful for the ADK framework
|
|
171
|
+
// These are non-standard but useful for the ADK-TS framework
|
|
172
172
|
// ============================================
|
|
173
173
|
TRANSFER_AGENT: "transfer_agent",
|
|
174
174
|
// Multi-agent transfer
|
package/dist/index.d.mts
CHANGED
|
@@ -1242,6 +1242,10 @@ declare class VectorStorageProvider implements MemoryStorageProvider {
|
|
|
1242
1242
|
* Build filter object for vector store query.
|
|
1243
1243
|
*/
|
|
1244
1244
|
private buildFilter;
|
|
1245
|
+
/**
|
|
1246
|
+
* Build filter object for vector store delete/count operations.
|
|
1247
|
+
*/
|
|
1248
|
+
private buildDeleteFilter;
|
|
1245
1249
|
/**
|
|
1246
1250
|
* Check if a record matches the given filter.
|
|
1247
1251
|
*/
|
|
@@ -2196,7 +2200,7 @@ declare class ReadonlyContext {
|
|
|
2196
2200
|
*/
|
|
2197
2201
|
declare class CallbackContext extends ReadonlyContext {
|
|
2198
2202
|
/**
|
|
2199
|
-
* TODO: make this public for
|
|
2203
|
+
* TODO: make this public for ADK-TS, but private for users.
|
|
2200
2204
|
*/
|
|
2201
2205
|
readonly _eventActions: EventActions;
|
|
2202
2206
|
private readonly _state;
|
|
@@ -2244,7 +2248,7 @@ declare class ToolContext extends CallbackContext {
|
|
|
2244
2248
|
/**
|
|
2245
2249
|
* The function call id of the current tool call. This id was
|
|
2246
2250
|
* returned in the function call event from LLM to identify a function call.
|
|
2247
|
-
* If LLM didn't return this id, ADK will assign one to it. This id is used
|
|
2251
|
+
* If LLM didn't return this id, ADK-TS will assign one to it. This id is used
|
|
2248
2252
|
* to map function call response to the original function call.
|
|
2249
2253
|
*/
|
|
2250
2254
|
functionCallId?: string;
|
|
@@ -2705,7 +2709,7 @@ type BeforeAgentCallback = SingleAgentCallback | SingleAgentCallback[];
|
|
|
2705
2709
|
*/
|
|
2706
2710
|
type AfterAgentCallback = SingleAgentCallback | SingleAgentCallback[];
|
|
2707
2711
|
/**
|
|
2708
|
-
* Base class for all agents in
|
|
2712
|
+
* Base class for all agents in ADK-TS.
|
|
2709
2713
|
*/
|
|
2710
2714
|
declare abstract class BaseAgent {
|
|
2711
2715
|
/**
|
|
@@ -2824,12 +2828,12 @@ declare abstract class BaseAgent {
|
|
|
2824
2828
|
private createInvocationContext;
|
|
2825
2829
|
/**
|
|
2826
2830
|
* The resolved beforeAgentCallback field as a list of SingleAgentCallback.
|
|
2827
|
-
* This method is only for use by
|
|
2831
|
+
* This method is only for use by ADK-TS.
|
|
2828
2832
|
*/
|
|
2829
2833
|
get canonicalBeforeAgentCallbacks(): SingleAgentCallback[];
|
|
2830
2834
|
/**
|
|
2831
2835
|
* The resolved afterAgentCallback field as a list of SingleAgentCallback.
|
|
2832
|
-
* This method is only for use by
|
|
2836
|
+
* This method is only for use by ADK-TS.
|
|
2833
2837
|
*/
|
|
2834
2838
|
get canonicalAfterAgentCallbacks(): SingleAgentCallback[];
|
|
2835
2839
|
/**
|
|
@@ -3132,22 +3136,22 @@ declare class LlmAgent<T extends BaseLlm = BaseLlm> extends BaseAgent {
|
|
|
3132
3136
|
constructor(config: LlmAgentConfig<T>);
|
|
3133
3137
|
/**
|
|
3134
3138
|
* The resolved model field as BaseLLM
|
|
3135
|
-
* This method is only for use by
|
|
3139
|
+
* This method is only for use by ADK-TS
|
|
3136
3140
|
*/
|
|
3137
3141
|
get canonicalModel(): BaseLlm;
|
|
3138
3142
|
/**
|
|
3139
3143
|
* The resolved instruction field to construct instruction for this agent
|
|
3140
|
-
* This method is only for use by
|
|
3144
|
+
* This method is only for use by ADK-TS
|
|
3141
3145
|
*/
|
|
3142
3146
|
canonicalInstruction(ctx: ReadonlyContext): Promise<[string, boolean]>;
|
|
3143
3147
|
/**
|
|
3144
3148
|
* The resolved global_instruction field to construct global instruction
|
|
3145
|
-
* This method is only for use by
|
|
3149
|
+
* This method is only for use by ADK-TS
|
|
3146
3150
|
*/
|
|
3147
3151
|
canonicalGlobalInstruction(ctx: ReadonlyContext): Promise<[string, boolean]>;
|
|
3148
3152
|
/**
|
|
3149
3153
|
* The resolved tools field as a list of BaseTool based on the context
|
|
3150
|
-
* This method is only for use by
|
|
3154
|
+
* This method is only for use by ADK-TS
|
|
3151
3155
|
*/
|
|
3152
3156
|
canonicalTools(_ctx?: ReadonlyContext): Promise<BaseTool[]>;
|
|
3153
3157
|
/**
|
|
@@ -3318,7 +3322,8 @@ declare class FileOperationsTool extends BaseTool {
|
|
|
3318
3322
|
*/
|
|
3319
3323
|
private resolvePath;
|
|
3320
3324
|
/**
|
|
3321
|
-
* Validate that a path is within the base path for security
|
|
3325
|
+
* Validate that a path is within the base path for security.
|
|
3326
|
+
* Resolves symlinks to prevent symlink escape attacks.
|
|
3322
3327
|
*/
|
|
3323
3328
|
private validatePath;
|
|
3324
3329
|
/**
|
|
@@ -3915,7 +3920,7 @@ declare const tavilySearchResponseSchema: z$1.ZodObject<{
|
|
|
3915
3920
|
favicon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3916
3921
|
score: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3917
3922
|
}, z$1.core.$strip>>;
|
|
3918
|
-
answer: z$1.ZodOptional<z$1.ZodString
|
|
3923
|
+
answer: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3919
3924
|
images: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3920
3925
|
url: z$1.ZodString;
|
|
3921
3926
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -4059,7 +4064,7 @@ type McpConfig = {
|
|
|
4059
4064
|
debug?: boolean;
|
|
4060
4065
|
/**
|
|
4061
4066
|
* Sampling handler for processing MCP sampling requests.
|
|
4062
|
-
* This allows MCP servers to request LLM completions through your ADK agent.
|
|
4067
|
+
* This allows MCP servers to request LLM completions through your ADK-TS agent.
|
|
4063
4068
|
*/
|
|
4064
4069
|
samplingHandler?: SamplingHandler;
|
|
4065
4070
|
};
|
|
@@ -4140,7 +4145,7 @@ declare class McpClientService {
|
|
|
4140
4145
|
isConnected(): boolean;
|
|
4141
4146
|
private setupSamplingHandler;
|
|
4142
4147
|
/**
|
|
4143
|
-
* Set a new ADK sampling handler
|
|
4148
|
+
* Set a new ADK-TS sampling handler
|
|
4144
4149
|
*/
|
|
4145
4150
|
setSamplingHandler(handler: SamplingHandler): void;
|
|
4146
4151
|
/**
|
|
@@ -4157,12 +4162,12 @@ type ConvertMcpToolTooBaseToolParams = {
|
|
|
4157
4162
|
declare function convertMcpToolToBaseTool(params: ConvertMcpToolTooBaseToolParams): Promise<BaseTool>;
|
|
4158
4163
|
|
|
4159
4164
|
/**
|
|
4160
|
-
* Converts an ADK-style BaseTool to an MCP tool format
|
|
4165
|
+
* Converts an ADK-TS-style BaseTool to an MCP tool format
|
|
4161
4166
|
* Similar to Python's adk_to_mcp_tool_type function
|
|
4162
4167
|
*/
|
|
4163
4168
|
declare function adkToMcpToolType(tool: BaseTool): Tool;
|
|
4164
4169
|
/**
|
|
4165
|
-
* Converts MCP JSONSchema to ADK
|
|
4170
|
+
* Converts MCP JSONSchema to ADK-TS FunctionDeclaration format
|
|
4166
4171
|
* Similar to handling in McpToolAdapter's getDeclaration
|
|
4167
4172
|
*/
|
|
4168
4173
|
declare function jsonSchemaToDeclaration(name: string, description: string, schema: Record<string, any> | undefined): FunctionDeclaration;
|
|
@@ -4178,7 +4183,7 @@ declare function mcpSchemaToParameters(mcpTool: Tool): Schema;
|
|
|
4178
4183
|
|
|
4179
4184
|
/**
|
|
4180
4185
|
* MCP Sampling Handler class that handles message format conversion
|
|
4181
|
-
* between MCP format and ADK format
|
|
4186
|
+
* between MCP format and ADK-TS format
|
|
4182
4187
|
*/
|
|
4183
4188
|
declare class McpSamplingHandler {
|
|
4184
4189
|
protected logger: Logger;
|
|
@@ -4189,23 +4194,23 @@ declare class McpSamplingHandler {
|
|
|
4189
4194
|
*/
|
|
4190
4195
|
handleSamplingRequest(request: McpSamplingRequest): Promise<McpSamplingResponse>;
|
|
4191
4196
|
/**
|
|
4192
|
-
* Convert MCP messages to ADK Content format
|
|
4197
|
+
* Convert MCP messages to ADK-TS Content format
|
|
4193
4198
|
*/
|
|
4194
4199
|
private convertMcpMessagesToADK;
|
|
4195
4200
|
/**
|
|
4196
|
-
* Convert a single MCP message to ADK Content format
|
|
4201
|
+
* Convert a single MCP message to ADK-TS Content format
|
|
4197
4202
|
*/
|
|
4198
4203
|
private convertSingleMcpMessageToADK;
|
|
4199
4204
|
/**
|
|
4200
|
-
* Convert MCP message content to ADK parts format
|
|
4205
|
+
* Convert MCP message content to ADK-TS parts format
|
|
4201
4206
|
*/
|
|
4202
4207
|
private convertMcpContentToADKParts;
|
|
4203
4208
|
/**
|
|
4204
|
-
* Convert ADK response to MCP response format
|
|
4209
|
+
* Convert ADK-TS response to MCP response format
|
|
4205
4210
|
*/
|
|
4206
4211
|
private convertADKResponseToMcp;
|
|
4207
4212
|
/**
|
|
4208
|
-
* Update the ADK handler
|
|
4213
|
+
* Update the ADK-TS handler
|
|
4209
4214
|
*/
|
|
4210
4215
|
updateHandler(handler: SamplingHandler): void;
|
|
4211
4216
|
}
|
|
@@ -4213,7 +4218,7 @@ declare class McpSamplingHandler {
|
|
|
4213
4218
|
* Helper function to create a sampling handler with proper TypeScript types.
|
|
4214
4219
|
*
|
|
4215
4220
|
* @param handler - Function that handles sampling requests
|
|
4216
|
-
* @returns Properly typed ADK sampling handler
|
|
4221
|
+
* @returns Properly typed ADK-TS sampling handler
|
|
4217
4222
|
*
|
|
4218
4223
|
* @example
|
|
4219
4224
|
* ```typescript
|
|
@@ -4590,15 +4595,16 @@ declare class McpToolset {
|
|
|
4590
4595
|
* Similar to Python's _is_selected method.
|
|
4591
4596
|
*/
|
|
4592
4597
|
private isSelected;
|
|
4598
|
+
private isCacheEnabled;
|
|
4593
4599
|
/**
|
|
4594
4600
|
* Initializes the client service and establishes a connection.
|
|
4595
4601
|
*/
|
|
4596
4602
|
initialize(): Promise<McpClientService>;
|
|
4597
4603
|
/**
|
|
4598
4604
|
* Set a sampling handler for this MCP toolset.
|
|
4599
|
-
* This allows MCP servers to request LLM completions through your ADK agent.
|
|
4605
|
+
* This allows MCP servers to request LLM completions through your ADK-TS agent.
|
|
4600
4606
|
*
|
|
4601
|
-
* @param handler - ADK sampling handler that receives ADK-formatted messages
|
|
4607
|
+
* @param handler - ADK-TS sampling handler that receives ADK-TS-formatted messages
|
|
4602
4608
|
*/
|
|
4603
4609
|
setSamplingHandler(handler: SamplingHandler): void;
|
|
4604
4610
|
/**
|
|
@@ -4611,7 +4617,7 @@ declare class McpToolset {
|
|
|
4611
4617
|
*/
|
|
4612
4618
|
getTools(context?: ToolContext): Promise<BaseTool[]>;
|
|
4613
4619
|
/**
|
|
4614
|
-
* Converts ADK tools to MCP tool format for bidirectional support
|
|
4620
|
+
* Converts ADK-TS tools to MCP tool format for bidirectional support
|
|
4615
4621
|
*/
|
|
4616
4622
|
convertADKToolsToMCP(tools: BaseTool[]): any[];
|
|
4617
4623
|
/**
|
|
@@ -5179,6 +5185,13 @@ type SpanCounters = {
|
|
|
5179
5185
|
tool: number;
|
|
5180
5186
|
agent: number;
|
|
5181
5187
|
};
|
|
5188
|
+
/**
|
|
5189
|
+
* Shared mutable flags for an invocation, passed by reference so that
|
|
5190
|
+
* child contexts and parent contexts stay in sync.
|
|
5191
|
+
*/
|
|
5192
|
+
type InvocationFlags = {
|
|
5193
|
+
endInvocation: boolean;
|
|
5194
|
+
};
|
|
5182
5195
|
/**
|
|
5183
5196
|
* Transfer context for multi-agent workflows
|
|
5184
5197
|
* Tracks the chain of agent transfers for telemetry
|
|
@@ -5290,12 +5303,17 @@ declare class InvocationContext {
|
|
|
5290
5303
|
* The current session of this invocation context. Readonly.
|
|
5291
5304
|
*/
|
|
5292
5305
|
readonly session: Session;
|
|
5306
|
+
/**
|
|
5307
|
+
* Shared flags container so that child/parent contexts stay in sync.
|
|
5308
|
+
*/
|
|
5309
|
+
private readonly _invocationFlags;
|
|
5293
5310
|
/**
|
|
5294
5311
|
* Whether to end this invocation.
|
|
5295
5312
|
*
|
|
5296
5313
|
* Set to True in callbacks or tools to terminate this invocation.
|
|
5297
5314
|
*/
|
|
5298
|
-
endInvocation: boolean;
|
|
5315
|
+
get endInvocation(): boolean;
|
|
5316
|
+
set endInvocation(value: boolean);
|
|
5299
5317
|
/**
|
|
5300
5318
|
* The queue to receive live requests.
|
|
5301
5319
|
*/
|
|
@@ -5337,6 +5355,7 @@ declare class InvocationContext {
|
|
|
5337
5355
|
userContent?: Content;
|
|
5338
5356
|
session: Session;
|
|
5339
5357
|
endInvocation?: boolean;
|
|
5358
|
+
invocationFlags?: InvocationFlags;
|
|
5340
5359
|
liveRequestQueue?: LiveRequestQueue;
|
|
5341
5360
|
activeStreamingTools?: Record<string, ActiveStreamingTool>;
|
|
5342
5361
|
transcriptionCache?: TranscriptionEntry[];
|
|
@@ -5375,6 +5394,10 @@ declare class InvocationContext {
|
|
|
5375
5394
|
* Exposes shared span counters for child contexts.
|
|
5376
5395
|
*/
|
|
5377
5396
|
getSpanCounters(): SpanCounters;
|
|
5397
|
+
/**
|
|
5398
|
+
* Exposes shared invocation flags for child contexts.
|
|
5399
|
+
*/
|
|
5400
|
+
getInvocationFlags(): InvocationFlags;
|
|
5378
5401
|
/**
|
|
5379
5402
|
* Creates a child invocation context for a sub-agent
|
|
5380
5403
|
*/
|
|
@@ -5442,7 +5465,7 @@ declare class EnhancedAuthConfig {
|
|
|
5442
5465
|
rawAuthCredential?: AuthCredential;
|
|
5443
5466
|
/**
|
|
5444
5467
|
* Exchanged auth credential after processing
|
|
5445
|
-
* Filled by ADK and client working together
|
|
5468
|
+
* Filled by ADK-TS and client working together
|
|
5446
5469
|
*/
|
|
5447
5470
|
exchangedAuthCredential?: AuthCredential;
|
|
5448
5471
|
/**
|
|
@@ -5676,7 +5699,7 @@ declare class OAuth2Credential extends AuthCredential {
|
|
|
5676
5699
|
|
|
5677
5700
|
/**
|
|
5678
5701
|
* AI SDK integration that accepts a pre-configured LanguageModel.
|
|
5679
|
-
* Enables ADK to work with any provider supported by Vercel's AI SDK.
|
|
5702
|
+
* Enables ADK-TS to work with any provider supported by Vercel's AI SDK.
|
|
5680
5703
|
*/
|
|
5681
5704
|
declare class AiSdkLlm extends BaseLlm {
|
|
5682
5705
|
private modelInstance;
|
|
@@ -5735,7 +5758,7 @@ declare class AiSdkLlm extends BaseLlm {
|
|
|
5735
5758
|
*/
|
|
5736
5759
|
private handleNonStreamingResponse;
|
|
5737
5760
|
/**
|
|
5738
|
-
* Convert ADK LlmRequest to AI SDK CoreMessage format
|
|
5761
|
+
* Convert ADK-TS LlmRequest to AI SDK CoreMessage format
|
|
5739
5762
|
*/
|
|
5740
5763
|
private convertToAiSdkMessages;
|
|
5741
5764
|
/**
|
|
@@ -5743,19 +5766,19 @@ declare class AiSdkLlm extends BaseLlm {
|
|
|
5743
5766
|
*/
|
|
5744
5767
|
private transformSchemaForAiSdk;
|
|
5745
5768
|
/**
|
|
5746
|
-
* Convert ADK tools to AI SDK tools format
|
|
5769
|
+
* Convert ADK-TS tools to AI SDK tools format
|
|
5747
5770
|
*/
|
|
5748
5771
|
private convertToAiSdkTools;
|
|
5749
5772
|
/**
|
|
5750
|
-
* Convert ADK Content to AI SDK CoreMessage
|
|
5773
|
+
* Convert ADK-TS Content to AI SDK CoreMessage
|
|
5751
5774
|
*/
|
|
5752
5775
|
private contentToAiSdkMessage;
|
|
5753
5776
|
/**
|
|
5754
|
-
* Map ADK role to AI SDK role
|
|
5777
|
+
* Map ADK-TS role to AI SDK role
|
|
5755
5778
|
*/
|
|
5756
5779
|
private mapRole;
|
|
5757
5780
|
/**
|
|
5758
|
-
* Map AI SDK finish reason to ADK finish reason
|
|
5781
|
+
* Map AI SDK finish reason to ADK-TS finish reason
|
|
5759
5782
|
*/
|
|
5760
5783
|
private mapFinishReason;
|
|
5761
5784
|
}
|
|
@@ -5793,31 +5816,31 @@ declare class AnthropicLlm extends BaseLlm {
|
|
|
5793
5816
|
private logCachePerformance;
|
|
5794
5817
|
connect(_llmRequest: LlmRequest): BaseLLMConnection;
|
|
5795
5818
|
/**
|
|
5796
|
-
* Convert Anthropic Message to ADK LlmResponse
|
|
5819
|
+
* Convert Anthropic Message to ADK-TS LlmResponse
|
|
5797
5820
|
*/
|
|
5798
5821
|
private anthropicMessageToLlmResponse;
|
|
5799
5822
|
/**
|
|
5800
|
-
* Convert ADK Content to Anthropic MessageParam
|
|
5823
|
+
* Convert ADK-TS Content to Anthropic MessageParam
|
|
5801
5824
|
*/
|
|
5802
5825
|
private contentToAnthropicMessage;
|
|
5803
5826
|
/**
|
|
5804
|
-
* Convert ADK Part to Anthropic content block
|
|
5827
|
+
* Convert ADK-TS Part to Anthropic content block
|
|
5805
5828
|
*/
|
|
5806
5829
|
private partToAnthropicBlock;
|
|
5807
5830
|
/**
|
|
5808
|
-
* Convert Anthropic content block to ADK Part
|
|
5831
|
+
* Convert Anthropic content block to ADK-TS Part
|
|
5809
5832
|
*/
|
|
5810
5833
|
private anthropicBlockToPart;
|
|
5811
5834
|
/**
|
|
5812
|
-
* Convert ADK function declaration to Anthropic tool param
|
|
5835
|
+
* Convert ADK-TS function declaration to Anthropic tool param
|
|
5813
5836
|
*/
|
|
5814
5837
|
private functionDeclarationToAnthropicTool;
|
|
5815
5838
|
/**
|
|
5816
|
-
* Convert ADK role to Anthropic role format
|
|
5839
|
+
* Convert ADK-TS role to Anthropic role format
|
|
5817
5840
|
*/
|
|
5818
5841
|
private toAnthropicRole;
|
|
5819
5842
|
/**
|
|
5820
|
-
* Convert Anthropic stop reason to ADK finish reason
|
|
5843
|
+
* Convert Anthropic stop reason to ADK-TS finish reason
|
|
5821
5844
|
*/
|
|
5822
5845
|
private toAdkFinishReason;
|
|
5823
5846
|
/**
|
|
@@ -6008,15 +6031,15 @@ declare class OpenAiLlm extends BaseLlm {
|
|
|
6008
6031
|
*/
|
|
6009
6032
|
private createChunkResponse;
|
|
6010
6033
|
/**
|
|
6011
|
-
* Convert OpenAI message to ADK LlmResponse
|
|
6034
|
+
* Convert OpenAI message to ADK-TS LlmResponse
|
|
6012
6035
|
*/
|
|
6013
6036
|
private openAiMessageToLlmResponse;
|
|
6014
6037
|
/**
|
|
6015
|
-
* Convert ADK Content to OpenAI ChatCompletionMessage
|
|
6038
|
+
* Convert ADK-TS Content to OpenAI ChatCompletionMessage
|
|
6016
6039
|
*/
|
|
6017
6040
|
private contentToOpenAiMessage;
|
|
6018
6041
|
/**
|
|
6019
|
-
* Convert ADK Part to OpenAI message content
|
|
6042
|
+
* Convert ADK-TS Part to OpenAI message content
|
|
6020
6043
|
*/
|
|
6021
6044
|
private partToOpenAiContent;
|
|
6022
6045
|
/**
|
|
@@ -6024,15 +6047,15 @@ declare class OpenAiLlm extends BaseLlm {
|
|
|
6024
6047
|
*/
|
|
6025
6048
|
private transformSchemaForOpenAi;
|
|
6026
6049
|
/**
|
|
6027
|
-
* Convert ADK function declaration to OpenAI tool
|
|
6050
|
+
* Convert ADK-TS function declaration to OpenAI tool
|
|
6028
6051
|
*/
|
|
6029
6052
|
private functionDeclarationToOpenAiTool;
|
|
6030
6053
|
/**
|
|
6031
|
-
* Convert ADK role to OpenAI role format
|
|
6054
|
+
* Convert ADK-TS role to OpenAI role format
|
|
6032
6055
|
*/
|
|
6033
6056
|
private toOpenAiRole;
|
|
6034
6057
|
/**
|
|
6035
|
-
* Convert OpenAI finish reason to ADK finish reason
|
|
6058
|
+
* Convert OpenAI finish reason to ADK-TS finish reason
|
|
6036
6059
|
*/
|
|
6037
6060
|
private toAdkFinishReason;
|
|
6038
6061
|
/**
|
|
@@ -6906,6 +6929,7 @@ type index$7_FullMessage = FullMessage;
|
|
|
6906
6929
|
type index$7_InstructionProvider = InstructionProvider;
|
|
6907
6930
|
type index$7_InvocationContext = InvocationContext;
|
|
6908
6931
|
declare const index$7_InvocationContext: typeof InvocationContext;
|
|
6932
|
+
type index$7_InvocationFlags = InvocationFlags;
|
|
6909
6933
|
type index$7_LangGraphAgent = LangGraphAgent;
|
|
6910
6934
|
declare const index$7_LangGraphAgent: typeof LangGraphAgent;
|
|
6911
6935
|
type index$7_LangGraphAgentConfig = LangGraphAgentConfig;
|
|
@@ -6947,7 +6971,7 @@ declare const index$7_createBranchContextForSubAgent: typeof createBranchContext
|
|
|
6947
6971
|
declare const index$7_mergeAgentRun: typeof mergeAgentRun;
|
|
6948
6972
|
declare const index$7_newInvocationContextId: typeof newInvocationContextId;
|
|
6949
6973
|
declare namespace index$7 {
|
|
6950
|
-
export { type index$7_AfterAgentCallback as AfterAgentCallback, type index$7_AfterModelCallback as AfterModelCallback, type index$7_AfterToolCallback as AfterToolCallback, LlmAgent as Agent, index$7_AgentBuilder as AgentBuilder, type index$7_AgentBuilderConfig as AgentBuilderConfig, type index$7_AgentBuilderWithSchema as AgentBuilderWithSchema, type index$7_AgentType as AgentType, index$7_BaseAgent as BaseAgent, type index$7_BeforeAgentCallback as BeforeAgentCallback, type index$7_BeforeModelCallback as BeforeModelCallback, type index$7_BeforeToolCallback as BeforeToolCallback, type index$7_BuiltAgent as BuiltAgent, index$7_CallbackContext as CallbackContext, index$7_ContextCacheConfig as ContextCacheConfig, type index$7_ContextCacheConfigProps as ContextCacheConfigProps, type index$7_EnhancedRunner as EnhancedRunner, type index$7_FullMessage as FullMessage, type index$7_InstructionProvider as InstructionProvider, index$7_InvocationContext as InvocationContext, index$7_LangGraphAgent as LangGraphAgent, type index$7_LangGraphAgentConfig as LangGraphAgentConfig, type index$7_LangGraphNode as LangGraphNode, index$7_LlmAgent as LlmAgent, type index$7_LlmAgentConfig as LlmAgentConfig, index$7_LlmCallsLimitExceededError as LlmCallsLimitExceededError, index$7_LoopAgent as LoopAgent, type index$7_LoopAgentConfig as LoopAgentConfig, type index$7_MessagePart as MessagePart, type index$7_MultiAgentResponse as MultiAgentResponse, index$7_ParallelAgent as ParallelAgent, type index$7_ParallelAgentConfig as ParallelAgentConfig, index$7_ReadonlyContext as ReadonlyContext, index$7_RunConfig as RunConfig, type index$7_RunnerAskReturn as RunnerAskReturn, index$7_SequentialAgent as SequentialAgent, type index$7_SequentialAgentConfig as SequentialAgentConfig, type index$7_SessionOptions as SessionOptions, type index$7_SingleAfterModelCallback as SingleAfterModelCallback, type index$7_SingleAfterToolCallback as SingleAfterToolCallback, type index$7_SingleAgentCallback as SingleAgentCallback, type index$7_SingleBeforeModelCallback as SingleBeforeModelCallback, type index$7_SingleBeforeToolCallback as SingleBeforeToolCallback, type index$7_SpanCounters as SpanCounters, index$7_StreamingMode as StreamingMode, type index$7_ToolUnion as ToolUnion, type index$7_TransferContext as TransferContext, index$7_contextCacheConfigSchema as contextCacheConfigSchema, index$7_createBranchContextForSubAgent as createBranchContextForSubAgent, index$7_mergeAgentRun as mergeAgentRun, index$7_newInvocationContextId as newInvocationContextId };
|
|
6974
|
+
export { type index$7_AfterAgentCallback as AfterAgentCallback, type index$7_AfterModelCallback as AfterModelCallback, type index$7_AfterToolCallback as AfterToolCallback, LlmAgent as Agent, index$7_AgentBuilder as AgentBuilder, type index$7_AgentBuilderConfig as AgentBuilderConfig, type index$7_AgentBuilderWithSchema as AgentBuilderWithSchema, type index$7_AgentType as AgentType, index$7_BaseAgent as BaseAgent, type index$7_BeforeAgentCallback as BeforeAgentCallback, type index$7_BeforeModelCallback as BeforeModelCallback, type index$7_BeforeToolCallback as BeforeToolCallback, type index$7_BuiltAgent as BuiltAgent, index$7_CallbackContext as CallbackContext, index$7_ContextCacheConfig as ContextCacheConfig, type index$7_ContextCacheConfigProps as ContextCacheConfigProps, type index$7_EnhancedRunner as EnhancedRunner, type index$7_FullMessage as FullMessage, type index$7_InstructionProvider as InstructionProvider, index$7_InvocationContext as InvocationContext, type index$7_InvocationFlags as InvocationFlags, index$7_LangGraphAgent as LangGraphAgent, type index$7_LangGraphAgentConfig as LangGraphAgentConfig, type index$7_LangGraphNode as LangGraphNode, index$7_LlmAgent as LlmAgent, type index$7_LlmAgentConfig as LlmAgentConfig, index$7_LlmCallsLimitExceededError as LlmCallsLimitExceededError, index$7_LoopAgent as LoopAgent, type index$7_LoopAgentConfig as LoopAgentConfig, type index$7_MessagePart as MessagePart, type index$7_MultiAgentResponse as MultiAgentResponse, index$7_ParallelAgent as ParallelAgent, type index$7_ParallelAgentConfig as ParallelAgentConfig, index$7_ReadonlyContext as ReadonlyContext, index$7_RunConfig as RunConfig, type index$7_RunnerAskReturn as RunnerAskReturn, index$7_SequentialAgent as SequentialAgent, type index$7_SequentialAgentConfig as SequentialAgentConfig, type index$7_SessionOptions as SessionOptions, type index$7_SingleAfterModelCallback as SingleAfterModelCallback, type index$7_SingleAfterToolCallback as SingleAfterToolCallback, type index$7_SingleAgentCallback as SingleAgentCallback, type index$7_SingleBeforeModelCallback as SingleBeforeModelCallback, type index$7_SingleBeforeToolCallback as SingleBeforeToolCallback, type index$7_SpanCounters as SpanCounters, index$7_StreamingMode as StreamingMode, type index$7_ToolUnion as ToolUnion, type index$7_TransferContext as TransferContext, index$7_contextCacheConfigSchema as contextCacheConfigSchema, index$7_createBranchContextForSubAgent as createBranchContextForSubAgent, index$7_mergeAgentRun as mergeAgentRun, index$7_newInvocationContextId as newInvocationContextId };
|
|
6951
6975
|
}
|
|
6952
6976
|
|
|
6953
6977
|
interface ParsedArtifactUri {
|
|
@@ -7288,7 +7312,9 @@ declare class LocalEvalService extends BaseEvalService {
|
|
|
7288
7312
|
private readonly agent;
|
|
7289
7313
|
private readonly parallelism;
|
|
7290
7314
|
private runner;
|
|
7315
|
+
private readyPromise;
|
|
7291
7316
|
constructor(agent: BaseAgent, parallelism?: number);
|
|
7317
|
+
private ensureReady;
|
|
7292
7318
|
private initializeRunner;
|
|
7293
7319
|
performInference(request: {
|
|
7294
7320
|
evalSetId: string;
|
|
@@ -7983,7 +8009,7 @@ interface ScheduledJob {
|
|
|
7983
8009
|
onEvent?: (jobId: string, event: Event) => void;
|
|
7984
8010
|
}
|
|
7985
8011
|
/**
|
|
7986
|
-
* AgentScheduler - Manages scheduled execution of ADK agents.
|
|
8012
|
+
* AgentScheduler - Manages scheduled execution of ADK-TS agents.
|
|
7987
8013
|
*
|
|
7988
8014
|
* Provides cron-based and interval-based scheduling for agent runs with
|
|
7989
8015
|
* support for multiple concurrent schedules, execution tracking, and
|
|
@@ -8276,11 +8302,14 @@ interface DatabaseSessionServiceConfig {
|
|
|
8276
8302
|
declare class DatabaseSessionService extends BaseSessionService {
|
|
8277
8303
|
private db;
|
|
8278
8304
|
private initialized;
|
|
8305
|
+
private initPromise;
|
|
8279
8306
|
constructor(config: DatabaseSessionServiceConfig);
|
|
8280
8307
|
/**
|
|
8281
|
-
* Initialize the database by creating required tables if they don't exist
|
|
8308
|
+
* Initialize the database by creating required tables if they don't exist.
|
|
8309
|
+
* Uses promise deduplication so concurrent callers share a single initialization.
|
|
8282
8310
|
*/
|
|
8283
8311
|
private initializeDatabase;
|
|
8312
|
+
private _doInitialize;
|
|
8284
8313
|
/**
|
|
8285
8314
|
* Ensure database is initialized before any operation
|
|
8286
8315
|
*/
|
|
@@ -9273,4 +9302,4 @@ declare const recordLlmCall: (dimensions: LlmMetricDimensions) => void;
|
|
|
9273
9302
|
|
|
9274
9303
|
declare const VERSION = "0.1.0";
|
|
9275
9304
|
|
|
9276
|
-
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, AgentScheduler, type AgentSpanAttributes, AgentTool, type AgentToolConfig, type AgentType, index$7 as Agents, AiSdkLlm, AnthropicLlm, ApiKeyCredential, ApiKeyScheme, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, AuthTool, type AuthToolArguments, AutoFlow, BaseAgent, type BaseAgentType, BaseCodeExecutor, type BaseCodeExecutorConfig, BaseLLMConnection, BaseLlm, BaseLlmFlow, BaseLlmRequestProcessor, BaseLlmResponseProcessor, type BaseMemoryService, BasePlanner, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, CohereEmbeddingProvider, type CohereEmbeddingProviderConfig, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EditTool, type EmbeddingProvider, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type Entity, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$6 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$9 as Events, type EventsCompactionConfig, type EventsSummarizer, type ExecuteContext, type ExecuteFunction, ExitLoopTool, type File, FileOperationsTool, FileStorageProvider, type FileStorageProviderConfig, FileVectorStore, type FileVectorStoreConfig, type FilterConfig, FinalResponseMatchV2Evaluator, index$5 as Flows, type ForgetMemoryResult, ForgetMemoryTool, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, type GetSessionDetailsResult, GetSessionDetailsTool, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InMemorySnapshotStore, InMemoryStorageProvider, InMemoryVectorStore, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmError, type LlmErrorOptions, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LlmSummaryProvider, type LlmSummaryProviderConfig, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDebank, McpDefillama, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpKalshi, McpLimitless, McpMemory, McpNearAgent, McpNearIntents, McpNotion, McpOdos, McpOpinion, McpPlaywright, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, McpSequentialThinking, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$b as Memory, MemoryBuilder, type MemoryContent, type MemoryDeleteFilter, type MemoryEntry, type MemoryRecord, type MemorySearchQuery, type MemorySearchResult, MemoryService, type MemoryServiceConfig, type MemoryStorageProvider, type MemorySummaryProvider, type MessagePart, type MetricInfo, type MetricValueInfo, ModelFallbackPlugin, index$8 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OllamaEmbeddingProvider, type OllamaEmbeddingProviderConfig, OpenAIEmbeddingProvider, type OpenAIEmbeddingProviderConfig, OpenAiLlm, OpenIdConnectScheme, OpenRouterEmbeddingProvider, type OpenRouterEmbeddingProviderConfig, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, PassthroughSummaryProvider, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$4 as Plugins, PrebuiltMetrics, PreloadMemoryTool, QdrantVectorStore, type QdrantVectorStoreConfig, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, RateLimitError, ReadTool, ReadonlyContext, RecallMemoryTool, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, Run, RunConfig, Runner, type RunnerAskReturn, SafetyEvaluatorV1, type SamplingHandler, type ScheduledJob, type SchedulerEvent, type SchedulerEventType, index$3 as Scheduling, type SearchMemoryResponse, type SearchMode, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index$2 as Sessions, type SimpleMessage, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SnapshotStore, type SpanCounters, State, type Step, type StepDefinition, type StepFailed, type StepResult, type StepStatus, type StepSuccess, type StepSuspended, StreamingMode, type SuspendFunction, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, ToolOutputFilterPlugin, type ToolOutputFilterPluginOptions, type ToolSpanAttributes, type ToolUnion, index$a as Tools, type TopicSegment, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, index$1 as UnifiedMemory, type UnifiedMemoryConfig, UserInteractionTool, VERSION, VectorStorageProvider, type VectorStorageProviderConfig, type VectorStore, VertexAiSessionService, WebFetchTool, WebSearchTool, Workflow, type WorkflowConfig, type WorkflowResult, type WorkflowResultFailed, type WorkflowResultSuccess, type WorkflowResultSuspended, type WorkflowSnapshot, type WorkflowStatus, index as Workflows, type WorkingMemoryConfig, type WriteMemoryResult, WriteMemoryTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, collectTextFrom, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createStep, createTool, createWorkflow, defaultUnifiedMemoryConfig, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, getTraces, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, streamTextWithFinalEvent, telemetryService, textStreamFrom, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };
|
|
9305
|
+
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, AgentScheduler, type AgentSpanAttributes, AgentTool, type AgentToolConfig, type AgentType, index$7 as Agents, AiSdkLlm, AnthropicLlm, ApiKeyCredential, ApiKeyScheme, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, AuthTool, type AuthToolArguments, AutoFlow, BaseAgent, type BaseAgentType, BaseCodeExecutor, type BaseCodeExecutorConfig, BaseLLMConnection, BaseLlm, BaseLlmFlow, BaseLlmRequestProcessor, BaseLlmResponseProcessor, type BaseMemoryService, BasePlanner, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, CohereEmbeddingProvider, type CohereEmbeddingProviderConfig, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EditTool, type EmbeddingProvider, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type Entity, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$6 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$9 as Events, type EventsCompactionConfig, type EventsSummarizer, type ExecuteContext, type ExecuteFunction, ExitLoopTool, type File, FileOperationsTool, FileStorageProvider, type FileStorageProviderConfig, FileVectorStore, type FileVectorStoreConfig, type FilterConfig, FinalResponseMatchV2Evaluator, index$5 as Flows, type ForgetMemoryResult, ForgetMemoryTool, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, type GetSessionDetailsResult, GetSessionDetailsTool, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InMemorySnapshotStore, InMemoryStorageProvider, InMemoryVectorStore, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type InvocationFlags, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmError, type LlmErrorOptions, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LlmSummaryProvider, type LlmSummaryProviderConfig, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDebank, McpDefillama, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpKalshi, McpLimitless, McpMemory, McpNearAgent, McpNearIntents, McpNotion, McpOdos, McpOpinion, McpPlaywright, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, McpSequentialThinking, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$b as Memory, MemoryBuilder, type MemoryContent, type MemoryDeleteFilter, type MemoryEntry, type MemoryRecord, type MemorySearchQuery, type MemorySearchResult, MemoryService, type MemoryServiceConfig, type MemoryStorageProvider, type MemorySummaryProvider, type MessagePart, type MetricInfo, type MetricValueInfo, ModelFallbackPlugin, index$8 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OllamaEmbeddingProvider, type OllamaEmbeddingProviderConfig, OpenAIEmbeddingProvider, type OpenAIEmbeddingProviderConfig, OpenAiLlm, OpenIdConnectScheme, OpenRouterEmbeddingProvider, type OpenRouterEmbeddingProviderConfig, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, PassthroughSummaryProvider, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$4 as Plugins, PrebuiltMetrics, PreloadMemoryTool, QdrantVectorStore, type QdrantVectorStoreConfig, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, RateLimitError, ReadTool, ReadonlyContext, RecallMemoryTool, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, Run, RunConfig, Runner, type RunnerAskReturn, SafetyEvaluatorV1, type SamplingHandler, type ScheduledJob, type SchedulerEvent, type SchedulerEventType, index$3 as Scheduling, type SearchMemoryResponse, type SearchMode, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index$2 as Sessions, type SimpleMessage, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SnapshotStore, type SpanCounters, State, type Step, type StepDefinition, type StepFailed, type StepResult, type StepStatus, type StepSuccess, type StepSuspended, StreamingMode, type SuspendFunction, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, ToolOutputFilterPlugin, type ToolOutputFilterPluginOptions, type ToolSpanAttributes, type ToolUnion, index$a as Tools, type TopicSegment, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, index$1 as UnifiedMemory, type UnifiedMemoryConfig, UserInteractionTool, VERSION, VectorStorageProvider, type VectorStorageProviderConfig, type VectorStore, VertexAiSessionService, WebFetchTool, WebSearchTool, Workflow, type WorkflowConfig, type WorkflowResult, type WorkflowResultFailed, type WorkflowResultSuccess, type WorkflowResultSuspended, type WorkflowSnapshot, type WorkflowStatus, index as Workflows, type WorkingMemoryConfig, type WriteMemoryResult, WriteMemoryTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, collectTextFrom, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createStep, createTool, createWorkflow, defaultUnifiedMemoryConfig, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, getTraces, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, streamTextWithFinalEvent, telemetryService, textStreamFrom, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };
|