github datalayer/fasta2a v0.6.1

4 hours ago

Maintenance release on the pre-A2A-v1-spec line.

What's new

  • Adds the fasta2a.pydantic_ai bridge submodule (agent_to_a2a, AgentWorker, worker_lifespan) — a port of pydantic_ai._a2a from the Pydantic AI repo, so users have a migration target for Agent.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

Don't miss a new fasta2a release

NewReleases is sending notifications on new releases.