Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/agents/models/litellm.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ You can use the LiteLLM library to access remote or locally hosted AI models:
solutions, see the [Ollama](/adk-docs/agents/models/ollama/)
or [vLLM](/adk-docs/agents/models/vllm/) documentation.

### Anthropic Reasoning and `thinking_blocks`

When you use Anthropic's Claude models (such as Claude 3.7 Sonnet) through the
`LiteLlm` connector, ADK provides full support for their structured reasoning
feature, known as "thinking blocks." This means that ADK automatically
extracts and preserves the `thinking_blocks` and their signatures across tool
call boundaries. This allows you to leverage Claude's advanced reasoning
capabilities within your ADK agents, ensuring that the model's thought processes
are maintained throughout multi-turn interactions.

??? warning "Windows Encoding with LiteLLM"

When using ADK agents with LiteLLM on Windows, you might encounter a
Expand Down Expand Up @@ -98,4 +108,4 @@ agent_claude_direct = LlmAgent(
instruction="You are an assistant powered by Claude Haiku.",
# ... other agent parameters
)
```
```
Loading