Maintenance release on the pre-A2A-v1-spec line.
What's new
- Adds the
fasta2a.pydantic_aibridge submodule (agent_to_a2a,AgentWorker,worker_lifespan) — a port ofpydantic_ai._a2afrom the Pydantic AI repo, so users have a migration target forAgent.to_a2a()before its deprecation in Pydantic AI v2. - New
[pydantic-ai]optional extra:pip install 'fasta2a[pydantic-ai]'(requires Python 3.10+).
from pydantic_ai import Agent
from fasta2a.pydantic_ai import agent_to_a2a
agent = Agent('openai:gpt-4.1')
app = agent_to_a2a(agent)Companion change on Pydantic AI side: pydantic/pydantic-ai#5426
Notes
This release ships from release/0.6, branched from the last commit before the A2A v1 spec rewrite started. The full v1 spec rewrite remains on main and will land in a later release.
Full diff: v0.6.0...v0.6.1