Skip to main content

Module model

Module model 

Source
Available on crate feature models only.
Expand description

Model integrations (Gemini, etc.).

Provides LLM implementations:

ADK is model-agnostic - implement the Llm trait for other providers.

Available with feature: models

Modules§

anthropicanthropic
Anthropic/Claude provider implementation for ADK.
geminigemini
Gemini model provider (Google AI Studio and Vertex AI).
mock
Mock LLM for testing without real API calls.
openaiopenai
OpenAI provider implementation for ADK.
openai_compatibleopenai
Shared OpenAI-compatible provider implementation.
provider
Canonical provider identifiers and metadata.
retry
Retry logic with exponential backoff for transient provider errors.
tool_call_parser
Text-based tool call parser for models that emit tool calls as text tags.
usage_tracking
Stream wrapper that records token usage on the active tracing span.

Structs§

AnthropicClient
Anthropic client for Claude models.
AzureConfig
Configuration for Azure OpenAI Service.
AzureOpenAIClient
Azure OpenAI client.
GeminiModel
Gemini model client wrapping the adk-gemini crate for the Llm trait.
MockLlm
A mock LLM implementation for testing without real API calls.
OpenAIClient
OpenAI client for standard OpenAI API and OpenAI-compatible APIs.
OpenAICompatible
Shared OpenAI-compatible client implementation.
OpenAICompatibleConfig
Configuration for OpenAI-compatible providers.
OpenAIConfig
Configuration for OpenAI API.
RetryConfig
Configuration for automatic retry with exponential backoff.
ServerRetryHint
Hint from the server about when to retry.

Enums§

ModelProvider
Canonical provider identifiers and metadata shared across ADK crates.
ReasoningEffort
Reasoning effort level for OpenAI reasoning models (e.g., o1, o3).