Skip to main content
The Pydantic AI adapter runs a Pydantic AI Agent on Tilde. It works with Pydantic AI 2.

Example agent

A complete Pydantic AI agent with bundled tools, in the Tilde open-source repository.

Install

How it works

Pass tilde_pydantic_ai(ctx) to each run. It adds a Tilde capability that brings the channel’s tools, the agent’s Tilde and bundled tools, skill tools, and new user input into the run. It also passes a cancellation token, so stopping the run stops the agent.
agent.py

Feature compatibility

Limitations

  • Decorated tools. Pydantic AI keeps @agent.tool tools outside the toolset the adapter wraps. tilde deploy still lists them, but Tilde cannot record their calls. Use Tool objects with define_tools instead.
  • Retries. A tool that raises ModelRetry is recorded as a failed call.
  • Private settings. The adapter reads prompts from fields outside Pydantic AI’s public API. It is tested against Pydantic AI 2.43.