Module: runtime¶
Builders in this module¶
Builder |
Description |
|---|---|
Represents an LLM-backed agentic application. |
|
An in-memory Runner for testing and development. |
|
The Runner class is used to run agents. |
App¶
Fluent builder for
google.adk.apps.app.App
Represents an LLM-backed agentic application.
Quick start:
from adk_fluent import App
result = (
App("name_value", "root_agent_value")
.plugin(...)
.build()
)
Constructor¶
App(name: str, root_agent: BaseAgent)
Argument |
Type |
|---|---|
|
|
|
|
Configuration¶
.plugin(value: BasePlugin) -> Self Configuration¶
Append to plugins (lazy — built at .build() time).
Example:
app = App("app").plugin("...")
Control Flow & Execution¶
.build() -> App Control Flow & Execution¶
Resolve into a native ADK App.
Example:
app = App("app").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
|
|
`EventsCompactionConfig |
|
`ContextCacheConfig |
|
`ResumabilityConfig |
InMemoryRunner¶
Fluent builder for
google.adk.runners.InMemoryRunner
An in-memory Runner for testing and development.
Quick start:
from adk_fluent import InMemoryRunner
result = (
InMemoryRunner()
.build()
)
Control Flow & Execution¶
.build() -> InMemoryRunner Control Flow & Execution¶
Resolve into a native ADK InMemoryRunner.
Example:
inmemoryrunner = InMemoryRunner("inmemoryrunner").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`BaseAgent |
|
`str |
|
`list[BasePlugin] |
|
`App |
|
Runner¶
Fluent builder for
google.adk.runners.Runner
The Runner class is used to run agents.
Quick start:
from adk_fluent import Runner
result = (
Runner("session_service_value")
.build()
)
Constructor¶
Runner(session_service: BaseSessionService)
Argument |
Type |
|---|---|
|
|
Control Flow & Execution¶
.build() -> Runner Control Flow & Execution¶
Resolve into a native ADK Runner.
Example:
runner = Runner("runner").build("...")
Forwarded Fields¶
These fields are available via __getattr__ forwarding.
Field |
Type |
|---|---|
|
`App |
|
`str |
|
`BaseAgent |
|
`list[BasePlugin] |
|
`BaseArtifactService |
|
`BaseMemoryService |
|
`BaseCredentialService |
|
|
|