You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
d4c63fc562
Related: #2292 Co-authored-by: Shan Cao <caoshan@google.com> PiperOrigin-RevId: 828024955
11 lines
449 B
Markdown
11 lines
449 B
Markdown
# LiteLLM with Fallback Models
|
|
|
|
This agent is built for resilience using LiteLLM's built-in fallback mechanism. It automatically switches models to guard against common disruptions like token limit errors and connection failures, while ensuring full conversational context is preserved across all model changes.
|
|
|
|
To run this example, ensure your .env file includes the following variables:
|
|
```
|
|
GOOGLE_API_KEY=
|
|
OPENAI_API_KEY=
|
|
ANTHROPIC_API_KEY=
|
|
```
|