Skip to content

Google A2A-compatible message types exposed as Pydantic models.

License

Notifications You must be signed in to change notification settings

promptmesh/a2a-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a2a-types

A2A-compatible message types exposed as Pydantic models.

Installation

uv add a2a-types

Usage

from a2a_types.types import AgentCard

card = AgentCard(
    name="My Agent",
    description="This is my agent.",
    url="https://example.com/api",
    provider=AgentProvider(organization="My Organization"),
    version="1.0.0",
    documentationUrl="https://example.com/docs",
    capabilities=AgentCapabilities(streaming=True, pushNotifications=True, stateTransitionHistory=True),
    authentication=AgentAuthentication(schemes=["bearer"], credentials="secret"),
    defaultInputModes=["text"],
    defaultOutputModes=["text"],
    skills=[
        AgentSkill(id="my-skill", name="My Skill", description="This is my skill.", tags=["tag1", "tag2"], examples=["example1", "example2"], inputModes=["text", "code"], outputModes=["text", "code"]),
    ],
)

About

Google A2A-compatible message types exposed as Pydantic models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages