Expand description
Convenience prelude for common imports.
Import everything you need with a single line:
use adk_rust::prelude::*;This includes:
- Core traits:
Agent,Tool,Llm,Session - Agent builders:
LlmAgentBuilder,CustomAgentBuilder - Workflow agents:
SequentialAgent,ParallelAgent,LoopAgent - Models:
GeminiModel - Tools:
FunctionTool,GoogleSearchTool,McpToolset - Services:
InMemorySessionService,InMemoryArtifactService - Runtime:
Runner,RunnerConfig - Common types:
Arc,Result,Content,Event
Structs§
- Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Basic
Toolset tools - Conditional
Agent agents - Conditional agent runs different sub-agents based on a condition
- Content
- Core traits and types.
- Custom
Agent agents - Custom
Agent Builder agents - Event
- Core traits and types.
- Exit
Loop Tool tools - Function
Tool tools - Gemini
Model models - Google
Search Tool tools - GoogleSearch is a built-in tool that is automatically invoked by Gemini models to retrieve search results from Google Search. The tool operates internally within the model and does not require or perform local code execution.
- InMemory
Artifact Service artifacts - InMemory
Memory Service memory - InMemory
Session Service sessions - LlmAgent
agents - LlmAgent
Builder agents - LlmRequest
- Core traits and types.
- LlmResponse
- Core traits and types.
- Load
Artifacts Tool tools - Loop
Agent agents - Loop agent executes sub-agents repeatedly for N iterations or until escalation
- McpToolset
tools - MCP Toolset - connects to an MCP server and exposes its tools as ADK tools.
- Parallel
Agent agents - Parallel agent executes sub-agents concurrently
- RunConfig
- Core traits and types.
- Runner
runner - Runner
Config runner - Sequential
Agent agents - Sequential agent executes sub-agents once in order
Enums§
- AdkError
- Core traits and types.
- Before
Model Result - Core traits and types.
- Part
- Core traits and types.
Traits§
- Agent
- Core traits and types.
- Invocation
Context - Core traits and types.
- Llm
- Core traits and types.
- Session
- Core traits and types.
- State
- Core traits and types.
- Tool
- Core traits and types.
- Tool
Context - Core traits and types.
- Toolset
- Core traits and types.
Type Aliases§
- Anyhow
Result Result<T, Error>- Event
Stream - Core traits and types.
- Result
- Core traits and types.