agent-framework-a2a 1.0.0b260730


pip install agent-framework-a2a

  Latest version

Released: Jul 30, 2026


Meta
Author: Microsoft
Requires Python: >=3.10

Classifiers

License
  • OSI Approved :: MIT License

Development Status
  • 4 - Beta

Intended Audience
  • Developers

Programming Language
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Typing
  • Typed

Get Started with Microsoft Agent Framework A2A

Please install this package via pip:

pip install agent-framework-a2a --pre

A2A Agent Integration

The A2A agent integration enables communication with remote A2A-compliant agents using the standardized A2A protocol. This allows your Agent Framework applications to connect to agents running on different platforms, languages, or services.

A2AAgent (Client)

The A2AAgent class is a client that wraps an A2A Client to connect the Agent Framework with external A2A-compliant agents.

from agent_framework.a2a import A2AAgent

# Connect to a remote A2A agent
a2a_agent = A2AAgent(url="http://remote-agent/a2a")
response = await a2a_agent.run("Hello!")

A2AExecutor (Hosting)

The A2AExecutor class bridges local AI agents built with the agent_framework library to the A2A protocol, allowing them to be hosted and accessed by other A2A-compliant clients.

from agent_framework.a2a import A2AExecutor
from a2a.server.apps import A2AStarletteApplication
from a2a.server.request_handlers import DefaultRequestHandler
from a2a.server.tasks import InMemoryTaskStore

# Create an A2A executor for your agent
executor = A2AExecutor(agent=my_agent)

# Set up the request handler and server application
request_handler = DefaultRequestHandler(
    agent_executor=executor,
    task_store=InMemoryTaskStore(),
)

app = A2AStarletteApplication(
    agent_card=my_agent_card,
    http_handler=request_handler,
).build()

Basic Usage Example

See the A2A agent examples which demonstrate:

  • Connecting to remote A2A agents
  • Hosting local agents via A2A protocol
  • Sending messages and receiving responses
  • Handling different content types (text, files, data)
  • Streaming responses and real-time interaction

Security considerations

The hosting example above focuses on protocol wiring and does not add authentication or authorization by itself. Production A2A hosts should protect their HTTP or JSON-RPC entry points with the deployment's normal auth layer and verify that each caller is allowed to access the requested agent, task, or session.

Task, thread, context, and session identifiers used by an A2A host are routing handles, not bearer credentials. Do not rely on client-supplied identifiers alone to select or mutate persisted state; bind them to authenticated user, tenant, or workspace context first.

1.0.0b260730 Jul 30, 2026
1.0.0b260721 Jul 21, 2026
1.0.0b260709 Jul 10, 2026
1.0.0b260604 Jun 04, 2026
1.0.0b260528 May 28, 2026
1.0.0b260521 May 22, 2026
1.0.0b260519 May 20, 2026
1.0.0b260514 May 15, 2026
1.0.0b260507 May 08, 2026
1.0.0b260429 Apr 29, 2026
1.0.0b260428 Apr 28, 2026
1.0.0b260424 Apr 24, 2026
1.0.0b260423 Apr 23, 2026
1.0.0b260421 Apr 21, 2026
1.0.0b260409 Apr 10, 2026
1.0.0b260402 Apr 02, 2026
1.0.0b260330 Mar 30, 2026
1.0.0b260319 Mar 20, 2026
1.0.0b260311 Mar 11, 2026
1.0.0b260304 Mar 04, 2026
1.0.0b260225 Feb 26, 2026
1.0.0b260219 Feb 20, 2026
1.0.0b260212 Feb 13, 2026
1.0.0b260210 Feb 11, 2026
1.0.0b260130 Jan 30, 2026
1.0.0b260128 Jan 28, 2026
1.0.0b260127 Jan 27, 2026
1.0.0b260123 Jan 23, 2026
1.0.0b260116 Jan 16, 2026
1.0.0b260114 Jan 14, 2026
1.0.0b260107 Jan 07, 2026
1.0.0b260106 Jan 07, 2026
1.0.0b251223 Dec 24, 2025
1.0.0b251218 Dec 19, 2025
1.0.0b251216 Dec 17, 2025
1.0.0b251211 Dec 11, 2025
1.0.0b251209 Dec 09, 2025
1.0.0b251204 Dec 04, 2025
1.0.0b251120 Nov 21, 2025
1.0.0b251114 Nov 15, 2025
1.0.0b251112.post1 Nov 13, 2025
1.0.0b251112 Nov 13, 2025
1.0.0b251111 Nov 11, 2025
1.0.0b251108 Nov 08, 2025
1.0.0b251105 Nov 05, 2025
1.0.0b251104 Nov 04, 2025
1.0.0b251028 Oct 28, 2025
1.0.0b251016 Oct 16, 2025
1.0.0b251007 Oct 07, 2025
1.0.0b251001 Oct 01, 2025
Extras: None
Dependencies:
agent-framework-core (<2,>=1.13.0)
a2a-sdk (<2,>=1.0.0)