Skip to main content

A2A (Agent-to-Agent) protocol client + server for AgentForge

Project description

agentforge-a2a

A2A (Agent-to-Agent) protocol support for AgentForge: cross-framework agent invocation over HTTP, with bearer / mTLS auth, run_id chain, and budget propagation.

See docs/features/feat-014-a2a-protocol.md for the design and runbook.

Install

pip install agentforge-a2a
# or, from a scaffolded project:
agentforge add module a2a

Call another agent

from agentforge_a2a import A2APeer, agent_call

peer = A2APeer.from_config({
    "name": "fact-checker",
    "url": "https://internal.fact-checker.example/a2a",
    "auth": {"type": "bearer", "token": "${FACT_CHECKER_TOKEN}"},
})

result = await agent_call(
    "fact-checker:verify",
    {"claim": "The capital of Australia is Sydney."},
    timeout_s=30,
    peers={"fact-checker": peer},
)
print(result.output)

Expose this agent

from agentforge import Agent, EnvBearerAuth
from agentforge_a2a import A2AServer

server = A2AServer(
    agent=Agent(model="anthropic:claude-sonnet-4-6", strategy="react"),
    auth=EnvBearerAuth("A2A_TOKENS"),
    endpoints=["review-pr"],
    host="0.0.0.0",
    port=8080,
)
await server.serve()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforge_a2a-0.3.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_a2a-0.3.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_a2a-0.3.0.tar.gz.

File metadata

  • Download URL: agentforge_a2a-0.3.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_a2a-0.3.0.tar.gz
Algorithm Hash digest
SHA256 25d93fda63a23e75d2314354bed6b840a6b957e33ee7c7dd61a704451f86083e
MD5 77cc67fa95b022f29a69cd4b4af82bdd
BLAKE2b-256 0d45edc39c4c5c0491e553bce62ba965bcb13cd5a3e0e488ed4bc00cdf1e741c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_a2a-0.3.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentforge_a2a-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: agentforge_a2a-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_a2a-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8e7bf96e74c5339a305a7a17ad36ce2d2418e348dad337649fc028593a2cec2
MD5 31b225911c5956e77da4dca3e5ef6231
BLAKE2b-256 94993299348e7e2048aec7c74e633356c5ede91d2cc6287ff8af7085bb0040a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_a2a-0.3.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page