Catalog PyPI
PACKAGE EXPLORERView in registry

agentcard-adapters

PyPI

AgentCard v1.0 adapters for LangChain, CrewAI, and AutoGen

a2aagent-to-agentagentcardai-agentautogencrewaiidentitylangchainllmprotocol
Versions collected1
Direct dependencies7From release 0.1.0
Last observed20 Oct, 21:36 UTC

README

Version 0.1.0 documentation

agentcard-adapters

AgentCard v1.0 adapters for LangChain, CrewAI, AutoGen, and the Aevum PACR runtime.

PyPI License AgentCard v1.0

What is AgentCard?

AgentCard is an open standard for machine-readable agent identity and capability declarations in agent-to-agent (A2A) communication. Think of it as HTTP headers for AI agents.

This package provides bidirectional adapters between AgentCard and major Python AI frameworks.

Installation

# Core (zero dependencies)
pip install agentcard-adapters

# With framework support
pip install agentcard-adapters[langchain]
pip install agentcard-adapters[crewai]
pip install agentcard-adapters[autogen]
pip install agentcard-adapters[all]

Quick Start

Core Schema (Framework-Independent)

from agentcard_adapters import AgentCard, Capability, Endpoint

card = AgentCard(
    agent_id="01HZQK3P8EMXR9V7T5N2W4J6C0",
    name="DataAnalysisAgent",
    version="1.0.0",
    capabilities=[
        Capability(id="data.analyze", description="Analyze datasets"),
        Capability(id="data.visualize", description="Create charts"),
    ],
    endpoint=Endpoint(protocol="https", url="https://my-agent.example.com/api"),
)
card.validate()  # raises if invalid
print(card.to_json())

LangChain

from agentcard_adapters import tool_to_agentcard, agentcard_to_tool

# LangChain Tool → AgentCard
card = tool_to_agentcard(
    my_tool,
    agent_id="01HZQK3P8EMXR9V7T5N2W4J6C0",
    endpoint_url="https://my-agent.example.com",
)

# AgentCard → LangChain Tool
tool = agentcard_to_tool(card)

CrewAI

from agentcard_adapters import agent_to_agentcard, crew_to_agentcards

# CrewAI Agent → AgentCard
card = agent_to_agentcard(
    researcher,
    agent_id="01HZQK3P8EMXR9V7T5N2W4J6C0",
    endpoint_url="https://my-crew.example.com",
)

# Entire Crew → AgentCard list
cards = crew_to_agentcards(my_crew, base_url="https://my-crew.example.com")

AutoGen

from agentcard_adapters.autogen_adapter import agent_to_agentcard

card = agent_to_agentcard(
    assistant,
    agent_id="01HZQK3P8EMXR9V7T5N2W4J6C0",
    endpoint_url="https://my-autogen.example.com",
)

Aevum PACR Runtime Bridge

from agentcard_adapters import AevumChatModel

# Drop-in replacement for LangChain ChatOpenAI that records
# every LLM call as a PACR record with Landauer cost
model = AevumChatModel(
    base_url="http://localhost:8889",
    model="qwen-plus",
)
response = model.invoke("What is PACR?")
print(response.pacr_causal_id)  # real CausalId from the DAG

IETF Standards

This package implements the schemas defined in two IETF Internet-Drafts:

PackageDescription
agentcard-mcpMCP server for Claude Desktop
agentcardTypeScript/Node.js implementation

License

Apache-2.0. See NOTICE for patent non-reservation.

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.027 Apr 20267

Package advisories

0
No matching advisories collected

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

Repository

PENDING
kwailapt/agentcard

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:36 UTC

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

Record identity

package:cf4b039c5800b0629d825e533aaf2052e9339e8ee9ea38b1f919d0d6913ed3f6