@iqai/adk 0.1.20 → 0.1.22
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 +13 -0
- package/dist/index.d.mts +134 -22
- package/dist/index.d.ts +134 -22
- package/dist/index.js +576 -277
- package/dist/index.mjs +403 -104
- package/package.json +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @iqai/adk
|
|
2
2
|
|
|
3
|
+
## 0.1.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c4e642a: downgraded info level logs to debug, removed legacy starter in create-adk-project and new adk cli initial version!
|
|
8
|
+
|
|
9
|
+
## 0.1.21
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 22c1cc6: Adds support for input and output schemas for agents, now output schema would update the instruction with the given schema to ristrict model into giving the desired output and validates it before producing output. Agent builder is wired to provide better type inference of the schema given by withOutputSchema
|
|
14
|
+
- f141bc0: Improves error handling for missing models in workflows
|
|
15
|
+
|
|
3
16
|
## 0.1.20
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Part, Content, Blob, SpeechConfig, AudioTranscriptionConfig, RealtimeInputConfig, ProactivityConfig, FunctionDeclaration, GroundingMetadata, GenerateContentResponseUsageMetadata, GenerateContentConfig, Schema, LiveConnectConfig, GoogleGenAI, FunctionCall } from '@google/genai';
|
|
2
2
|
export { Blob, Content, FunctionDeclaration, Schema as JSONSchema } from '@google/genai';
|
|
3
3
|
import { LanguageModel } from 'ai';
|
|
4
|
-
import * as
|
|
5
|
-
import { z
|
|
4
|
+
import * as zod from 'zod';
|
|
5
|
+
import { z } from 'zod';
|
|
6
6
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
7
7
|
import { CreateMessageRequestSchema, CreateMessageResultSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
8
8
|
import { Kysely, Generated } from 'kysely';
|
|
@@ -868,7 +868,7 @@ interface CreateToolConfig<T extends Record<string, any> = Record<string, never>
|
|
|
868
868
|
/** A description of what the tool does */
|
|
869
869
|
description: string;
|
|
870
870
|
/** Zod schema for validating tool arguments (optional) */
|
|
871
|
-
schema?:
|
|
871
|
+
schema?: zod.ZodSchema<T>;
|
|
872
872
|
/** The function to execute (can be sync or async) */
|
|
873
873
|
fn: (args: T, context: ToolContext) => any;
|
|
874
874
|
/** Whether the tool is a long running operation */
|
|
@@ -887,7 +887,7 @@ interface CreateToolConfigWithSchema<T extends Record<string, any>> {
|
|
|
887
887
|
/** A description of what the tool does */
|
|
888
888
|
description: string;
|
|
889
889
|
/** Zod schema for validating tool arguments */
|
|
890
|
-
schema:
|
|
890
|
+
schema: zod.ZodSchema<T>;
|
|
891
891
|
/** The function to execute (can be sync or async) */
|
|
892
892
|
fn: (args: T, context: ToolContext) => any;
|
|
893
893
|
/** Whether the tool is a long running operation */
|
|
@@ -1214,7 +1214,7 @@ declare abstract class BaseLLMConnection {
|
|
|
1214
1214
|
*/
|
|
1215
1215
|
declare abstract class BaseLlm {
|
|
1216
1216
|
/**
|
|
1217
|
-
* The name of the LLM, e.g. gemini-
|
|
1217
|
+
* The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-flash-001.
|
|
1218
1218
|
*/
|
|
1219
1219
|
model: string;
|
|
1220
1220
|
protected logger: Logger;
|
|
@@ -1257,7 +1257,7 @@ declare abstract class BaseLlm {
|
|
|
1257
1257
|
* @param llmRequest LlmRequest, the request to send to the LLM.
|
|
1258
1258
|
* @returns BaseLLMConnection, the connection to the LLM.
|
|
1259
1259
|
*/
|
|
1260
|
-
connect(
|
|
1260
|
+
connect(_llmRequest: LlmRequest): BaseLLMConnection;
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
1263
|
/**
|
|
@@ -1292,6 +1292,38 @@ type InstructionProvider = (ctx: ReadonlyContext) => string | Promise<string>;
|
|
|
1292
1292
|
* Union type for tools (supporting functions, tools, and toolsets)
|
|
1293
1293
|
*/
|
|
1294
1294
|
type ToolUnion = BaseTool | ((...args: any[]) => any);
|
|
1295
|
+
/**
|
|
1296
|
+
* Single before model callback type
|
|
1297
|
+
*/
|
|
1298
|
+
type SingleBeforeModelCallback = (callbackContext: CallbackContext, llmRequest: LlmRequest) => LlmResponse | null | Promise<LlmResponse | null>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Before model callback type (single or array)
|
|
1301
|
+
*/
|
|
1302
|
+
type BeforeModelCallback = SingleBeforeModelCallback | SingleBeforeModelCallback[];
|
|
1303
|
+
/**
|
|
1304
|
+
* Single after model callback type
|
|
1305
|
+
*/
|
|
1306
|
+
type SingleAfterModelCallback = (callbackContext: CallbackContext, llmResponse: LlmResponse) => LlmResponse | null | Promise<LlmResponse | null>;
|
|
1307
|
+
/**
|
|
1308
|
+
* After model callback type (single or array)
|
|
1309
|
+
*/
|
|
1310
|
+
type AfterModelCallback = SingleAfterModelCallback | SingleAfterModelCallback[];
|
|
1311
|
+
/**
|
|
1312
|
+
* Single before tool callback type
|
|
1313
|
+
*/
|
|
1314
|
+
type SingleBeforeToolCallback = (tool: BaseTool, args: Record<string, any>, toolContext: ToolContext) => Record<string, any> | null | Promise<Record<string, any> | null>;
|
|
1315
|
+
/**
|
|
1316
|
+
* Before tool callback type (single or array)
|
|
1317
|
+
*/
|
|
1318
|
+
type BeforeToolCallback = SingleBeforeToolCallback | SingleBeforeToolCallback[];
|
|
1319
|
+
/**
|
|
1320
|
+
* Single after tool callback type
|
|
1321
|
+
*/
|
|
1322
|
+
type SingleAfterToolCallback = (tool: BaseTool, args: Record<string, any>, toolContext: ToolContext, toolResponse: Record<string, any>) => Record<string, any> | null | Promise<Record<string, any> | null>;
|
|
1323
|
+
/**
|
|
1324
|
+
* After tool callback type (single or array)
|
|
1325
|
+
*/
|
|
1326
|
+
type AfterToolCallback = SingleAfterToolCallback | SingleAfterToolCallback[];
|
|
1295
1327
|
/**
|
|
1296
1328
|
* Configuration for LlmAgent
|
|
1297
1329
|
*/
|
|
@@ -1387,12 +1419,28 @@ interface LlmAgentConfig<T extends BaseLlm = BaseLlm> {
|
|
|
1387
1419
|
/**
|
|
1388
1420
|
* The input schema when agent is used as a tool
|
|
1389
1421
|
*/
|
|
1390
|
-
inputSchema?:
|
|
1422
|
+
inputSchema?: z.ZodSchema;
|
|
1391
1423
|
/**
|
|
1392
1424
|
* The output schema when agent replies
|
|
1393
1425
|
* NOTE: when this is set, agent can ONLY reply and CANNOT use any tools
|
|
1394
1426
|
*/
|
|
1395
|
-
outputSchema?:
|
|
1427
|
+
outputSchema?: z.ZodSchema;
|
|
1428
|
+
/**
|
|
1429
|
+
* Callback or list of callbacks to be called before calling the LLM
|
|
1430
|
+
*/
|
|
1431
|
+
beforeModelCallback?: BeforeModelCallback;
|
|
1432
|
+
/**
|
|
1433
|
+
* Callback or list of callbacks to be called after calling the LLM
|
|
1434
|
+
*/
|
|
1435
|
+
afterModelCallback?: AfterModelCallback;
|
|
1436
|
+
/**
|
|
1437
|
+
* Callback or list of callbacks to be called before calling a tool
|
|
1438
|
+
*/
|
|
1439
|
+
beforeToolCallback?: BeforeToolCallback;
|
|
1440
|
+
/**
|
|
1441
|
+
* Callback or list of callbacks to be called after calling a tool
|
|
1442
|
+
*/
|
|
1443
|
+
afterToolCallback?: AfterToolCallback;
|
|
1396
1444
|
}
|
|
1397
1445
|
/**
|
|
1398
1446
|
* LLM-based Agent
|
|
@@ -1467,11 +1515,27 @@ declare class LlmAgent<T extends BaseLlm = BaseLlm> extends BaseAgent {
|
|
|
1467
1515
|
/**
|
|
1468
1516
|
* The input schema when agent is used as a tool
|
|
1469
1517
|
*/
|
|
1470
|
-
inputSchema?:
|
|
1518
|
+
inputSchema?: z.ZodSchema;
|
|
1471
1519
|
/**
|
|
1472
1520
|
* The output schema when agent replies
|
|
1473
1521
|
*/
|
|
1474
|
-
outputSchema?:
|
|
1522
|
+
outputSchema?: z.ZodSchema;
|
|
1523
|
+
/**
|
|
1524
|
+
* Callback or list of callbacks to be called before calling the LLM
|
|
1525
|
+
*/
|
|
1526
|
+
beforeModelCallback?: BeforeModelCallback;
|
|
1527
|
+
/**
|
|
1528
|
+
* Callback or list of callbacks to be called after calling the LLM
|
|
1529
|
+
*/
|
|
1530
|
+
afterModelCallback?: AfterModelCallback;
|
|
1531
|
+
/**
|
|
1532
|
+
* Callback or list of callbacks to be called before calling a tool
|
|
1533
|
+
*/
|
|
1534
|
+
beforeToolCallback?: BeforeToolCallback;
|
|
1535
|
+
/**
|
|
1536
|
+
* Callback or list of callbacks to be called after calling a tool
|
|
1537
|
+
*/
|
|
1538
|
+
afterToolCallback?: AfterToolCallback;
|
|
1475
1539
|
protected logger: Logger;
|
|
1476
1540
|
/**
|
|
1477
1541
|
* Constructor for LlmAgent
|
|
@@ -1497,6 +1561,27 @@ declare class LlmAgent<T extends BaseLlm = BaseLlm> extends BaseAgent {
|
|
|
1497
1561
|
* This method is only for use by Agent Development Kit
|
|
1498
1562
|
*/
|
|
1499
1563
|
canonicalTools(ctx?: ReadonlyContext): Promise<BaseTool[]>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Gets the canonical before model callbacks as an array
|
|
1566
|
+
*/
|
|
1567
|
+
get canonicalBeforeModelCallbacks(): SingleBeforeModelCallback[];
|
|
1568
|
+
/**
|
|
1569
|
+
* Gets the canonical after model callbacks as an array
|
|
1570
|
+
*/
|
|
1571
|
+
get canonicalAfterModelCallbacks(): SingleAfterModelCallback[];
|
|
1572
|
+
/**
|
|
1573
|
+
* Gets the canonical before tool callbacks as an array
|
|
1574
|
+
*/
|
|
1575
|
+
get canonicalBeforeToolCallbacks(): SingleBeforeToolCallback[];
|
|
1576
|
+
/**
|
|
1577
|
+
* Gets the canonical after tool callbacks as an array
|
|
1578
|
+
*/
|
|
1579
|
+
get canonicalAfterToolCallbacks(): SingleAfterToolCallback[];
|
|
1580
|
+
/**
|
|
1581
|
+
* Validates output schema configuration
|
|
1582
|
+
* This matches the Python implementation's __check_output_schema
|
|
1583
|
+
*/
|
|
1584
|
+
private validateOutputSchemaConfig;
|
|
1500
1585
|
/**
|
|
1501
1586
|
* Gets the appropriate LLM flow for this agent
|
|
1502
1587
|
* This matches the Python implementation's _llm_flow property
|
|
@@ -2006,8 +2091,8 @@ declare class McpError extends Error {
|
|
|
2006
2091
|
originalError?: Error;
|
|
2007
2092
|
constructor(message: string, type: McpErrorType, originalError?: Error);
|
|
2008
2093
|
}
|
|
2009
|
-
type McpSamplingRequest = z
|
|
2010
|
-
type McpSamplingResponse = z
|
|
2094
|
+
type McpSamplingRequest = z.infer<typeof CreateMessageRequestSchema>;
|
|
2095
|
+
type McpSamplingResponse = z.infer<typeof CreateMessageResultSchema>;
|
|
2011
2096
|
type SamplingHandler = (request: LlmRequest) => Promise<string | LlmResponse>;
|
|
2012
2097
|
|
|
2013
2098
|
declare class McpClientService {
|
|
@@ -3951,6 +4036,8 @@ interface AgentBuilderConfig {
|
|
|
3951
4036
|
nodes?: LangGraphNode[];
|
|
3952
4037
|
rootNode?: string;
|
|
3953
4038
|
outputKey?: string;
|
|
4039
|
+
inputSchema?: zod.ZodSchema;
|
|
4040
|
+
outputSchema?: zod.ZodSchema;
|
|
3954
4041
|
}
|
|
3955
4042
|
/**
|
|
3956
4043
|
* Session configuration options
|
|
@@ -3976,26 +4063,35 @@ interface FullMessage extends Content {
|
|
|
3976
4063
|
/**
|
|
3977
4064
|
* Enhanced runner interface with simplified API
|
|
3978
4065
|
*/
|
|
3979
|
-
interface EnhancedRunner {
|
|
3980
|
-
ask(message: string | FullMessage | LlmRequest): Promise<
|
|
4066
|
+
interface EnhancedRunner<T = string> {
|
|
4067
|
+
ask(message: string | FullMessage | LlmRequest): Promise<T>;
|
|
3981
4068
|
runAsync(params: {
|
|
3982
4069
|
userId: string;
|
|
3983
4070
|
sessionId: string;
|
|
3984
4071
|
newMessage: FullMessage;
|
|
3985
4072
|
}): AsyncIterable<Event>;
|
|
4073
|
+
__outputSchema?: zod.ZodSchema;
|
|
3986
4074
|
}
|
|
3987
4075
|
/**
|
|
3988
4076
|
* Built agent result containing the agent and runner/session
|
|
3989
4077
|
*/
|
|
3990
|
-
interface BuiltAgent {
|
|
4078
|
+
interface BuiltAgent<T = string> {
|
|
3991
4079
|
agent: BaseAgent;
|
|
3992
|
-
runner: EnhancedRunner
|
|
4080
|
+
runner: EnhancedRunner<T>;
|
|
3993
4081
|
session: Session;
|
|
3994
4082
|
}
|
|
3995
4083
|
/**
|
|
3996
4084
|
* Agent types that can be built
|
|
3997
4085
|
*/
|
|
3998
4086
|
type AgentType = "llm" | "sequential" | "parallel" | "loop" | "langgraph";
|
|
4087
|
+
/**
|
|
4088
|
+
* AgentBuilder with typed output schema
|
|
4089
|
+
*/
|
|
4090
|
+
interface AgentBuilderWithSchema<T> extends Omit<AgentBuilder, "build" | "ask"> {
|
|
4091
|
+
build(): Promise<BuiltAgent<T>>;
|
|
4092
|
+
buildWithSchema<U = T>(): Promise<BuiltAgent<U>>;
|
|
4093
|
+
ask(message: string | FullMessage): Promise<T>;
|
|
4094
|
+
}
|
|
3999
4095
|
/**
|
|
4000
4096
|
* AgentBuilder - A fluent interface for creating AI agents with automatic session management
|
|
4001
4097
|
*
|
|
@@ -4082,6 +4178,8 @@ declare class AgentBuilder {
|
|
|
4082
4178
|
* @returns This builder instance for chaining
|
|
4083
4179
|
*/
|
|
4084
4180
|
withInstruction(instruction: string): this;
|
|
4181
|
+
withInputSchema(schema: zod.ZodSchema): this;
|
|
4182
|
+
withOutputSchema<T>(schema: zod.ZodType<T>): AgentBuilderWithSchema<T>;
|
|
4085
4183
|
/**
|
|
4086
4184
|
* Add tools to the agent
|
|
4087
4185
|
* @param tools Tools to add to the agent
|
|
@@ -4187,7 +4285,12 @@ declare class AgentBuilder {
|
|
|
4187
4285
|
* Build the agent and optionally create runner and session
|
|
4188
4286
|
* @returns Built agent with optional runner and session
|
|
4189
4287
|
*/
|
|
4190
|
-
build(): Promise<BuiltAgent
|
|
4288
|
+
build<T = string>(): Promise<BuiltAgent<T>>;
|
|
4289
|
+
/**
|
|
4290
|
+
* Type-safe build method for agents with output schemas
|
|
4291
|
+
* Provides better type inference for the ask method return type
|
|
4292
|
+
*/
|
|
4293
|
+
buildWithSchema<T>(): Promise<BuiltAgent<T>>;
|
|
4191
4294
|
/**
|
|
4192
4295
|
* Quick execution helper - build and run a message
|
|
4193
4296
|
* @param message Message to send to the agent (string or full message object)
|
|
@@ -4210,7 +4313,7 @@ declare class AgentBuilder {
|
|
|
4210
4313
|
*/
|
|
4211
4314
|
private generateDefaultAppName;
|
|
4212
4315
|
/**
|
|
4213
|
-
* Create enhanced runner with simplified API
|
|
4316
|
+
* Create enhanced runner with simplified API and proper typing
|
|
4214
4317
|
* @param baseRunner The base runner instance
|
|
4215
4318
|
* @param session The session instance
|
|
4216
4319
|
* @returns Enhanced runner with simplified API
|
|
@@ -4219,17 +4322,22 @@ declare class AgentBuilder {
|
|
|
4219
4322
|
}
|
|
4220
4323
|
|
|
4221
4324
|
type index$4_AfterAgentCallback = AfterAgentCallback;
|
|
4325
|
+
type index$4_AfterModelCallback = AfterModelCallback;
|
|
4326
|
+
type index$4_AfterToolCallback = AfterToolCallback;
|
|
4222
4327
|
type index$4_AgentBuilder = AgentBuilder;
|
|
4223
4328
|
declare const index$4_AgentBuilder: typeof AgentBuilder;
|
|
4224
4329
|
type index$4_AgentBuilderConfig = AgentBuilderConfig;
|
|
4330
|
+
type index$4_AgentBuilderWithSchema<T> = AgentBuilderWithSchema<T>;
|
|
4225
4331
|
type index$4_AgentType = AgentType;
|
|
4226
4332
|
type index$4_BaseAgent = BaseAgent;
|
|
4227
4333
|
declare const index$4_BaseAgent: typeof BaseAgent;
|
|
4228
4334
|
type index$4_BeforeAgentCallback = BeforeAgentCallback;
|
|
4229
|
-
type index$
|
|
4335
|
+
type index$4_BeforeModelCallback = BeforeModelCallback;
|
|
4336
|
+
type index$4_BeforeToolCallback = BeforeToolCallback;
|
|
4337
|
+
type index$4_BuiltAgent<T = string> = BuiltAgent<T>;
|
|
4230
4338
|
type index$4_CallbackContext = CallbackContext;
|
|
4231
4339
|
declare const index$4_CallbackContext: typeof CallbackContext;
|
|
4232
|
-
type index$4_EnhancedRunner = EnhancedRunner
|
|
4340
|
+
type index$4_EnhancedRunner<T = string> = EnhancedRunner<T>;
|
|
4233
4341
|
type index$4_FullMessage = FullMessage;
|
|
4234
4342
|
type index$4_InstructionProvider = InstructionProvider;
|
|
4235
4343
|
type index$4_InvocationContext = InvocationContext;
|
|
@@ -4258,7 +4366,11 @@ type index$4_SequentialAgent = SequentialAgent;
|
|
|
4258
4366
|
declare const index$4_SequentialAgent: typeof SequentialAgent;
|
|
4259
4367
|
type index$4_SequentialAgentConfig = SequentialAgentConfig;
|
|
4260
4368
|
type index$4_SessionOptions = SessionOptions;
|
|
4369
|
+
type index$4_SingleAfterModelCallback = SingleAfterModelCallback;
|
|
4370
|
+
type index$4_SingleAfterToolCallback = SingleAfterToolCallback;
|
|
4261
4371
|
type index$4_SingleAgentCallback = SingleAgentCallback;
|
|
4372
|
+
type index$4_SingleBeforeModelCallback = SingleBeforeModelCallback;
|
|
4373
|
+
type index$4_SingleBeforeToolCallback = SingleBeforeToolCallback;
|
|
4262
4374
|
type index$4_StreamingMode = StreamingMode;
|
|
4263
4375
|
declare const index$4_StreamingMode: typeof StreamingMode;
|
|
4264
4376
|
type index$4_ToolUnion = ToolUnion;
|
|
@@ -4266,7 +4378,7 @@ declare const index$4_createBranchContextForSubAgent: typeof createBranchContext
|
|
|
4266
4378
|
declare const index$4_mergeAgentRun: typeof mergeAgentRun;
|
|
4267
4379
|
declare const index$4_newInvocationContextId: typeof newInvocationContextId;
|
|
4268
4380
|
declare namespace index$4 {
|
|
4269
|
-
export { type index$4_AfterAgentCallback as AfterAgentCallback, LlmAgent as Agent, index$4_AgentBuilder as AgentBuilder, type index$4_AgentBuilderConfig as AgentBuilderConfig, type index$4_AgentType as AgentType, index$4_BaseAgent as BaseAgent, type index$4_BeforeAgentCallback as BeforeAgentCallback, type index$4_BuiltAgent as BuiltAgent, index$4_CallbackContext as CallbackContext, type index$4_EnhancedRunner as EnhancedRunner, type index$4_FullMessage as FullMessage, type index$4_InstructionProvider as InstructionProvider, index$4_InvocationContext as InvocationContext, index$4_LangGraphAgent as LangGraphAgent, type index$4_LangGraphAgentConfig as LangGraphAgentConfig, type index$4_LangGraphNode as LangGraphNode, index$4_LlmAgent as LlmAgent, type index$4_LlmAgentConfig as LlmAgentConfig, index$4_LlmCallsLimitExceededError as LlmCallsLimitExceededError, index$4_LoopAgent as LoopAgent, type index$4_LoopAgentConfig as LoopAgentConfig, type index$4_MessagePart as MessagePart, index$4_ParallelAgent as ParallelAgent, type index$4_ParallelAgentConfig as ParallelAgentConfig, index$4_ReadonlyContext as ReadonlyContext, index$4_RunConfig as RunConfig, index$4_SequentialAgent as SequentialAgent, type index$4_SequentialAgentConfig as SequentialAgentConfig, type index$4_SessionOptions as SessionOptions, type index$4_SingleAgentCallback as SingleAgentCallback, index$4_StreamingMode as StreamingMode, type index$4_ToolUnion as ToolUnion, index$4_createBranchContextForSubAgent as createBranchContextForSubAgent, index$4_mergeAgentRun as mergeAgentRun, index$4_newInvocationContextId as newInvocationContextId };
|
|
4381
|
+
export { type index$4_AfterAgentCallback as AfterAgentCallback, type index$4_AfterModelCallback as AfterModelCallback, type index$4_AfterToolCallback as AfterToolCallback, LlmAgent as Agent, index$4_AgentBuilder as AgentBuilder, type index$4_AgentBuilderConfig as AgentBuilderConfig, type index$4_AgentBuilderWithSchema as AgentBuilderWithSchema, type index$4_AgentType as AgentType, index$4_BaseAgent as BaseAgent, type index$4_BeforeAgentCallback as BeforeAgentCallback, type index$4_BeforeModelCallback as BeforeModelCallback, type index$4_BeforeToolCallback as BeforeToolCallback, type index$4_BuiltAgent as BuiltAgent, index$4_CallbackContext as CallbackContext, type index$4_EnhancedRunner as EnhancedRunner, type index$4_FullMessage as FullMessage, type index$4_InstructionProvider as InstructionProvider, index$4_InvocationContext as InvocationContext, index$4_LangGraphAgent as LangGraphAgent, type index$4_LangGraphAgentConfig as LangGraphAgentConfig, type index$4_LangGraphNode as LangGraphNode, index$4_LlmAgent as LlmAgent, type index$4_LlmAgentConfig as LlmAgentConfig, index$4_LlmCallsLimitExceededError as LlmCallsLimitExceededError, index$4_LoopAgent as LoopAgent, type index$4_LoopAgentConfig as LoopAgentConfig, type index$4_MessagePart as MessagePart, index$4_ParallelAgent as ParallelAgent, type index$4_ParallelAgentConfig as ParallelAgentConfig, index$4_ReadonlyContext as ReadonlyContext, index$4_RunConfig as RunConfig, index$4_SequentialAgent as SequentialAgent, type index$4_SequentialAgentConfig as SequentialAgentConfig, type index$4_SessionOptions as SessionOptions, type index$4_SingleAfterModelCallback as SingleAfterModelCallback, type index$4_SingleAfterToolCallback as SingleAfterToolCallback, type index$4_SingleAgentCallback as SingleAgentCallback, type index$4_SingleBeforeModelCallback as SingleBeforeModelCallback, type index$4_SingleBeforeToolCallback as SingleBeforeToolCallback, index$4_StreamingMode as StreamingMode, type index$4_ToolUnion as ToolUnion, index$4_createBranchContextForSubAgent as createBranchContextForSubAgent, index$4_mergeAgentRun as mergeAgentRun, index$4_newInvocationContextId as newInvocationContextId };
|
|
4270
4382
|
}
|
|
4271
4383
|
|
|
4272
4384
|
/**
|
|
@@ -5208,4 +5320,4 @@ declare const traceLlmCall: (invocationContext: InvocationContext, eventId: stri
|
|
|
5208
5320
|
|
|
5209
5321
|
declare const VERSION = "0.1.0";
|
|
5210
5322
|
|
|
5211
|
-
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, AgentTool, type AgentToolConfig, type AgentType, index$4 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, BaseSessionService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EnhancedAuthConfig, type EnhancedRunner, Event, EventActions, index$1 as Events, ExitLoopTool, type File, FileOperationsTool, index as Flows, type FullMessage, FunctionTool, GcsArtifactService, type GetSessionConfig, GetUserChoiceTool, GoogleLlm, GoogleSearch, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, InvocationContext, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmRequest, LlmResponse, LoadArtifactsTool, LoadMemoryTool, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, index$3 as Memory, type MessagePart, index$5 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PlanReActPlanner, REQUEST_EUC_FUNCTION_CALL_NAME, ReadonlyContext, RunConfig, Runner, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionOptions, index$2 as Sessions, type SingleAgentCallback, SingleFlow, State, StreamingMode, type TelemetryConfig, TelemetryService, type ThinkingConfig, type ToolConfig, ToolContext, type ToolUnion, index$6 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiSessionService, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, buildFunctionDeclaration, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, generateAuthEvent, generateClientFunctionCallId, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$4 as instructionsRequestProcessor, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, normalizeJsonSchema, populateClientFunctionCallId, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, shutdownTelemetry, telemetryService, traceLlmCall, traceToolCall, tracer };
|
|
5323
|
+
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentTool, type AgentToolConfig, type AgentType, index$4 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, BaseSessionService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EnhancedAuthConfig, type EnhancedRunner, Event, EventActions, index$1 as Events, ExitLoopTool, type File, FileOperationsTool, index as Flows, type FullMessage, FunctionTool, GcsArtifactService, type GetSessionConfig, GetUserChoiceTool, GoogleLlm, GoogleSearch, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, InvocationContext, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmRequest, LlmResponse, LoadArtifactsTool, LoadMemoryTool, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, index$3 as Memory, type MessagePart, index$5 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PlanReActPlanner, REQUEST_EUC_FUNCTION_CALL_NAME, ReadonlyContext, RunConfig, Runner, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionOptions, index$2 as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, State, StreamingMode, type TelemetryConfig, TelemetryService, type ThinkingConfig, type ToolConfig, ToolContext, type ToolUnion, index$6 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiSessionService, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, buildFunctionDeclaration, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, generateAuthEvent, generateClientFunctionCallId, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$4 as instructionsRequestProcessor, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, normalizeJsonSchema, populateClientFunctionCallId, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, shutdownTelemetry, telemetryService, traceLlmCall, traceToolCall, tracer };
|