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
Passtilde_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.tooltools outside the toolset the adapter wraps.tilde deploystill lists them, but Tilde cannot record their calls. UseToolobjects withdefine_toolsinstead. - Retries. A tool that raises
ModelRetryis 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.