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
mock
openaiopenai
OpenAI provider implementation for ADK.
openai_compatibleopenai
Shared OpenAI-compatible provider implementation.
provider
retry
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
MockLlm
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
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).