a2a docsreferencecard

a2a_pack.card

AgentCard (class)

AgentCard(*, name: str, description: str, version: str, skills: list[a2a_pack.card.SkillCard], capabilities: dict[str, typing.Any] = <factory>, input_modes: list[str] = <factory>, output_modes: list[str] = <factory>, required_secrets: list[str] = <factory>, required_env: list[str] = <factory>, runtime: a2a_pack.runtime.AgentRuntime = <factory>, state_schema: dict[str, typing.Any] | None = None, workspace_access: a2a_pack.workspace.WorkspaceAccess = <factory>) -> None

Public description of an agent.

Mirrors the A2A Agent Card spec: identity, capabilities, IO modes, and the catalog of skills the agent advertises.

from_agent (method)

from_agent(agent: "'A2AAgent'") -> "'AgentCard'"

(no docstring)

SkillCard (class)

SkillCard(*, id: str, name: str, description: str, tags: list[str] = <factory>, scopes: list[str] = <factory>, stream: bool = False, policy: a2a_pack.runtime.SkillPolicy = <factory>, input_schema: dict[str, typing.Any], output_schema: dict[str, typing.Any]) -> None

Public description of a single skill, shaped for the A2A spec.

Source: apps/a2a/a2a_pack/card.py