> ## Documentation Index
> Fetch the complete documentation index at: https://docs.restate.dev/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.restate.dev/feedback

```json
{
  "path": "/ai/sdk-integrations/litellm",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Restate & LiteLLM

> Learn how to use the LiteLLM with Restate.

LiteLLM is a library that simplifies multiple model providers.
You can combine it with Restate to build resilient agents that can be customized to your use case.
You [wrap model calls in `ctx.run`](/ai/sdk-integrations/integration-guide#integrating-llm-sdks) and use Restate context actions to execute tools.

<Card icon="https://mintcdn.com/restate-6d46e1dc/eyiUDPHMMaoJj2hw/img/ai/sdk-integrations/lite-llm_icon.webp?fit=max&auto=format&n=eyiUDPHMMaoJj2hw&q=85&s=26d2b56cbaae9765079c2b25b855791e" title="Learn more about LiteLLM" horizontal href="https://www.litellm.ai/" width="392" height="394" data-path="img/ai/sdk-integrations/lite-llm_icon.webp" />

Have a look at the following resources to get started with Restate and LiteLLM:

* [Examples](https://github.com/restatedev/ai-examples/tree/main/python-restate-only/tour-of-agents): The examples which use only Restate to implement the agent logic, use LiteLLM to make model calls.
* [Guides](/ai/patterns/durable-agents): Check out the Restate Python examples to learn how to use Restate with LiteLLM.

## Learn more

* [Blog:](https://www.restate.dev/blog/resilient-serverless-agents) AI Agents should be serverless
