@iqai/adk 0.1.0 → 0.1.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iqai/adk
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8b45e2b: Adds agent builder to create agents with minimal boiler plate
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -92,6 +92,68 @@ async function runQuery() {
92
92
  runQuery();
93
93
  ```
94
94
 
95
+ ## 🎯 AgentBuilder - Simplified Agent Creation
96
+
97
+ The `AgentBuilder` provides a fluent interface for creating agents with minimal boilerplate. It's perfect for rapid prototyping and reduces the complexity of agent setup.
98
+
99
+ ```typescript
100
+ import { AgentBuilder } from '@iqai/adk';
101
+ import dotenv from 'dotenv';
102
+
103
+ dotenv.config();
104
+
105
+ // Simple agent creation and execution in one fluent chain
106
+ async function quickQuery() {
107
+ const response = await AgentBuilder
108
+ .create("query_assistant")
109
+ .withModel("gemini-2.5-flash")
110
+ .withInstruction("You are a helpful AI. Respond clearly and concisely.")
111
+ .withQuickSession("my-app", "user-123")
112
+ .ask("What is the capital of France?");
113
+
114
+ console.log(response);
115
+ }
116
+
117
+ // For more complex scenarios, build the agent and get full control
118
+ async function advancedSetup() {
119
+ const { agent, runner, session } = await AgentBuilder
120
+ .create("research_assistant")
121
+ .withModel("gpt-4-turbo")
122
+ .withDescription("An advanced research assistant")
123
+ .withInstruction("You are a research assistant with access to various tools")
124
+ .withTools(new GoogleSearchTool(), new FileOperationsTool())
125
+ .withQuickSession("research-app", "researcher-456")
126
+ .build();
127
+
128
+ // Now you have full access to agent, runner, and session for advanced usage
129
+ console.log(`Created agent: ${agent.name}`);
130
+ }
131
+
132
+ // Specialized agent types for orchestration
133
+ async function createWorkflowAgent() {
134
+ // Sequential execution of multiple agents
135
+ const workflow = await AgentBuilder
136
+ .create("data_pipeline")
137
+ .asSequential([dataCollector, dataProcessor, dataAnalyzer])
138
+ .withQuickSession("pipeline-app", "admin")
139
+ .build();
140
+
141
+ // Parallel execution for concurrent tasks
142
+ const parallelAnalysis = await AgentBuilder
143
+ .create("multi_analysis")
144
+ .asParallel([sentimentAnalyzer, topicExtractor, summaryGenerator])
145
+ .build();
146
+ }
147
+ ```
148
+
149
+ **Benefits of AgentBuilder:**
150
+ - **Reduced Boilerplate**: ~80% less setup code compared to manual configuration
151
+ - **Fluent Interface**: Readable, chainable method calls
152
+ - **Automatic Management**: Handles session and runner creation automatically
153
+ - **Quick Execution**: Built-in `ask()` method for immediate responses
154
+ - **Flexible**: Supports all agent types (LLM, Sequential, Parallel, Loop, LangGraph)
155
+ - **Backward Compatible**: Works alongside existing ADK patterns
156
+
95
157
  ## 🛠️ Using Tools with an Agent
96
158
 
97
159
  Extend your agent's capabilities by defining and integrating custom tools.
package/dist/index.d.mts CHANGED
@@ -3355,10 +3355,282 @@ declare class LangGraphAgent extends BaseAgent {
3355
3355
  setMaxSteps(maxSteps: number): void;
3356
3356
  }
3357
3357
 
3358
+ /**
3359
+ * The Runner class is used to run agents.
3360
+ * It manages the execution of an agent within a session, handling message
3361
+ * processing, event generation, and interaction with various services like
3362
+ * artifact storage, session management, and memory.
3363
+ */
3364
+ declare class Runner {
3365
+ /**
3366
+ * The app name of the runner.
3367
+ */
3368
+ appName: string;
3369
+ /**
3370
+ * The root agent to run.
3371
+ */
3372
+ agent: BaseAgent;
3373
+ /**
3374
+ * The artifact service for the runner.
3375
+ */
3376
+ artifactService?: BaseArtifactService;
3377
+ /**
3378
+ * The session service for the runner.
3379
+ */
3380
+ sessionService: BaseSessionService;
3381
+ /**
3382
+ * The memory service for the runner.
3383
+ */
3384
+ memoryService?: BaseMemoryService;
3385
+ /**
3386
+ * Initializes the Runner.
3387
+ */
3388
+ constructor({ appName, agent, artifactService, sessionService, memoryService, }: {
3389
+ appName: string;
3390
+ agent: BaseAgent;
3391
+ artifactService?: BaseArtifactService;
3392
+ sessionService: BaseSessionService;
3393
+ memoryService?: BaseMemoryService;
3394
+ });
3395
+ /**
3396
+ * Runs the agent synchronously.
3397
+ * NOTE: This sync interface is only for local testing and convenience purpose.
3398
+ * Consider using `runAsync` for production usage.
3399
+ */
3400
+ run({ userId, sessionId, newMessage, runConfig, }: {
3401
+ userId: string;
3402
+ sessionId: string;
3403
+ newMessage: Content$1;
3404
+ runConfig?: RunConfig;
3405
+ }): Generator<Event, void, unknown>;
3406
+ /**
3407
+ * Main entry method to run the agent in this runner.
3408
+ */
3409
+ runAsync({ userId, sessionId, newMessage, runConfig, }: {
3410
+ userId: string;
3411
+ sessionId: string;
3412
+ newMessage: Content$1;
3413
+ runConfig?: RunConfig;
3414
+ }): AsyncGenerator<Event, void, unknown>;
3415
+ /**
3416
+ * Appends a new message to the session.
3417
+ */
3418
+ private _appendNewMessageToSession;
3419
+ /**
3420
+ * Finds the agent to run to continue the session.
3421
+ */
3422
+ private _findAgentToRun;
3423
+ /**
3424
+ * Whether the agent to run can transfer to any other agent in the agent tree.
3425
+ */
3426
+ private _isTransferableAcrossAgentTree;
3427
+ /**
3428
+ * Creates a new invocation context.
3429
+ */
3430
+ private _newInvocationContext;
3431
+ }
3432
+ /**
3433
+ * An in-memory Runner for testing and development.
3434
+ */
3435
+ declare class InMemoryRunner extends Runner {
3436
+ /**
3437
+ * Deprecated. Please don't use. The in-memory session service for the runner.
3438
+ */
3439
+ private _inMemorySessionService;
3440
+ /**
3441
+ * Initializes the InMemoryRunner.
3442
+ */
3443
+ constructor(agent: BaseAgent, { appName }?: {
3444
+ appName?: string;
3445
+ });
3446
+ }
3447
+
3448
+ /**
3449
+ * Configuration options for the AgentBuilder
3450
+ */
3451
+ interface AgentBuilderConfig {
3452
+ name: string;
3453
+ model?: string;
3454
+ description?: string;
3455
+ instruction?: string;
3456
+ tools?: BaseTool[];
3457
+ planner?: BasePlanner;
3458
+ subAgents?: BaseAgent[];
3459
+ maxIterations?: number;
3460
+ nodes?: LangGraphNode[];
3461
+ rootNode?: string;
3462
+ }
3463
+ /**
3464
+ * Session configuration for the AgentBuilder
3465
+ */
3466
+ interface SessionConfig {
3467
+ service: BaseSessionService;
3468
+ userId: string;
3469
+ appName: string;
3470
+ memoryService?: BaseMemoryService;
3471
+ artifactService?: BaseArtifactService;
3472
+ }
3473
+ /**
3474
+ * Built agent result containing the agent and optional runner/session
3475
+ */
3476
+ interface BuiltAgent {
3477
+ agent: BaseAgent;
3478
+ runner?: Runner;
3479
+ session?: Session;
3480
+ }
3481
+ /**
3482
+ * Agent types that can be built
3483
+ */
3484
+ type AgentType = "llm" | "sequential" | "parallel" | "loop" | "langgraph";
3485
+ /**
3486
+ * AgentBuilder - A fluent interface for building agents with optional session management
3487
+ *
3488
+ * This builder provides a convenient way to create agents, manage sessions, and
3489
+ * automatically set up runners without the boilerplate code. It supports all
3490
+ * agent types and maintains backward compatibility with existing interfaces.
3491
+ *
3492
+ * Examples:
3493
+ * ```typescript
3494
+ * // Simplest possible usage
3495
+ * const response = await AgentBuilder
3496
+ * .withModel("gemini-2.5-flash")
3497
+ * .ask("What is the capital of Australia?");
3498
+ *
3499
+ * // Simple agent with name
3500
+ * const { agent } = AgentBuilder
3501
+ * .create("my-agent")
3502
+ * .withModel("gemini-2.5-flash")
3503
+ * .withInstruction("You are helpful")
3504
+ * .build();
3505
+ *
3506
+ * // Agent with session and runner
3507
+ * const { agent, runner, session } = await AgentBuilder
3508
+ * .create("my-agent")
3509
+ * .withModel("gemini-2.5-flash")
3510
+ * .withSession(sessionService, "user123", "myApp")
3511
+ * .build();
3512
+ * ```
3513
+ */
3514
+ declare class AgentBuilder {
3515
+ private config;
3516
+ private sessionConfig?;
3517
+ private agentType;
3518
+ /**
3519
+ * Private constructor - use static create() method
3520
+ */
3521
+ private constructor();
3522
+ /**
3523
+ * Create a new AgentBuilder instance
3524
+ * @param name The name of the agent (defaults to "default_agent")
3525
+ * @returns New AgentBuilder instance
3526
+ */
3527
+ static create(name?: string): AgentBuilder;
3528
+ /**
3529
+ * Convenience method to start building with a model directly
3530
+ * @param model The model identifier (e.g., "gemini-2.5-flash")
3531
+ * @returns New AgentBuilder instance with model set
3532
+ */
3533
+ static withModel(model: string): AgentBuilder;
3534
+ /**
3535
+ * Set the model for the agent
3536
+ * @param model The model identifier (e.g., "gemini-2.5-flash")
3537
+ * @returns This builder instance for chaining
3538
+ */
3539
+ withModel(model: string): this;
3540
+ /**
3541
+ * Set the description for the agent
3542
+ * @param description Agent description
3543
+ * @returns This builder instance for chaining
3544
+ */
3545
+ withDescription(description: string): this;
3546
+ /**
3547
+ * Set the instruction for the agent
3548
+ * @param instruction System instruction for the agent
3549
+ * @returns This builder instance for chaining
3550
+ */
3551
+ withInstruction(instruction: string): this;
3552
+ /**
3553
+ * Add tools to the agent
3554
+ * @param tools Tools to add to the agent
3555
+ * @returns This builder instance for chaining
3556
+ */
3557
+ withTools(...tools: BaseTool[]): this;
3558
+ /**
3559
+ * Set the planner for the agent
3560
+ * @param planner The planner to use
3561
+ * @returns This builder instance for chaining
3562
+ */
3563
+ withPlanner(planner: BasePlanner): this;
3564
+ /**
3565
+ * Configure as a sequential agent
3566
+ * @param subAgents Sub-agents to execute in sequence
3567
+ * @returns This builder instance for chaining
3568
+ */
3569
+ asSequential(subAgents: BaseAgent[]): this;
3570
+ /**
3571
+ * Configure as a parallel agent
3572
+ * @param subAgents Sub-agents to execute in parallel
3573
+ * @returns This builder instance for chaining
3574
+ */
3575
+ asParallel(subAgents: BaseAgent[]): this;
3576
+ /**
3577
+ * Configure as a loop agent
3578
+ * @param subAgents Sub-agents to execute iteratively
3579
+ * @param maxIterations Maximum number of iterations
3580
+ * @returns This builder instance for chaining
3581
+ */
3582
+ asLoop(subAgents: BaseAgent[], maxIterations?: number): this;
3583
+ /**
3584
+ * Configure as a LangGraph agent
3585
+ * @param nodes Graph nodes defining the workflow
3586
+ * @param rootNode The starting node name
3587
+ * @returns This builder instance for chaining
3588
+ */
3589
+ asLangGraph(nodes: LangGraphNode[], rootNode: string): this;
3590
+ /**
3591
+ * Configure session management
3592
+ * @param service Session service to use
3593
+ * @param userId User identifier
3594
+ * @param appName Application name
3595
+ * @param memoryService Optional memory service
3596
+ * @param artifactService Optional artifact service
3597
+ * @returns This builder instance for chaining
3598
+ */
3599
+ withSession(service: BaseSessionService, userId: string, appName: string, memoryService?: BaseMemoryService, artifactService?: BaseArtifactService): this;
3600
+ /**
3601
+ * Configure with an in-memory session (for quick setup)
3602
+ * @param appName Application name
3603
+ * @param userId User identifier
3604
+ * @returns This builder instance for chaining
3605
+ */
3606
+ withQuickSession(appName: string, userId: string): this;
3607
+ /**
3608
+ * Build the agent and optionally create runner and session
3609
+ * @returns Built agent with optional runner and session
3610
+ */
3611
+ build(): Promise<BuiltAgent>;
3612
+ /**
3613
+ * Quick execution helper - build and run a message
3614
+ * @param message Message to send to the agent
3615
+ * @returns Agent response
3616
+ */
3617
+ ask(message: string): Promise<string>;
3618
+ /**
3619
+ * Create the appropriate agent type based on configuration
3620
+ * @returns Created agent instance
3621
+ */
3622
+ private createAgent;
3623
+ }
3624
+
3358
3625
  type index$4_AfterAgentCallback = AfterAgentCallback;
3626
+ type index$4_AgentBuilder = AgentBuilder;
3627
+ declare const index$4_AgentBuilder: typeof AgentBuilder;
3628
+ type index$4_AgentBuilderConfig = AgentBuilderConfig;
3629
+ type index$4_AgentType = AgentType;
3359
3630
  type index$4_BaseAgent = BaseAgent;
3360
3631
  declare const index$4_BaseAgent: typeof BaseAgent;
3361
3632
  type index$4_BeforeAgentCallback = BeforeAgentCallback;
3633
+ type index$4_BuiltAgent = BuiltAgent;
3362
3634
  type index$4_CallbackContext = CallbackContext;
3363
3635
  declare const index$4_CallbackContext: typeof CallbackContext;
3364
3636
  type index$4_InstructionProvider = InstructionProvider;
@@ -3386,13 +3658,14 @@ declare const index$4_RunConfig: typeof RunConfig;
3386
3658
  type index$4_SequentialAgent = SequentialAgent;
3387
3659
  declare const index$4_SequentialAgent: typeof SequentialAgent;
3388
3660
  type index$4_SequentialAgentConfig = SequentialAgentConfig;
3661
+ type index$4_SessionConfig = SessionConfig;
3389
3662
  type index$4_SingleAgentCallback = SingleAgentCallback;
3390
3663
  type index$4_StreamingMode = StreamingMode;
3391
3664
  declare const index$4_StreamingMode: typeof StreamingMode;
3392
3665
  type index$4_ToolUnion = ToolUnion;
3393
3666
  declare const index$4_newInvocationContextId: typeof newInvocationContextId;
3394
3667
  declare namespace index$4 {
3395
- export { type index$4_AfterAgentCallback as AfterAgentCallback, LlmAgent as Agent, index$4_BaseAgent as BaseAgent, type index$4_BeforeAgentCallback as BeforeAgentCallback, index$4_CallbackContext as CallbackContext, 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, 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_SingleAgentCallback as SingleAgentCallback, index$4_StreamingMode as StreamingMode, type index$4_ToolUnion as ToolUnion, index$4_newInvocationContextId as newInvocationContextId };
3668
+ 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_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, 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_SessionConfig as SessionConfig, type index$4_SingleAgentCallback as SingleAgentCallback, index$4_StreamingMode as StreamingMode, type index$4_ToolUnion as ToolUnion, index$4_newInvocationContextId as newInvocationContextId };
3396
3669
  }
3397
3670
 
3398
3671
  /**
@@ -4108,96 +4381,6 @@ declare class PlanReActPlanner extends BasePlanner {
4108
4381
  private _buildNlPlannerInstruction;
4109
4382
  }
4110
4383
 
4111
- /**
4112
- * The Runner class is used to run agents.
4113
- * It manages the execution of an agent within a session, handling message
4114
- * processing, event generation, and interaction with various services like
4115
- * artifact storage, session management, and memory.
4116
- */
4117
- declare class Runner {
4118
- /**
4119
- * The app name of the runner.
4120
- */
4121
- appName: string;
4122
- /**
4123
- * The root agent to run.
4124
- */
4125
- agent: BaseAgent;
4126
- /**
4127
- * The artifact service for the runner.
4128
- */
4129
- artifactService?: BaseArtifactService;
4130
- /**
4131
- * The session service for the runner.
4132
- */
4133
- sessionService: BaseSessionService;
4134
- /**
4135
- * The memory service for the runner.
4136
- */
4137
- memoryService?: BaseMemoryService;
4138
- /**
4139
- * Initializes the Runner.
4140
- */
4141
- constructor({ appName, agent, artifactService, sessionService, memoryService, }: {
4142
- appName: string;
4143
- agent: BaseAgent;
4144
- artifactService?: BaseArtifactService;
4145
- sessionService: BaseSessionService;
4146
- memoryService?: BaseMemoryService;
4147
- });
4148
- /**
4149
- * Runs the agent synchronously.
4150
- * NOTE: This sync interface is only for local testing and convenience purpose.
4151
- * Consider using `runAsync` for production usage.
4152
- */
4153
- run({ userId, sessionId, newMessage, runConfig, }: {
4154
- userId: string;
4155
- sessionId: string;
4156
- newMessage: Content$1;
4157
- runConfig?: RunConfig;
4158
- }): Generator<Event, void, unknown>;
4159
- /**
4160
- * Main entry method to run the agent in this runner.
4161
- */
4162
- runAsync({ userId, sessionId, newMessage, runConfig, }: {
4163
- userId: string;
4164
- sessionId: string;
4165
- newMessage: Content$1;
4166
- runConfig?: RunConfig;
4167
- }): AsyncGenerator<Event, void, unknown>;
4168
- /**
4169
- * Appends a new message to the session.
4170
- */
4171
- private _appendNewMessageToSession;
4172
- /**
4173
- * Finds the agent to run to continue the session.
4174
- */
4175
- private _findAgentToRun;
4176
- /**
4177
- * Whether the agent to run can transfer to any other agent in the agent tree.
4178
- */
4179
- private _isTransferableAcrossAgentTree;
4180
- /**
4181
- * Creates a new invocation context.
4182
- */
4183
- private _newInvocationContext;
4184
- }
4185
- /**
4186
- * An in-memory Runner for testing and development.
4187
- */
4188
- declare class InMemoryRunner extends Runner {
4189
- /**
4190
- * Deprecated. Please don't use. The in-memory session service for the runner.
4191
- */
4192
- private _inMemorySessionService;
4193
- /**
4194
- * Initializes the InMemoryRunner.
4195
- */
4196
- constructor(agent: BaseAgent, { appName }?: {
4197
- appName?: string;
4198
- });
4199
- }
4200
-
4201
4384
  interface TelemetryConfig {
4202
4385
  appName: string;
4203
4386
  appVersion?: string;
@@ -4270,4 +4453,4 @@ declare const traceLlmCall: (invocationContext: InvocationContext, eventId: stri
4270
4453
 
4271
4454
  declare const VERSION = "0.1.0";
4272
4455
 
4273
- export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, LlmAgent as Agent, index$4 as Agents, AnthropicLlm, ApiKeyCredential, ApiKeyScheme, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, AuthTool, type AuthToolArguments, AutoFlow, BaseAgent, BaseLLMConnection, BaseLlm, BaseLlmFlow, BaseLlmRequestProcessor, BaseLlmResponseProcessor, type BaseMemoryService, BasePlanner, BaseSessionService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BuildFunctionDeclarationOptions, BuiltInPlanner, CallbackContext, DatabaseSessionService, EnhancedAuthConfig, Event, EventActions, index$1 as Events, ExitLoopTool, FileOperationsTool, index as Flows, type FunctionDeclaration, FunctionTool, GcsArtifactService, type GetSessionConfig, GetUserChoiceTool, GoogleLlm, GoogleSearch, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, InvocationContext, type JSONSchema, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmRequest, LlmResponse, LoadArtifactsTool, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, McpToolset, type McpTransportType, index$3 as Memory, 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, 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, adkToMcpToolType, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, buildFunctionDeclaration, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, createAuthToolArguments, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, generateAuthEvent, generateClientFunctionCallId, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$4 as instructionsRequestProcessor, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, normalizeJsonSchema, populateClientFunctionCallId, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, shutdownTelemetry, telemetryService, traceLlmCall, traceToolCall, tracer };
4456
+ export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentType, index$4 as Agents, AnthropicLlm, ApiKeyCredential, ApiKeyScheme, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, AuthTool, type AuthToolArguments, AutoFlow, BaseAgent, BaseLLMConnection, BaseLlm, BaseLlmFlow, BaseLlmRequestProcessor, BaseLlmResponseProcessor, type BaseMemoryService, BasePlanner, BaseSessionService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInPlanner, CallbackContext, DatabaseSessionService, EnhancedAuthConfig, Event, EventActions, index$1 as Events, ExitLoopTool, FileOperationsTool, index as Flows, type FunctionDeclaration, FunctionTool, GcsArtifactService, type GetSessionConfig, GetUserChoiceTool, GoogleLlm, GoogleSearch, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, InvocationContext, type JSONSchema, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmRequest, LlmResponse, LoadArtifactsTool, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, McpToolset, type McpTransportType, index$3 as Memory, 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 SessionConfig, 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, adkToMcpToolType, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, buildFunctionDeclaration, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, createAuthToolArguments, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, generateAuthEvent, generateClientFunctionCallId, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$4 as instructionsRequestProcessor, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, normalizeJsonSchema, populateClientFunctionCallId, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, shutdownTelemetry, telemetryService, traceLlmCall, traceToolCall, tracer };