A tiny TypeScript types library containing Google's official A2A (Agent2Agent) types, directly from https://github.com/google-a2a/A2A/tree/main/types
npm install -D a2a-types
import type { AgentCard } from "a2a-types";
To pull the latest types from Google's A2A repository:
npm run update-types
This fetches the latest types from: https://raw.githubusercontent.com/google-a2a/A2A/refs/heads/main/types/src/types.ts
PRs are welcome! This library aims to stay in sync with Google's official A2A types.
Apache-2.0 - from Google's A2A repository