Catalog PyPI
PACKAGE EXPLORERView in registry

agentity-a2a

PyPI

Agentity A2A protocol plugin for Google

Versions collected1
Direct dependencies4From release 0.1.1
Last observed20 Oct, 22:28 UTC

README

Version 0.1.1 documentation

agentity-a2a

A2A (Agent-to-Agent) protocol plugin for Agentity. Sign and verify inter-agent communication using the Agentity identity layer — enabling scoped, auditable agent-to-agent requests.

Installation

pip install agentity-a2a

Usage

import asyncio
from agentity_a2a import A2AClient

async def main():
    # Create an A2A client with Agentity identity
    client = A2AClient()

    print(f"Agent DID: {client.agent_did}")
    print(f"Scopes: {client.agent_scope}")

    # Send a signed A2A request
    result = await client.send_request(
        url="https://api.agent-service.com/agent/message",
        method="POST",
        body=b'{"type": "task", "payload": "..."}',
    )
    print(f"Status: {result['status']}")
    print(f"Body: {result['body']}")

asyncio.run(main())

Custom keypair and identity

from agentity_sdk import AgentKeyPair
from agentity_a2a import A2AClient

kp = AgentKeyPair()
aid = kp.create_identity(
    owner_did="did:agentity:human:alice",
    scopes=["a2a:agent:send", "a2a:message:receive"],
    ttl_days=30,
)

client = A2AClient(keypair=kp, identity=aid)

Default scopes

When no identity is provided, A2AClient auto-creates one with scopes:

  • a2a:agent:send
  • a2a:message:receive

API

Method / PropertyDescription
A2AClient(keypair?, identity?)Create client, auto-generates identity if omitted
async send_request(url, method, body?)Send signed A2A HTTP request
.agent_didThe agent's DID string
.agent_scopeThe agent's scope list

License: Apache 2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.117 May 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agenttity/agentity

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6895252cda6771788e092c662afbe48b8ac85009123539986351a507954da1c8