Module: config¶
Builders in this module¶
Builder |
Description |
|---|---|
Configuration for the A2aAgentExecutor. |
|
The config for the YAML schema to create an agent. |
|
The config for the YAML schema of a BaseAgent. |
|
The config for the reference to another agent. |
|
An argument passed to a function or a class’s constructor. |
|
Code reference config for a variable, a function, or a class. |
|
Configuration for context caching across all agents in an app. |
|
The config for the YAML schema of a LlmAgent. |
|
The config for the YAML schema of a LoopAgent. |
|
The config for the YAML schema of a ParallelAgent. |
|
Configs for runtime behavior of agents. |
|
Configuration for the tool thread pool executor. |
|
The config for the YAML schema of a SequentialAgent. |
|
The config of event compaction for an application. |
|
The config of the resumability for an application. |
|
Feature configuration. |
|
Configuration for audio caching behavior. |
|
Configuration for the IterativePromptOptimizer. |
|
Configuration for the BigQueryAgentAnalyticsPlugin. |
|
Configuration for retrying failed BigQuery write operations. |
|
The configuration of getting a session. |
|
Base Google Credentials Configuration for Google API tools (Experimental). |
|
Configuration for AgentSimulator. |
|
Injection configuration for a tool. |
|
Simulation configuration for a single tool. |
|
The config for the AgentTool. |
|
BigQuery Credentials Configuration for Google API tools (Experimental). |
|
Configuration for BigQuery tools. |
|
Bigtable Credentials Configuration for Google API tools (Experimental). |
|
Configuration for Data Agent tools. |
|
Data Agent Credentials Configuration for Google API tools. |
|
Fluent builder for ExampleToolConfig. |
|
The config for McpToolset. |
|
Configuration for Pub/Sub tools. |
|
Pub/Sub Credentials Configuration for Google API tools (Experimental). |
|
Spanner Credentials Configuration for Google API tools (Experimental). |
|
The base class for all tool configs. |
|
Config to host free key-value pairs for the args in ToolConfig. |
|
The configuration for a tool. |
A2aAgentExecutorConfig¶
Fluent builder for
google.adk.a2a.executor.a2a_agent_executor.A2aAgentExecutorConfig
Configuration for the A2aAgentExecutor.
Quick start:
from adk_fluent import A2aAgentExecutorConfig
result = (
A2aAgentExecutorConfig()
.build()
)
Control Flow & Execution¶
.build() -> A2aAgentExecutorConfig Control Flow & Execution¶
Resolve into a native ADK A2aAgentExecutorConfig.
Example:
config = A2aAgentExecutorConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Callable[[Part], Part |
|
`Callable[[Part], Part |
|
`Callable[[RequestContext, Callable[[Part], Part |
|
`Callable[[Event, InvocationContext, str |
AgentConfig¶
Fluent builder for
google.adk.agents.agent_config.AgentConfig
The config for the YAML schema to create an agent.
Quick start:
from adk_fluent import AgentConfig
result = (
AgentConfig("root_value")
.build()
)
Constructor¶
AgentConfig(root: RootModelRootType)
Argument |
Type |
|---|---|
|
|
Control Flow & Execution¶
.build() -> AgentConfig Control Flow & Execution¶
Resolve into a native ADK AgentConfig.
Example:
config = AgentConfig("config").build("...")
BaseAgentConfig¶
Fluent builder for
google.adk.agents.base_agent_config.BaseAgentConfig
The config for the YAML schema of a BaseAgent.
Quick start:
from adk_fluent import BaseAgentConfig
result = (
BaseAgentConfig("name_value")
.describe("...")
.build()
)
Constructor¶
BaseAgentConfig(name: str)
Argument |
Type |
|---|---|
|
Core Configuration¶
.describe(value: str) -> Self Core Configuration¶
Maps to:
descriptionSet agent description (metadata for transfer routing and topology display — NOT sent to the LLM as instruction). Always set this on sub-agents so the coordinator LLM can pick the right specialist.
Example:
config = BaseAgentConfig("config").describe("...")
.sub_agent(value: AgentRefConfig) -> Self Core Configuration¶
Append to sub_agents (lazy — built at .build() time).
Example:
config = BaseAgentConfig("config").sub_agent("...")
Configuration¶
.after_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to after_agent_callbacks (lazy — built at .build() time).
Example:
config = BaseAgentConfig("config").after_agent_callback(my_callback_fn)
.before_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to before_agent_callbacks (lazy — built at .build() time).
Example:
config = BaseAgentConfig("config").before_agent_callback(my_callback_fn)
Control Flow & Execution¶
.build() -> BaseAgentConfig Control Flow & Execution¶
Resolve into a native ADK BaseAgentConfig.
Example:
config = BaseAgentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Literal[‘BaseAgent’] |
|
`list[AgentRefConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
AgentRefConfig¶
Fluent builder for
google.adk.agents.common_configs.AgentRefConfig
The config for the reference to another agent.
Quick start:
from adk_fluent import AgentRefConfig
result = (
AgentRefConfig()
.build()
)
Control Flow & Execution¶
.build() -> AgentRefConfig Control Flow & Execution¶
Resolve into a native ADK AgentRefConfig.
Example:
config = AgentRefConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`str |
|
`str |
ArgumentConfig¶
Fluent builder for
google.adk.agents.common_configs.ArgumentConfig
An argument passed to a function or a class’s constructor.
Quick start:
from adk_fluent import ArgumentConfig
result = (
ArgumentConfig("value_value")
.build()
)
Constructor¶
ArgumentConfig(value: Any)
Argument |
Type |
|---|---|
|
|
Control Flow & Execution¶
.build() -> ArgumentConfig Control Flow & Execution¶
Resolve into a native ADK ArgumentConfig.
Example:
config = ArgumentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`str |
CodeConfig¶
Fluent builder for
google.adk.agents.common_configs.CodeConfig
Code reference config for a variable, a function, or a class.
Quick start:
from adk_fluent import CodeConfig
result = (
CodeConfig("name_value")
.arg(...)
.build()
)
Constructor¶
CodeConfig(name: str)
Argument |
Type |
|---|---|
|
Configuration¶
.arg(value: ArgumentConfig) -> Self Configuration¶
Append to args (lazy — built at .build() time).
Example:
config = CodeConfig("config").arg("...")
Control Flow & Execution¶
.build() -> CodeConfig Control Flow & Execution¶
Resolve into a native ADK CodeConfig.
Example:
config = CodeConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`list[ArgumentConfig] |
ContextCacheConfig¶
Fluent builder for
google.adk.agents.context_cache_config.ContextCacheConfig
Configuration for context caching across all agents in an app.
Quick start:
from adk_fluent import ContextCacheConfig
result = (
ContextCacheConfig()
.build()
)
Control Flow & Execution¶
.build() -> ContextCacheConfig Control Flow & Execution¶
Resolve into a native ADK ContextCacheConfig.
Example:
config = ContextCacheConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
LlmAgentConfig¶
Fluent builder for
google.adk.agents.llm_agent_config.LlmAgentConfig
The config for the YAML schema of a LlmAgent.
Quick start:
from adk_fluent import LlmAgentConfig
result = (
LlmAgentConfig("name_value", "instruction_value")
.describe("...")
.build()
)
Constructor¶
LlmAgentConfig(name: str, instruction: str)
Core Configuration¶
.describe(value: str) -> Self Core Configuration¶
Maps to:
descriptionSet agent description (metadata for transfer routing and topology display — NOT sent to the LLM as instruction). Always set this on sub-agents so the coordinator LLM can pick the right specialist.
Example:
config = LlmAgentConfig("config").describe("...")
.history(value: Literal['default', 'none']) -> Self Core Configuration¶
Maps to:
include_contentsOptional. LlmAgent.include_contents.
Example:
config = LlmAgentConfig("config").history("none")
.instruct(value: str) -> Self Core Configuration¶
Maps to:
instructionRequired. LlmAgent.instruction. Dynamic instructions with placeholder support. Behavior: if static_instruction is None, goes to system_instruction; if static_instruction is set, goes to user content after static content.
Example:
config = LlmAgentConfig("config").instruct("You are a helpful assistant.")
.outputs(value: str | None) -> Self Core Configuration¶
Maps to:
output_keyDeprecated: use
.writes(key)instead. Session state key where the agent’s response text is stored.
Example:
config = LlmAgentConfig("config").outputs("result_key")
.static(value: Content | str | File | Part | list[str | File | Part] | None) -> Self Core Configuration¶
Maps to:
static_instructionSet cached instruction. When set,
.instruct()text moves from system to user content, enabling context caching. Use for large, stable prompt sections that rarely change.
Example:
config = LlmAgentConfig("config").static("You are a helpful assistant.")
.sub_agent(value: AgentRefConfig) -> Self Core Configuration¶
Append to sub_agents (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").sub_agent("...")
.tool(value: ToolConfig) -> Self Core Configuration¶
Append to tools (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").tool(my_function)
Configuration¶
.after_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to after_agent_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").after_agent_callback(my_callback_fn)
.after_model_callback(value: CodeConfig) -> Self Configuration¶
Append to after_model_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").after_model_callback(my_callback_fn)
.after_tool_callback(value: CodeConfig) -> Self Configuration¶
Append to after_tool_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").after_tool_callback(my_callback_fn)
.before_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to before_agent_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").before_agent_callback(my_callback_fn)
.before_model_callback(value: CodeConfig) -> Self Configuration¶
Append to before_model_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").before_model_callback(my_callback_fn)
.before_tool_callback(value: CodeConfig) -> Self Configuration¶
Append to before_tool_callbacks (lazy — built at .build() time).
Example:
config = LlmAgentConfig("config").before_tool_callback(my_callback_fn)
.include_history(value: Literal['default', 'none']) -> Self Configuration¶
Maps to:
include_contentsOptional. LlmAgent.include_contents.
Example:
config = LlmAgentConfig("config").include_history("none")
.static_instruct(value: Content | str | File | Part | list[str | File | Part] | None) -> Self Configuration¶
Maps to:
static_instructionSet cached instruction. When set,
.instruct()text moves from system to user content, enabling context caching. Use for large, stable prompt sections that rarely change.
Example:
config = LlmAgentConfig("config").static_instruct("...")
Control Flow & Execution¶
.build() -> LlmAgentConfig Control Flow & Execution¶
Resolve into a native ADK LlmAgentConfig.
Example:
config = LlmAgentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`list[AgentRefConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
|
`str |
|
`CodeConfig |
|
`bool |
|
`bool |
|
`CodeConfig |
|
`CodeConfig |
|
`list[ToolConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
|
`GenerateContentConfig |
LoopAgentConfig¶
Fluent builder for
google.adk.agents.loop_agent_config.LoopAgentConfig
The config for the YAML schema of a LoopAgent.
Quick start:
from adk_fluent import LoopAgentConfig
result = (
LoopAgentConfig("name_value")
.describe("...")
.build()
)
Constructor¶
LoopAgentConfig(name: str)
Argument |
Type |
|---|---|
|
Core Configuration¶
.describe(value: str) -> Self Core Configuration¶
Maps to:
descriptionSet agent description (metadata for transfer routing and topology display — NOT sent to the LLM as instruction). Always set this on sub-agents so the coordinator LLM can pick the right specialist.
Example:
config = LoopAgentConfig("config").describe("...")
.sub_agent(value: AgentRefConfig) -> Self Core Configuration¶
Append to sub_agents (lazy — built at .build() time).
Example:
config = LoopAgentConfig("config").sub_agent("...")
Configuration¶
.after_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to after_agent_callbacks (lazy — built at .build() time).
Example:
config = LoopAgentConfig("config").after_agent_callback(my_callback_fn)
.before_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to before_agent_callbacks (lazy — built at .build() time).
Example:
config = LoopAgentConfig("config").before_agent_callback(my_callback_fn)
Control Flow & Execution¶
.build() -> LoopAgentConfig Control Flow & Execution¶
Resolve into a native ADK LoopAgentConfig.
Example:
config = LoopAgentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`list[AgentRefConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
|
`int |
ParallelAgentConfig¶
Fluent builder for
google.adk.agents.parallel_agent_config.ParallelAgentConfig
The config for the YAML schema of a ParallelAgent.
Quick start:
from adk_fluent import ParallelAgentConfig
result = (
ParallelAgentConfig("name_value")
.describe("...")
.build()
)
Constructor¶
ParallelAgentConfig(name: str)
Argument |
Type |
|---|---|
|
Core Configuration¶
.describe(value: str) -> Self Core Configuration¶
Maps to:
descriptionSet agent description (metadata for transfer routing and topology display — NOT sent to the LLM as instruction). Always set this on sub-agents so the coordinator LLM can pick the right specialist.
Example:
config = ParallelAgentConfig("config").describe("...")
.sub_agent(value: AgentRefConfig) -> Self Core Configuration¶
Append to sub_agents (lazy — built at .build() time).
Example:
config = ParallelAgentConfig("config").sub_agent("...")
Configuration¶
.after_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to after_agent_callbacks (lazy — built at .build() time).
Example:
config = ParallelAgentConfig("config").after_agent_callback(my_callback_fn)
.before_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to before_agent_callbacks (lazy — built at .build() time).
Example:
config = ParallelAgentConfig("config").before_agent_callback(my_callback_fn)
Control Flow & Execution¶
.build() -> ParallelAgentConfig Control Flow & Execution¶
Resolve into a native ADK ParallelAgentConfig.
Example:
config = ParallelAgentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`list[AgentRefConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
RunConfig¶
Fluent builder for
google.adk.agents.run_config.RunConfig
Configs for runtime behavior of agents.
Quick start:
from adk_fluent import RunConfig
result = (
RunConfig()
.input_audio_transcribe("...")
.build()
)
Configuration¶
.input_audio_transcribe(value: AudioTranscriptionConfig | None) -> Self Configuration¶
Maps to:
input_audio_transcriptionSet the
input_audio_transcriptionfield.
Example:
config = RunConfig("config").input_audio_transcribe("...")
.output_audio_transcribe(value: AudioTranscriptionConfig | None) -> Self Configuration¶
Maps to:
output_audio_transcriptionSet the
output_audio_transcriptionfield.
Example:
config = RunConfig("config").output_audio_transcribe("...")
Control Flow & Execution¶
.build() -> RunConfig Control Flow & Execution¶
Resolve into a native ADK RunConfig.
Example:
config = RunConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`SpeechConfig |
|
`list[str] |
|
|
|
|
|
|
|
`RealtimeInputConfig |
|
`bool |
|
`ProactivityConfig |
|
`SessionResumptionConfig |
|
`ContextWindowCompressionConfig |
|
|
|
`ToolThreadPoolConfig |
|
|
|
|
|
`dict[str, Any] |
ToolThreadPoolConfig¶
Fluent builder for
google.adk.agents.run_config.ToolThreadPoolConfig
Configuration for the tool thread pool executor.
Quick start:
from adk_fluent import ToolThreadPoolConfig
result = (
ToolThreadPoolConfig()
.build()
)
Control Flow & Execution¶
.build() -> ToolThreadPoolConfig Control Flow & Execution¶
Resolve into a native ADK ToolThreadPoolConfig.
Example:
config = ToolThreadPoolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
SequentialAgentConfig¶
Fluent builder for
google.adk.agents.sequential_agent_config.SequentialAgentConfig
The config for the YAML schema of a SequentialAgent.
Quick start:
from adk_fluent import SequentialAgentConfig
result = (
SequentialAgentConfig("name_value")
.describe("...")
.build()
)
Constructor¶
SequentialAgentConfig(name: str)
Argument |
Type |
|---|---|
|
Core Configuration¶
.describe(value: str) -> Self Core Configuration¶
Maps to:
descriptionSet agent description (metadata for transfer routing and topology display — NOT sent to the LLM as instruction). Always set this on sub-agents so the coordinator LLM can pick the right specialist.
Example:
config = SequentialAgentConfig("config").describe("...")
.sub_agent(value: AgentRefConfig) -> Self Core Configuration¶
Append to sub_agents (lazy — built at .build() time).
Example:
config = SequentialAgentConfig("config").sub_agent("...")
Configuration¶
.after_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to after_agent_callbacks (lazy — built at .build() time).
Example:
config = SequentialAgentConfig("config").after_agent_callback(my_callback_fn)
.before_agent_callback(value: CodeConfig) -> Self Configuration¶
Append to before_agent_callbacks (lazy — built at .build() time).
Example:
config = SequentialAgentConfig("config").before_agent_callback(my_callback_fn)
Control Flow & Execution¶
.build() -> SequentialAgentConfig Control Flow & Execution¶
Resolve into a native ADK SequentialAgentConfig.
Example:
config = SequentialAgentConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`list[AgentRefConfig] |
|
`list[CodeConfig] |
|
`list[CodeConfig] |
EventsCompactionConfig¶
Fluent builder for
google.adk.apps.app.EventsCompactionConfig
The config of event compaction for an application.
Quick start:
from adk_fluent import EventsCompactionConfig
result = (
EventsCompactionConfig("compaction_interval_value", "overlap_size_value")
.build()
)
Constructor¶
EventsCompactionConfig(compaction_interval: int, overlap_size: int)
Control Flow & Execution¶
.build() -> EventsCompactionConfig Control Flow & Execution¶
Resolve into a native ADK EventsCompactionConfig.
Example:
config = EventsCompactionConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`BaseEventsSummarizer |
|
`int |
|
`int |
ResumabilityConfig¶
Fluent builder for
google.adk.apps.app.ResumabilityConfig
The config of the resumability for an application.
Quick start:
from adk_fluent import ResumabilityConfig
result = (
ResumabilityConfig()
.build()
)
Control Flow & Execution¶
.build() -> ResumabilityConfig Control Flow & Execution¶
Resolve into a native ADK ResumabilityConfig.
Example:
config = ResumabilityConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
FeatureConfig¶
Fluent builder for
google.adk.features._feature_registry.FeatureConfig
Feature configuration.
Quick start:
from adk_fluent import FeatureConfig
result = (
FeatureConfig("stage_value")
.build()
)
Constructor¶
FeatureConfig(stage: FeatureStage)
Argument |
Type |
|---|---|
|
|
Control Flow & Execution¶
.build() -> FeatureConfig Control Flow & Execution¶
Resolve into a native ADK FeatureConfig.
Example:
config = FeatureConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
AudioCacheConfig¶
Fluent builder for
google.adk.flows.llm_flows.audio_cache_manager.AudioCacheConfig
Configuration for audio caching behavior.
Quick start:
from adk_fluent import AudioCacheConfig
result = (
AudioCacheConfig()
.build()
)
Control Flow & Execution¶
.build() -> AudioCacheConfig Control Flow & Execution¶
Resolve into a native ADK AudioCacheConfig.
Example:
config = AudioCacheConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
|
|
SimplePromptOptimizerConfig¶
Fluent builder for
google.adk.optimization.simple_prompt_optimizer.SimplePromptOptimizerConfig
Configuration for the IterativePromptOptimizer.
Quick start:
from adk_fluent import SimplePromptOptimizerConfig
result = (
SimplePromptOptimizerConfig()
.model_configure("...")
.build()
)
Configuration¶
.model_configure(value: GenerateContentConfig) -> Self Configuration¶
Maps to:
model_configurationThe configuration for the optimizer model.
Example:
config = SimplePromptOptimizerConfig("config").model_configure("...")
Control Flow & Execution¶
.build() -> SimplePromptOptimizerConfig Control Flow & Execution¶
Resolve into a native ADK SimplePromptOptimizerConfig.
Example:
config = SimplePromptOptimizerConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
BigQueryLoggerConfig¶
Fluent builder for
google.adk.plugins.bigquery_agent_analytics_plugin.BigQueryLoggerConfig
Configuration for the BigQueryAgentAnalyticsPlugin.
Quick start:
from adk_fluent import BigQueryLoggerConfig
result = (
BigQueryLoggerConfig()
.build()
)
Control Flow & Execution¶
.build() -> BigQueryLoggerConfig Control Flow & Execution¶
Resolve into a native ADK BigQueryLoggerConfig.
Example:
config = BigQueryLoggerConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`list[str] |
|
`list[str] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Callable[[Any, str], Any] |
|
`str |
|
`str |
|
|
|
|
RetryConfig¶
Fluent builder for
google.adk.plugins.bigquery_agent_analytics_plugin.RetryConfig
Configuration for retrying failed BigQuery write operations.
Quick start:
from adk_fluent import RetryConfig
result = (
RetryConfig()
.build()
)
Control Flow & Execution¶
.build() -> RetryConfig Control Flow & Execution¶
Resolve into a native ADK RetryConfig.
Example:
config = RetryConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
|
|
|
|
GetSessionConfig¶
Fluent builder for
google.adk.sessions.base_session_service.GetSessionConfig
The configuration of getting a session.
Quick start:
from adk_fluent import GetSessionConfig
result = (
GetSessionConfig()
.build()
)
Control Flow & Execution¶
.build() -> GetSessionConfig Control Flow & Execution¶
Resolve into a native ADK GetSessionConfig.
Example:
config = GetSessionConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`int |
|
`float |
BaseGoogleCredentialsConfig¶
Fluent builder for
google.adk.tools._google_credentials.BaseGoogleCredentialsConfig
Base Google Credentials Configuration for Google API tools (Experimental).
Quick start:
from adk_fluent import BaseGoogleCredentialsConfig
result = (
BaseGoogleCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> BaseGoogleCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK BaseGoogleCredentialsConfig.
Example:
config = BaseGoogleCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
AgentSimulatorConfig¶
Fluent builder for
google.adk.tools.agent_simulator.agent_simulator_config.AgentSimulatorConfig
Configuration for AgentSimulator.
Quick start:
from adk_fluent import AgentSimulatorConfig
result = (
AgentSimulatorConfig()
.simulation_model_configure("...")
.build()
)
Configuration¶
.simulation_model_configure(value: GenerateContentConfig) -> Self Configuration¶
Maps to:
simulation_model_configurationSet the
simulation_model_configurationfield.
Example:
config = AgentSimulatorConfig("config").simulation_model_configure("...")
.tool_simulation_config(value: ToolSimulationConfig) -> Self Configuration¶
Append to tool_simulation_configs (lazy — built at .build() time).
Example:
config = AgentSimulatorConfig("config").tool_simulation_config("...")
Control Flow & Execution¶
.build() -> AgentSimulatorConfig Control Flow & Execution¶
Resolve into a native ADK AgentSimulatorConfig.
Example:
config = AgentSimulatorConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
|
|
`str |
|
`str |
InjectionConfig¶
Fluent builder for
google.adk.tools.agent_simulator.agent_simulator_config.InjectionConfig
Injection configuration for a tool.
Quick start:
from adk_fluent import InjectionConfig
result = (
InjectionConfig()
.build()
)
Control Flow & Execution¶
.build() -> InjectionConfig Control Flow & Execution¶
Resolve into a native ADK InjectionConfig.
Example:
config = InjectionConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`dict[str, Any] |
|
|
|
`int |
|
`InjectedError |
|
`dict[str, Any] |
ToolSimulationConfig¶
Fluent builder for
google.adk.tools.agent_simulator.agent_simulator_config.ToolSimulationConfig
Simulation configuration for a single tool.
Quick start:
from adk_fluent import ToolSimulationConfig
result = (
ToolSimulationConfig("tool_name_value")
.injection_config(...)
.build()
)
Constructor¶
ToolSimulationConfig(tool_name: str)
Argument |
Type |
|---|---|
|
Configuration¶
.injection_config(value: InjectionConfig) -> Self Configuration¶
Append to injection_configs (lazy — built at .build() time).
Example:
config = ToolSimulationConfig("config").injection_config("...")
Control Flow & Execution¶
.build() -> ToolSimulationConfig Control Flow & Execution¶
Resolve into a native ADK ToolSimulationConfig.
Example:
config = ToolSimulationConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
|
AgentToolConfig¶
Fluent builder for
google.adk.tools.agent_tool.AgentToolConfig
The config for the AgentTool.
Quick start:
from adk_fluent import AgentToolConfig
result = (
AgentToolConfig("agent_value")
.skip_summarizate("...")
.build()
)
Constructor¶
AgentToolConfig(agent: AgentRefConfig)
Argument |
Type |
|---|---|
|
|
Configuration¶
.skip_summarizate(value: bool) -> Self Configuration¶
Maps to:
skip_summarizationSet the
skip_summarizationfield.
Example:
config = AgentToolConfig("config").skip_summarizate("...")
Control Flow & Execution¶
.build() -> AgentToolConfig Control Flow & Execution¶
Resolve into a native ADK AgentToolConfig.
Example:
config = AgentToolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
BigQueryCredentialsConfig¶
Fluent builder for
google.adk.tools.bigquery.bigquery_credentials.BigQueryCredentialsConfig
BigQuery Credentials Configuration for Google API tools (Experimental).
Quick start:
from adk_fluent import BigQueryCredentialsConfig
result = (
BigQueryCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> BigQueryCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK BigQueryCredentialsConfig.
Example:
config = BigQueryCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
BigQueryToolConfig¶
Fluent builder for
google.adk.tools.bigquery.config.BigQueryToolConfig
Configuration for BigQuery tools.
Quick start:
from adk_fluent import BigQueryToolConfig
result = (
BigQueryToolConfig()
.locate("...")
.build()
)
Configuration¶
.locate(value: str | None) -> Self Configuration¶
Maps to:
locationSet the
locationfield.
Example:
config = BigQueryToolConfig("config").locate("...")
Control Flow & Execution¶
.build() -> BigQueryToolConfig Control Flow & Execution¶
Resolve into a native ADK BigQueryToolConfig.
Example:
config = BigQueryToolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`int |
|
|
|
`str |
|
`str |
|
`dict[str, str] |
BigtableCredentialsConfig¶
Fluent builder for
google.adk.tools.bigtable.bigtable_credentials.BigtableCredentialsConfig
Bigtable Credentials Configuration for Google API tools (Experimental).
Quick start:
from adk_fluent import BigtableCredentialsConfig
result = (
BigtableCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> BigtableCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK BigtableCredentialsConfig.
Example:
config = BigtableCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
DataAgentToolConfig¶
Fluent builder for
google.adk.tools.data_agent.config.DataAgentToolConfig
Configuration for Data Agent tools.
Quick start:
from adk_fluent import DataAgentToolConfig
result = (
DataAgentToolConfig()
.build()
)
Control Flow & Execution¶
.build() -> DataAgentToolConfig Control Flow & Execution¶
Resolve into a native ADK DataAgentToolConfig.
Example:
config = DataAgentToolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
DataAgentCredentialsConfig¶
Fluent builder for
google.adk.tools.data_agent.credentials.DataAgentCredentialsConfig
Data Agent Credentials Configuration for Google API tools.
Quick start:
from adk_fluent import DataAgentCredentialsConfig
result = (
DataAgentCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> DataAgentCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK DataAgentCredentialsConfig.
Example:
config = DataAgentCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
ExampleToolConfig¶
Fluent builder for
google.adk.tools.example_tool.ExampleToolConfig
Fluent builder for ExampleToolConfig.
Quick start:
from adk_fluent import ExampleToolConfig
result = (
ExampleToolConfig("examples_value")
.build()
)
Constructor¶
ExampleToolConfig(examples: list[Example] | str)
Argument |
Type |
|---|---|
|
`list[Example] |
Control Flow & Execution¶
.build() -> ExampleToolConfig Control Flow & Execution¶
Resolve into a native ADK ExampleToolConfig.
Example:
config = ExampleToolConfig("config").build("...")
McpToolsetConfig¶
Fluent builder for
google.adk.tools.mcp_tool.mcp_toolset.McpToolsetConfig
The config for McpToolset.
Quick start:
from adk_fluent import McpToolsetConfig
result = (
McpToolsetConfig()
.build()
)
Control Flow & Execution¶
.build() -> McpToolsetConfig Control Flow & Execution¶
Resolve into a native ADK McpToolsetConfig.
Example:
config = McpToolsetConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`StdioServerParameters |
|
`StdioConnectionParams |
|
`SseConnectionParams |
|
`StreamableHTTPConnectionParams |
|
`list[str] |
|
`str |
|
`APIKey |
|
`AuthCredential |
|
PubSubToolConfig¶
Fluent builder for
google.adk.tools.pubsub.config.PubSubToolConfig
Configuration for Pub/Sub tools.
Quick start:
from adk_fluent import PubSubToolConfig
result = (
PubSubToolConfig()
.build()
)
Control Flow & Execution¶
.build() -> PubSubToolConfig Control Flow & Execution¶
Resolve into a native ADK PubSubToolConfig.
Example:
config = PubSubToolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`str |
PubSubCredentialsConfig¶
Fluent builder for
google.adk.tools.pubsub.pubsub_credentials.PubSubCredentialsConfig
Pub/Sub Credentials Configuration for Google API tools (Experimental).
Quick start:
from adk_fluent import PubSubCredentialsConfig
result = (
PubSubCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> PubSubCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK PubSubCredentialsConfig.
Example:
config = PubSubCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
SpannerCredentialsConfig¶
Fluent builder for
google.adk.tools.spanner.spanner_credentials.SpannerCredentialsConfig
Spanner Credentials Configuration for Google API tools (Experimental).
Quick start:
from adk_fluent import SpannerCredentialsConfig
result = (
SpannerCredentialsConfig()
.build()
)
Control Flow & Execution¶
.build() -> SpannerCredentialsConfig Control Flow & Execution¶
Resolve into a native ADK SpannerCredentialsConfig.
Example:
config = SpannerCredentialsConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`Credentials |
|
`str |
|
`str |
|
`str |
|
`list[str] |
BaseToolConfig¶
Fluent builder for
google.adk.tools.tool_configs.BaseToolConfig
The base class for all tool configs.
Quick start:
from adk_fluent import BaseToolConfig
result = (
BaseToolConfig()
.build()
)
Control Flow & Execution¶
.build() -> BaseToolConfig Control Flow & Execution¶
Resolve into a native ADK BaseToolConfig.
Example:
config = BaseToolConfig("config").build("...")
ToolArgsConfig¶
Fluent builder for
google.adk.tools.tool_configs.ToolArgsConfig
Config to host free key-value pairs for the args in ToolConfig.
Quick start:
from adk_fluent import ToolArgsConfig
result = (
ToolArgsConfig()
.build()
)
Control Flow & Execution¶
.build() -> ToolArgsConfig Control Flow & Execution¶
Resolve into a native ADK ToolArgsConfig.
Example:
config = ToolArgsConfig("config").build("...")
ToolConfig¶
Fluent builder for
google.adk.tools.tool_configs.ToolConfig
The configuration for a tool.
Quick start:
from adk_fluent import ToolConfig
result = (
ToolConfig("name_value")
.build()
)
Constructor¶
ToolConfig(name: str)
Argument |
Type |
|---|---|
|
Control Flow & Execution¶
.build() -> ToolConfig Control Flow & Execution¶
Resolve into a native ADK ToolConfig.
Example:
config = ToolConfig("config").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`ToolArgsConfig |