[
  {
    "path": ".devcontainer/README.md",
    "content": "# A2A Development Container\n\nThis devcontainer provides a fully configured development environment for the A2A project with all required dependencies pre-installed.\n\n## What's Included\n\n### Build Tools\n\n- **protoc** (v28.3) - Protocol Buffers compiler\n- **protoc-gen-jsonschema** (bufbuild) - JSON Schema generator for protobuf\n- **jq** (latest) - JSON processor\n- **googleapis** - Google API proto definitions\n\n### Development Tools\n\n- **Python 3.12** with all documentation dependencies\n- **Go** (latest) - for protoc plugin compilation\n\n### VS Code Extensions\n\n- Python language support with Pylance\n- Buf for Protocol Buffers\n- Code Spell Checker\n\n## Usage\n\n### Opening in VS Code\n\n1. Install the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)\n2. Open this repository in VS Code\n3. When prompted, click \"Reopen in Container\" (or use Command Palette: \"Dev Containers: Reopen in Container\")\n4. Wait for the container to build and dependencies to install\n\n### Building Documentation\n\nOnce inside the container:\n\n```bash\n# Build all documentation\n./scripts/build_docs.sh\n\n# Convert proto to JSON Schema only\n./scripts/proto_to_json_schema.sh specification/json/a2a.json\n```\n\n### GitHub Codespaces\n\nThis devcontainer configuration also works with GitHub Codespaces:\n\n1. Go to the repository on GitHub\n2. Click \"Code\" → \"Codespaces\" → \"Create codespace on [branch]\"\n3. Wait for the environment to be provisioned\n\n## Benefits\n\n- **Reproducible builds**: Everyone uses the same tool versions\n- **No local setup**: No need to install protoc, jq, etc. on your host machine\n- **Quick onboarding**: New contributors can start developing immediately\n- **CI/CD alignment**: Same environment as CI can use similar container\n\n## Customization\n\nTo modify the environment:\n\n- **Add tools**: Edit `.devcontainer/setup.sh`\n- **Change Python/Go versions**: Edit `features` in `devcontainer.json`\n- **Add VS Code extensions**: Edit `customizations.vscode.extensions` in `devcontainer.json`\n\n## Troubleshooting\n\n### Container build fails\n\n```bash\n# Rebuild without cache\nDev Containers: Rebuild Container (without cache)\n```\n\n### Tools not found after setup\n\n```bash\n# Re-run setup script manually\nbash .devcontainer/setup.sh\n```\n"
  },
  {
    "path": ".devcontainer/devcontainer.json",
    "content": "{\n    \"name\": \"A2A Development\",\n    \"image\": \"mcr.microsoft.com/devcontainers/base:ubuntu\",\n    \"features\": {\n        \"ghcr.io/devcontainers/features/python:1\": {\n            \"version\": \"3.12\"\n        },\n        \"ghcr.io/devcontainers/features/go:1\": {\n            \"version\": \"latest\"\n        },\n        \"ghcr.io/devcontainers/features/node:1\": {\n            \"version\": \"lts\"\n        }\n    },\n    \"postCreateCommand\": \"bash .devcontainer/setup.sh\",\n    \"customizations\": {\n        \"vscode\": {\n            \"extensions\": [\n                \"ms-python.python\",\n                \"ms-python.vscode-pylance\",\n                \"bufbuild.vscode-buf\",\n                \"streetsidesoftware.code-spell-checker\"\n            ],\n            \"settings\": {\n                \"python.defaultInterpreterPath\": \"/usr/local/bin/python\"\n            }\n        }\n    },\n    \"forwardPorts\": [\n        8000\n    ],\n    \"remoteUser\": \"vscode\"\n}\n"
  },
  {
    "path": ".devcontainer/setup.sh",
    "content": "#!/bin/bash\nset -euo pipefail\n\necho \"==> Setting up A2A development environment...\"\n\n# Install system dependencies\necho \"→ Installing system packages...\"\nsudo apt-get update\nsudo apt-get install -y \\\n  curl \\\n  git \\\n  jq \\\n  unzip\n\n# Install Protocol Buffers compiler\necho \"→ Installing protoc...\"\nPROTOC_VERSION=\"28.3\"\nPROTOC_ZIP=\"protoc-${PROTOC_VERSION}-linux-x86_64.zip\"\ncurl -fsSL -o /tmp/protoc.zip \"https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}\"\nsudo unzip -q /tmp/protoc.zip -d /usr/local\nrm /tmp/protoc.zip\n\n# Install protoc-gen-jsonschema (bufbuild)\necho \"→ Installing protoc-gen-jsonschema...\"\ngo install github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@latest\ngo_bin_path=\"$(go env GOPATH)/bin/protoc-gen-jsonschema\"\nif [ -f \"$go_bin_path\" ]; then\n  sudo cp \"$go_bin_path\" /usr/local/bin/\nfi\n\n# Install buf CLI\necho \"→ Installing buf...\"\ngo install github.com/bufbuild/buf/cmd/buf@latest\ngo_bin_path=\"$(go env GOPATH)/bin/buf\"\nif [ -f \"$go_bin_path\" ]; then\n  sudo cp \"$go_bin_path\" /usr/local/bin/\nfi\n\n# Install googleapis proto files to third_party\necho \"→ Installing googleapis...\"\nSCRIPT_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\" && pwd)\"\nWORKSPACE_DIR=\"$(dirname \"$SCRIPT_DIR\")\"\nGOOGLEAPIS_DIR=\"$WORKSPACE_DIR/third_party/googleapis\"\nif [ ! -d \"$GOOGLEAPIS_DIR\" ]; then\n  mkdir -p \"$WORKSPACE_DIR/third_party\"\n  cd \"$WORKSPACE_DIR/third_party\"\n  git clone --depth 1 https://github.com/googleapis/googleapis.git\n  cd \"$WORKSPACE_DIR\"\nfi\n\n# Install Python dependencies for documentation\necho \"→ Installing Python packages...\"\npip install --no-cache-dir -r requirements-docs.txt\n\n# Verify installations\necho \"\"\necho \"==> Verifying installations...\"\necho \"protoc: $(protoc --version)\"\necho \"protoc-gen-jsonschema: $(which protoc-gen-jsonschema)\"\necho \"buf: $(buf --version 2>/dev/null || echo 'not found')\"\necho \"jq: $(jq --version)\"\necho \"python: $(python --version)\"\necho \"go: $(go version)\"\n\necho \"\"\necho \"✓ Development environment ready!\"\necho \"\"\necho \"To build documentation:\"\necho \"  ./scripts/build_docs.sh\"\necho \"\"\necho \"To convert proto to JSON Schema:\"\necho \"  ./scripts/proto_to_json_schema.sh specification/json/a2a.json\"\n"
  },
  {
    "path": ".editorconfig",
    "content": "# editorconfig.org\nroot = true\n\n[*]\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n\n[*.sh]\nindent_style = space\nindent_size = 2\n"
  },
  {
    "path": ".gemini/config.yaml",
    "content": "code_review:\n  comment_severity_threshold: LOW\nignore_patterns: ['CHANGELOG.md']\n"
  },
  {
    "path": ".git-blame-ignore-revs",
    "content": "# Template taken from https://github.com/v8/v8/blob/master/.git-blame-ignore-revs.\n#\n# This file contains a list of git hashes of revisions to be ignored by git blame. These\n# revisions are considered \"unimportant\" in that they are unlikely to be what you are\n# interested in when blaming. Most of these will probably be commits related to linting\n# and code formatting.\n#\n# Instructions:\n# - Only large (generally automated) reformatting or renaming CLs should be\n#   added to this list. Do not put things here just because you feel they are\n#   trivial or unimportant. If in doubt, do not put it on this list.\n# - Precede each revision with a comment containing the PR title and number.\n#   For bulk work over many commits, place all commits in a block with a single\n#   comment at the top describing the work done in those commits.\n# - Only put full 40-character hashes on this list (not short hashes or any\n#   other revision reference).\n# - Append to the bottom of the file (revisions should be in chronological order\n#   from oldest to newest).\n# - Because you must use a hash, you need to append to this list in a follow-up\n#   PR to the actual reformatting PR that you are trying to ignore.\n0f8d9750bcb17f6b8b9f48793b46f7b8510cae24\n"
  },
  {
    "path": ".gitattributes",
    "content": "# Documentation overrides\n/docs/** linguist-documentation=true\n/.mkdocs/** linguist-documentation=true\n# Removed committed a2a.json; generated at build time.\nnoxfile.py linguist-vendored=true\n\n# Merge and diff setting\nCHANGELOG.md merge=union\n"
  },
  {
    "path": ".github/CODEOWNERS",
    "content": "# Code owners file.\n# This file controls who is tagged for review for any given pull request.\n#\n# For syntax help see:\n# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax\n\n*                       @a2aproject/a2a-tsc\ndocs/                   @a2aproject/a2a-tsc\nscripts/                @a2aproject/a2a-tsc\nspecification/          @a2aproject/a2a-tsc\ndocs/specification.md   @a2aproject/a2a-tsc\nGOVERNANCE.md           @a2aproject/a2a-tsc\n.mkdocs/                @a2aproject/a2a-tsc\n.mkdocs.yml             @a2aproject/a2a-tsc\nREADME.md               @a2aproject/a2a-tsc\n.gemini/                @a2aproject/a2a-tsc\n.mkdocs/                @a2aproject/a2a-tsc\n.github/                @a2aproject/a2a-tsc\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug-report.yml",
    "content": "name: 🐞 Bug Report\ndescription: File a bug report\ntitle: \"[Bug]: \"\ntype: \"Bug\"\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        Thanks for stopping by to let us know something could be better!\n        Private Feedback? Please use this [Google form](https://goo.gle/a2a-feedback)\n  - type: textarea\n    id: what-happened\n    attributes:\n      label: What happened?\n      description: Also tell us what you expected to happen and how to reproduce the issue.\n      placeholder: Tell us what you see!\n      value: \"A bug happened!\"\n    validations:\n      required: true\n  - type: textarea\n    id: logs\n    attributes:\n      label: Relevant log output\n      description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.\n      render: shell\n  - type: checkboxes\n    id: terms\n    attributes:\n      label: Code of Conduct\n      description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/a2aproject/A2A?tab=coc-ov-file#readme)\n      options:\n        - label: I agree to follow this project's Code of Conduct\n          required: true\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature-request.yml",
    "content": "name: 💡 Feature Request\ndescription: Suggest an idea for this repository\ntitle: \"[Feat]: \"\ntype: \"Feature\"\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        Thanks for stopping by to let us know something could be better!\n        Private Feedback? Please use this [Google form](https://goo.gle/a2a-feedback)\n  - type: textarea\n    id: problem\n    attributes:\n      label: Is your feature request related to a problem? Please describe.\n      description: A clear and concise description of what the problem is.\n      placeholder: Ex. I'm always frustrated when [...]\n  - type: textarea\n    id: describe\n    attributes:\n      label: Describe the solution you'd like\n      description: A clear and concise description of what you want to happen.\n    validations:\n      required: true\n  - type: textarea\n    id: alternatives\n    attributes:\n      label: Describe alternatives you've considered\n      description: A clear and concise description of any alternative solutions or features you've considered.\n  - type: textarea\n    id: context\n    attributes:\n      label: Additional context\n      description: Add any other context or screenshots about the feature request here.\n  - type: checkboxes\n    id: terms\n    attributes:\n      label: Code of Conduct\n      description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/a2aproject/A2A?tab=coc-ov-file#readme)\n      options:\n        - label: I agree to follow this project's Code of Conduct\n          required: true\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md",
    "content": "# Description\n\nThank you for opening a Pull Request!\nBefore submitting your PR, there are a few things you can do to make sure it goes smoothly:\n\n- [ ] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/A2A/blob/main/CONTRIBUTING.md).\n- [ ] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification.\n- [ ] Ensure the tests and linter pass (Run `nox -s format` from the repository root to format)\n- [ ] Appropriate docs were updated (if necessary)\n\nFixes #<issue_number_goes_here> 🦕\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE/become_a_repo_maintainer.md",
    "content": "---\nname: Become a repo maintainer\nabout: Request maintainer status for the A2A repo\ntitle: Maintainer Request\nassignees: amye\n\n---\n\nIf you'd like to become a maintainer of the Agent2Agent repo on GitHub, please submit this template with your PR to add yourself to a maintainers group in [MAINTAINERS.md](../../MAINTAINERS.md).\n\nTSC voting majority will be required to approve maintainers.\n\nOnce accepted you'll be able to commit to this repo!\n\n### GitHub user id\n\n- List your GitHub user id\n\n### Company affiliation\n\n- List your company name, or indicate Individual if you're not affiliated with a company\n\n### Requirements\n\n- [ ] I have at least one merged Pull Request\n- [ ] I have reviewed the [contribution guidelines](https://github.com/a2aproject/A2A/blob/main/CONTRIBUTING.md)\n- [ ] I have enabled [2FA on my GitHub account](https://github.com/settings/security)\n- [ ] I have joined the A2A discord\n"
  },
  {
    "path": ".github/actions/spelling/advice.md",
    "content": "<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->\n<details><summary>If the flagged items are :exploding_head: false positives</summary>\n\nIf items relate to a ...\n\n- binary file (or some other file you wouldn't want to check at all).\n\n  Please add a file path to the `excludes.txt` file matching the containing file.\n\n  File paths are Perl 5 Regular Expressions - you can [test](https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.\n\n  `^` refers to the file's path from the root of the repository, so `^README\\.md$` would exclude `README.md` (on whichever branch you're using).\n\n- well-formed pattern.\n\n  If you can write a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it,\n  try adding it to the `patterns.txt` file.\n\n  Patterns are Perl 5 Regular Expressions - you can [test](https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.\n\n  Note that patterns can't match multiline strings.\n\n</details>\n\n<!-- adoption information-->\n\n:steam_locomotive: If you're seeing this message and your PR is from a branch that doesn't have check-spelling,\nplease merge to your PR's base branch to get the version configured for your repository.\n"
  },
  {
    "path": ".github/actions/spelling/allow.txt",
    "content": "AAAANSUh\nAAAAUA\nAAAGHMHc\nACMRTUXB\nACard\nAClient\nACo\nADK\nADR\nAError\nAExecutor\nAGP\nAIP\nARequest\nASED\nASGI\nAServer\nAService\nASq\nAStarlette\nAUTOCOMMIT\nAgentspace\nAgno\nAutogen\nBahasa\nBesen\nBlogs\nCAs\nCLIs\nCamry\nCjava\nCpzuhi\nDDo\nDGT\nDHDe\nDatetimes\nDebian\nDjq\nDotnet\nEBFF\nEUR\nEUg\nEspa\nFBT\nFHIR\nFbr\nGAPI\nGAPIC\nGBP\nGVsb\nGapic\nGci\nGenkit\nGhw\nGitVote\nHBz\nHKRMw\nHRA\nHSTS\nHXo\nHackathon\nIFdvcmxk\nIMPCUk\nINR\nIkp\nImh\nImprd\nJFUz\nJHv\nJIUz\nJPY\nJWKS\nJWS\nJWTs\nJhb\nJra\nKGgo\nKRW\nLHR\nLJcvt\nLLM\nLLMs\nLix\nMSIs\nMWpm\nMapr\nMvosg\nNszl\nOIDC\nOOa\nOllama\nPLE\nPLW\nPMEEi\nPTH\nPolski\nPortugu\nQFdk\nQvandrcy\nRFCs\nRPCs\nRUF\nSLAs\nSLF\nSSLv\nSolax\nTJS\nTMDB\nTful\nURLTo\nUpserting\nUrke\nVBORw\nVHc\nVsb\nWHB\nWQi\nWVw\nWitteveen\nXBs\nXVCJ\nXca\nYQGt\nYTAKFW\nYTT\nYWFh\nYWdlbn\nZDS\nZKHv\nZXhhb\nZXkt\nZipkin\nZms\naab\naacacac\naboutasha\nachat\naconnect\nadk\nadr\nadrs\nafet\naffef\nagentcard\nagentic\nagentskill\nagno\nagntcy\nagp\nainvoke\naip\nairbnb\naldridge\nalloydb\namannn\naparse\naproject\naprotocol\nargjson\narxiv\naskmarvin\nasyncclick\nautogen\nautomodule\nautouse\nbackstory\nbackticks\nbbb\nbeeai\nboq\nbufbuild\nbzr\ncae\ncanceltask\nccc\ncdn\nceee\ncfe\nchrusty\ncls\ncoc\ncodegen\ncodeowner\ncodespace\ncodewiki\ncrewai\ndatamodel\ndatapart\ndbc\ndcda\ndcfa\ndde\ndeepwiki\ndirenv\ndlai\ndocstrings\ndocumentai\ndotnet\neaf\nebedef\nefaab\nefbd\nembeddings\nendblock\nendmacro\nenvoyproxy\neuo\nevt\nexcinfo\nfaa\nfaf\nfafd\nfdebd\nffbb\nfff\nfirewalls\nflightbook\nforbes\nfsv\nfyi\ngapic\ngcp\ngenai\ngeneknit\ngenkit\ngenproto\ngeoroute\ngettask\ngettickets\ngitleaks\ngitvote\ngle\ngoogleai\ngoogleapi\ngoogleapis\ngoogleblog\ngpt\ngstatic\ngweb\nhackathon\nhackathons\nhqdefault\nhughesthe\niana\niat\nietf\ninardini\ninbox\ninmemory\nipynb\niss\njherr\njku\njqlang\njti\njwks\nkadirpekel\nkeystores\nkonami\nkty\nlanggraph\nlerhaupt\nlinenums\nlinkedin\nlinting\nlisttasks\nlitellm\nllm\nllms\nlng\nlogtostderr\nmarvin\nmcp\nmcr\nmesop\nmikefarah\nmindsdb\nmintlify\nmotherlode\nmozilla\nmsword\nmultiagent\nmultipage\nmydb\nmyorg\nnearform\nnlp\nnotif\nnpush\nobjc\nocticons\noidc\nollama\noneof\nopenaitx\nopenapis\nopenapiv\nopenapiv2\noreilly\npostgres\npostgresql\npqr\nprefecthq\nprotoc\nprotojson\nprotolint\npyguide\npylance\npymdownx\npypa\npypackages\npytype\npyupgrade\nqwq\nrcm\nregen\nrepomapr\nreportgen\nreposted\nrst\nrvelicheti\nsandijean\nscm\nsllm\nsourced\nsourcing\nsquidfunk\nsrcs\nsse\nsss\nstateclass\nstephenh\nstyleguide\nsvn\nsystemctl\ntablefmt\ntagwords\ntasksget\ntaskslist\ntaskssend\ntaskstate\ntaskstatus\ntextpart\nthreadsafe\ntoctree\ntok\ntoolkits\ntracestate\nugc\nundoc\nutm\nvenv-docs\nversioned\nvnd\nvoa\nvscode\nweavehacks\nwebform\nwebpage\nwhatwg\nwikipedia\nwinget\nwsgi\nwwwwwwww\nxxxxx\nxxxxxxxx\nyoutube\nyyyyyyyy\nzzzzzzzz\n"
  },
  {
    "path": ".github/actions/spelling/excludes.txt",
    "content": "# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-excludes\n(?:^|/)(?i)COPYRIGHT\n(?:^|/)(?i)LICEN[CS]E\n(?:^|/)(?i)CODE_OF_CONDUCT.md\\E$\n(?:^|/)(?i).gitignore\\E$\n(?:^|/)3rdparty/\n(?:^|/)go\\.sum$\n(?:^|/)package(?:-lock|)\\.json$\n(?:^|/)Pipfile$\n(?:^|/)pyproject.toml\n(?:^|/)requirements(?:-dev|-doc|-test|)\\.txt$\n(?:^|/)vendor/\n/CODEOWNERS$\n\\.a$\n\\.ai$\n\\.all-contributorsrc$\n\\.avi$\n\\.bmp$\n\\.bz2$\n\\.cer$\n\\.class$\n\\.coveragerc$\n\\.crl$\n\\.crt$\n\\.csr$\n\\.dll$\n\\.docx?$\n\\.drawio$\n\\.DS_Store$\n\\.eot$\n\\.eps$\n\\.exe$\n\\.gif$\n\\.git-blame-ignore-revs$\n\\.gitattributes$\n\\.gitkeep$\n\\.graffle$\n\\.gz$\n\\.icns$\n\\.ico$\n\\.jar$\n\\.jks$\n\\.jpe?g$\n\\.key$\n\\.lib$\n\\.lock$\n\\.map$\n\\.min\\..\n\\.mo$\n\\.mod$\n\\.mp[34]$\n\\.o$\n\\.ocf$\n\\.otf$\n\\.p12$\n\\.parquet$\n\\.pdf$\n\\.pem$\n\\.pfx$\n\\.png$\n\\.psd$\n\\.pyc$\n\\.pylintrc$\n\\.qm$\n\\.s$\n\\.sig$\n\\.so$\n\\.svgz?$\n\\.sys$\n\\.tar$\n\\.tgz$\n\\.tiff?$\n\\.ttf$\n\\.wav$\n\\.webm$\n\\.webp$\n\\.woff2?$\n\\.xcf$\n\\.xlsx?$\n\\.xpm$\n\\.xz$\n\\.zip$\n^\\.github/actions/spelling/\n^\\Q.github/workflows/spelling.yaml\\E$\n^\\Q.github/workflows/linter.yaml\\E$\n^\\Qlychee.toml\\E$\n\\.vscode/\n^\\Qdocs/partners.md\\E$\n^\\Qspecification/json/a2a.json\\E$\nCHANGELOG.md\n\\.gitignore\n^\\Qdocs/robots.txt\\E$\nCODE_OF_CONDUCT.md\n"
  },
  {
    "path": ".github/actions/spelling/line_forbidden.patterns",
    "content": "# Should be `HH:MM:SS`\n\\bHH:SS:MM\\b\n\n# Should probably be `YYYYMMDD`\n\\b[Yy]{4}[Dd]{2}[Mm]{2}(?!.*[Yy]{4}[Dd]{2}[Mm]{2}).*$\n\n# Should be `anymore`\n\\bany more[,.]\n\n# Should be `cannot` (or `can't`)\n# See https://www.grammarly.com/blog/cannot-or-can-not/\n# > Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`.\n# > `Can't` is a contraction of `cannot`, and it's best suited for informal writing.\n# > In formal writing and where contractions are frowned upon, use `cannot`.\n# > It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.`\n# - if you encounter such a case, add a pattern for that case to patterns.txt.\n\\b[Cc]an not\\b\n\n# Should be `GitHub`\n(?<![&*.]|// |\\btype |\\bimport )\\bGithub\\b(?![{()])\n\\b[Gg]it\\s[Hh]ub\\b\n\n# Should be `GitLab`\n(?<![&*.]|// |\\btype )\\bGitlab\\b(?![{)])\n\n# Should be `JavaScript`\n\\bJavascript\\b\n\n# Should be `macOS` or `Mac OS X` or ...\n\\bMacOS\\b\n\n# Should be `Microsoft`\n\\bMicroSoft\\b\n\n# Should be `OAuth`\n(?:^|[^-/*$])[ '\"]oAuth(?: [a-z]|\\d+ |[^ a-zA-Z0-9:;_.()])\n\n# Should be `TypeScript`\n\\bTypescript\\b\n\n# Should be `another`\n\\ban[- ]other\\b\n\n# Should be `case-(in)sensitive`\n\\bcase (?:in|)sensitive\\b\n\n# Should be `coinciding`\n\\bco-inciding\\b\n\n# Should be `deprecation warning(s)`\n\\b[Dd]epreciation [Ww]arnings?\\b\n\n# Should be `greater than`\n\\bgreater then\\b\n\n# Should be `ID`\n#\\bId\\b\n\n# Should be `in front of`\n\\bin from of\\b\n\n# Should be `use`\n\\sin used by\\b\n\n# Should be `is obsolete`\n\\bis obsolescent\\b\n\n# Should be `it's` or `its`\n\\bits[']\n\n# Should be `its`\n\\bit's(?= own\\b)\n\n# Should be `perform its`\n\\bperform it's\\b\n\n# Should be `less than`\n\\bless then\\b\n\n# Should be `load balancer`\n\\b[Ll]oud balancer\n\n# Should be `one of`\n\\bon of\\b\n\n# Should be `otherwise`\n\\bother[- ]wise\\b\n\n# Should be `or (more|less)`\n\\bore (?:more|less)\\b\n\n# Should be `rather than`\n\\brather then\\b\n\n# Should be `regardless, ...` or `regardless of (whether)`\n\\b[Rr]egardless if you\\b\n\n# Should be `no longer needed`\n\\bno more needed\\b(?! than\\b)\n\n# Should be `did not exist`\n\\bwere not existent\\b\n\n# Should be `nonexistent`\n\\bnon existing\\b\n\n# Should be `nonexistent`\n\\b[Nn]o[nt][- ]existent\\b\n\n# Should be `@brief` / `@details` / `@param` / `@return` / `@retval`\n(?:^\\s*|(?:\\*|//|/*)\\s+`)[\\\\@](?:breif|(?:detail|detials)|(?:params(?!\\.)|prama?)|ret(?:uns?)|retvl)\\b\n\n# Should be `preexisting`\n[Pp]re[- ]existing\n\n# Should be `preempt`\n[Pp]re[- ]empt\\b\n\n# Should be `preemptively`\n[Pp]re[- ]emptively\n\n# Should be `recently changed` or `recent changes`\n[Rr]ecent changed\n\n# Should be `reentrancy`\n[Rr]e[- ]entrancy\n\n# Should be `reentrant`\n[Rr]e[- ]entrant\n\n# Should be `understand`\n\\bunder stand\\b\n\n# Should be `workarounds`\n\\bwork[- ]arounds\\b\n\n# Should be `workaround`\n(?:(?:[Aa]|[Tt]he|ugly)\\swork[- ]around\\b|\\swork[- ]around\\s+for)\n\n# Should be `(coarse|fine)-grained`\n\\b(?:coarse|fine) grained\\b\n\n# Should be `neither/nor` -- or reword\n\\bnot\\b[^.?!\"/(]+\\bnor\\b\n\n# Should be `neither/nor` (plus rewording the beginning)\n# This is probably a double negative...\n\\bnot\\b[^.?!\"/]*\\bneither\\b[^.?!\"/(]*\\bnor\\b\n\n# In English, duplicated words are generally mistakes\n# There are a few exceptions (e.g. \"that that\").\n# If the highlighted doubled word pair is in:\n# * code, write a pattern to mask it.\n# * prose, have someone read the English before you dismiss this error.\n\\s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\\s\\g{-1}\\s\n\n# Should be `Gen AI`\n\\b[gG]enAI\\b\n\n# Should be LangChain\n\\b(?!LangChain\\b)(?!langchain\\b)[Ll]ang\\s?[Cc]hain?\\b\n\n# Should be LangGraph\n\\b(?!LangGraph\\b)(?!langgraph\\b)[Ll]ang\\s?[Gg]raph?\\b\n\n# Should be LangServe\n\\b(?!LangServe\\b)(?!langserve\\b)[Ll]ang\\s?[Ss]erve?\\b\n\n# Should be LlamaIndex\n\\b(?!LlamaIndex\\b)[Ll][Ll]ama\\s?[Ii]ndex?\\s\n\n# Should be Hugging Face\n\\s(?!Hugging Face\\b)[Hh]ugging\\s?[Ff]ace?\\b\n\n# Should be DeepSeek\n\\b(?!DeepSeek\\b)(?!deepseek\\b)[Dd]eep\\s?[Ss]eek?\\b\n\n# Should be Vertex AI\n\\b(?!Vertex AI\\b)(?!.*[\\(\\)\\{\\},])(?<!import\\s)(?<!\\.)(?<!,\\s)Vertex\\s?[Aa]?[Ii]?\\b\n\n# Should be Vertex AI\n\\b[Vv]ertext\\b\n\n# Should be Gemini\n\\sgemini\\s\\w\n\n# Should be `Gemini Version Size` (e.g. `Gemini 2.0 Flash`)\n\\bGemini\\s(Pro|Flash|Ultra)\\s?\\d\\.\\d\\b\n\n# Gemini Size should be capitalized (e.g. `Gemini 2.0 Flash`)\n\\bGemini\\s?\\d\\.\\d\\s(pro|flash|ultra)\\b\n\n# Don't say \"Google Gemini\" or \"Google Gemini\"\n\\b[Gg]oogle(?: [Cc]loud| [Dd]eep[Mm]ind)?'s [Gg]emini\\b\n\n# Don't say \"Powered by Gemini\", instead say \"with Gemini\"\n\\b[Pp]owered\\s[Bb]y\\s[Gg]emini\\b\n\n# Should be Gemini API in Vertex AI\n\\b[Vv]ertex\\s[Aa][Ii]\\s[Gg]emini\\s[Aa][Pp][Ii]\\b\n\n# Should be Agentspace\n\\b(?!Agentspace\\b)[Aa]gent\\s?[Ss]pace?\\b\n\n# Should be Imagen\n\\simagen\\s\\w\n\n# Should be Imagen 2 or Imagen 3\n\\bImagen\\d\\b\n\n# Should be BigQuery\n\\b(?!BigQuery\\b)(?!bigquery\\b)[Bb]ig\\s?[Qq]uery\\b\n\n# Should be DataFrame or DataFrames\n\\b(?!DataFrames?\\b)(?!.*[\\(\\)\\{\\}\\.,=])(?<!\")\\b[Dd]ata\\s?[Ff]rames?\\b(?!\")\n\n# Should be Google Cloud\n\\s[Gg][Cc][Pp]\\s\n\n# Should be Google Cloud\n\\b(?!Google\\sCloud\\b)[Gg]oogle\\s?[Cc]loud\\b\n\n# Should be DeepMind\n\\b(?!DeepMind\\b)[Dd]eep\\s?[Mm]ind\\b\n\n# Should be TensorFlow\n\\b(?!TensorFlow\\b)(?!tensorflow\\b)[Tt]ensor\\s?[Ff]low\\b\n\n# Should be AlloyDB\n\\b(?!AlloyDB\\b)(?!alloydb\\b)[Aa]lloy\\s?[Dd]\\s?[Bb]\\b\n\n# Should be Translation API\n\\bTranslate\\s?API\\b\n\n# Should be Dialogflow\n\\bDialogFlow\\b\n\n# Should be Firebase\n\\b(?!Firebase\\b)Fire\\s?[Bb]ase\\b\n\n# Should be Firestore\n\\b(?!Firestore\\b)Fire\\s?[Ss]tore\\b\n\n# Should be Memorystore\n\\b(?!Memorystore\\b)Memory\\s?[Ss]tore\\b\n\n# Should be Document AI\n\\bDoc\\s?AI\\b\n\n# Should be Vertex AI Search\n\\bVertex\\s?Search\\b\n\n# Should be Vertex AI Vector Search\n\\bVertex\\sVector\\sSearch\\b\n\n# Should be Colab\n\\s(?!Colab)[Cc]o[Ll][Ll]?abs?\\b\n\n# Should be Kaggle\n\\skaggle\\b\n\n# Should be TPU or TPUs\n\\btpus?\\b\n\n# Should be GKE\n\\sgke\\s\n\n# Should be GCS\n\\sgcs\\s\n\n# Should be Dataflow ML\n\\b[Dd]ataflowML\\b\n\n# Should be API\n\\s(?!API)(?!.*[\\(\\)\\{\\},=#]+)[Aa][Pp][Ii]\\s\n\n# Should be arXiv\n\\bAr[Xx]iv\\b\n\n# Should be DeepEval\n\\b(?!DeepEval\\b)(?!deepeval\\b)[Dd]eep\\s?[Ee]val\\b\n\n# Invalid Space Character\n\\w \\w\n\n# Don't use \"smart quotes\"\n(?!'\")[‘’“”]\n\n# \"an\" should only be before vowels.\n\\ban\\s+(?![FHLMNRSX][A-Z0-9]+\\b)(?!hour\\b)(?!honest\\b)(?!npm\\b)([b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z]{1}\\w*)\n\n# Don't use Google internal links\n((corp|prod|sandbox).google.com|googleplex.com|https?://(?!localhost/)[0-9a-z][0-9a-z-]+/|(?:^|[^/.-])\\b(?:go|b|cl|cr)/[a-z0-9_.-]+\\b)\n\n# Use `%pip` instead of `!pip` or `!pip3`\n!\\s?pip3?\n\n# Don't use embedded images, upload to Google Cloud Storage\n\\(data:image/(?:jpeg|png);base64,[^{]\n"
  },
  {
    "path": ".github/conventional-commit-lint.yaml",
    "content": "enabled: true\nalways_check_pr_title: true\n"
  },
  {
    "path": ".github/dependabot.yml",
    "content": "version: 2\nupdates:\n  - package-ecosystem: 'npm'\n    directory: '/types'\n    schedule:\n      interval: 'monthly'\n    groups:\n      npm-dependencies:\n        patterns:\n          - '*'\n  - package-ecosystem: 'github-actions'\n    directory: '/'\n    schedule:\n      interval: 'monthly'\n    groups:\n      github-actions:\n        patterns:\n          - '*'\n  - package-ecosystem: 'pip'\n    directory: '/'\n    schedule:\n      interval: 'monthly'\n    groups:\n      pip-dependencies:\n        patterns:\n          - '*'\n"
  },
  {
    "path": ".github/linters/.eslintrc.js",
    "content": "/** @type {import('eslint').Linter.Config} */\nmodule.exports = {\n    root: true,\n    parser: '@typescript-eslint/parser',\n    plugins: ['@typescript-eslint', 'n'],\n    extends: [\n      'eslint:recommended',\n      'plugin:@typescript-eslint/recommended',\n      'plugin:n/recommended',\n    ],\n    rules: {\n      '@typescript-eslint/no-explicit-any': 'off',\n      'n/no-unsupported-features/es-syntax': 'off',\n    },\n    overrides: [\n      {\n        files: ['*.ts', '*.tsx'],\n        parserOptions: {\n          ecmaVersion: 'latest',\n          sourceType: 'module',\n        },\n      },\n    ],\n  };\n"
  },
  {
    "path": ".github/linters/.jscpd.json",
    "content": "{\n  \"ignore\": [\n      \"**/.github/**\",\n      \"**/demo/**\",\n      \"**/images/**\",\n      \"**/samples/**\",\n      \"**/tests/**\",\n      \"**/.git/**\"\n  ],\n  \"threshold\": 3,\n  \"reporters\": [\"html\", \"markdown\"]\n}\n"
  },
  {
    "path": ".github/linters/.markdownlint.json",
    "content": "{\n    \"default\": true,\n    \"MD013\": false,\n    \"MD007\": {\n        \"indent\": 4\n    },\n    \"MD033\": false,\n    \"MD046\": false,\n    \"MD024\": false\n}\n"
  },
  {
    "path": ".github/linters/.protolint.yaml",
    "content": "lint:\n  rules:\n    remove:\n      - MAX_LINE_LENGTH\n"
  },
  {
    "path": ".github/linters/.stylelintrc.json",
    "content": "{\n    \"extends\": [\"stylelint-config-standard\"],\n    \"rules\": {\n        \"custom-property-pattern\": null\n    },\n    \"overrides\": [\n        {\n            \"extends\": [\"stylelint-config-recommended-scss\"],\n            \"files\": [\"*.scss\", \"**/*.scss\"],\n            \"customSyntax\": \"postcss-scss\"\n        }\n    ]\n}\n"
  },
  {
    "path": ".github/super-linter.env",
    "content": "SHELLCHECK_OPTS=-e SC1091 -e SC2086\nVALIDATE_ALL_CODEBASE=false\nFILTER_REGEX_EXCLUDE=^(\\\\.github/|\\\\.vscode/).*|CODE_OF_CONDUCT.md|CHANGELOG.md|GOVERNANCE.md|MAINTAINERS.md\nVALIDATE_BASH=true\nVALIDATE_BASH_EXEC=true\nVALIDATE_CSS=true\nVALIDATE_EDITORCONFIG=true\nVALIDATE_GIT_MERGE_CONFLICT_MARKERS=true\nVALIDATE_GITHUB_ACTIONS=true\nVALIDATE_GITLEAKS=true\nVALIDATE_JSCPD=true\nVALIDATE_JSON=true\nVALIDATE_MARKDOWN=true\nVALIDATE_PROTOBUF=true\nVALIDATE_PYTHON_RUFF=true\nVALIDATE_SHELL_SHFMT=true\nVALIDATE_TOML=true\nVALIDATE_TYPESCRIPT_ES=true\nVALIDATE_YAML=true\nTYPESCRIPT_ES_CONFIG_FILE=.eslintrc.js\nMARKDOWN_CONFIG_FILE=.markdownlint.json\nPROTOBUF_CONFIG_FILE=.protolint.yaml\n"
  },
  {
    "path": ".github/workflows/check-linked-issues.yml",
    "content": "name: Check for Linked Issues\n\non:\n  pull_request_target:\n    types: [opened, edited, reopened, synchronize]\n\njobs:\n  check_pull_requests:\n    runs-on: ubuntu-latest\n    name: Check linked issues\n    permissions:\n      issues: read\n      pull-requests: write\n    steps:\n      - uses: nearform-actions/github-action-check-linked-issues@v1\n        id: check-linked-issues\n        with:\n          exclude-branches: 'release/**, dependabot/**, release-please--branches--main'\n          comment: false\n\n      # OPTIONAL: Use the output from the `check-linked-issues` step\n      - name: Get the output\n        run: echo \"How many linked issues? ${{ steps.check-linked-issues.outputs.linked_issues_count }}\"\n"
  },
  {
    "path": ".github/workflows/conventional-commits.yml",
    "content": "name: \"Conventional Commits\"\n\non:\n  pull_request:\n    types:\n      - opened\n      - edited\n      - synchronize\n\npermissions:\n  contents: read\n\njobs:\n  main:\n    permissions:\n      pull-requests: read\n      statuses: write\n    name: Validate PR Title\n    runs-on: ubuntu-latest\n    steps:\n      - name: semantic-pull-request\n        uses: amannn/action-semantic-pull-request@v6\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          validateSingleCommit: false\n"
  },
  {
    "path": ".github/workflows/dispatch-a2a-update.yml",
    "content": "name: Dispatch A2A JSON Update\n\non:\n  push:\n    branches:\n      - main\n    paths:\n      - \"specification/**/*\"\n\njobs:\n  dispatch:\n    runs-on: ubuntu-latest\n    if: github.repository_owner == 'a2aproject'\n\n    steps:\n      - name: Dispatch repository_dispatch to a2a-python\n        uses: peter-evans/repository-dispatch@v4\n        with:\n          token: ${{ secrets.A2A_BOT_PAT }}\n          repository: a2aproject/a2a-python\n          event-type: a2a_json_update\n          client-payload: |\n            {\n              \"ref\": \"${{ github.ref }}\",\n              \"sha\": \"${{ github.sha }}\",\n              \"message\": \"Update to specification from ${{ github.sha }}\"\n            }\n"
  },
  {
    "path": ".github/workflows/docs.yml",
    "content": "name: Docs Build and Deploy\n\non:\n  push:\n    branches:\n      - main\n    paths:\n      - \".github/workflows/docs.yml\"\n      - \"scripts/deploy_root_files.sh\"\n      - \"requirements-docs.txt\"\n      - \"mkdocs.yml\"\n      - \"docs/**\"\n  pull_request:\n    branches:\n      - main\n    paths:\n      - \".github/workflows/docs.yml\"\n      - \"scripts/deploy_root_files.sh\"\n      - \"requirements-docs.txt\"\n      - \"mkdocs.yml\"\n      - \"docs/**\"\n  release:\n    types:\n      - published\n  workflow_dispatch:\n    inputs:\n      version:\n        description: 'Version to deploy to (e.g., v1.0.0)'\n        required: true\n        default: 'dev'\n\njobs:\n  build_and_deploy:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      actions: read\n\n    if: github.repository == 'a2aproject/A2A'\n\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v6\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          fetch-depth: 0\n\n      - name: Configure Git Credentials\n        run: |\n          git config --global user.name github-actions[bot]\n          git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com\n\n      - name: Setup Python\n        uses: actions/setup-python@v6\n        with:\n          python-version: 3.13\n\n      - name: Setup uv\n        uses: astral-sh/setup-uv@v7\n\n      - name: Restore pip cache\n        uses: actions/cache@v5\n        with:\n          key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-docs.txt') }}\n          path: ~/.cache/pip\n          restore-keys: |\n            ${{ runner.os }}-pip-\n\n      - name: Install documentation dependencies\n        run: pip install --upgrade -r requirements-docs.txt\n\n      - name: Setup Go\n        uses: actions/setup-go@v6\n        with:\n          go-version: '1.25'\n\n      - name: Install build tools\n        run: |\n          # Install protoc\n          PROTOC_VERSION=\"28.3\"\n          PROTOC_ZIP=\"protoc-${PROTOC_VERSION}-linux-x86_64.zip\"\n          curl -fsSL -o /tmp/protoc.zip \"https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}\"\n          sudo unzip -q /tmp/protoc.zip -d /usr/local\n          rm /tmp/protoc.zip\n\n          # Install protoc-gen-jsonschema\n          go install github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@latest\n          sudo cp \"$(go env GOPATH)/bin/protoc-gen-jsonschema\" /usr/local/bin/\n\n          # Install buf CLI\n          go install github.com/bufbuild/buf/cmd/buf@latest\n          sudo cp \"$(go env GOPATH)/bin/buf\" /usr/local/bin/\n\n          # Clone googleapis\n          mkdir -p third_party\n          cd third_party\n          git clone --depth 1 https://github.com/googleapis/googleapis.git\n          cd ..\n\n      - name: Generate protocol specification files\n        run: ./scripts/build_docs.sh\n\n      - name: Generate consolidated llms-full.txt file\n        run: bash scripts/build_llms_full.sh\n\n      - name: Build Documentation (PR Check)\n        if: github.event_name == 'pull_request'\n        run: mkdocs build\n\n      - name: Deploy development version from main branch\n        if: github.event_name == 'push' && github.ref == 'refs/heads/main'\n        run: |\n          mike deploy --push --update-aliases dev latest\n\n          echo \"Setting 'latest' as the default version for the site...\"\n          mike set-default --push latest\n\n          # Deploy 404 page\n          bash scripts/deploy_root_files.sh ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Deploy new release version and set as latest\n        if: github.event_name == 'release'\n        run: |\n          # The release tag (e.g., v0.2.2) is used as the version number\n          export MIKE_VERSION=${GITHUB_EVENT_RELEASE_TAG_NAME}\n          echo \"Deploying docs for version $MIKE_VERSION and setting it as 'latest'...\"\n          mike deploy --push --update-aliases $MIKE_VERSION latest\n\n          echo \"Setting 'latest' as the default version for the site...\"\n          mike set-default --push latest\n\n          # Call the reusable script to deploy the 404 page, passing the token\n          bash scripts/deploy_root_files.sh ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }}\n        env:\n          GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}\n\n      - name: Manually deploy specific version from main\n        if: github.event_name == 'workflow_dispatch'\n        run: |\n          mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest\n\n          echo \"Setting 'latest' as the default version for the site...\"\n          mike set-default --push latest\n          \n          # Re-deploy 404 page\n          bash scripts/deploy_root_files.sh ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/issue-metrics.yml",
    "content": "name: Monthly issue metrics\non:\n  workflow_dispatch:\n  schedule:\n    - cron: \"3 2 1 * *\"\n\npermissions:\n  contents: read\n\njobs:\n  build:\n    name: issue metrics\n    runs-on: ubuntu-latest\n    permissions:\n      issues: write\n      pull-requests: read\n    steps:\n      - name: Get dates for last month\n        shell: bash\n        run: |\n          # Calculate the first day of the previous month\n          first_day=$(date -d \"last month\" +%Y-%m-01)\n\n          # Calculate the last day of the previous month\n          last_day=$(date -d \"$first_day +1 month -1 day\" +%Y-%m-%d)\n\n          # Set an environment variable with the date range\n          echo \"$first_day..$last_day\"\n          echo \"last_month=$first_day..$last_day\" >> \"$GITHUB_ENV\"\n\n      - name: Run issue-metrics tool\n        uses: github/issue-metrics@v3\n        env:\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          SEARCH_QUERY: 'repo:a2aproject/A2A is:issue created:${{ env.last_month }} -reason:\"not planned\"'\n\n      - name: Create issue\n        uses: peter-evans/create-issue-from-file@v6\n        with:\n          title: Monthly issue metrics report\n          token: ${{ secrets.GITHUB_TOKEN }}\n          content-filepath: ./issue_metrics.md\n"
  },
  {
    "path": ".github/workflows/links.yaml",
    "content": "name: Lychee Link Checker\n\non:\n  repository_dispatch:\n  workflow_dispatch:\n  schedule:\n    - cron: \"00 18 * * *\"\n  pull_request:\n\njobs:\n  check_links:\n    name: Check for Broken Links\n    runs-on: ubuntu-latest\n    if: |\n      github.repository == 'a2aproject/A2A'\n\n    steps:\n      - name: Checkout Repository\n        uses: actions/checkout@v6\n\n      - name: Get relevant changed files\n        id: changed-files\n        if: github.event_name == 'pull_request'\n        uses: tj-actions/changed-files@v47\n        with:\n          files: |\n            **/*.md\n            **/*.mdx\n            **/*.html\n            **/*.htm\n            **/*.rst\n            **/*.txt\n\n      - name: Run Lychee on changed files (PR)\n        if: github.event_name == 'pull_request' && steps.changed-files.outputs.all_changed_files != ''\n        uses: lycheeverse/lychee-action@v2\n        with:\n          args: --no-progress ${{ steps.changed-files.outputs.all_changed_files }}\n          failIfEmpty: false\n\n      - name: Run Lychee on all files (Scheduled/Manual)\n        if: github.event_name != 'pull_request'\n        uses: lycheeverse/lychee-action@v2\n        with:\n          args: --no-progress .\n          failIfEmpty: false\n\n      - name: Create Issue on Failure\n        if: failure() && github.event_name != 'pull_request'\n        uses: peter-evans/create-issue-from-file@v6\n        with:\n          title: Link Checker Report\n          content-filepath: ./lychee/out.md\n          labels: report, automated issue\n"
  },
  {
    "path": ".github/workflows/linter.yaml",
    "content": "name: Lint Code Base\n\non:\n  pull_request:\n    branches: [main]\n\njobs:\n  lint:\n    name: Lint Code Base\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      packages: read\n      statuses: write\n\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v6\n        with:\n          fetch-depth: 0\n\n      - name: Load Super Linter Environment Variables into GITHUB_ENV\n        run: |\n          grep -v '^\\\\(#.*\\\\|\\\\s\\\\?\\\\)$' .github/super-linter.env >> \"${GITHUB_ENV}\"\n\n      - name: GitHub Super Linter\n        uses: super-linter/super-linter/slim@v8\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n  api-linter:\n    name: API Linter\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v6\n\n      - name: Install buf\n        run: |\n          curl -sSL \"https://github.com/bufbuild/buf/releases/latest/download/buf-Linux-x86_64\" -o buf\n          sudo mv buf /usr/local/bin/buf\n          sudo chmod +x /usr/local/bin/buf\n\n      - name: Download proto dependencies\n        working-directory: specification\n        run: |\n          buf dep update\n          buf export buf.build/googleapis/googleapis --output=.googleapis\n\n      - name: Install api-linter\n        run: |\n          curl -L https://github.com/googleapis/api-linter/releases/download/v1.67.6/api-linter-1.67.6-linux-amd64.tar.gz -o api-linter.tar.gz\n          tar -xzf api-linter.tar.gz\n          sudo mv api-linter /usr/local/bin/\n          sudo chmod +x /usr/local/bin/api-linter\n\n      - name: Run API Linter\n        run: |\n          # Run api-linter with exported googleapis protos\n          api-linter --config specification/.api-linter.yaml --output-format github --set-exit-status --proto-path specification --proto-path specification/.googleapis specification/a2a.proto\n"
  },
  {
    "path": ".github/workflows/release-please.yml",
    "content": "on:\n  push:\n    branches:\n      - main\n\npermissions:\n  contents: write\n  pull-requests: write\n\nname: release-please\n\njobs:\n  release-please:\n    runs-on: ubuntu-latest\n    if: github.repository_owner == 'a2aproject'\n\n    steps:\n      - uses: googleapis/release-please-action@v4\n        with:\n          token: ${{ secrets.A2A_BOT_PAT }}\n          release-type: simple\n"
  },
  {
    "path": ".github/workflows/sort-spelling-allowlist.yml",
    "content": "name: Auto-sort and update spelling allowlist\n\non:\n  pull_request:\n    paths:\n      - \".github/actions/spelling/allow.txt\"\n    types:\n      - opened\n      - synchronize\n      - reopened\n\njobs:\n  sort_and_commit:\n    name: Sort and Commit Allowlist\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v6\n        with:\n          repository: ${{ github.event.pull_request.head.repo.full_name }}\n          ref: ${{ github.event.pull_request.head.ref }}\n          persist-credentials: false\n\n      - name: Sort allow.txt\n        run: |\n          bash scripts/sort_spelling.sh\n\n      - name: Configure Git\n        run: |\n          git config user.name \"github-actions[bot]\"\n          git config user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n\n      - name: Check for changes\n        id: git_status\n        run: |\n          if ! git diff --quiet .github/actions/spelling/allow.txt; then\n            echo \"changes=true\" >> $GITHUB_OUTPUT\n          fi\n\n      - name: Commit and push changes\n        if: steps.git_status.outputs.changes == 'true' && github.event.pull_request.head.repo.full_name == github.repository\n        run: |\n          git add .github/actions/spelling/allow.txt\n          git commit -m \"ci: sort and unique allow.txt\"\n          git push\n\n      - name: Fail on fork with changes\n        if: steps.git_status.outputs.changes == 'true' && github.event.pull_request.head.repo.full_name != github.repository\n        run: |\n          echo \"::error::The 'allow.txt' file is not sorted correctly. Please run 'bash scripts/sort_spelling.sh' and commit the changes.\"\n          exit 1\n"
  },
  {
    "path": ".github/workflows/spelling.yaml",
    "content": "name: Check Spelling\n\non:\n  pull_request:\n    branches:\n      - \"**\"\n    types:\n      - \"opened\"\n      - \"reopened\"\n      - \"synchronize\"\n\njobs:\n  spelling:\n    name: Check Spelling\n    permissions:\n      contents: read\n      actions: read\n      security-events: write\n    outputs:\n      followup: ${{ steps.spelling.outputs.followup }}\n    if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}\n    runs-on: ubuntu-latest\n    concurrency:\n      group: spelling-${{ github.event.pull_request.number || github.ref }}\n      # note: If you use only_check_changed_files, you do not want cancel-in-progress\n      cancel-in-progress: false\n    steps:\n      - name: check-spelling\n        id: spelling\n        uses: check-spelling/check-spelling@main\n        with:\n          suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}\n          checkout: true\n          check_file_names: 1\n          spell_check_this: check-spelling/spell-check-this@main\n          post_comment: 0\n          use_magic_file: 1\n          report-timing: 1\n          warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check,unclosed-block-ignore-begin,unclosed-block-ignore-end\n          experimental_apply_changes_via_bot: 1\n          dictionary_source_prefixes: '{\"cspell\": \"https://raw.githubusercontent.com/streetsidesoftware/cspell-dicts/main/dictionaries/\"}'\n          extra_dictionaries: |\n            cspell:aws/dict/aws.txt\n            cspell:bash/samples/bash-words.txt\n            cspell:companies/dict/companies.txt\n            cspell:css/dict/css.txt\n            cspell:data-science/dict/data-science-models.txt\n            cspell:data-science/dict/data-science.txt\n            cspell:data-science/dict/data-science-tools.txt\n            cspell:en_shared/dict/acronyms.txt\n            cspell:en_shared/dict/shared-additional-words.txt\n            cspell:en_GB/en_GB.trie\n            cspell:en_US/en_US.trie\n            cspell:filetypes/src/filetypes.txt\n            cspell:fonts/dict/fonts.txt\n            cspell:fullstack/dict/fullstack.txt\n            cspell:golang/dict/go.txt\n            cspell:google/dict/google.txt\n            cspell:html/dict/html.txt\n            cspell:java/src/java.txt\n            cspell:k8s/dict/k8s.txt\n            cspell:mnemonics/dict/mnemonics.txt\n            cspell:monkeyc/src/monkeyc_keywords.txt\n            cspell:node/dict/node.txt\n            cspell:npm/dict/npm.txt\n            cspell:people-names/dict/people-names.txt\n            cspell:python/dict/python.txt\n            cspell:python/dict/python-common.txt\n            cspell:shell/dict/shell-all-words.txt\n            cspell:software-terms/dict/softwareTerms.txt\n            cspell:software-terms/dict/webServices.txt\n            cspell:sql/src/common-terms.txt\n            cspell:sql/src/sql.txt\n            cspell:sql/src/tsql.txt\n            cspell:terraform/dict/terraform.txt\n            cspell:typescript/dict/typescript.txt\n          check_extra_dictionaries: \"\"\n          only_check_changed_files: true\n          longest_word: \"10\"\n"
  },
  {
    "path": ".github/workflows/stale.yaml",
    "content": "# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.\n#\n# You can adjust the behavior by modifying this file.\n# For more information, see:\n# https://github.com/actions/stale\nname: Mark stale issues and pull requests\n\non:\n  schedule:\n    # Scheduled to run at 10.30PM UTC every day (1530PDT/1430PST)\n    - cron: \"30 22 * * *\"\n  workflow_dispatch:\n\njobs:\n  stale:\n    runs-on: ubuntu-latest\n    permissions:\n      issues: write\n      pull-requests: write\n      actions: write\n\n    steps:\n      - uses: actions/stale@v10\n        with:\n          repo-token: ${{ secrets.GITHUB_TOKEN }}\n          days-before-issue-stale: 14\n          days-before-issue-close: 13\n          stale-issue-label: \"status:stale\"\n          close-issue-reason: not_planned\n          any-of-labels: \"status:awaiting response,status:more data needed\"\n          stale-issue-message: >\n            Marking this issue as stale since it has been open for 14 days with no activity.\n            This issue will be closed if no further activity occurs.\n          close-issue-message: >\n            This issue was closed because it has been inactive for 27 days.\n            Please post a new issue if you need further assistance. Thanks!\n          days-before-pr-stale: 14\n          days-before-pr-close: 13\n          stale-pr-label: \"status:stale\"\n          stale-pr-message: >\n            Marking this pull request as stale since it has been open for 14 days with no activity.\n            This PR will be closed if no further activity occurs.\n          close-pr-message: >\n            This pull request was closed because it has been inactive for 27 days.\n            Please open a new pull request if you need further assistance. Thanks!\n          # Label that can be assigned to issues to exclude them from being marked as stale\n          exempt-issue-labels: \"override-stale\"\n          # Label that can be assigned to PRs to exclude them from being marked as stale\n          exempt-pr-labels: \"override-stale\"\n"
  },
  {
    "path": ".gitignore",
    "content": "# Added: ignore local documentation virtualenv and generated proto-derived artifacts\nvenv-docs/\n.venv/\nvenv/\nENV/\n.doc-venv\n\n# Ephemeral schema artifacts (never commit)\nspecification/json/a2a.json\nspecification/json/*.json\n!specification/json/README.md\ndocs/spec/\n\n# Generated SDK docs\ndocs/sdk/*\n!docs/sdk/index.md\n!docs/sdk/python.md\n!docs/sdk/python/\ndocs/sdk/python/*\n!docs/sdk/python/conf.py\n!docs/sdk/python/index.rst\n\n# Third-party dependencies (generated by setup)\nthird_party/\n\n# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n*.pyc\n*$py.class\n**/dist\n/tmp\n/out-tsc\n/bazel-out\n\n# C extensions\n*.so\n\n# Distribution / packaging\n.Python\nbuild/\ndevelop-eggs/\ndist/\ndownloads/\neggs/\n.eggs/\nlib/\nlib64/\nparts/\nsdist/\nvar/\nwheels/\npip-wheel-metadata/\nshare/python-wheels/\n*.egg-info/\n.installed.cfg\n*.egg\nMANIFEST\n\n# PyInstaller\n#  Usually these files are written by a python script from a template\n#  before PyInstaller builds the exe, so as to inject date/other infos into it.\n*.manifest\n*.spec\n\n# Installer logs\npip-log.txt\npip-delete-this-directory.txt\n\n# Unit test / coverage reports\nhtmlcov/\n.tox/\n.nox/\n.coverage\n.coverage.*\n.cache\nnosetests.xml\ncoverage.xml\n*.cover\n*.py,cover\n.hypothesis/\n.pytest_cache/\n\n# Translations\n*.mo\n*.pot\n\n# Django stuff:\n*.log\nlocal_settings.py\ndb.sqlite3\ndb.sqlite3-journal\n\n# Flask stuff:\ninstance/\n.webassets-cache\n\n# Scrapy stuff:\n.scrapy\n\n# Sphinx documentation\ndocs/_build/\n\n# PyBuilder\ntarget/\n\n# Jupyter Notebook\n.ipynb_checkpoints\n\n# IPython\nprofile_default/\nipython_config.py\n\n# pyenv\n.python-version\n\n# pipenv\n#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.\n#   However, in case of collaboration, if having platform-specific dependencies or dependencies\n#   having no cross-platform support, pipenv may install dependencies that don't work, or not\n#   install all needed dependencies.\nPipfile.lock\nPipfile\n\n# PEP 582; used by e.g. github.com/David-OConnor/pyflow\n__pypackages__/\n\n# Celery stuff\ncelerybeat-schedule\ncelerybeat.pid\n\n# SageMath parsed files\n*.sage.py\n\n# Environments\n.env\n.venv\n.venv*\nenv/\nvenv/\nENV/\nenv.bak/\nvenv.bak/\n\n# Spyder project settings\n.spyderproject\n.spyproject\n\n# Rope project settings\n.ropeproject\n\n# mkdocs documentation\n/site\n\n# mypy\n.mypy_cache/\n.dmypy.json\ndmypy.json\n.ruff_cache/\n\n# Pyre type checker\n.pyre/\n\n# macOS\n.DS_Store\n\n# PyCharm\n.idea\n\n# User-specific files\nlanguage/examples/prompt-design/train.csv\nREADME-TOC*.md\n\n# Terraform\nterraform.tfstate**\n.terraform*\n.Terraform*\n\ntmp*\n\n# Node\n**/node_modules\nnpm-debug.log\nyarn-error.log\n\n# IDEs and editors\n.idea/\n.project\n.classpath\n.c9/\n*.launch\n.settings/\n*.sublime-workspace\n\n# Miscellaneous\n**/.angular/*\n/.angular/cache\n.sass-cache/\n/connect.lock\n/coverage\n/libpeerconnection.log\ntestem.log\n/typings\n\n# System files\n.DS_Store\nThumbs.db\n\n# Sphinx build artifacts\ndocs/sdk/python/_build/\ndocs/sdk/python/api/\ndocs/sdk/python/generated/\n\nspecification/.googleapis/\n"
  },
  {
    "path": ".gitvote.yml",
    "content": "# GitVote configuration file\n#\n# GitVote will look for it in the following locations (in order of precedence):\n#\n#   - At the root of the repository where the vote was created\n#   - At the root of the .github repository, for organization wide configuration\n#\n\n# Automation (optional)\n#\n# Create votes automatically on PRs when any of the files affected by the PR\n# match any of the patterns provided. Patterns must follow the gitignore\n# format (https://git-scm.com/docs/gitignore#_pattern_format).\n#\n# Each automation rule must include a list of patterns and the profile to use\n# when creating the vote. This allows creating votes automatically using the\n# desired configuration based on the patterns matched. Rules are processed in\n# the order provided, and the first match wins.\n#\n# automation:\n#   enabled: true\n#   rules:\n#     - patterns:\n#         - \"README.md\"\n#         - \"*.txt\"\n#       profile: default\nprofiles:\n  default:\n    duration: 52w\n    pass_threshold: 51\n    periodic_status_check: \"1 day\"\n    allowed_voters:\n      teams:\n        - a2a-tsc\n      exclude_team_maintainers: false\n    close_on_passing: true\n    announcements:\n      discussions:\n        category: announcements\n"
  },
  {
    "path": ".mkdocs/macros.py",
    "content": "\"\"\"Custom MkDocs macros for A2A documentation.\n\nThis module provides macros for rendering Protocol Buffer definitions\nas markdown tables.\n\"\"\"\n\nfrom pathlib import Path\nfrom typing import Any\n\nfrom proto_schema_parser.ast import (\n    Comment,\n    Enum,\n    EnumValue,\n    Field,\n    MapField,\n    Message,\n    Method,\n    OneOf,\n    Service,\n)\nfrom proto_schema_parser.parser import Parser\nfrom tabulate import tabulate\n\n\n# -----------------------------------------------------------------------------\n# Configuration & Helpers\n# -----------------------------------------------------------------------------\n\nTYPE_MAP = {\n    'string': 'string',\n    'int32': 'integer',\n    'int64': 'integer',\n    'bool': 'boolean',\n    'bytes': 'bytes',\n    'double': 'float',\n    'float': 'float',\n    'google.protobuf.Struct': 'object',\n    'google.protobuf.Timestamp': 'timestamp',\n    'google.protobuf.Value': 'any',\n    'google.protobuf.Empty': 'empty',\n}\n\n# -----------------------------------------------------------------------------\n# Main Macros\n# -----------------------------------------------------------------------------\n\n\ndef define_env(env):\n    \"\"\"Define custom macros for MkDocs.\"\"\"\n\n    def _parse_proto(file_path: str):\n        \"\"\"Parses a .proto file and returns the AST with comments attached.\"\"\"\n        full_path = Path(env.conf['docs_dir']).parent / file_path\n        if not full_path.exists():\n            raise FileNotFoundError(f'Proto not found: {file_path}')\n        ast = Parser().parse(full_path.read_text(encoding='utf-8'))\n        _attach_comments(ast.file_elements)\n        return ast.file_elements\n\n    @env.macro\n    def proto_to_table(\n        message_name: str, proto_file: str = 'specification/a2a.proto'\n    ) -> str:\n        \"\"\"Parses a .proto file and renders a message table.\"\"\"\n        try:\n            elements = _parse_proto(proto_file)\n        except FileNotFoundError as e:\n            return f'**Error:** {e}'\n\n        # Find the specific message object\n        target_message = _find_type(elements, message_name, Message)\n        if not target_message:\n            return f'**Error:** Message `{message_name}` not found.'\n\n        # Extract data\n        rows = []\n        oneof_groups = {}  # Map[oneof_name] -> List[field_names]\n\n        # Iterate over elements inside the message\n        # elements can be Field, MapField, OneOf, Enum, Message, etc.\n        for el in target_message.elements:\n            # Handle Standard/Map Fields\n            if isinstance(el, Field | MapField):\n                rows.append(_process_field(el))\n            elif isinstance(el, OneOf):\n                for oneof_el in el.elements:\n                    if isinstance(oneof_el, Field):\n                        # Process field normally\n                        row = _process_field(oneof_el, is_oneof=True)\n                        rows.append(row)\n                        # Add display name to group tracker\n                        oneof_groups.setdefault(el.name, []).append(\n                            row[0].strip('`')  # Remove code ticks for the note\n                        )\n\n        if not rows:\n            return 'None'\n\n        # Generate Output\n        output = []\n\n        # Message Description\n        msg_desc = _extract_comments(target_message)\n        if msg_desc:\n            output.append(msg_desc)\n            output.append('')\n\n        # Render Table\n        headers = ['Field', 'Type', 'Required', 'Description']\n        output.append(tabulate(rows, headers, tablefmt='github'))\n\n        # Add OneOf Notes\n        if oneof_groups:\n            output.append('')\n            for _, fields in oneof_groups.items():\n                if len(fields) > 1:\n                    field_list = ', '.join(f'`{f}`' for f in fields)\n                    output.append(\n                        f'**Note:** A `{message_name}` MUST contain exactly one of the following: {field_list}'\n                    )\n\n        return '\\n'.join(output)\n\n    @env.macro\n    def proto_enum_to_table(\n        enum_name: str, proto_file: str = 'specification/a2a.proto'\n    ):\n        \"\"\"Parses a .proto file and renders an Enum table.\"\"\"\n        try:\n            elements = _parse_proto(proto_file)\n            el = _find_type(elements, enum_name, Enum)\n            if not el:\n                return f'**Error:** Enum `{enum_name}` not found.'\n\n            rows = [\n                [f'`{e.name}`', _extract_comments(e)]\n                for e in el.elements\n                if isinstance(e, EnumValue)\n            ]\n            return f'{_extract_comments(el)}\\n\\n' + tabulate(\n                rows, ['Value', 'Description'], tablefmt='github'\n            )\n        except Exception as e:\n            return f'**Error:** {e}'\n\n    @env.macro\n    def proto_service_to_table(\n        service_name: str, proto_file: str = 'specification/a2a.proto'\n    ) -> str:\n        \"\"\"Parses a .proto file and renders a Service table.\"\"\"\n        try:\n            elements = _parse_proto(proto_file)\n            service = _find_type(elements, service_name, Service)\n            if not service:\n                return f'**Error:** Service `{service_name}` not found.'\n\n            rows = []\n            for el in service.elements:\n                if isinstance(el, Method):\n                    # Request Type\n                    # input_type is a MessageType(type='...', stream=True/False)\n                    req_str = _format_type_for_docs(el.input_type.type)\n                    if el.input_type.stream:\n                        req_str = f'stream {req_str}'\n\n                    # Response Type\n                    res_str = _format_type_for_docs(el.output_type.type)\n                    if el.output_type.stream:\n                        res_str = f'stream {res_str}'\n\n                    rows.append(\n                        [\n                            f'`{el.name}`',\n                            req_str,\n                            res_str,\n                            _extract_comments(el),\n                        ]\n                    )\n\n            if not rows:\n                return 'None'\n\n            headers = ['Method', 'Request', 'Response', 'Description']\n            return tabulate(rows, headers, tablefmt='github')\n\n        except Exception as e:\n            return f'**Error:** {e}'\n\n\n# -----------------------------------------------------------------------------\n# Helper Functions\n# -----------------------------------------------------------------------------\n\n\ndef _extract_comments(element: Any) -> str:\n    \"\"\"Clean and combine comments from an AST element.\"\"\"\n    cleaned_parts = []\n    raw_comments = getattr(element, 'comments', [])\n\n    for comment in raw_comments:\n        text = (\n            comment.strip()\n            .removeprefix('//')\n            .removeprefix('/*')\n            .removesuffix('*/')\n        )\n        lines = (\n            line.strip().removeprefix('*').strip() for line in text.splitlines()\n        )\n        combined = ' '.join(filter(None, lines))\n\n        if combined and not combined.startswith(\n            (\n                'protolint:',\n                '--8<--',\n                'Next ID:',\n                '(-- api-linter',\n                'api-linter',\n                'aip.dev/not-precedent',\n            )\n        ):\n            cleaned_parts.append(combined)\n\n    return ' '.join(cleaned_parts)\n\n\ndef _attach_comments(elements: list[Any]) -> None:\n    \"\"\"Recursively attach preceding comments to each non-comment element.\"\"\"\n    buffer = []\n    for el in elements:\n        if isinstance(el, Comment):\n            buffer.append(el.text)\n        else:\n            # Attach collected comments to this element\n            el.comments = buffer\n            buffer = []\n            # Recursively handle nested elements (e.g. inside Message or OneOf)\n            if hasattr(el, 'elements'):\n                _attach_comments(el.elements)\n\n\ndef _format_type_for_docs(\n    proto_type: str, is_repeated: bool = False, map_key: str | None = None\n) -> str:\n    \"\"\"Formats the type name with Markdown links for non-primitive types.\"\"\"\n    # Handle fully qualified names by taking only the last part for the link label,\n    # but keep it if it's a known google.protobuf type we mapped.\n    display_name = TYPE_MAP.get(proto_type, proto_type.split('.')[-1])\n    is_primitive = proto_type in TYPE_MAP or proto_type.startswith(\n        'google.protobuf'\n    )\n\n    # Create a slug for the link. Messages are usually CamelCase, so lowercase it.\n    label = f'`{display_name}`'\n    if not is_primitive:\n        label = f'[{label}](#{display_name.lower()})'\n\n    if map_key:\n        key_label = TYPE_MAP.get(map_key, map_key)\n        return f'map of {key_label} to {label}'\n\n    if is_repeated:\n        return f'array of {label}'\n\n    return label\n\n\ndef _find_type(elements: list[Any], name: str, target_cls: type) -> Any | None:\n    \"\"\"Recursively searches for a Message or Enum by name.\"\"\"\n    for el in elements:\n        if getattr(el, 'name', None) == name and isinstance(el, target_cls):\n            return el\n        if isinstance(el, Message):\n            found = _find_type(el.elements, name, target_cls)\n            if found:\n                return found\n    return None\n\n\ndef _process_field(field: Field, is_oneof: bool = False) -> list[str]:\n    \"\"\"Converts a Field or MapField object into a table row.\"\"\"\n    options = getattr(field, 'options', [])\n    cardinality_obj = getattr(field, 'cardinality', None)\n    cardinality = (\n        getattr(cardinality_obj, 'value', None) if cardinality_obj else None\n    )\n\n    # Determine Display Name (json_name vs snake_case)\n    json_name = next(\n        (o.value.strip('\"') for o in options if o.name == 'json_name'), None\n    )\n    display_name = json_name or _snake_to_camel_case(field.name)\n\n    # Determine Type\n    is_map = isinstance(field, MapField)\n    is_repeated = cardinality == 'REPEATED'\n\n    type_to_format = field.value_type if is_map else field.type\n    map_key = getattr(field, 'key_type', None)\n\n    type_str = _format_type_for_docs(type_to_format, is_repeated, map_key)\n\n    # Determine Required/Optional\n    has_required_behavior = any(\n        'REQUIRED' in str(opt.value)\n        for opt in options\n        if 'field_behavior' in opt.name\n    )\n\n    if is_oneof:\n        req_val = 'Optional (OneOf)'\n    elif cardinality == 'REQUIRED' or has_required_behavior:\n        req_val = 'Yes'\n    else:\n        req_val = 'No'\n\n    desc = _extract_comments(field)\n\n    return [f'`{display_name}`', type_str, req_val, desc]\n\n\ndef _snake_to_camel_case(snake_str: str) -> str:\n    \"\"\"Convert snake_case to camelCase.\"\"\"\n    components = snake_str.split('_')\n    return components[0] + ''.join(x.title() for x in components[1:])\n"
  },
  {
    "path": ".mkdocs/overrides/main.html",
    "content": "{% extends \"base.html\" %}\n\n{% block announce %}\n  Join the new DeepLearning.AI short course: <strong>A2A: The Agent2Agent Protocol</strong>!\n  <a href=\"https://goo.gle/dlai-a2a\" class=\"md-button\">\n    Enroll for free\n  </a>\n{% endblock %}\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n    \"tabWidth\": 2,\n    \"useTabs\": false,\n    \"trailingComma\": \"es5\",\n    \"bracketSameLine\": true,\n    \"overrides\": [\n        {\n            \"files\": \"*.md\",\n            \"options\": {\n                \"tabWidth\": 4,\n                \"useTabs\": false,\n                \"trailingComma\": \"es5\"\n            }\n        }\n    ]\n}\n"
  },
  {
    "path": ".ruff.toml",
    "content": "#################################################################################\n#\n# Ruff linter and code formatter for A2A\n#\n# This file follows the standards in Google Python Style Guide\n# https://google.github.io/styleguide/pyguide.html\n\nline-length = 80 # Google Style Guide §3.2: 80 columns\nindent-width = 4 # Google Style Guide §3.4: 4 spaces\n\ntarget-version = \"py312\" # Minimum Python version\n\n[lint]\nignore = [\n    \"COM812\",\n    \"FBT001\",\n    \"FBT002\",\n    \"D203\",\n    \"D213\",\n    \"ANN001\",\n    \"ANN201\",\n    \"ANN204\",\n    \"D100\", # Ignore Missing docstring in public module (often desired at top level __init__.py)\n    \"D102\", # Ignore return type annotation in public method\n    \"D104\", # Ignore Missing docstring in public package (often desired at top level __init__.py)\n    \"D107\", # Ignore Missing docstring in __init__ (use class docstring)\n    \"TD002\", # Ignore Missing author in TODOs (often not required)\n    \"TD003\", # Ignore Missing issue link in TODOs (often not required/available)\n    \"T201\", # Ignore print presence\n    \"RUF012\", # Ignore Mutable class attributes should be annotated with `typing.ClassVar`\n    \"RUF013\", # Ignore implicit optional\n]\n\nselect = [\n    \"E\",  # pycodestyle errors (PEP 8)\n    \"W\",  # pycodestyle warnings (PEP 8)\n    \"F\",  # Pyflakes (logical errors, unused imports/variables)\n    \"I\",  # isort (import sorting - Google Style §3.1.2)\n    \"D\",  # pydocstyle (docstring conventions - Google Style §3.8)\n    \"N\",  # pep8-naming (naming conventions - Google Style §3.16)\n    \"UP\", # pyupgrade (use modern Python syntax)\n    \"ANN\",# flake8-annotations (type hint usage/style - Google Style §2.22)\n    \"A\",  # flake8-builtins (avoid shadowing builtins)\n    \"B\",  # flake8-bugbear (potential logic errors & style issues - incl. mutable defaults B006, B008)\n    \"C4\", # flake8-comprehensions (unnecessary list/set/dict comprehensions)\n    \"ISC\",# flake8-implicit-str-concat (disallow implicit string concatenation across lines)\n    \"T20\",# flake8-print (discourage `print` - prefer logging)\n    \"SIM\",# flake8-simplify (simplify code, e.g., `if cond: return True else: return False`)\n    \"PTH\",# flake8-use-pathlib (use pathlib instead of os.path where possible)\n    \"PL\", # Pylint rules ported to Ruff (PLC, PLE, PLR, PLW)\n    \"PIE\",# flake8-pie (misc code improvements, e.g., no-unnecessary-pass)\n    \"RUF\",# Ruff-specific rules (e.g., RUF001-003 ambiguous unicode)\n    \"RET\",# flake8-return (consistency in return statements)\n    \"SLF\",# flake8-self (check for private member access via `self`)\n    \"TID\",# flake8-tidy-imports (relative imports, banned imports - configure if needed)\n    \"YTT\",# flake8-boolean-trap (checks for boolean positional arguments, truthiness tests - Google Style §3.10)\n    \"TD\", # flake8-todos (check TODO format - Google Style §3.7)\n]\n\nexclude = [\n    \".bzr\",\n    \".direnv\",\n    \".eggs\",\n    \".git\",\n    \".hg\",\n    \".mypy_cache\",\n    \".nox\",\n    \".pants.d\",\n    \".pytype\",\n    \".ruff_cache\",\n    \".svn\",\n    \".tox\",\n    \".venv\",\n    \"__pypackages__\",\n    \"_build\",\n    \"buck-out\",\n    \"build\",\n    \"dist\",\n    \"node_modules\",\n    \"venv\",\n    \"*/migrations/*\",\n]\n\n[lint.isort]\n#force-sort-within-sections = true\n#combine-as-imports = true\ncase-sensitive = true\n#force-single-line = false\n#known-first-party = []\n#known-third-party = []\nlines-after-imports = 2\nlines-between-types = 1\n#no-lines-before = [\"LOCALFOLDER\"]\n#required-imports = []\n#section-order = [\"future\", \"standard-library\", \"third-party\", \"first-party\", \"local-folder\"]\n\n[lint.pydocstyle]\nconvention = \"google\"\n\n[lint.flake8-annotations]\nmypy-init-return = true\nallow-star-arg-any = false\n\n[lint.pep8-naming]\nignore-names = [\"test_*\", \"setUp\", \"tearDown\", \"mock_*\"]\nclassmethod-decorators = [\"classmethod\", \"pydantic.validator\", \"pydantic.root_validator\"]\nstaticmethod-decorators = [\"staticmethod\"]\n\n[lint.flake8-tidy-imports]\nban-relative-imports = \"all\" # Google generally prefers absolute imports (§3.1.2)\n\n[lint.flake8-quotes]\ndocstring-quotes = \"double\"\ninline-quotes = \"single\"\n\n[lint.per-file-ignores]\n\"__init__.py\" = [\"F401\"]  # Ignore unused imports in __init__.py\n\"*_test.py\" = [\"D\", \"ANN\"]  # Ignore docstring and annotation issues in test files\n\"test_*.py\" = [\"D\", \"ANN\"]  # Ignore docstring and annotation issues in test files\n\n[format]\ndocstring-code-format = true\ndocstring-code-line-length = \"dynamic\" # Or set to 80\nquote-style = \"single\"\nindent-style = \"space\"\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n    \"editor.formatOnSave\": true,\n    \"[python]\": {\n        \"editor.defaultFormatter\": \"charliermarsh.ruff\",\n        \"editor.formatOnSave\": true,\n        \"editor.codeActionsOnSave\": {\n            \"source.organizeImports\": \"explicit\"\n        }\n    },\n    \"ruff.importStrategy\": \"fromEnvironment\",\n    \"markdownlint.configFile\": \".github/linters/.markdownlint.json\",\n    \"[json]\": {\n        \"editor.defaultFormatter\": \"vscode.json-language-features\",\n        \"editor.formatOnSave\": true\n    },\n    \"files.trimTrailingWhitespace\": true,\n    \"files.insertFinalNewline\": true,\n    \"codeQL.githubDatabase.download\": \"never\"\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changelog\n\n## [1.0.0](https://github.com/a2aproject/A2A/compare/v0.3.0...v1.0.0) (2026-03-12)\n\n\n### ⚠ BREAKING CHANGES\n\n* **spec:** Combine `TaskPushNotificationConfig` and `PushNotificationConfig` ([#1500](https://github.com/a2aproject/A2A/issues/1500))\n* **spec:** remove duplicated ID from the create task push config request ([#1487](https://github.com/a2aproject/A2A/issues/1487))\n* **spec:** pluralize configs in `ListTaskPushNotificationConfigs` ([#1486](https://github.com/a2aproject/A2A/issues/1486))\n* **spec:** Add LF prefix to the package. ([#1474](https://github.com/a2aproject/A2A/issues/1474))\n* **spec:** Switch to non-complex IDs in requests ([#1389](https://github.com/a2aproject/A2A/issues/1389))\n* **spec:** Standardize spelling of \"canceled\" to use American Spelling throughout ([#1283](https://github.com/a2aproject/A2A/issues/1283))\n* **spec:** Align enum format with ADR-001 ProtoJSON specification ([#1384](https://github.com/a2aproject/A2A/issues/1384))\n* **spec:** Remove redundant `final` field from `TaskStatusUpdateEvent` ([#1308](https://github.com/a2aproject/A2A/issues/1308))\n* **spec:** Move `extendedAgentCard` field to `AgentCapabilities` ([#1307](https://github.com/a2aproject/A2A/issues/1307))\n* **spec:** Fixes for the last_updated_after field ([#1358](https://github.com/a2aproject/A2A/issues/1358))\n* **spec:** modernize oauth 2.0 flows - remove implicit/password, add device code / pkce ([#1303](https://github.com/a2aproject/A2A/issues/1303))\n* **spec:** Make \"message\" field name consistent between protocol bindings ([#1302](https://github.com/a2aproject/A2A/issues/1302))\n* **spec:** Remove deprecated fields from a2a.proto for v1.0 release ([#1301](https://github.com/a2aproject/A2A/issues/1301))\n* **spec:** Rename `supportsAuthenticatedExtendedCard` to `supportsExtendedAgentCard` ([#1222](https://github.com/a2aproject/A2A/issues/1222))\n* **spec:** Remove v1s from a2a url http bindings\n* **spec:** Large refactor of specification to separate application protocol definition from mapping to transports\n\n### Features\n\n* **spec:** Add `tasks/list` method with filtering and pagination to the specification ([0a9f629](https://github.com/a2aproject/A2A/commit/0a9f629e801d4ae89f94991fc28afe9429c91cbc))\n* **spec:** modernize oauth 2.0 flows - remove implicit/password, add device code / pkce ([#1303](https://github.com/a2aproject/A2A/issues/1303)) ([525ff38](https://github.com/a2aproject/A2A/commit/525ff38e5fe2a118f5be5d25189708b590616dd4))\n* **spec:** Natively Support Multi-tenancy on gRPC through an additional scope field on the request. ([#1195](https://github.com/a2aproject/A2A/issues/1195)) ([cfbce32](https://github.com/a2aproject/A2A/commit/cfbce32cb0ac2a630597eb8b771691cac5b20a4b)), closes [#1148](https://github.com/a2aproject/A2A/issues/1148)\n* **spec:** Provide ability for SDKs to be backwards compatible. ([#1401](https://github.com/a2aproject/A2A/issues/1401)) ([227e249](https://github.com/a2aproject/A2A/commit/227e2493c317004b7e6f7ef4a484e220ffd0b77e))\n* **spec:** Remove v1s from a2a url http bindings ([1bd263f](https://github.com/a2aproject/A2A/commit/1bd263f5373fdc8fa7c17ec8bdb24088996b6828))\n\n\n### Bug Fixes\n\n* Add missing metadata field to Part message in gRPC specification ([#1019](https://github.com/a2aproject/A2A/issues/1019)) ([b3b266d](https://github.com/a2aproject/A2A/commit/b3b266d127dde3d1000ec103b252d1de81289e83)), closes [#1005](https://github.com/a2aproject/A2A/issues/1005)\n* Add name field to FilePart protobuf message ([#983](https://github.com/a2aproject/A2A/issues/983)) ([2b7cb6f](https://github.com/a2aproject/A2A/commit/2b7cb6f8408e6324c48fb82c71839c67a18f1fab)), closes [#984](https://github.com/a2aproject/A2A/issues/984)\n* Clarify blocking calls return on interrupted states ([#1403](https://github.com/a2aproject/A2A/issues/1403)) ([0655ff3](https://github.com/a2aproject/A2A/commit/0655ff324a93b7e0eaebc108666e6703998b4a9c))\n* **doc:** Makes JSON-RPC SendMessage response clearer ([#1241](https://github.com/a2aproject/A2A/issues/1241)) ([5792804](https://github.com/a2aproject/A2A/commit/57928043727e5e002a1395dadfb5f699d0626b1c))\n* **docs:** Clearer wording around context id. ([#1588](https://github.com/a2aproject/A2A/issues/1588)) ([dec790a](https://github.com/a2aproject/A2A/commit/dec790aa063943e3ac70e972f9da513c25ab420c))\n* **grpc:** Fix inconsistent property name between gRPC and JSON-RPC in Message object ([#1100](https://github.com/a2aproject/A2A/issues/1100)) ([2a1f819](https://github.com/a2aproject/A2A/commit/2a1f819aaa2540602ee81498e159ebe0192be818))\n* **grpc:** missing field in gRPC spec - state_transition_history  ([#1138](https://github.com/a2aproject/A2A/issues/1138)) ([a2de798](https://github.com/a2aproject/A2A/commit/a2de7981cadeaa5197bee56cbd6ab7b2c5da2541)), closes [#1139](https://github.com/a2aproject/A2A/issues/1139)\n* **grpc:** Update `CreateTaskPushNotificationConfig` endpoint to `/v1/{parent=tasks/*/pushNotificationConfigs}` ([#979](https://github.com/a2aproject/A2A/issues/979)) ([911f9b0](https://github.com/a2aproject/A2A/commit/911f9b059c52dd65497b76ccf63d196ca84c7f0e))\n* **proto:** Add icon_url to a2a.proto ([#986](https://github.com/a2aproject/A2A/issues/986)) ([17e7f62](https://github.com/a2aproject/A2A/commit/17e7f62df9a3e4ca0768ab8d4f0bb7573b3d73e1))\n* **proto:** Adds metadata field to A2A DataPart proto ([#1004](https://github.com/a2aproject/A2A/issues/1004)) ([a8b45dc](https://github.com/a2aproject/A2A/commit/a8b45dcc429a5571ef8a24c36336bf84b89bbd7f))\n* Remove unimplemented state_transition_history capability field ([#1396](https://github.com/a2aproject/A2A/issues/1396)) ([c768a44](https://github.com/a2aproject/A2A/commit/c768a44da0f719595e375636f3cab9898ff6df75)), closes [#1228](https://github.com/a2aproject/A2A/issues/1228)\n* Restore CreateTaskPushNotificationConfig method naming ([#1402](https://github.com/a2aproject/A2A/issues/1402)) ([d14f410](https://github.com/a2aproject/A2A/commit/d14f4107119bf0fe0dff9e2c577eb4ab70b51793))\n* Revert \"chore(gRPC): Update a2a.proto to include metadata on GetTaskRequest\" ([#1000](https://github.com/a2aproject/A2A/issues/1000)) ([e6b8c65](https://github.com/a2aproject/A2A/commit/e6b8c654a86a6ee461bb5c7be5d5b81004b80a92))\n* Simplify Part message structure by flattening FilePart and DataPart ([#1411](https://github.com/a2aproject/A2A/issues/1411)) ([bfae8f7](https://github.com/a2aproject/A2A/commit/bfae8f7791e019f21f6662dd73fce0b3ab261cd6))\n* **spec:** Add LF prefix to the package. ([#1474](https://github.com/a2aproject/A2A/issues/1474)) ([a54e809](https://github.com/a2aproject/A2A/commit/a54e80904aa32c74a14bc2c3d21bf82936ccbbdd))\n* **spec:** add metadata to `CancelTaskRequest` ([#1485](https://github.com/a2aproject/A2A/issues/1485)) ([c441b91](https://github.com/a2aproject/A2A/commit/c441b910b64d45514ae929a42e7367c2a9a2f6c3)), closes [#1484](https://github.com/a2aproject/A2A/issues/1484)\n* **spec:** Added clarification on timestamps in HTTP query params ([#1425](https://github.com/a2aproject/A2A/issues/1425)) ([6292104](https://github.com/a2aproject/A2A/commit/6292104e359efca05bd8703174517b6f961ae4e1))\n* **spec:** Added clarifying text around messages and artifacts ([#1424](https://github.com/a2aproject/A2A/issues/1424)) ([b03d141](https://github.com/a2aproject/A2A/commit/b03d141aeab6abd71a229e85c81f7e4c00b537ec))\n* **spec:** Adjust field number for `ListTasksRequest.tenant` to prevent missing number ([#1470](https://github.com/a2aproject/A2A/issues/1470)) ([cd16c52](https://github.com/a2aproject/A2A/commit/cd16c5276b4c662ca1823678d07487a624cad606))\n* **spec:** Clarify contextId behavior when message is sent with taskId but without contextId ([#1309](https://github.com/a2aproject/A2A/issues/1309)) ([a336a5a](https://github.com/a2aproject/A2A/commit/a336a5a4846fdf85079d4e310339ea0128922ee7))\n* **spec:** Clarify versioning strategy and client responsibilities in protocol specification ([#1259](https://github.com/a2aproject/A2A/issues/1259)) ([a4afeea](https://github.com/a2aproject/A2A/commit/a4afeea788b3877101f7a63c2e50091709490058))\n* **spec:** Fix/1251 clarify authentication scheme ([#1256](https://github.com/a2aproject/A2A/issues/1256)) ([3e6c7db](https://github.com/a2aproject/A2A/commit/3e6c7db90790c2d05dad3ab1a313de26debe5cb7))\n* **spec:** Fixes for the last_updated_after field ([#1358](https://github.com/a2aproject/A2A/issues/1358)) ([0e204bf](https://github.com/a2aproject/A2A/commit/0e204bf878eb63619e205d3419ebc48d4cd35849))\n* **spec:** Make \"message\" field name consistent between protocol bindings ([#1302](https://github.com/a2aproject/A2A/issues/1302)) ([1e5f462](https://github.com/a2aproject/A2A/commit/1e5f46206403982cc629a0dad535856b28c269aa)), closes [#1230](https://github.com/a2aproject/A2A/issues/1230)\n* **spec:** make `history_length` optional ([#1071](https://github.com/a2aproject/A2A/issues/1071)) ([0572953](https://github.com/a2aproject/A2A/commit/057295311b8ddda63bdda56c82a694c76d307e37))\n* **spec:** pluralize configs in `ListTaskPushNotificationConfigs` ([#1486](https://github.com/a2aproject/A2A/issues/1486)) ([cf735cb](https://github.com/a2aproject/A2A/commit/cf735cb87056ff6d62abd21a1a66ccb14a23c38e))\n* **spec:** Remove config from binding. ([#1587](https://github.com/a2aproject/A2A/issues/1587)) ([010b9cc](https://github.com/a2aproject/A2A/commit/010b9cc936fbafd66610282ad66070da2cb28855))\n* **spec:** Remove deprecated fields from a2a.proto for v1.0 release ([#1301](https://github.com/a2aproject/A2A/issues/1301)) ([60f83c3](https://github.com/a2aproject/A2A/commit/60f83c3faac4770b231f038406c9e02282887a25)), closes [#1227](https://github.com/a2aproject/A2A/issues/1227)\n* **spec:** remove duplicated ID from the create task push config request ([#1487](https://github.com/a2aproject/A2A/issues/1487)) ([393898d](https://github.com/a2aproject/A2A/commit/393898dfeefa37186aced5b61733c5d2c0d9c34a))\n* **spec:** Remove metadata field from ListTasksRequest ([#1235](https://github.com/a2aproject/A2A/issues/1235)) ([b6ef9ee](https://github.com/a2aproject/A2A/commit/b6ef9eec558c877fb69024df090a8bb63c542a1c))\n* **spec:** Remove reserved and fix tags ordering ([#1494](https://github.com/a2aproject/A2A/issues/1494)) ([1997c9d](https://github.com/a2aproject/A2A/commit/1997c9d63058ca0b89361a7d6e508f4641a6f68b))\n* **spec:** Rename `supportsAuthenticatedExtendedCard` to `supportsExtendedAgentCard` ([#1222](https://github.com/a2aproject/A2A/issues/1222)) ([c196824](https://github.com/a2aproject/A2A/commit/c196824396bb4af4c595f30e2c503a5ab1dbac4b)), closes [#1215](https://github.com/a2aproject/A2A/issues/1215)\n* **spec:** Standardize spelling of \"canceled\" to use American Spelling throughout ([#1283](https://github.com/a2aproject/A2A/issues/1283)) ([4dd980f](https://github.com/a2aproject/A2A/commit/4dd980f6ff1989177faffa631a695aba811c56ad))\n* **spec:** Suggest Unique Identifier fields to be UUID ([#966](https://github.com/a2aproject/A2A/issues/966)) ([00cf76e](https://github.com/a2aproject/A2A/commit/00cf76e7bbc752842ef254f3d4136ed1b5751f6e))\n* **spec:** Switch to non-complex IDs in requests ([#1389](https://github.com/a2aproject/A2A/issues/1389)) ([2596c1c](https://github.com/a2aproject/A2A/commit/2596c1c5e0effd941880e8487d38d78b74b9c0bf)), closes [#1390](https://github.com/a2aproject/A2A/issues/1390)\n* **spec:** Update security schemes example ([#1364](https://github.com/a2aproject/A2A/issues/1364)) ([f9a8f5b](https://github.com/a2aproject/A2A/commit/f9a8f5b85d5b07824c52d55d63f7d71ccc6303c5))\n* Update the Java tutorials and descriptions ([#1181](https://github.com/a2aproject/A2A/issues/1181)) ([202aa06](https://github.com/a2aproject/A2A/commit/202aa069e66f701bacf2156d42d8916fc96a5188))\n\n\n### Documentation\n\n* **spec:** Align enum format with ADR-001 ProtoJSON specification ([#1384](https://github.com/a2aproject/A2A/issues/1384)) ([810eaa1](https://github.com/a2aproject/A2A/commit/810eaa1c6e6462f845a00774f8622b998272116e)), closes [#1344](https://github.com/a2aproject/A2A/issues/1344)\n\n\n### Code Refactoring\n\n* **spec:** Combine `TaskPushNotificationConfig` and `PushNotificationConfig` ([#1500](https://github.com/a2aproject/A2A/issues/1500)) ([d1ed0da](https://github.com/a2aproject/A2A/commit/d1ed0da587d2d634ba0b81a40d082cee0850b81b))\n* **spec:** Large refactor of specification to separate application protocol definition from mapping to transports ([b078419](https://github.com/a2aproject/A2A/commit/b0784199543eebf2e95dcb02e9336cb213923506))\n* **spec:** Move `extendedAgentCard` field to `AgentCapabilities` ([#1307](https://github.com/a2aproject/A2A/issues/1307)) ([40d6286](https://github.com/a2aproject/A2A/commit/40d6286fbe29fb083d416b77e84122df8d70ae9d))\n* **spec:** Remove redundant `final` field from `TaskStatusUpdateEvent` ([#1308](https://github.com/a2aproject/A2A/issues/1308)) ([5b101cc](https://github.com/a2aproject/A2A/commit/5b101cce0fff449c1120ad50ce360acf7c90bac3))\n\n## [0.3.0](https://github.com/a2aproject/A2A/compare/v0.2.6...v0.3.0) (2025-07-30)\n\n\n### ⚠ BREAKING CHANGES\n\n* Add mTLS to SecuritySchemes, add oauth2 metadata url field, allow Skills to specify Security ([#901](https://github.com/a2aproject/A2A/issues/901))\n* Change Well-Known URI for Agent Card hosting from `agent.json` to `agent-card.json` ([#841](https://github.com/a2aproject/A2A/issues/841))\n* Add method for fetching extended card ([#929](https://github.com/a2aproject/A2A/issues/929))\n\n### Features\n\n* Add `signatures` to the `AgentCard` ([#917](https://github.com/a2aproject/A2A/issues/917)) ([ef4a305](https://github.com/a2aproject/A2A/commit/ef4a30505381e99b20103724cabef024389bacef))\n* Add method for fetching extended card ([#929](https://github.com/a2aproject/A2A/issues/929)) ([2cd7d98](https://github.com/a2aproject/A2A/commit/2cd7d98bc8566601b9a18ca8afe92a0b4d203248))\n* Add mTLS to SecuritySchemes, add oauth2 metadata url field, allow Skills to specify Security ([#901](https://github.com/a2aproject/A2A/issues/901)) ([e162c0c](https://github.com/a2aproject/A2A/commit/e162c0c6c4f609d2f4eef9042466d176ec75ebda))\n\n\n### Bug Fixes\n\n* **spec:** Add `SendMessageRequest.request` `json_name` mapping to `message` ([#904](https://github.com/a2aproject/A2A/issues/904)) ([2eef3f6](https://github.com/a2aproject/A2A/commit/2eef3f6113851e690cee70a1b1643e1ffd6d2a60))\n* **spec:** Add Transport enum to specification ([#909](https://github.com/a2aproject/A2A/issues/909)) ([e834347](https://github.com/a2aproject/A2A/commit/e834347c279186d9d7873b352298e8b19737dd5a))\n\n\n### Code Refactoring\n\n* Change Well-Known URI for Agent Card hosting from `agent.json` to `agent-card.json` ([#841](https://github.com/a2aproject/A2A/issues/841)) ([0858ddb](https://github.com/a2aproject/A2A/commit/0858ddb884dc4671681fd819648dfd697176abb3))\n\n## [0.2.6](https://github.com/a2aproject/A2A/compare/v0.2.5...v0.2.6) (2025-07-17)\n\n\n### Bug Fixes\n\n* Type fix and doc clarification ([#877](https://github.com/a2aproject/A2A/issues/877)) ([6f1d17b](https://github.com/a2aproject/A2A/commit/6f1d17ba806c32f2b6fbe465be93ec13bfe7d83c))\n* Update json names of gRPC objects for proper transcoding  ([#847](https://github.com/a2aproject/A2A/issues/847)) ([6ba72f0](https://github.com/a2aproject/A2A/commit/6ba72f0d51c2e3d0728f84e9743b6d0e88730b51))\n\n## [0.2.5](https://github.com/a2aproject/A2A/compare/v0.2.4...v0.2.5) (2025-06-30)\n\n\n### ⚠ BREAKING CHANGES\n\n* **spec:** Add a required protocol version to the agent card. ([#802](https://github.com/a2aproject/A2A/issues/802))\n* Support for multiple pushNotification config per task ([#738](https://github.com/a2aproject/A2A/issues/738)) ([f355d3e](https://github.com/a2aproject/A2A/commit/f355d3e922de61ba97873fe2989a8987fc89eec2))\n\n\n### Features\n\n* **spec:** Add a required protocol version to the agent card. ([#802](https://github.com/a2aproject/A2A/issues/802)) ([90fa642](https://github.com/a2aproject/A2A/commit/90fa64209498948b329a7b2ac6ec38942369157a))\n* **spec:** Support for multiple pushNotification config per task ([#738](https://github.com/a2aproject/A2A/issues/738)) ([f355d3e](https://github.com/a2aproject/A2A/commit/f355d3e922de61ba97873fe2989a8987fc89eec2))\n\n\n### Documentation\n\n* update spec & doc topic with non-restartable tasks ([#770](https://github.com/a2aproject/A2A/issues/770)) ([ebc4157](https://github.com/a2aproject/A2A/commit/ebc4157ca87ae08d1c55e38e522a1a17201f2854))\n\n## [0.2.4](https://github.com/a2aproject/A2A/compare/v0.2.3...v0.2.4) (2025-06-30)\n\n\n### Features\n\n* feat: Add support for multiple transport announcement in AgentCard ([#749](https://github.com/a2aproject/A2A/issues/749)) ([b35485e](https://github.com/a2aproject/A2A/commit/b35485e02e796d15232dec01acfab93fc858c3ec))\n\n## [0.2.3](https://github.com/a2aproject/A2A/compare/v0.2.2...v0.2.3) (2025-06-12)\n\n\n### Bug Fixes\n\n* Address some typos in gRPC annotations ([#747](https://github.com/a2aproject/A2A/issues/747)) ([f506881](https://github.com/a2aproject/A2A/commit/f506881c9b8ff0632d7c7107d5c426646ae31592))\n\n## [0.2.2](https://github.com/a2aproject/A2A/compare/v0.2.1...v0.2.2) (2025-06-09)\n\n\n### ⚠ BREAKING CHANGES\n\n* Resolve spec inconsistencies with JSON-RPC 2.0\n\n### Features\n\n* Add gRPC and REST definitions to A2A protocol specifications ([#695](https://github.com/a2aproject/A2A/issues/695)) ([89bb5b8](https://github.com/a2aproject/A2A/commit/89bb5b82438b74ff7bb0fafbe335db7100a0ac57))\n* Add protocol support for extensions ([#716](https://github.com/a2aproject/A2A/issues/716)) ([70f1e2b](https://github.com/a2aproject/A2A/commit/70f1e2b0c68a3631888091ce9460a9f7fbfbdff2))\n* **spec:** Add an optional iconUrl field to the AgentCard ([#687](https://github.com/a2aproject/A2A/issues/687)) ([9f3bb51](https://github.com/a2aproject/A2A/commit/9f3bb51257f008bd878d85e00ec5e88357016039))\n\n\n### Bug Fixes\n\n* Protocol should be released as 0.2.2 ([22e7541](https://github.com/a2aproject/A2A/commit/22e7541be082c4f0845ff7fa044992cda05b437e))\n* Resolve spec inconsistencies with JSON-RPC 2.0 ([628380e](https://github.com/a2aproject/A2A/commit/628380e7e392bc8f1778ae991d4719bd787c17a9))\n\n## [0.2.1](https://github.com/a2aproject/A2A/compare/v0.2.0...v0.2.1) (2025-05-27)\n\n### Features\n\n* Add a new boolean for supporting authenticated extended cards ([#618](https://github.com/a2aproject/A2A/issues/618)) ([e0a3070](https://github.com/a2aproject/A2A/commit/e0a3070fc289110d43faf2e91b4ffe3c29ef81da))\n* Add optional referenceTaskIds for task followups ([#608](https://github.com/a2aproject/A2A/issues/608)) ([5368e77](https://github.com/a2aproject/A2A/commit/5368e7728cb523caf1a9218fda0b1646325f524b))\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to making participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, gender identity and expression, level of\nexperience, education, socio-economic status, nationality, personal appearance,\nrace, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n*   Using welcoming and inclusive language\n*   Being respectful of differing viewpoints and experiences\n*   Gracefully accepting constructive criticism\n*   Focusing on what is best for the community\n*   Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n*   The use of sexualized language or imagery and unwelcome sexual attention or\n    advances\n*   Trolling, insulting/derogatory comments, and personal or political attacks\n*   Public or private harassment\n*   Publishing others' private information, such as a physical or electronic\n    address, without explicit permission\n*   Other conduct which could reasonably be considered inappropriate in a\n    professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, or to ban temporarily or permanently any\ncontributor for other behaviors that they deem inappropriate, threatening,\noffensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces\nwhen an individual is representing the project or its community. Examples of\nrepresenting a project or community include using an official project e-mail\naddress, posting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event. Representation of a project may be\nfurther defined and clarified by project maintainers.\n\nThis Code of Conduct also applies outside the project spaces when the Project\nSteward has a reasonable belief that an individual's behavior may have a\nnegative impact on the project or its community.\n\n## Conflict Resolution\n\nWe do not believe that all conflict is bad; healthy debate and disagreement\noften yield positive results. However, it is never okay to be disrespectful or\nto engage in behavior that violates the project’s code of conduct.\n\nIf you see someone violating the code of conduct, you are encouraged to address\nthe behavior directly with those involved. Many issues can be resolved quickly\nand easily, and this gives people more control over the outcome of their\ndispute. If you are unable to resolve the matter for any reason, or if the\nbehavior is threatening or harassing, report it. We are dedicated to providing\nan environment where participants feel welcome and safe.\n\nReports should be directed to [a2a-coc@googlegroups.com](mailto:a2a-coc@googlegroups.com), the\nProject Steward(s) for A2A. It is the Project Steward’s duty to\nreceive and address reported violations of the code of conduct. They will then\nwork with a committee consisting of representatives from the A2A project and leadership.\n\nWe will investigate every complaint, but you may not receive a direct response.\nWe will use our discretion in determining when and how to follow up on reported\nincidents, which may range from not taking action to permanent expulsion from\nthe project and project-sponsored spaces. We will notify the accused of the\nreport and provide them an opportunity to discuss it before any action is taken.\nThe identity of the reporter will be omitted from the details of the report\nsupplied to the accused. In potentially harmful situations, such as ongoing\nharassment or threats to anyone's safety, we may take action without notice.\n\n## Attribution\n\nThis Code of Conduct is adapted from the Contributor Covenant, version 1.4,\navailable at\nhttps://www.contributor-covenant.org/version/1/4/code-of-conduct/\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# How to contribute\n\nWe'd love to accept your patches and contributions to this project.\n\n## Contribution process\n\n### Code reviews\n\nAll submissions, including submissions by project members, require review. We\nuse GitHub pull requests for this purpose. Consult\n[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more\ninformation on using pull requests.\n\n### Contributor Guide\n\nYou may follow these steps to contribute:\n\n1. **Fork the official repository.** This will create a copy of the official repository in your own account.\n2. **Sync the branches.** This will ensure that your copy of the repository is up-to-date with the latest changes from the official repository.\n3. **Work on your forked repository's feature branch.** This is where you will make your changes to the code.\n4. **Commit your updates on your forked repository's feature branch.** This will save your changes to your copy of the repository.\n5. **Submit a pull request to the official repository's main branch.** This will request that your changes be merged into the official repository.\n6. **Resolve any linting errors.** This will ensure that your changes are formatted correctly.\n\nHere are some additional things to keep in mind during the process:\n\n- **Test your changes.** Before you submit a pull request, make sure that your changes work as expected.\n- **Be patient.** It may take some time for your pull request to be reviewed and merged.\n"
  },
  {
    "path": "GOVERNANCE.md",
    "content": "# Agent2Agent (A2A) Governance\n\nThe Agent2Agent project is governed by the Technical Steering Committee. The Committee has eight seats, each held by the following companies:\n\n| Company | Representative | Title | Contact |\n| :--- | :--- | :--- | :--- |\n| **Google** | Todd Segal | Principal Engineer | [@ToddSegal](https://github.com/ToddSegal) |\n| **Microsoft** | Darrel Miller | Partner API Architect | [@darrelmiller](https://github.com/darrelmiller) |\n| **Cisco** | Luca Muscariello | Principal Engineer | [@muscariello](https://github.com/muscariello) |\n| **Amazon Web Services** | Abhimanyu Siwach | Senior Software Engineer | [@siwachabhi](https://github.com/siwachabhi) |\n| **Salesforce** | Stephen Petschulat | Principal Architect | [@spetschulatSFDC](https://github.com/spetschulatSFDC) |\n| **ServiceNow** | Sean Hughes | Director of Open Science | [@hughesthe1st](https://github.com/hughesthe1st) |\n| **SAP** | Sivakumar N. | Vice President | [@SivaNSAP](https://github.com/SivaNSAP) |\n| **IBM Research** | Kate Blair | Director of Incubation | [@geneknit](https://github.com/geneknit) |\n\n## Mission and Scope of the Project\n\n1. The mission of the Project is to help AI agents across different ecosystems communicate with each other. The Project includes collaborative development of the following components:\n\n   1. the Agent2Agent Protocol (the \"Protocol\");\n\n   2. a SDK for designing implementations of the Protocol and related software components; and\n\n   3. documentation and other artifacts related to the Project.\n\n2. The scope of the Project includes collaborative development under the Project License (as defined herein) supporting the mission, including documentation, testing, integration and the creation of other artifacts that aid the development, deployment, operation or adoption of the open source project.\n\n## Technical Steering Committee\n\n1. The Technical Steering Committee (the \"TSC\") will be responsible for all technical oversight of the open source Project.\n2. **TSC Composition**\n\n    a. **\"Startup Phase.\"** At the inception of the Project, each organization listed in the [`GOVERNANCE`](GOVERNANCE.md) file in the governance repository of the Project will have the right to appoint (and remove and replace) one employee to serve as a voting member of the TSC.\n\n    b. **\"Steady State.\"** The TSC will decide upon a \"steady state\" composition of the TSC (whether by election, subproject technical leads, or other method as determined by the TSC), to take effect from the date that is 18 months following the inception of the Project, or at such other point as determined by the TSC.\n\n    c. The TSC may choose an alternative approach for determining the voting members of the TSC, and any such alternative approach will be documented in the GOVERNANCE file. Any meetings of the Technical Steering Committee are intended to be open to the public, and can be conducted electronically, via teleconference, or in person.\n\n3. TSC projects generally will involve Contributors and Maintainers. The TSC may adopt or modify roles so long as the roles are documented in the CONTRIBUTING file. Unless otherwise documented:\n\n    a. **Contributors** include anyone in the technical community that contributes code, documentation, or other technical artifacts to the Project;\n\n    b. **Maintainers** are Contributors who have earned the ability to modify (\"commit\") source code, documentation or other technical artifacts in a project's repository; and\n\n    c. A Contributor may become a Maintainer by a vote of the TSC. A Maintainer may be removed by a vote of the TSC.\n\n    d. Participation in the Project through becoming a Contributor and Maintainer is open to anyone so long as they abide by the terms of this Charter.\n4. The TSC may:\n    1. establish work flow procedures for the submission, approval, and closure/archiving of projects,\n    2. set requirements for the promotion of Contributors to Maintainer status, as applicable, and\n    3. amend, adjust, refine and/or eliminate the roles of Contributors, and Maintainer, and create new roles, and publicly document any TSC roles, as it sees fit.\n5. The TSC may elect a TSC Chair, who will preside over meetings of the TSC and will serve until their resignation or replacement by the TSC.\n6. **Responsibilities:** The TSC will be responsible for all aspects of oversight relating to the Project, which may include:\n    1. coordinating the technical direction of the Project;\n    2. approving project or system proposals (including, but not limited to, incubation, deprecation, and changes to a subproject's scope);\n    3. organizing subprojects and removing subprojects;\n    4. creating subcommittees or working groups to focus on cross-project technical issues and requirements;\n    5. appointing representatives to work with other open source or open standards communities;\n    6. establishing community norms, workflows, issuing releases, and security issue reporting policies;\n    7. approving and implementing policies and processes for contributing (to be published in the [`CONTRIBUTING`](CONTRIBUTING.md) file) and coordinating with the series manager of the Project (as provided for in the Series Agreement, the \"Series Manager\") to resolve matters or concerns that may arise as set forth in Section 7 of this Charter;\n    8. discussions, seeking consensus, and where necessary, voting on technical matters relating to the code base that affect multiple projects; and\n    9. coordinating any marketing, events, or communications regarding the Project.\n\n### TSC Voting\n\nWhile the Project aims to operate as a consensus-based community, if any TSC decision requires a vote to move the Project forward, the voting members of the TSC will vote on a one vote per voting member basis. \n\nQuorum for TSC meetings requires at least fifty percent of all voting members of the TSC to be present. The TSC may continue to meet if quorum is not met but will be prevented from making any decisions at the meeting. Except as provided in Section 7.c. and 8.a, decisions by vote at a meeting require a majority vote of those in attendance, provided quorum is met. Decisions made by electronic vote without a meeting require a majority vote of all voting members of the TSC.\n\n### TSC Meetings\nTSC Meetings are held on the Linux Foundation's meeting platform. [https://zoom-lfx.platform.linuxfoundation.org/meetings/agent2agent](https://zoom-lfx.platform.linuxfoundation.org/meetings/agent2agent) has meeting details and recordings of past meetings. \nOur [working doc for TSC Meeting Agendas](https://docs.google.com/document/d/1Dx6qYfCjSChHKRMwLJcvtDjq6igYTAKFW9Vg1IMPCUk/view) is in Google Docs.\n\n## Project Communications\n\nThe A2A project utilizes Discord for chat conversations about the project. All are welcome and encouraged to join the [A2A Discord](http://discord.gg/a2aprotocol). Discussion is encouraged however we do remind the community that chat is ephemeral, and not all members of the project are active in chat at the same time.\n\nTherefore, any discussions about feature proposals, significant changes to the project architecture or governance, etc. should be held in GitHub with adequate notice and time for comment. Look for specifics on that timing coming soon as the TSC ramps up. Just keep in mind - our goal is that GitHub is the source of truth for significant project decisions.\n\nAdditional communication avenues will likely be added - stay tuned.\n"
  },
  {
    "path": "LICENSE",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "MAINTAINERS.md",
    "content": "# Maintainers\n\nThis document lists the maintainers of various repositories within the project.\n\n## Repository Maintainers\n\n### a2a-dotnet\n\n- role:maintain\n  - @aalina23\n  - @adamsitnik\n  - @Blackhex\n  - @iremyux\n  - @karelz\n  - @rokonec\n\n- role:admin\n  - @brandonh-msft\n  - @darrelmiller\n  - @markwallace-microsoft\n  - @SergeyMenshykh\n  - @stephentoub\n\n### a2a-go\n\n- role:maintain\n  - @yarolegovich\n\n- role:admin\n  - @hyangah\n  - @mazas-google\n\n### a2a-java\n\n- role:maintain\n  - @Doris26\n  - @ehsavoie\n  - @kabir\n  - @maeste\n\n- role:admin\n  - @ddobrin\n  - @fjuma\n  - @holtskinner\n\n### a2a-js\n\n- role:admin\n  - @swapydapy\n\n### a2a-python\n\n- role:maintain\n  - @aneeshgarg\n  - @chitra-venkatesh\n  - @dmandar\n  - @holtskinner\n  - @kthota-g\n  - @lkawka\n  - @mikeas1\n  - @mindpower\n  - @mvakoc\n  - @pstephengoogle\n  - @pwwpche\n  - @rajeshvelicheti\n  - @swapydapy\n  - @ToddSegal\n\n- role:admin\n  - @DJ-os\n  - @holtskinner\n  - @koverholt\n  - @kthota-g\n  - @ToddSegal\n  - @zeroasterisk\n\n### a2a-samples\n\n- role:admin\n  - @zeroasterisk\n  - @holtskinner\n  - @kthota-g\n\n\n"
  },
  {
    "path": "README.md",
    "content": "# Agent2Agent (A2A) Protocol\n\n[![PyPI - Version](https://img.shields.io/pypi/v/a2a-sdk)](https://pypi.org/project/a2a-sdk)\n[![Apache License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n<a href=\"https://codewiki.google/github.com/a2aproject/a2a\">\n  <img src=\"https://www.gstatic.com/_/boq-sdlc-agents-ui/_/r/Mvosg4klCA4.svg\" alt=\"Ask Code Wiki\" height=\"20\">\n</a>\n\n<div style=\"text-align: left;\">\n  <details>\n    <summary>🌐 Language</summary>\n    <div>\n      <div style=\"text-align: center;\">\n        <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=en\">English</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=zh-CN\">简体中文</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=zh-TW\">繁體中文</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=ja\">日本語</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=ko\">한국어</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=hi\">हिन्दी</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=th\">ไทย</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=fr\">Français</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=de\">Deutsch</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=es\">Español</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=it\">Italiano</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=ru\">Русский</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=pt\">Português</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=nl\">Nederlands</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=pl\">Polski</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=ar\">العربية</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=fa\">فارسی</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=tr\">Türkçe</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=vi\">Tiếng Việt</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=id\">Bahasa Indonesia</a>\n        | <a href=\"https://openaitx.github.io/view.html?user=a2aproject&project=A2A&lang=as\">অসমীয়া</a>\n      </div>\n    </div>\n  </details>\n</div>\n\n<!-- markdownlint-disable MD041 -->\n<div style=\"text-align: center;\">\n  <div class=\"centered-logo-text-group\">\n    <img src=\"docs/assets/a2a-logo-black.svg\" alt=\"Agent2Agent Protocol Logo\" width=\"100\">\n    <h1>Agent2Agent (A2A) Protocol</h1>\n  </div>\n</div>\n\n**An open protocol enabling communication and interoperability between opaque agentic applications.**\n\nThe Agent2Agent (A2A) protocol addresses a critical challenge in the AI landscape: enabling gen AI agents, built on diverse frameworks by different companies running on separate servers, to communicate and collaborate effectively - as agents, not just as tools. A2A aims to provide a common language for agents, fostering a more interconnected, powerful, and innovative AI ecosystem.\n\nWith A2A, agents can:\n\n- Discover each other's capabilities.\n- Negotiate interaction modalities (text, forms, media).\n- Securely collaborate on long-running tasks.\n- Operate without exposing their internal state, memory, or tools.\n\n## DeepLearning.AI Course\n\n[![A2A DeepLearning.AI](https://img.youtube.com/vi/4gYm0Rp7VHc/maxresdefault.jpg)](https://goo.gle/dlai-a2a)\n\nJoin this short course on [A2A: The Agent2Agent Protocol](https://goo.gle/dlai-a2a), built in partnership with Google Cloud and IBM Research, and taught by [Holt Skinner](https://github.com/holtskinner), [Ivan Nardini](https://github.com/inardini), and [Sandi Besen](https://github.com/sandijean90).\n\n**What you'll learn:**\n\n- **Make agents A2A-compliant:** Expose agents built with frameworks like Google ADK, LangGraph, or BeeAI as A2A servers.\n- **Connect agents:** Create A2A clients from scratch or using integrations to connect to A2A-compliant agents.\n- **Orchestrate workflows:** Build sequential and hierarchical workflows of A2A-compliant agents.\n- **Multi-agent systems:** Build a healthcare multi-agent system using different frameworks and see how A2A enables collaboration.\n- **A2A and MCP:** Learn how A2A complements MCP by enabling agents to collaborate with each other.\n\n## Why A2A?\n\nAs AI agents become more prevalent, their ability to interoperate is crucial for building complex, multi-functional applications. A2A aims to:\n\n- **Break Down Silos:** Connect agents across different ecosystems.\n- **Enable Complex Collaboration:** Allow specialized agents to work together on tasks that a single agent cannot handle alone.\n- **Promote Open Standards:** Foster a community-driven approach to agent communication, encouraging innovation and broad adoption.\n- **Preserve Opacity:** Allow agents to collaborate without needing to share internal memory, proprietary logic, or specific tool implementations, enhancing security and protecting intellectual property.\n\n### Key Features\n\n- **Standardized Communication:** JSON-RPC 2.0 over HTTP(S).\n- **Agent Discovery:** Via \"Agent Cards\" detailing capabilities and connection info.\n- **Flexible Interaction:** Supports synchronous request/response, streaming (SSE), and asynchronous push notifications.\n- **Rich Data Exchange:** Handles text, files, and structured JSON data.\n- **Enterprise-Ready:** Designed with security, authentication, and observability in mind.\n\n## Getting Started\n\n- 📚 **Explore the Documentation:** Visit the [Agent2Agent Protocol Documentation Site](https://a2a-protocol.org) for a complete overview, the full protocol specification, tutorials, and guides.\n- 📝 **View the Specification:** [A2A Protocol Specification](https://a2a-protocol.org/latest/specification/)\n- Use the SDKs:\n    - [🐍 A2A Python SDK](https://github.com/a2aproject/a2a-python) `pip install a2a-sdk`\n    - [🐿️ A2A Go SDK](https://github.com/a2aproject/a2a-go) `go get github.com/a2aproject/a2a-go`\n    - [🧑‍💻 A2A JS SDK](https://github.com/a2aproject/a2a-js) `npm install @a2a-js/sdk`\n    - [☕️ A2A Java SDK](https://github.com/a2aproject/a2a-java) using maven\n    - [🔷 A2A .NET SDK](https://github.com/a2aproject/a2a-dotnet) using [NuGet](https://www.nuget.org/packages/A2A) `dotnet add package A2A`\n- 🎬 Use our [samples](https://github.com/a2aproject/a2a-samples) to see A2A in action\n\n## Contributing\n\nWe welcome community contributions to enhance and evolve the A2A protocol!\n\n- **Questions & Discussions:** Join our [GitHub Discussions](https://github.com/a2aproject/A2A/discussions).\n- **Issues & Feedback:** Report issues or suggest improvements via [GitHub Issues](https://github.com/a2aproject/A2A/issues).\n- **Contribution Guide:** See our [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute.\n- **Private Feedback:** Use this [Google Form](https://goo.gle/a2a-feedback).\n- **Partner Program:** Google Cloud customers can join our partner program via this [form](https://goo.gle/a2a-partner).\n\n## What's next\n\n### Protocol Enhancements\n\n- **Agent Discovery:**\n    - Formalize inclusion of authorization schemes and optional credentials directly within the `AgentCard`.\n- **Agent Collaboration:**\n    - Investigate a `QuerySkill()` method for dynamically checking unsupported or unanticipated skills.\n- **Task Lifecycle & UX:**\n    - Support for dynamic UX negotiation _within_ a task (e.g., agent adding audio/video mid-conversation).\n- **Client Methods & Transport:**\n    - Explore extending support to client-initiated methods (beyond task management).\n    - Improvements to streaming reliability and push notification mechanisms.\n\n## About\n\nThe A2A Protocol is an open source project under the Linux Foundation, contributed by Google. It is licensed under the [Apache License 2.0](LICENSE) and is open to contributions from the community.\n"
  },
  {
    "path": "SECURITY.md",
    "content": "# Security Policy\n\nTo report a security issue, please use email <security@lists.a2aproject.org>.\n\nWe use a mailing list for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue.\n"
  },
  {
    "path": "adrs/adr-001-protojson-serialization.md",
    "content": "# ADR-001: Leverage ProtoJSON Specification for JSON Serialization\n\n**Status:** Accepted\n\n**Date:** 2025-11-18\n\n**Decision Makers:** Technical Steering Committee (TSC)\n\n**Technical Story:** JSON serialization approach for A2A specification\n\n## Context\n\nThe A2A specification defines message structures using Protocol Buffers (proto definitions) but also needs to support JSON serialization for HTTP/REST-based communication and JSONRPC payloads. We needed to establish a normative approach for how JSON payloads should be serialized based on the proto definitions referenced by the specification.\n\nWithout a clearly specified approach to JSON serialization from proto definitions, implementers could create incompatible JSON representations, leading to interoperability issues across different A2A implementations.\n\n## Decision Drivers\n\n* Need for a standardized, well-documented approach to JSON serialization\n* Ability to leverage existing Protocol Buffer tooling\n* Clear specification for handling edge cases and type mappings\n* Idiomatic use of JSON conventions\n* Coupling of specification to tool chain\n\n## Considered Options\n\n* ProtoJSON (canonical JSON encoding for Protocol Buffers)\n* Explicit transformation rules defined in the A2A specification\n\n## Decision Outcome\n\n**Chosen option:** \"ProtoJSON specification\"\n\nThe TSC has decided to leverage the ProtoJSON specification as the normative approach to serializing JSON based on the proto definition referenced by the specification. This provides a well-defined, standardized way to convert Protocol Buffer messages to JSON format.\n\nThis decision was made with some reservation due to the dependency on ProtoJSON mechanisms and potential impact on protocol bindings unrelated to protobuf and gRPC. However, the decision is reversible if we identify significant issues during implementation, at which point we can duplicate the ProtoJSON conventions in the A2A specification where applicable and describe differences as needed.\n\n### Consequences\n\n#### Positive\n\n* Standardized approach with clear documentation and specification\n* Wide ecosystem support with mature libraries across multiple languages\n* Consistent behavior across different implementations\n* Reduced ambiguity in JSON representation\n* Built-in handling for proto3 types and conventions\n* Provides well-defined rules for wire-unsafe changes\n* Removes the need to define data type handling rules for dates and numbers in the A2A specification\n\n#### Negative\n\n* **Breaking change**: This decision will result in breaking changes to existing JSON payloads, specifically relating to the casing of enum values (ProtoJSON uses SCREAMING_SNAKE_CASE for enums)\n* **Loss of roundtrip capability**: We will not be able to roundtrip unknown values because ProtoJSON doesn't support preserving unknown fields in the JSON representation\n* Migration effort required for existing implementations\n* **Ugly enums** Developers are not used to seeing enum values in SCREAMING_SNAKE_CASE in JSON, which may lead to confusion or errors during implementation\n* Changes to the ProtoJSON specification for the benefit of gRPC could have an impact on other protocol bindings.\n* Enums require a \"unspecified\" value even when they are only used for required fields to meet Proto best practices.\n* Certain field names need to have less than optimal names to avoid conflicts with proto keywords. e.g. message.\n\n#### Neutral\n\n* Implementations must follow ProtoJSON specification strictly\n* Documentation must clearly communicate the breaking changes\n\n## References\n\n* [ProtoJSON format](https://protobuf.dev/programming-guides/json/)\n\n## Notes\n\nThis decision was made to ensure long-term interoperability and maintainability of the A2A specification. While it introduces breaking changes in the short term, the benefits of standardization and ecosystem alignment outweigh the migration costs.\n\nImplementers should be aware that the enum casing change is the most visible breaking change and should plan accordingly for version transitions.\n"
  },
  {
    "path": "adrs/adr-template.md",
    "content": "# ADR-[number]: [Title]\n\n**Status:** [Proposed | Accepted | Deprecated | Superseded]\n\n**Date:** YYYY-MM-DD\n\n**Decision Makers:** [List of people involved in the decision]\n\n**Technical Story:** [Optional: Link to related issue/story]\n\n## Context\n\n[Describe the context and problem statement. What is the issue that we're seeing that is motivating this decision or change?]\n\n## Decision Drivers\n\n* [Driver 1: e.g., performance requirements]\n* [Driver 2: e.g., maintainability concerns]\n* [Driver 3: e.g., team expertise]\n* [Driver 4: e.g., cost considerations]\n\n## Considered Options\n\n* [Option 1]\n* [Option 2]\n* [Option 3]\n\n## Decision Outcome\n\n**Chosen option:** \"[Option X]\"\n\n[Describe why this option was selected. What are the expected positive outcomes?]\n\n### Consequences\n\n#### Positive\n\n* [Positive consequence 1]\n* [Positive consequence 2]\n\n#### Negative\n\n* [Negative consequence 1]\n* [Negative consequence 2]\n\n#### Neutral\n\n* [Neutral consequence 1]\n\n## [Optional] Pros and Cons of the Options\n\n### [Option 1]\n\n[Brief description of option 1]\n\n**Pros:**\n\n* [Advantage 1]\n* [Advantage 2]\n\n**Cons:**\n\n* [Disadvantage 1]\n* [Disadvantage 2]\n\n### [Option 2]\n\n[Brief description of option 2]\n\n**Pros:**\n\n* [Advantage 1]\n* [Advantage 2]\n* [Advantage 2]\n\n**Cons:**\n\n* [Disadvantage 1]\n* [Disadvantage 2]\n\n### [Option 3]\n\n[Brief description of option 3]\n\n**Pros:**\n\n* [Advantage 1]\n* [Advantage 2]\n* [Advantage 2]\n\n**Cons:**\n\n* [Disadvantage 1]\n* [Disadvantage 2]\n\n## Implementation\n\n[Optional: Describe the implementation plan, timeline, and any specific technical details]\n\n## Related Decisions\n\n* [Link to related ADR 1]\n* [Link to related ADR 2]\n\n## References\n\n* [Link to resource 1]\n* [Link to resource 2]\n* [Link to resource 3]\n\n## Notes\n\n[Any additional notes, follow-up items, or context that doesn't fit elsewhere]\n"
  },
  {
    "path": "docs/404.html",
    "content": "<!DOCTYPE html>\n<html>\n\n<head>\n    <meta charset=\"utf-8\">\n    <title>Redirecting...</title>\n    <script>\n        (function () {\n            const basePath = '/A2A/';\n            const latestVersion = 'latest';\n\n            const path = window.location.pathname;\n            const redirected = sessionStorage.getItem('redirected');\n\n            if (redirected) {\n                sessionStorage.removeItem('redirected');\n                console.warn('Redirect loop detected. Stopping redirect.');\n                return;\n            }\n\n            if (path.endsWith('/sdk/python/')) {\n                window.location.replace('https://a2a-protocol.org/latest/sdk/python/api');\n            }\n\n            // Check if the path is an asset or already a versioned path\n            const isAsset = path.includes('/assets/') || path.includes('/stylesheets/');\n            const isVersioned = new RegExp(`${basePath}(v?(\\d+\\.\\d+(\\.\\d+)?)|${latestVersion})/`).test(path);\n\n            if (!isVersioned && !isAsset) {\n                // Construct the new URL.\n                // Example: /A2A/specification.md -> /A2A/latest/specification.md\n                const newPath = path.replace(basePath, basePath + latestVersion + '/');\n\n                // Store a marker in sessionStorage to prevent loops\n                sessionStorage.setItem('redirected', 'true');\n\n                // Perform the redirect\n                window.location.replace(newPath + window.location.search + window.location.hash);\n            } else {\n                window.location.replace('https://a2a-protocol.org/');\n            }\n        })();\n    </script>\n</head>\n\n<body>\n    <h1>A2A - Page Not Found</h1>\n    <p>We are attempting to redirect you to the latest version of this page.</p>\n    <p>If you are not redirected automatically, please navigate to the <a href=\"https://a2a-protocol.org/\">A2A project homepage</a>.</p>\n</body>\n\n</html>\n"
  },
  {
    "path": "docs/README.md",
    "content": "# A2A Docs\n\n<https://a2a-protocol.org>\n\n## Developing A2A docs\n\n1. Clone this repository and `cd` into the repository directory\n2. Run `pip install -r requirements-docs.txt`\n3. Run `mkdocs serve`, edit `.md` files, and live preview\n4. Contribute docs changes as usual\n\n## How it works\n\n- The A2A docs use [mkdocs](https://www.mkdocs.org/) and the\n  [mkdocs-material theme](https://squidfunk.github.io/mkdocs-material/)\n- All of the source documentation / Markdown files related to the A2A docs are\n  in the `docs/` directory in the A2A repository\n- `mkdocs.yml` in the repository root contains all of the docs config, including\n  the site navigation and organization\n- There is a GitHub Action in `.github/workflows/docs.yml` that builds and\n  publishes the docs and pushes the built assets to the `gh-pages` branch in\n  this repository using `mkdocs gh-deploy --force`. This happens automatically for all\n  commits / merges to `main`.\n- The A2A documentation is hosted in GitHub pages, and the settings for this are\n  in the A2A repository settings in GitHub.\n\n## Building the Python SDK Documentation\n\nThe Python SDK documentation is built using [Sphinx](https://www.sphinx-doc.org/).\n\n### Prerequisites\n\nEnsure you have installed the documentation dependencies:\n\n```bash\npip install -r ../../requirements-docs.txt\n```\n\n### Building the Docs\n\n1. Run the following command to build the HTML documentation:\n\n   ```bash\n   sphinx-build -b html docs/sdk/python docs/sdk/python/api\n   ```\n\n2. The generated HTML files will be in the `sdk/python/api` directory. You can open `sdk/python/api/index.html` in your browser to view the documentation.\n"
  },
  {
    "path": "docs/announcing-1.0.md",
    "content": "# A2A Protocol Ships v1.0: Production-Ready Standard for Agent-to-Agent Communication\n\nThe A2A Protocol community today are announcing the release of A2A Protocol v1.0, marking the first stable, production-ready version of the open standard for communication between AI agents. The protocol is guided by a technical steering committee with representatives from eight major technology companies.\n\nAs organizations build increasingly sophisticated multi-agent systems, interoperability has become the defining challenge. Teams can coordinate agents effectively within a single platform, but connecting those systems across technology stacks and organizational boundaries remains difficult. A2A addresses that challenge by combining support for multiple protocol bindings, seamless version negotiation, and a common semantic model so agents can interoperate across systems with predictable behavior.\n\nThe v1.0 release emphasizes maturity rather than reinvention: the core ideas remain intact, while rough edges have been removed, ambiguous areas clarified, and enterprise deployment requirements addressed more directly. The official SDKs ensure v1.0 A2A agents work seamlessly with older versions.\n\n## Delivering on enterprise requirements\n\nThe v1.0 release introduces several capabilities aimed at production environments where trust, scale, and operational control are non-negotiable.\n\n- **Heterogeneous environment support** enables interoperability across diverse technology stacks through multi-protocol bindings and version negotiation, so enterprises are not tied to a single vendor or platform.\n- **Multi-tenancy support** allows a single endpoint to securely host many agents.\n- **Signed Agent Cards** provide cryptographic verification of agent identity and metadata, establishing trust before interaction across organizational boundaries.\n- **Improved security posture** modernizes security flows and removes legacy patterns that are no longer aligned with current best practices.\n\nTogether, these changes move A2A from early adopter implementations toward broader enterprise confidence, especially in regulated or multi-party scenarios.\n\n## Web-aligned architecture for scale\n\nA2A v1.0 aligns with core architectural principles of the web: stateless, layered architecture, standard protocol bindings, and infrastructure-friendly communication patterns. That alignment matters operationally because organizations can scale agent interactions with the same proven load balancing, gateway, security and observability patterns they already use for web systems.\n\nThe standard builds on industry-proven protocols, including JSON+HTTP, gRPC, and JSON-RPC. It also keeps the barrier to entry low: in its simplest form, an A2A interaction can begin with a single HTTP request.\n\nA2A also gives consumers flexibility in how they receive results. Depending on workload and operational needs, clients can use polling, streaming, or webhooks to consume task updates and responses.\n\n## Complementary to MCP, not a replacement\n\nThe release also reinforces A2A's relationship with the Model Context Protocol (MCP), a point that has generated confusion in early ecosystem discussions.\n\nMCP and A2A solve different layers of the problem. MCP is commonly used for tool and context integration at the individual agent level. A2A focuses on communication and coordination between agents. In practice, many systems will use both: MCP inside agents, A2A between agents.\n\n## Smooth migration from earlier versions\n\nThe v1.0 release tightens specification behavior, which includes breaking changes in the interaction protocol. AgentCard, however, has evolved in a backward-compatible way and now allows agents to advertise support for both existing v0.3 protocol behavior and v1.0 simultaneously. This enables clients to migrate progressively rather than through a single cutover.\n\nThat approach is intended to protect current investments while still delivering the benefits of a cleaner, more durable standard.\n\n## Why this release matters now\n\nAI agents are increasingly deployed across departments, products, and partner ecosystems. At that scale, the key question is no longer whether agents can coordinate within one stack, but whether they can collaborate reliably across organizational and platform boundaries. Open protocols determine whether organizations can compose best-of-breed systems or become locked into isolated stacks.\n\nA2A v1.0 gives the market a stronger foundation for open multi-agent collaboration. The community is now focused on delivering multi-language v1.0 SDK support to help developers build conformant solutions with ease.\n\nThe complete v1.0 materials, including specification and migration documentation, are available at [a2a-protocol.org](https://a2a-protocol.org) and on [GitHub](https://github.com/a2aproject/A2A).\n\n---\n\n**About A2A Protocol**\nThe Agent-to-Agent (A2A) Protocol is an open standard that enables AI agents to discover capabilities, communicate, and delegate tasks across teams, products, and organizations. The A2A Technical Steering Committee includes representatives from AWS, Cisco, Google, IBM Research, Microsoft, Salesforce, SAP, and ServiceNow.\n\n**Media Contact**\nA2A Protocol Community\n[https://a2a-protocol.org](https://a2a-protocol.org)\n"
  },
  {
    "path": "docs/community.md",
    "content": "# A2A Community Hub\n\nWelcome to the official community hub for the **Agent2Agent (A2A) protocol**! A2A is an open, standardized protocol that enables seamless interoperability and collaboration between AI agents across all frameworks and vendors.\n\n---\n\n## Recent News & Blog Posts\n\nStay up-to-date with the latest announcements, tutorials, and insights from the A2A team and our community.\n\n- **[Announcing Agent Payments Protocol (AP2)](https://cloud.google.com/blog/products/ai-machine-learning/announcing-agent-payments-protocol-ap2)** - *September 16*\n- **[A2A Extensions Empowering Custom Agent Functionality](https://developers.googleblog.com/en/a2a-extensions-empowering-custom-agent-functionality/)** - *September 9*\n- **[A2A protocol: Demystifying Tasks vs Messages](https://discuss.google.dev/t/a2a-protocol-demystifying-tasks-vs-messages/255879)** - *August 18*\n- **[End-to-end evaluation of multi-agent systems on Vertex AI](https://discuss.google.dev/t/end-to-end-evaluation-of-multi-agent-systems-on-vertex-ai-with-cloud-run-deployment-for-a2a-agents/250552)** - *August 7*\n- **[Agent2Agent (A2A) protocol is getting an upgrade](https://cloud.google.com/blog/products/ai-machine-learning/agent2agent-protocol-is-getting-an-upgrade?e=48754805)** - *July 26*\n\n---\n\n## Use Case Highlights\n\nA2A unlocks powerful new ways for AI agents to collaborate and solve complex problems. Here are a few examples of what's possible:\n\n- **Multi-Agent Workflows:** Chain specialized agents together to automate complex processes, like candidate sourcing for hiring or streamlining supply chain logistics.\n- **Agent Marketplaces:** Create platforms where agents can discover and utilize the capabilities of other agents from different providers.\n- **Cross-Platform Integration:** Connect agents built on different frameworks—like LangGraph, BeeAI, and more—to work together seamlessly.\n- **Evaluating Multi-Agent Systems:** Use frameworks like Vertex AI to assess the performance and success of collaborative agent trajectories.\n\n---\n\n## Community Spotlight\n\n### Featured Contributions\n\nA2A is an open-source protocol, and we thrive on community contributions. A huge thank you to everyone who has helped build and improve A2A! Here are some recent highlights:\n\n- [Python Quickstart Tutorial (PR#202)](https://github.com/a2aproject/A2A/pull/202)\n- [LlamaIndex sample implementation (PR#179)](https://github.com/a2aproject/A2A/pull/179)\n- [Autogen sample server (PR#232)](https://github.com/a2aproject/A2A/pull/232)\n- [AG2 + MCP example (PR#230)](https://github.com/a2aproject/A2A/pull/230)\n- [PydanticAI example (PR#127)](https://github.com/a2aproject/A2A/pull/127)\n\n### The Word on the Street\n\nThe launch of A2A has sparked lively discussions and positive reactions across various social and video platforms.\n\n- **Microsoft's Semantic Kernel:** Asha Sharma, Head of AI Platform Product at Microsoft, [announced on LinkedIn](https://www.linkedin.com/posts/aboutasha_a2a-ugcPost-7318649411704602624-0C_8) that \"Semantic Kernel now speaks A2A,\" enabling instant, secure interoperability.\n- **Matt Pocock's Diagramming:** Well-known developer educator Matt Pocock [shared diagrams on X](https://x.com/mattpocockuk/status/1910002033018421400) explaining the A2A protocol, which were liked and reposted hundreds of times.\n- **Craig McLuckie's \"Hot Take\":** Craig McLuckie shared his thoughts on [LinkedIn](https://www.linkedin.com/posts/craigmcluckie_hot-take-on-agent2agent-vs-mcp-google-just-activity-7315939233792176128-4rGQ), highlighting A2A's focus on interactions *between* agentic systems as a sensible approach.\n- **Zachary Huang's Deep Dive:** In his [YouTube video](https://www.youtube.com/watch?v=wrCF8MoXC_I), Zachary explains how A2A complements MCP, with A2A handling communication between agents and MCP connecting agents to tools.\n\n---\n\n## A2A Integrations\n\nThese agentic frameworks have built-in A2A integration, making it easy to get started:\n\n- [Agent Development Kit (ADK)](https://google.github.io/adk-docs/a2a/)\n- [Agno](https://docs.agno.com/agent-os/interfaces/a2a/introduction)\n- [AG2](https://docs.ag2.ai/latest/docs/user-guide/a2a/)\n- [BeeAI Framework](https://framework.beeai.dev/integrations/a2a)\n- [CrewAI](https://docs.crewai.com/en/learn/a2a-agent-delegation)\n- [Hector](https://github.com/kadirpekel/hector)\n- [LangGraph](https://docs.langchain.com/langsmith/server-a2a)\n- [LiteLLM](https://docs.litellm.ai/docs/a2a)\n- [Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/user-guide/agents/agent-types/a2a-agent)\n- [Pydantic AI](https://ai.pydantic.dev/a2a/)\n- [Slide (Tyler)](https://slide.mintlify.app/guides/a2a-integration)\n- [Strands Agents](https://strandsagents.com/latest/documentation/docs/user-guide/concepts/multi-agent/agent-to-agent/)\n\n## The Future is Interoperable\n\nThe excitement surrounding Google's A2A protocol clearly indicates a strong belief in its potential to revolutionize multi-agent AI systems. By providing a standardized way for AI agents to communicate and collaborate, A2A is poised to unlock new levels of automation and innovation. As enterprises increasingly adopt AI agents, A2A represents a crucial step towards realizing the full power of interconnected AI ecosystems.\n\n**Join the growing community building the future of AI interoperability with A2A!**\n"
  },
  {
    "path": "docs/definitions.md",
    "content": "# A2A Definition/Schema\n\n=== \"Protobuf\"\n    <h3>Protobuf</h3>\n    The normative A2A protocol definition in Protocol Buffers (proto3 syntax).\n    This is the source of truth for the A2A protocol specification.\n\n    <h3>Download</h3>\n\n    You can download the proto file directly: [`a2a.proto`](spec/a2a.proto)\n\n    <h3>Definition</h3>\n\n    ```protobuf\n    --8<-- \"docs/spec/a2a.proto\"\n    ```\n\n=== \"JSON\"\n    <h3>JSON</h3>\n    The A2A protocol JSON Schema definition (JSON Schema 2020-12 compliant).\n    This schema is automatically generated from the protocol buffer definitions and bundled into a single file with all message definitions.\n\n    <h3>Download</h3>\n\n    You can download the schema file directly: [`a2a.json`](spec/a2a.json)\n\n    <h3>Definition</h3>\n\n    ```json\n    --8<-- \"docs/spec/a2a.json\"\n    ```\n"
  },
  {
    "path": "docs/index.md",
    "content": "---\nhide:\n  - toc\n---\n\n<!-- markdownlint-disable MD041 -->\n<div style=\"text-align: center;\">\n  <div class=\"centered-logo-text-group\">\n    <img src=\"assets/a2a-logo-black.svg\" alt=\"Agent2Agent Protocol Logo\" width=\"100\">\n    <h1>Agent2Agent (A2A) Protocol</h1>\n  </div>\n</div>\n\n## What is A2A Protocol?\n\nWelcome to the **official documentation** for the **Agent2Agent (A2A) Protocol**, an open standard designed to enable seamless communication and collaboration between AI agents.\n\nOriginally developed by Google and now donated to the Linux Foundation, A2A provides the definitive common language for agent interoperability in a world where agents are built using diverse frameworks and by different vendors.\n\n!!! abstract \"\"\n    Build with\n    **[![ADK Logo](https://google.github.io/adk-docs/assets/agent-development-kit.png){class=\"twemoji lg middle\"} ADK](https://google.github.io/adk-docs/)** _(or any framework)_,\n    equip with **[![MCP Logo](https://modelcontextprotocol.io/mcp.png){class=\"twemoji lg middle\"} MCP](https://modelcontextprotocol.io)** _(or any tool)_,\n    and communicate with\n    **![A2A Logo](./assets/a2a-logo-black.svg){class=\"twemoji lg middle\"} A2A**,\n    to remote agents, local agents, and humans.\n\n## Get started with A2A\n\n<div class=\"grid cards\" markdown>\n\n- :material-play-circle:{ .lg .middle } **Video** Intro in <8 min\n\n    <iframe class=\"video-container\" src=\"https://www.youtube.com/embed/Fbr_Solax1w?si=QxPMEEiO5kLr5_0F\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>\n\n- :material-play-circle:{ .lg .middle } **Course** [DeepLearning.AI](https://deeplearning.ai) - Intro to A2A\n\n    [![A2A DeepLearning.AI](https://img.youtube.com/vi/4gYm0Rp7VHc/maxresdefault.jpg)](https://goo.gle/dlai-a2a)\n\n- :material-book-open:{ .lg .middle } **Read the Introduction**\n\n    Understand the core ideas behind A2A.\n\n    [:octicons-arrow-right-24: What is A2A?](./topics/what-is-a2a.md)\n\n    [:octicons-arrow-right-24: Key Concepts](./topics/key-concepts.md)\n\n- :material-file-document-outline:{ .lg .middle } **Dive into the Specification**\n\n    Explore the detailed technical definition of the A2A protocol.\n\n    [:octicons-arrow-right-24: Protocol Specification](./specification.md)\n\n- :material-application-cog-outline:{ .lg .middle } **Follow the Tutorials**\n\n    Build your first A2A-compliant agent with our step-by-step Python quickstart.\n\n    [:octicons-arrow-right-24: Python Tutorial](./tutorials/python/1-introduction.md)\n\n    [:octicons-arrow-right-24: Walkthrough with AI Agent Frameworks](https://github.com/holtskinner/A2AWalkthrough)\n\n- :material-code-braces:{ .lg .middle } **Explore Code Samples**\n\n    See A2A in action with sample clients, servers, and agent framework integrations.\n\n    [:fontawesome-brands-github: GitHub Samples](https://github.com/a2aproject/a2a-samples)\n\n- :material-code-braces:{ .lg .middle } **Download the Official SDKs**\n\n    [:fontawesome-brands-python: Python](https://github.com/a2aproject/a2a-python)\n\n    [:fontawesome-brands-js: JavaScript](https://github.com/a2aproject/a2a-js)\n\n    [:fontawesome-brands-java: Java](https://github.com/a2aproject/a2a-java)\n\n    [:octicons-code-24: C#/.NET](https://github.com/a2aproject/a2a-dotnet)\n\n    [:fontawesome-brands-golang: Golang](https://github.com/a2aproject/a2a-go)\n\n</div>\n\n## Why use the A2A Protocol\n\n<div style=\"text-align:center\">\n\n```mermaid\ngraph LR\n    User(🧑‍💻 User) <--> ClientAgent(🤖 Client Agent)\n    ClientAgent --> A2A1(**↔️ A2A**) --> RemoteAgent1(🤖 Remote Agent 1)\n    ClientAgent --> A2A2(**↔️ A2A**) --> RemoteAgent2(🤖 Remote Agent 2)\n\n    style User fill:#fdebd0,stroke:#e67e22,stroke-width:2px\n    style ClientAgent fill:#d6eaf8,stroke:#3498db,stroke-width:2px\n    style RemoteAgent1 fill:#d6eaf8,stroke:#3498db,stroke-width:2px\n    style RemoteAgent2 fill:#d6eaf8,stroke:#3498db,stroke-width:2px\n    style A2A1 fill:#ebedef,stroke:#909497,stroke-width:2px\n    style A2A2 fill:#ebedef,stroke:#909497,stroke-width:2px\n```\n\n</div>\n\n<div class=\"grid cards\" markdown>\n\n- :material-account-group-outline:{ .lg .middle } **Interoperability**\n\n    Connect agents built on different platforms (LangGraph, CrewAI, Semantic Kernel, custom solutions) to create powerful, composite AI systems.\n\n- :material-lan-connect:{ .lg .middle } **Complex Workflows**\n\n    Enable agents to delegate sub-tasks, exchange information, and coordinate actions to solve complex problems that a single agent cannot.\n\n- :material-shield-key-outline:{ .lg .middle } **Secure & Opaque**\n\n    Agents interact without needing to share internal memory, tools, or proprietary logic, ensuring security and preserving intellectual property.\n\n</div>\n\n---\n\n## How does A2A work with MCP?\n\n![A2A MCP Graphic](assets/a2a-mcp-readme.png){width=\"60%\"}\n{style=\"text-align: center; margin-bottom:1em; margin-top:1em;\"}\n\nA2A and [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) are complementary standards for building robust agentic applications:\n\n- **Model Context Protocol (MCP)**: Provides [agent-to-tool communication](https://cloud.google.com/discover/what-is-model-context-protocol). It's a complementary standard that standardizes how an agent connects to its tools, APIs, and resources to get information.\n- **IBM ACP**: [Incorporated into the A2A Protocol](https://github.com/orgs/i-am-bee/discussions/5)\n- **Cisco agntcy**: A framework that provides components to the Internet of Agents with discovery, group communication, identity and observability and leverages A2A and MCP for agent communication and tool calling.\n- **A2A**: Provides agent-to-agent communication. As a universal, decentralized standard, A2A acts as the public internet that allows [ai agents](https://cloud.google.com/discover/what-are-ai-agents)—including those using MCP, or built with frameworks like agntcy—to interoperate, collaborate, and share their findings.\n"
  },
  {
    "path": "docs/llms.txt",
    "content": "# A2A (Agent2Agent) Protocol High-Level Summary\n\nThis project defines the **Agent2Agent (A2A) protocol**, an open standard initiated by Google and donated to the Linux Foundation, designed to enable communication and interoperability between disparate AI agent systems. It allows agents built on different frameworks (e.g., LangGraph, CrewAI, Google ADK, Genkit) to discover each other's capabilities, negotiate interaction modes, and collaborate on tasks securely without exposing internal state.\n\nThe repository contains:\n1.  **Formal Specification:** Protobuf definitions (`specification/a2a.proto`) and JSON Schema (`specification/json/a2a.json`).\n2.  **Core Concepts Documentation:** Guides on discovery, task lifecycle, streaming, and enterprise-readiness (`docs/topics/`).\n3.  **SDKs:** Production-ready SDKs for Python, JS/TS, Java, Go, and .NET.\n4.  **Sample Implementations:** Real-world examples integrated with various agent frameworks.\n\n## Key Files & Directories\n\n- `specification/a2a.proto`: The authoritative Protobuf definition of the protocol.\n- `docs/topics/`: Detailed conceptual guides (Discovery, Lifecycle, Security, etc.).\n- `docs/tutorials/`: Step-by-step guides for building A2A-compliant agents.\n- `scripts/`: Utility scripts for building documentation and formatting.\n\n# A2A (Agent2Agent) Protocol Reference\n\n## 1. Overview\n\n- **Purpose:** Open standard for agent-to-agent interoperability.\n- **Communication Bindings:** Supports JSON-RPC 2.0 (HTTP/SSE), gRPC, and HTTP/REST.\n- **Key Concepts:** Agent Cards for discovery, Task-based execution, Multi-turn Messages, and Artifact outputs.\n\n## 2. Core Data Objects\n\n### 2.1 AgentCard (`/.well-known/agent-card.json`)\nDescribes an agent's identity and capabilities.\n- `name`, `description`, `version`: Identity metadata.\n- `supported_interfaces`: List of `AgentInterface` (URL, protocol binding, tenant, protocol version).\n- `capabilities`: `streaming`, `push_notifications`, `extended_agent_card`, `extensions`.\n- `skills`: List of `AgentSkill` (id, name, description, tags, examples).\n- `security_schemes`, `security_requirements`: Authentication configuration (API Key, OAuth2, OIDC, mTLS, HTTP Auth).\n- `default_input_modes`, `default_output_modes`: Supported MIME types (e.g., `text/plain`, `application/json`).\n\n### 2.2 Task\nRepresents a stateful unit of work.\n- `id`, `context_id`: Identifiers for the task and its conversational context.\n- `status`: `TaskStatus` (state, message, timestamp).\n- `artifacts`: List of `Artifact` (outputs produced).\n- `history`: List of `Message` (conversation history).\n- `metadata`: Custom structured data.\n\n### 2.3 TaskState (Enum)\n- `SUBMITTED`, `WORKING`, `COMPLETED` (terminal), `FAILED` (terminal), `CANCELED` (terminal), `REJECTED` (terminal), `INPUT_REQUIRED` (interrupted), `AUTH_REQUIRED` (interrupted).\n\n### 2.4 Message & Part\n- `Message`: Contains `message_id`, `role` (USER/AGENT), `parts`, `context_id`, `task_id`, `reference_task_ids`.\n- `Part`: Union type containing `text`, `raw` (bytes), `url`, or `data` (JSON). Includes `media_type` and `filename`.\n\n### 2.5 Artifact\n- A tangible output from a task, containing one or more `Part`s and metadata.\n\n## 3. RPC Methods\n\n| Method | Request | Response | Description |\n| :--- | :--- | :--- | :--- |\n| `SendMessage` | `SendMessageRequest` | `SendMessageResponse` | Initiates or continues a task. |\n| `SendStreamingMessage` | `SendMessageRequest` | `stream StreamResponse` | Sends message and receives real-time SSE updates. |\n| `GetTask` | `GetTaskRequest` | `Task` | Retrieves current task state. |\n| `ListTasks` | `ListTasksRequest` | `ListTasksResponse` | Filter and paginate tasks. |\n| `CancelTask` | `CancelTaskRequest` | `Task` | Requests cancellation of a task. |\n| `SubscribeToTask` | `SubscribeToTaskRequest` | `stream StreamResponse` | Subscribes to updates for an existing task. |\n| `GetExtendedAgentCard` | `GetExtendedAgentCardRequest` | `AgentCard` | Fetches detailed metadata after authentication. |\n\n### 3.1 Streaming Events (`StreamResponse`)\nStreams return a payload containing one of:\n- `task`: Full task state.\n- `message`: A discrete message part.\n- `status_update`: `TaskStatusUpdateEvent` (taskId, contextId, status).\n- `artifact_update`: `TaskArtifactUpdateEvent` (taskId, artifact, append, last_chunk).\n\n## 4. Security & Authentication\n- **Transport:** HTTPS/TLS required for production.\n- **Authentication:** Declared in `AgentCard` via OpenAPI-style security schemes.\n- **Push Notifications:** Webhooks secured via authentication tokens/schemes configured per task.\n\n## 5. Implementation Status\n- **Official SDKs:** Python (`a2a-sdk`), JS/TS (`@a2a-js/sdk`), Java, Go, C#/.NET.\n- **Integrations:** LangGraph, CrewAI, Google ADK, Genkit, AG2, BeeAI, PydanticAI, and more.\n"
  },
  {
    "path": "docs/partners.md",
    "content": "# Partners\n\nBelow is a list of partners (and a link to their A2A announcement or blog post,\nif available) who are part of the A2A community and are helping build, codify,\nand adopt A2A as the standard protocol for AI agents to communicate and\ncollaborate effectively with each other and with users.\n\n- [A2A Net](https://a2anet.com)\n- [Accelirate Inc](https://www.accelirate.com)\n- [Accenture](https://www.accenture.com)\n- [Activeloop](https://www.activeloop.ai/)\n- [Adobe](https://www.adobe.com)\n- [AG2AI](https://ag2.ai)\n- [AgentTrust](https://agenttrust.ai/)\n- [AI21 Labs](https://www.ai21.com/)\n- [AI71](https://ai71.ai/)\n- [Aisera](https://aisera.com/)\n- [AliCloud](http://www.alibabacloud.com)\n- [Almawave.it](https://www.almawave.com/it/)\n- [AmikoNet](https://amikonet.ai)\n- [ArcBlock](http://www.arcblock.io)\n- [Arize](https://arize.com/blog/arize-ai-and-future-of-agent-interoperability-embracing-googles-a2a-protocol/)\n- [Articul8](https://www.articul8.ai/blog/unleashing-the-next-frontier-of-enterprise-ai-introducing-model-mesh-dock-and-inter-lock-and-our-a2-a-partnership-with-google)\n- [ask-ai.com](https://ask-ai.com)\n- [Atlassian](https://www.atlassian.com)\n- [Auth0](https://auth0.com/blog/auth0-google-a2a/)\n- [Autodesk](https://www.autodesk.com)\n- [AWS](https://aws.amazon.com/)\n- [Beekeeper](http://beekeeper.io)\n- [BCG](https://www.bcg.com)\n- [Block Inc](https://block.xyz/)\n- [Bloomberg LP](https://techatbloomberg.com/)\n- [BLUEISH Inc](https://www.blueish.co.jp/)\n- [BMC Software Inc](https://www.bmc.com/it-solutions/bmc-helix.html)\n- [Boomi](https://boomi.com/)\n- [Box](https://www.box.com)\n- [Bridge2Things Automation Process GmbH](http://bridge2things.at)\n- [Cafe 24](https://www.cafe24corp.com/en/company/about)\n- [C3 AI](https://c3.ai)\n- [Capgemini](https://www.capgemini.com)\n- [Chronosphere](https://chronosphere.io)\n- [Cisco](https://www.cisco.com/)\n- [Codimite PTE LTD](https://codimite.ai/)\n- [Cognigy](https://www.cognigy.com/)\n- [Cognizant](https://www.cognizant.com)\n- [Cohere](https://cohere.com)\n- [Collibra](https://www.collibra.com)\n- [Confluent](https://developer.confluent.io)\n- [Contextual](https://contextual.ai)\n- [Cotality](https://cotality.com) (fka Corelogic)\n- [Crubyt](https://www.crubyt.com)\n- [Cyderes](http://www.cyderes.com)\n- [Datadog](https://www.datadoghq.com)\n- [DataRobot](https://www.datarobot.com)\n- [DataStax](https://www.datastax.com)\n- [Decagon.ai](https://decagon.ai)\n- [Deloitte](https://www.prnewswire.com/news-releases/deloitte-expands-alliances-with-google-cloud-and-servicenow-to-accelerate-agentic-ai-adoption-in-the-enterprise-302423941.html)\n- [Devnagri](https://devnagri.com)\n- [Deutsche Telekom](https://www.telekom.com/en)\n- [Dexter Tech Labs](http://www.dextertechlabs.com)\n- [Distyl.ai](https://distyl.ai)\n- [Elastic](https://www.elastic.co)\n- [Ema.co](https://ema.co)\n- [EPAM](https://www.epam.com)\n- [Eviden (Atos Group)](https://atos.net/)\n- [fractal.ai](https://fractal.ai/new)\n- [GenAI Nebula9.ai Solutions Pvt Ltd](http://nebula9.ai)\n- [Glean](https://www.glean.com)\n- [Global Logic](https://www.globallogic.com/)\n- [Gravitee](https://www.gravitee.io/)\n- [GrowthLoop](https://growthloop.com)\n- [Guru](http://www.getguru.com)\n- [Harness](https://harness.io)\n- [HCLTech](https://www.hcltech.com)\n- [Headwaters](https://www.headwaters.co.jp)\n- [Hellotars](https://hellotars.com)\n- [Hexaware](https://hexaware.com/)\n- [HUMAN](https://www.humansecurity.com/)\n- [IBM Research](https://lfaidata.foundation/communityblog/2025/08/29/acp-joins-forces-with-a2a-under-the-linux-foundations-lf-ai-data/)\n- [Incorta](https://www.incorta.com)\n- [Infinitus](https://www.infinitus.ai/)\n- [InfoSys](https://www.infosys.com)\n- [Intuit](https://www.intuit.com)\n- [Iron Mountain](https://www.ironmountain.com/)\n- [JamJet](https://github.com/jamjet-labs/jamjet)\n- [JetBrains](https://www.jetbrains.com)\n- [JFrog](https://jfrog.com)\n- [Kakao](https://www.kakaocorp.com)\n- [King's College London](https://www.kcl.ac.uk/informatics)\n- [KPMG](https://kpmg.com/us/en/media/news/kpmg-google-cloud-alliance-expansion-agentspace-adoption.html)\n- [Kyndryl](http://www.kyndryl.com)\n- [LabelBox](https://labelbox.com)\n- [LangChain](https://www.langchain.com)\n- [LG CNS](http://www.lgcns.com)\n- [Livex.ai](https://livex.ai)\n- [LlamaIndex](https://x.com/llama_index/status/1912949446322852185)\n- [LTIMindTtree](https://www.ltimindtree.com)\n- [Lumeris](https://www.lumeris.com/)\n- [Lyzr.ai](https://lyzr.ai)\n- [Magyar Telekom](https://www.telekom.hu/)\n- [MasOrange](https://masorange.es/en/)\n- [Microsoft](https://www.microsoft.com/en-us/microsoft-cloud/blog/2025/05/07/empowering-multi-agent-apps-with-the-open-agent2agent-a2a-protocol/)\n- [MindsDB](https://mindsdb.com/blog/mindsdb-now-supports-the-agent2agent-(a2a)-protocol)\n- [McKinsey](https://www.mckinsey.com)\n- [MongoDB](https://www.mongodb.com)\n- [Monite](https://monite.com/)\n- [Neo4j](https://neo4j.com)\n- [New Relic](https://newrelic.com)\n- [Nisum](http://www.nisum.com)\n- [Noorle Inc](http://www.noorle.com)\n- [NTT DATA](https://www.nttdata.com)\n- [Optimizely Inc](https://www.optimizely.com/)\n- [Oracle / NetSuite](https://www.oracle.com/netsuite)\n- [Palo Alto Networks](https://www.paloaltonetworks.com/)\n- [PancakeAI](https://www.pancakeai.tech/)\n- [ParkourSC](https://www.parkoursc.com/)\n- [Pendo](https://www.pendo.io)\n- [PerfAI.ai](https://perfai.ai)\n- [Personal AI](https://personal.ai)\n- [Pinchwork](https://pinchwork.dev)\n- [Poppulo](https://www.poppulo.com/blog/poppulo-google-a2a-the-future-of-workplace-communication)\n- [Productive Edge](https://www.productiveedge.com/)\n- [Proofs](https://proofs.io)\n- [Publicis Sapient](https://www.publicissapient.com/)\n- [PWC](https://www.pwc.com)\n- [Quantiphi](https://www.quantiphi.com)\n- [Radix](https://radix.website/)\n- [RagaAI Inc](https://raga.ai/)\n- [Red Hat](https://www.redhat.com)\n- [Reltio Inc](http://www.reltio.com)\n- [S&P](https://www.spglobal.com)\n- [Sage](https://www.sage.com/en-us/)\n- [Salesforce](https://www.salesforce.com)\n- [SAP](https://news.sap.com/2025/04/sap-google-cloud-enterprise-ai-open-agent-collaboration-model-choice-multimodal-intelligence/)\n- [Sayone Technologies](https://www.sayonetech.com/)\n- [ServiceNow](https://www.servicenow.com)\n- [Siemens AG](https://siemens.com/)\n- [SoftBank Corp](https://www.softbank.jp/en//)\n- [Solace](https://solace.com/products/agent-mesh/)\n- [Solo.io](https://www.solo.io/)\n- [Stacklok, Inc](https://stacklok.com)\n- [Supertab](https://www.supertab.co/post/supertab-connect-partners-with-google-cloud-to-enable-ai-agents)\n- [Suzega](https://suzega.com/)\n- [TCS](https://www.tcs.com)\n- [Tech Mahindra](https://www.techmahindra.com/)\n- [Telefonica](https://www.telefonica.com/)\n- [Test Innovation Technology](https://www.test-it.com)\n- [the artinet project](https://artinet.io/)\n- [Think41](http://www.think41.com)\n- [Thoughtworks](https://www.thoughtworks.com/)\n- [Tredence](http://www.tredence.com)\n- [Two Tall Totems Ltd. DBA TTT Studios](https://ttt.studio)\n- [Typeface](https://typeface.ai)\n- [UKG](https://www.ukg.com)\n- [UiPath](https://www.uipath.com/newsroom/uipath-launches-first-enterprise-grade-platform-for-agentic-automation)\n- [Upwork, Inc.](https://www.upwork.com/)\n- [Ushur, Inc.](http://ushur.ai)\n- [Valle AI](http://www.valleai.com.br)\n- [Valtech](https://www.valtech.com/)\n- [Vervelo](https://www.vervelo.com/)\n- [VoltAgent](https://voltagent.dev/)\n- [Weights & Biases](https://wandb.ai/wandb_fc/product-announcements-fc/reports/Powering-Agent-Collaboration-Weights-Biases-Partners-with-Google-Cloud-on-Agent2Agent-Interoperability-Protocol---VmlldzoxMjE3NDg3OA)\n- [Wipro](https://www.wipro.com)\n- [Workday](https://www.workday.com)\n- [WritBase](https://github.com/Writbase/writbase)\n- [Writer](https://writer.com)\n- [Zenity](https://zenity.io)\n- [Zeotap](https://www.zeotap.com)\n- [Zocket Technologies , Inc.](https://zocket.ai)\n- [Zoom](https://www.zoom.us)\n- [zyprova](http://www.zyprova.com)\n"
  },
  {
    "path": "docs/roadmap.md",
    "content": "# A2A protocol roadmap\n\n**Last updated:** March 10, 2026\n\n## Near-term initiatives\n\n- Release `1.0` version of the protocol which represents significant maturation of the protocol with enhanced clarity, stronger specifications, and important structural improvements.\n- [What's New in A2A Protocol v1.0](https://a2a-protocol.org/latest/whats-new-v1/) has further updates. \n- Continue to support additional [A2A extensions](topics/extensions.md) with SDK support. \n- Prioritize community-led development with standardized processes for contributing to the specification, SDKs and tooling.\n\nTo review recent protocol changes see [Release Notes](https://github.com/a2aproject/A2A/releases).\n\n## Longer term (3-6 month period) roadmap\n\n### Governance\n\nThe TSC looks to streamline opportunities for contribution through [A2A extensions](topics/extensions.md), [Samples](https://github.com/a2aproject/a2a-samples) and participation.\n\n\n### Validation\n\nAs the A2A ecosystem matures, it becomes critical for the A2A community to have tools to validate their agents. The community has launched two efforts to help with validation. Learn more about [A2A Inspector](https://github.com/a2aproject/a2a-inspector) and the [A2A Protocol Technology Compatibility Kit](https://github.com/a2aproject/a2a-tck) (TCK).\n\n### SDKs\n\nA2A Project currently hosts SDKs in five languages (Python, Go, JS, Java, .NET).\n\n### Community best practices\n\nAs companies and individuals deploy A2A systems at an increasing pace, we are looking to accelerate the learning of the community by collecting and sharing the best practices and success stories that A2A enabled.\n"
  },
  {
    "path": "docs/robots.txt",
    "content": "# Allow all crawlers to access the entire site.\nUser-agent: *\nAllow: /\n\n# Generative AI and LLM crawlers\nUser-agent: GPTBot\nAllow: /\n\nUser-agent: ChatGPT-User\nAllow: /\n\nUser-agent: ClaudeBot\nAllow: /\n\nUser-agent: Claude-Web\nAllow: /\n\nUser-agent: PerplexityBot\nAllow: /\n\nUser-agent: FacebookBot\nAllow: /\n\nUser-agent: Applebot\nAllow: /\n\nUser-agent: PerplexityBot\nAllow: /\n\nUser-agent: Google-Extended\nAllow: /\n\nUser-agent: GoogleOther\nAllow: /\n\nUser-agent: DuckAssistBot\nAllow: /\n\nSitemap: https://a2a-protocol.org/latest/sitemap.xml\n"
  },
  {
    "path": "docs/sdk/index.md",
    "content": "# A2A SDK\n\nA2A currently hosts SDKs in five languages (Python, Go, JS, Java, .NET).\n\nThe following table lists the supported languages and their stability.\n\n| Language   | Support  |\n| :--------- | :------- |\n| Python     | [Stable](https://github.com/a2aproject/a2a-python) |\n| Go         | [Stable](https://github.com/a2aproject/a2a-go)     |\n| Java       | [Stable](https://github.com/a2aproject/a2a-java)   |\n| JavaScript | [Stable](https://github.com/a2aproject/a2a-js)     |\n| C#/.NET    | [Stable](https://github.com/a2aproject/a2a-dotnet) |\n\nThe A2A project provides numerous samples across supported languages in the [a2a-samples repository](https://github.com/a2aproject/a2a-samples).\n"
  },
  {
    "path": "docs/sdk/python.md",
    "content": "---\nredirect: python/api/index.html\n---\n\n# Python SDK\n\nRedirecting to [API reference](python/api/index.html)...\n"
  },
  {
    "path": "docs/specification.md",
    "content": "# Agent2Agent (A2A) Protocol Specification\n\n??? note \"**Latest Released Version** [`1.0.0`](https://a2a-protocol.org/v1.0.0/specification)\"\n\n    **Previous Versions**\n\n    - [`0.3.0`](https://a2a-protocol.org/v0.3.0/specification)\n    - [`0.2.6`](https://a2a-protocol.org/v0.2.6/specification)\n    - [`0.1.0`](https://a2a-protocol.org/v0.1.0/specification)\n\nSee [Release Notes](https://github.com/a2aproject/A2A/releases) for changes made between versions.\n\n## 1. Introduction\n\nThe Agent2Agent (A2A) Protocol is an open standard designed to facilitate communication and interoperability between independent, potentially opaque AI agent systems. In an ecosystem where agents might be built using different frameworks, languages, or by different vendors, A2A provides a common language and interaction model.\n\nThis document provides the detailed technical specification for the A2A protocol. Its primary goal is to enable agents to:\n\n- Discover each other's capabilities.\n- Negotiate interaction modalities (text, files, structured data).\n- Manage collaborative tasks.\n- Securely exchange information to achieve user goals **without needing access to each other's internal state, memory, or tools.**\n\n### 1.1. Key Goals of A2A\n\n- **Interoperability:** Bridge the communication gap between disparate agentic systems.\n- **Collaboration:** Enable agents to delegate tasks, exchange context, and work together on complex user requests.\n- **Discovery:** Allow agents to dynamically find and understand the capabilities of other agents.\n- **Flexibility:** Support various interaction modes including synchronous request/response, streaming for real-time updates, and asynchronous push notifications for long-running tasks.\n- **Security:** Facilitate secure communication patterns suitable for enterprise environments, relying on standard web security practices.\n- **Asynchronicity:** Natively support long-running tasks and interactions that may involve human-in-the-loop scenarios.\n\n### 1.2. Guiding Principles\n\n- **Simple:** Reuse existing, well-understood standards (HTTP, JSON-RPC 2.0, Server-Sent Events).\n- **Enterprise Ready:** Address authentication, authorization, security, privacy, tracing, and monitoring by aligning with established enterprise practices.\n- **Async First:** Designed for (potentially very) long-running tasks and human-in-the-loop interactions.\n- **Modality Agnostic:** Support exchange of diverse content types including text, audio/video (via file references), structured data/forms, and potentially embedded UI components (e.g., iframes referenced in parts).\n- **Opaque Execution:** Agents collaborate based on declared capabilities and exchanged information, without needing to share their internal thoughts, plans, or tool implementations.\n\nFor a broader understanding of A2A's purpose and benefits, see [What is A2A?](./topics/what-is-a2a.md).\n\n### 1.3. Specification Structure\n\nThis specification is organized into three distinct layers that work together to provide a complete protocol definition:\n\n```mermaid\ngraph TB\n    subgraph L1 [\"A2A Data Model\"]\n        direction LR\n        A[Task] ~~~ B[Message] ~~~ C[AgentCard] ~~~ D[Part] ~~~ E[Artifact] ~~~ F[Extension]\n    end\n\n    subgraph L2 [\"A2A Operations\"]\n        direction LR\n        G[Send Message] ~~~ H[Stream Message] ~~~ I[Get Task] ~~~ J[List Tasks] ~~~ K[Cancel Task] ~~~ L[Get Agent Card]\n    end\n\n    subgraph L3 [\"Protocol Bindings\"]\n        direction LR\n        M[JSON-RPC Methods] ~~~ N[gRPC RPCs] ~~~ O[HTTP/REST Endpoints] ~~~ P[Custom Bindings]\n    end\n\n    %% Dependencies between layers\n    L1 --> L2\n    L2 --> L3\n\n\n    style A fill:#e1f5fe\n    style B fill:#e1f5fe\n    style C fill:#e1f5fe\n    style D fill:#e1f5fe\n    style E fill:#e1f5fe\n    style F fill:#e1f5fe\n\n    style G fill:#f3e5f5\n    style H fill:#f3e5f5\n    style I fill:#f3e5f5\n    style J fill:#f3e5f5\n    style K fill:#f3e5f5\n    style L fill:#f3e5f5\n\n    style M fill:#e8f5e8\n    style N fill:#e8f5e8\n    style O fill:#e8f5e8\n\n    style L1 fill:#f0f8ff,stroke:#333,stroke-width:2px\n    style L2 fill:#faf0ff,stroke:#333,stroke-width:2px\n    style L3 fill:#f0fff0,stroke:#333,stroke-width:2px\n```\n\n**Layer 1: Canonical Data Model** defines the core data structures and message formats that all A2A implementations must understand. These are protocol agnostic definitions expressed as Protocol Buffer messages.\n\n**Layer 2: Abstract Operations** describes the fundamental capabilities and behaviors that A2A agents must support, independent of how they are exposed over specific protocols.\n\n**Layer 3: Protocol Bindings** provides concrete mappings of the abstract operations and data structures to specific protocol bindings (JSON-RPC, gRPC, HTTP/REST), including method names, endpoint patterns, and protocol-specific behaviors.\n\nThis layered approach ensures that:\n\n- Core semantics remain consistent across all protocol bindings\n- New protocol bindings can be added without changing the fundamental data model\n- Developers can reason about A2A operations independently of binding concerns\n- Interoperability is maintained through shared understanding of the canonical data model\n\n### 1.4 Normative Content\n\nIn addition to the protocol requirements defined in this document, the file `spec/a2a.proto` is the single authoritative normative definition of all protocol data objects and request/response messages. A generated JSON artifact (`spec/a2a.json`, produced at build time and not committed) MAY be published for convenience to tooling and the website, but it is a non-normative build artifact. SDK language bindings, schemas, and any other derived forms **MUST** be regenerated from the proto (directly or via code generation) rather than edited manually.\n\n**Change Control and Deprecation Lifecycle:**\n\n- Introduction: When a proto message or field is renamed, the new name is added while existing published names remain available, but marked deprecated, until the next major release.\n- Documentation: Migration guidance MUST be provided via an ancillary document when introducing major breaking changes.\n- Anchors: Legacy documentation anchors MUST be preserved (as hidden HTML anchors) to avoid breaking inbound links.\n- SDK/Schema Aliases: SDKs and JSON Schemas SHOULD provide deprecated alias types/definitions to maintain backward compatibility.\n- Removal: A deprecated name SHOULD NOT be removed earlier than the next major version after introduction of its replacement.\n\n**Automated Generation:**\n\nThe documentation build generates `specification/json/a2a.json` on-the-fly (the file is not tracked in source control). Future improvements may publish an OpenAPI v3 + JSON Schema bundle for enhanced tooling.\n\n**Rationale:**\n\nCentering the proto file as the normative source ensures protocol neutrality, reduces specification drift, and provides a deterministic evolution path for the ecosystem.\n\n## 2. Terminology\n\n### 2.1. Requirements Language\n\nThe keywords \"MUST\", \"MUST NOT\", \"REQUIRED\", \"SHALL\", \"SHALL NOT\", \"SHOULD\", \"SHOULD NOT\", \"RECOMMENDED\", \"MAY\", and \"OPTIONAL\" in this document are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119).\n\n### 2.2. Core Concepts\n\nA2A revolves around several key concepts. For detailed explanations, please refer to the [Key Concepts guide](./topics/key-concepts.md).\n\n- **A2A Client:** An application or agent that initiates requests to an A2A Server on behalf of a user or another system.\n- **A2A Server (Remote Agent):** An agent or agentic system that exposes an A2A-compliant endpoint, processing tasks and providing responses.\n- **Agent Card:** A JSON metadata document published by an A2A Server, describing its identity, capabilities, skills, service endpoint, and authentication requirements.\n- **Message:** A communication turn between a client and a remote agent, having a `role` (\"user\" or \"agent\") and containing one or more `Parts`.\n- **Task:** The fundamental unit of work managed by A2A, identified by a unique ID. Tasks are stateful and progress through a defined lifecycle.\n- **Part:** The smallest unit of content within a Message or Artifact. Parts can contain text, file references, or structured data.\n- **Artifact:** An output (e.g., a document, image, structured data) generated by the agent as a result of a task, composed of `Parts`.\n- **Streaming:** Real-time, incremental updates for tasks (status changes, artifact chunks) delivered via protocol-specific streaming mechanisms.\n- **Push Notifications:** Asynchronous task updates delivered via server-initiated HTTP POST requests to a client-provided webhook URL, for long-running or disconnected scenarios.\n- **Context:** An optional identifier to logically group related tasks and messages.\n- **Extension:** A mechanism for agents to provide additional functionality or data beyond the core A2A specification.\n\n## 3. A2A Protocol Operations\n\nThis section describes the core operations of the A2A protocol in a binding-independent manner. These operations define the fundamental capabilities that all A2A implementations must support, regardless of the underlying binding mechanism.\n\n### 3.1. Core Operations\n\nThe following operations define the fundamental capabilities that all A2A implementations must support, independent of the specific protocol binding used. For a quick reference mapping of these operations to protocol-specific method names and endpoints, see [Section 5.3 (Method Mapping Reference)](#53-method-mapping-reference). For detailed protocol-specific implementation details, see:\n\n- [Section 9: JSON-RPC Protocol Binding](#9-json-rpc-protocol-binding)\n- [Section 10: gRPC Protocol Binding](#10-grpc-protocol-binding)\n- [Section 11: HTTP+JSON/REST Protocol Binding](#11-httpjsonrest-protocol-binding)\n\n#### 3.1.1. Send Message\n\nThe primary operation for initiating agent interactions. Clients send a message to an agent and receive either a task that tracks the processing or a direct response message.\n\n**Inputs:**\n\n- [`SendMessageRequest`](#321-sendmessagerequest): Request object containing the message, configuration, and metadata\n\n**Outputs:**\n\n- [`Task`](#411-task): A task object representing the processing of the message, OR\n- [`Message`](#414-message): A direct response message (for simple interactions that don't require task tracking)\n\n**Errors:**\n\n- [`ContentTypeNotSupportedError`](#332-error-handling): A Media Type provided in the request's message parts is not supported by the agent.\n- [`UnsupportedOperationError`](#332-error-handling): Messages sent to Tasks that are in a terminal state (e.g., completed, canceled, rejected) cannot accept further messages.\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n**Behavior:**\n\nThe agent MAY create a new `Task` to process the provided message asynchronously or MAY return a direct `Message` response for simple interactions. The operation MUST return immediately with either task information or response message. Task processing MAY continue asynchronously after the response when a [`Task`](#411-task) is returned.\n\n#### 3.1.2. Send Streaming Message\n\nSimilar to Send Message but with real-time streaming of updates during processing.\n\n**Inputs:**\n\n- [`SendMessageRequest`](#321-sendmessagerequest): Request object containing the message, configuration, and metadata\n\n**Outputs:**\n\n- [`Stream Response`](#323-stream-response) object containing:\n    - Initial response: [`Task`](#411-task) object OR [`Message`](#414-message) object\n    - Subsequent events following a `Task` MAY include stream of [`TaskStatusUpdateEvent`](#421-taskstatusupdateevent) and [`TaskArtifactUpdateEvent`](#422-taskartifactupdateevent) objects\n- Final completion indicator\n\n**Errors:**\n\n- [`UnsupportedOperationError`](#332-error-handling): Streaming is not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`UnsupportedOperationError`](#332-error-handling): Messages sent to Tasks that are in a terminal state (e.g., completed, canceled, rejected) cannot accept further messages.\n- [`ContentTypeNotSupportedError`](#332-error-handling): A Media Type provided in the request's message parts is not supported by the agent.\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n**Behavior:**\n\nThe operation MUST establish a streaming connection for real-time updates. The stream MUST follow one of these patterns:\n\n1. **Message-only stream:** If the agent returns a [`Message`](#414-message), the stream MUST contain exactly one `Message` object and then close immediately. No task tracking or updates are provided.\n\n2. **Task lifecycle stream:** If the agent returns a [`Task`](#411-task), the stream MUST begin with the Task object, followed by zero or more [`TaskStatusUpdateEvent`](#421-taskstatusupdateevent) or [`TaskArtifactUpdateEvent`](#422-taskartifactupdateevent) objects. The stream MUST close when the task reaches a terminal state (e.g. completed, failed, canceled, rejected).\n\nThe agent MAY return a `Task` for complex processing with status/artifact updates or MAY return a `Message` for direct streaming responses without task overhead. The implementation MUST provide immediate feedback on progress and intermediate results.\n\n#### 3.1.3. Get Task\n\nRetrieves the current state (including status, artifacts, and optionally history) of a previously initiated task. This is typically used for polling the status of a task initiated with message/send, or for fetching the final state of a task after being notified via a push notification or after a stream has ended.\n\n**Inputs:**\n\n{{ proto_to_table(\"GetTaskRequest\") }}\n\nSee [History Length Semantics](#324-history-length-semantics) for details about `historyLength`.\n\n**Outputs:**\n\n- [`Task`](#411-task): Current state and artifacts of the requested task\n\n**Errors:**\n\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n#### 3.1.4. List Tasks\n\nRetrieves a list of tasks with optional filtering and pagination capabilities. This method allows clients to discover and manage multiple tasks across different contexts or with specific status criteria.\n\n**Inputs:**\n\n{{ proto_to_table(\"ListTasksRequest\") }}\n\nWhen `includeArtifacts` is false (the default), the artifacts field MUST be omitted entirely from each Task object in the response. The field should not be present as an empty array or null value. When `includeArtifacts` is true, the artifacts field should be included with its actual content (which may be an empty array if the task has no artifacts).\n\n**Outputs:**\n\n{{ proto_to_table(\"ListTasksResponse\") }}\n\nNote on `nextPageToken`: The `nextPageToken` field MUST always be present in the response. When there are no more results to retrieve (i.e., this is the final page), the field MUST be set to an empty string (\"\"). Clients should check for an empty string to determine if more pages are available.\n\n**Errors:**\n\nNone specific to this operation beyond standard protocol errors.\n\n**Behavior:**\n\nThe operation MUST return only tasks visible to the authenticated client and MUST use cursor-based pagination for performance and consistency. Tasks MUST be sorted by last update time in descending order. Implementations MUST implement appropriate authorization scoping to ensure clients can only access authorized tasks. See [Section 13.1 Data Access and Authorization Scoping](#131-data-access-and-authorization-scoping) for detailed security requirements.\n\n***Pagination Strategy:***\n\nThis method uses cursor-based pagination (via `pageToken`/`nextPageToken`) rather than offset-based pagination for better performance and consistency, especially with large datasets. Cursor-based pagination avoids the \"deep pagination problem\" where skipping large numbers of records becomes inefficient for databases. This approach is consistent with the gRPC specification, which also uses cursor-based pagination (page_token/next_page_token).\n\n***Ordering:***\n\nImplementations MUST return tasks sorted by their status timestamp time in descending order (most recently updated tasks first). This ensures consistent pagination and allows clients to efficiently monitor recent task activity.\n\n#### 3.1.5. Cancel Task\n\nRequests the cancellation of an ongoing task. The server will attempt to cancel the task, but success is not guaranteed (e.g., the task might have already completed or failed, or cancellation might not be supported at its current stage).\n\n**Inputs:**\n\n{{ proto_to_table(\"CancelTaskRequest\") }}\n\n**Outputs:**\n\n- Updated [`Task`](#411-task) with cancellation status\n\n**Errors:**\n\n- [`TaskNotCancelableError`](#332-error-handling): The task is not in a cancelable state (e.g., already completed, failed, or canceled).\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n**Behavior:**\n\nThe operation attempts to cancel the specified task and returns its updated state.\n\n#### 3.1.6. Subscribe to Task\n\n<span id=\"79-taskssubscribe\"></span>\n\nEstablishes a streaming connection to receive updates for an existing task.\n\n**Inputs:**\n\n{{ proto_to_table(\"SubscribeToTaskRequest\") }}\n\n**Outputs:**\n\n- [`Stream Response`](#323-stream-response) object containing:\n    - Initial response: [`Task`](#411-task) object with current state\n    - Stream of [`TaskStatusUpdateEvent`](#421-taskstatusupdateevent) and [`TaskArtifactUpdateEvent`](#422-taskartifactupdateevent) objects\n\n**Errors:**\n\n- [`UnsupportedOperationError`](#332-error-handling): Streaming is not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n- [`UnsupportedOperationError`](#332-error-handling): The operation is attempted on a task that is in a terminal state (`completed`, `failed`, `canceled`, or `rejected`).\n\n**Behavior:**\n\nThe operation enables real-time monitoring of task progress and can be used with any task that is not in a terminal state. The stream MUST terminate when the task reaches a terminal state (`completed`, `failed`, `canceled`, or `rejected`).\n\nThe operation MUST return a `Task` object as the first event in the stream, representing the current state of the task at the time of subscription. This prevents a potential loss of information between a call to `GetTask` and calling `SubscribeToTask`.\n\n#### 3.1.7. Create Push Notification Config\n\n<span id=\"75-taskspushnotificationconfigset\"></span>\n<span id=\"317-create-push-notification-config\"></span>\n\nCreates a push notification configuration for a task to receive asynchronous updates via webhook.\n\n**Inputs:**\n\n{{ proto_to_table(\"CreateTaskPushNotificationConfigRequest\") }}\n\n**Outputs:**\n\n- [`PushNotificationConfig`](#431-pushnotificationconfig): Created configuration with assigned ID\n\n**Errors:**\n\n- [`PushNotificationNotSupportedError`](#332-error-handling): Push notifications are not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n**Behavior:**\n\nThe operation MUST establish a webhook endpoint for task update notifications. When task updates occur, the agent will send HTTP POST requests to the configured webhook URL with [`StreamResponse`](#323-stream-response) payloads (see [Push Notification Payload](#433-push-notification-payload) for details). This operation is only available if the agent supports push notifications capability. The configuration MUST persist until task completion or explicit deletion.\n\n <span id=\"tasks-push-notification-config-operations\"></span><span id=\"grpc-push-notification-operations\"></span><span id=\"push-notification-operations\"></span>\n\n#### 3.1.8. Get Push Notification Config\n\n<span id=\"76-taskspushnotificationconfigget\"></span>\n\nRetrieves an existing push notification configuration for a task.\n\n**Inputs:**\n\n{{ proto_to_table(\"GetTaskPushNotificationConfigRequest\") }}\n\n**Outputs:**\n\n- [`PushNotificationConfig`](#431-pushnotificationconfig): The requested configuration\n\n**Errors:**\n\n- [`PushNotificationNotSupportedError`](#332-error-handling): Push notifications are not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`TaskNotFoundError`](#332-error-handling): The push notification configuration does not exist.\n\n**Behavior:**\n\nThe operation MUST return configuration details including webhook URL and notification settings. The operation MUST fail if the configuration does not exist or the client lacks access.\n\n#### 3.1.9. List Push Notification Configs\n\nRetrieves all push notification configurations for a task.\n\n**Inputs:**\n\n{{ proto_to_table(\"ListTaskPushNotificationConfigsRequest\") }}\n\n**Outputs:**\n\n{{ proto_to_table(\"ListTaskPushNotificationConfigsResponse\") }}\n\n**Errors:**\n\n- [`PushNotificationNotSupportedError`](#332-error-handling): Push notifications are not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist or is not accessible.\n\n**Behavior:**\n\nThe operation MUST return all active push notification configurations for the specified task and MAY support pagination for tasks with many configurations.\n\n#### 3.1.10. Delete Push Notification Config\n\nRemoves a push notification configuration for a task.\n\n**Inputs:**\n\n{{ proto_to_table(\"DeleteTaskPushNotificationConfigRequest\") }}\n\n**Outputs:**\n\n- Confirmation of deletion (implementation-specific)\n\n**Errors:**\n\n- [`PushNotificationNotSupportedError`](#332-error-handling): Push notifications are not supported by the agent (see [Capability Validation](#334-capability-validation)).\n- [`TaskNotFoundError`](#332-error-handling): The task ID does not exist.\n\n**Behavior:**\n\nThe operation MUST permanently remove the specified push notification configuration. No further notifications will be sent to the configured webhook after deletion. This operation MUST be idempotent - multiple deletions of the same config have the same effect.\n\n#### 3.1.11. Get Extended Agent Card\n\nRetrieves a potentially more detailed version of the Agent Card after the client has authenticated. This endpoint is available only if `AgentCard.capabilities.extendedAgentCard` is `true`.\n\n**Inputs:**\n\n{{ proto_to_table(\"GetExtendedAgentCardRequest\") }}\n\n**Outputs:**\n\n- [`AgentCard`](#441-agentcard): A complete Agent Card object, which may contain additional details or skills not present in the public card\n\n**Errors:**\n\n- [`UnsupportedOperationError`](#332-error-handling): The agent does not support authenticated extended cards (see [Capability Validation](#334-capability-validation)).\n- [`ExtendedAgentCardNotConfiguredError`](#332-error-handling): The agent declares support but does not have an extended agent card configured.\n\n**Behavior:**\n\n- **Authentication**: The client MUST authenticate the request using one of the schemes declared in the public `AgentCard.securitySchemes` and `AgentCard.security` fields.\n- **Extended Information**: The operation MAY return different details based on client authentication level, including additional skills, capabilities, or configuration not available in the public Agent Card.\n- **Card Replacement**: Clients retrieving this extended card SHOULD replace their cached public Agent Card with the content received from this endpoint for the duration of their authenticated session or until the card's version changes.\n- **Availability**: This operation is only available if the public Agent Card declares `capabilities.extendedAgentCard: true`.\n\nFor detailed security guidance on extended agent cards, see [Section 13.3 Extended Agent Card Access Control](#133-extended-agent-card-access-control).\n\n### 3.2. Operation Parameter Objects\n\nThis section defines common parameter objects used across multiple operations.\n\n#### 3.2.1. SendMessageRequest\n\n{{ proto_to_table(\"SendMessageRequest\") }}\n\n#### 3.2.2. SendMessageConfiguration\n\n{{ proto_to_table(\"SendMessageConfiguration\") }}\n\n**Execution Mode:**\n\nThe `return_immediately` field in [`SendMessageConfiguration`](#322-sendmessageconfiguration) controls whether the operation returns immediately or waits for task completion. Operations are blocking by default:\n\n- **Blocking (`return_immediately: false` or unset)**: The operation MUST wait until the task reaches a terminal state (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or an interrupted state (`INPUT_REQUIRED`, `AUTH_REQUIRED`) before returning. The response MUST include the latest task state with all artifacts and status information. This is the default behavior.\n\n- **Non-Blocking (`return_immediately: true`)**: The operation MUST return immediately after creating the task, even if processing is still in progress. The returned task will have an in-progress state (e.g., `working`, `input_required`). It is the caller's responsibility to poll for updates using [Get Task](#313-get-task), subscribe via [Subscribe to Task](#316-subscribe-to-task), or receive updates via push notifications.\n\nThe `return_immediately` field has no effect:\n\n- when the operation returns a direct [`Message`](#414-message) response instead of a task.\n- for streaming operations, which always return updates in real-time.\n- on configured push notification configurations, which operates independently of execution mode.\n\n#### 3.2.3. Stream Response\n\n<span id=\"323-stream-response\"></span>\n<span id=\"72-messagestream\"></span>\n\n{{ proto_to_table(\"StreamResponse\") }}\n\nThis wrapper allows streaming endpoints to return different types of updates through a single response stream while maintaining type safety.\n\n#### 3.2.4. History Length Semantics\n\nThe `historyLength` parameter appears in multiple operations and controls how much task history is returned in responses. This parameter follows consistent semantics across all operations:\n\n- **Unset/undefined**: No limit imposed; server returns its default amount of history (implementation-defined, may be all history)\n- **0**: No history should be returned; the `history` field SHOULD be omitted\n- **> 0**: Return at most this many recent messages from the task's history\n\n#### 3.2.5. Metadata\n\nA flexible key-value map for passing additional context or parameters with operations. Metadata keys and are strings and values can be any valid value that can be represented in JSON. [`Extensions`](#46-extensions) can be used to strongly type metadata values for specific use cases.\n\n#### 3.2.6 Service Parameters\n\nA key-value map for passing horizontally applicable context or parameters with case-insensitive string keys and case-sensitive string values. The transmission mechanism for these service parameter key-value pairs is defined by the specific protocol binding (e.g., HTTP headers for HTTP-based bindings, gRPC metadata for gRPC bindings). Custom protocol bindings **MUST** specify how service parameters are transmitted in their binding specification.\n\n**Standard A2A Service Parameters:**\n\n| Name             | Description                                                                                                                                             | Example Value                                                                                 |\n| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------- |\n| `A2A-Extensions` | Comma-separated list of extension URIs that the client wants to use for the request                                                                     | `https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1` |\n| `A2A-Version`    | The A2A protocol version that the client is using. If the version is not supported, the agent returns [`VersionNotSupportedError`](#332-error-handling) | `0.3`                                                                                         |\n\nAs service parameter names MAY need to co-exist with other parameters defined by the underlying transport protocol or infrastructure, all service parameters defined by this specification will be prefixed with `a2a-`.\n\n### 3.3. Operation Semantics\n\n#### 3.3.1. Idempotency\n\n- **Get operations** (Get Task, List Tasks, Get Extended Agent Card) are naturally idempotent\n- **Send Message** operations MAY be idempotent. Agents may utilize the messageId to detect duplicate messages.\n- **Cancel Task** operations are idempotent - multiple cancellation requests have the same effect. A duplicate cancellation request MAY return `TaskNotFoundError` if the task has already been canceled and purged.\n\n#### 3.3.2. Error Handling\n\nAll operations may return errors in the following categories. Servers **MUST** return appropriate errors and **SHOULD** provide actionable information to help clients resolve issues.\n\n**Error Categories and Server Requirements:**\n\n- **Authentication Errors**: Invalid or missing credentials\n    - Servers **MUST** reject requests with invalid or missing authentication credentials\n    - Servers **SHOULD** include authentication challenge information in the error response\n    - Servers **SHOULD** specify which authentication scheme is required\n    - Example error codes: HTTP `401 Unauthorized`, gRPC `UNAUTHENTICATED`, JSON-RPC custom error\n    - Example scenarios: Missing bearer token, expired API key, invalid OAuth token\n\n- **Authorization Errors**: Insufficient permissions for requested operation\n    - Servers **MUST** return an authorization error when the authenticated client lacks required permissions\n    - Servers **SHOULD** indicate what permission or scope is missing (without leaking sensitive information about resources the client cannot access)\n    - Servers **MUST NOT** reveal the existence of resources the client is not authorized to access\n    - Example error codes: HTTP `403 Forbidden`, gRPC `PERMISSION_DENIED`, JSON-RPC custom error\n    - Example scenarios: Attempting to access a task created by another user, insufficient OAuth scopes\n\n- **Validation Errors**: Invalid input parameters or message format\n    - Servers **MUST** validate all input parameters before processing\n    - Servers **SHOULD** specify which parameter(s) failed validation and why\n    - Servers **SHOULD** provide guidance on valid parameter values or formats\n    - Example error codes: HTTP `400 Bad Request`, gRPC `INVALID_ARGUMENT`, JSON-RPC `-32602 Invalid params`\n    - Example scenarios: Invalid task ID format, missing required message parts, unsupported content type\n\n- **Resource Errors**: Requested task not found or not accessible\n    - Servers **MUST** return a not found error when a requested resource does not exist or is not accessible to the authenticated client\n    - Servers **SHOULD NOT** distinguish between \"does not exist\" and \"not authorized\" to prevent information leakage\n    - Example error codes: HTTP `404 Not Found`, gRPC `NOT_FOUND`, JSON-RPC custom error (see A2A-specific errors)\n    - Example scenarios: Task ID does not exist, task has been deleted, configuration not found\n\n- **System Errors**: Internal agent failures or temporary unavailability\n    - Servers **SHOULD** return appropriate error codes for temporary failures vs. permanent errors\n    - Servers **MAY** include retry guidance (e.g., Retry-After header in HTTP)\n    - Servers **SHOULD** log system errors for diagnostic purposes\n    - Example error codes: HTTP `500 Internal Server Error` or `503 Service Unavailable`, gRPC `INTERNAL` or `UNAVAILABLE`, JSON-RPC `-32603 Internal error`\n    - Example scenarios: Database connection failure, downstream service timeout, rate limit exceeded\n\n**Error Payload Structure:**\n\nAll error responses in the A2A protocol, regardless of binding, **MUST** convey the following information:\n\n1. **Error Code**: A machine-readable identifier for the error type (e.g., string code, numeric code, or protocol-specific status)\n2. **Error Message**: A human-readable description of the error\n3. **Error Details** (optional): Additional structured information about the error, such as:\n    - Affected fields or parameters\n    - Contextual information (e.g., task ID, timestamp)\n    - Suggestions for resolution\n\nProtocol bindings **MUST** map these elements to their native error representations while preserving semantic meaning. See binding-specific sections for concrete error format examples: [JSON-RPC Error Handling](#95-error-handling), [gRPC Error Handling](#106-error-handling), and [HTTP/REST Error Handling](#116-error-handling).\n\n**A2A-Specific Errors:**\n\n| Error Name                            | Description                                                                                                                                                       |\n| :------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `TaskNotFoundError`                   | The specified task ID does not correspond to an existing or accessible task. It might be invalid, expired, or already completed and purged.                       |\n| `TaskNotCancelableError`              | An attempt was made to cancel a task that is not in a cancelable state (e.g., it has already reached a terminal state like `completed`, `failed`, or `canceled`). |\n| `PushNotificationNotSupportedError`   | Client attempted to use push notification features but the server agent does not support them (i.e., `AgentCard.capabilities.pushNotifications` is `false`).      |\n| `UnsupportedOperationError`           | The requested operation or a specific aspect of it is not supported by this server agent implementation.                                                          |\n| `ContentTypeNotSupportedError`        | A Media Type provided in the request's message parts or implied for an artifact is not supported by the agent or the specific skill being invoked.                |\n| `InvalidAgentResponseError`           | An agent returned a response that does not conform to the specification for the current method.                                                                   |\n| `ExtendedAgentCardNotConfiguredError` | The agent does not have an extended agent card configured when one is required for the requested operation.                                                       |\n| `ExtensionSupportRequiredError`       | Server requested use of an extension marked as `required: true` in the Agent Card but the client did not declare support for it in the request.                   |\n| `VersionNotSupportedError`            | The A2A protocol version specified in the request (via `A2A-Version` service parameter) is not supported by the agent.                                            |\n\n#### 3.3.3. Asynchronous Processing\n\nA2A operations are designed for asynchronous task execution. Operations return immediately with either [`Task`](#411-task) objects or [`Message`](#414-message) objects, and when a Task is returned, processing continues in the background. Clients retrieve task updates through polling, streaming, or push notifications (see [Section 3.5](#35-task-update-delivery-mechanisms)). Agents MAY accept additional messages for tasks in non-terminal states to enable multi-turn interactions (see [Section 3.4](#34-multi-turn-interactions)).\n\n#### 3.3.4. Capability Validation\n\nAgents declare optional capabilities in their [`AgentCard`](#441-agentcard). When clients attempt to use operations or features that require capabilities not declared as supported in the Agent Card, the agent **MUST** return an appropriate error response:\n\n- **Push Notifications**: If `AgentCard.capabilities.pushNotifications` is `false` or not present, operations related to push notification configuration (Create, Get, List, Delete) **MUST** return [`PushNotificationNotSupportedError`](#332-error-handling).\n- **Streaming**: If `AgentCard.capabilities.streaming` is `false` or not present, attempts to use `SendStreamingMessage` or `SubscribeToTask` operations **MUST** return [`UnsupportedOperationError`](#332-error-handling).\n- **Extended Agent Card**: If `AgentCard.capabilities.extendedAgentCard` is `false` or not present, attempts to call the Get Extended Agent Card operation **MUST** return [`UnsupportedOperationError`](#332-error-handling). If the agent declares support but has not configured an extended card, it **MUST** return [`ExtendedAgentCardNotConfiguredError`](#332-error-handling).\n- **Extensions**: When a server requests use of an extension marked as `required: true` in the Agent Card but the client does not declare support for it, the agent **MUST** return [`ExtensionSupportRequiredError`](#332-error-handling).\n\nClients **SHOULD** validate capability support by examining the Agent Card before attempting operations that require optional capabilities.\n\n### 3.4. Multi-Turn Interactions\n\nThe A2A protocol supports multi-turn conversations through context identifiers and task references, enabling agents to maintain conversational continuity across multiple interactions.\n\n#### 3.4.1. Context Identifier Semantics\n\nA `contextId` is an identifier that logically groups multiple related [`Task`](#411-task) and [`Message`](#414-message) objects, providing continuity across a series of interactions.\n\n**Generation and Assignment:**\n\n- Agents **MAY** generate a new `contextId` when processing a [`Message`](#414-message) that does not include a `contextId` field\n- If an agent generates a new `contextId`, it **MUST** be included in the response (either [`Task`](#411-task) or [`Message`](#414-message))\n- Agents **MAY** accept and preserve client-provided `contextId` values\n- If an agent cannot accept a client-provided `contextId`, it **MUST** reject the request with an error and **MUST NOT** generate a new `contextId` for the response\n- Clients **SHOULD NOT** provide a client-generated `contextId` to a server unless they understand how the server will process that `contextId`\n- Server-generated `contextId` values **SHOULD** be treated as opaque identifiers by clients\n\n**Grouping and Scope:**\n\n- A `contextId` logically groups multiple [`Task`](#411-task) objects and [`Message`](#414-message) objects that are part of the same conversational context\n- All tasks and messages with the same `contextId` **SHOULD** be treated as part of the same conversational session\n- Agents **MAY** use the `contextId` to maintain internal state, conversational history, or LLM context across multiple interactions\n- Agents **MAY** implement context expiration or cleanup policies and **SHOULD** document any such policies\n\n#### 3.4.2. Task Identifier Semantics\n\nA `taskId` is a unique identifier for a [`Task`](#411-task) object, representing a stateful unit of work with a defined lifecycle.\n\n**Generation and Assignment:**\n\n- Task IDs are **server-generated** when a new task is created in response to a [`Message`](#414-message)\n- Agents **MUST** generate a unique `taskId` for each new task they create\n- The generated `taskId` **MUST** be included in the [`Task`](#411-task) object returned to the client\n- When a client includes a `taskId` in a [`Message`](#414-message), it **MUST** reference an existing task\n- Agents **MUST** return a [`TaskNotFoundError`](#332-error-handling) if the provided `taskId` does not correspond to an existing task\n- Client-provided `taskId` values for creating new tasks is **NOT** supported\n\n#### 3.4.3. Multi-Turn Conversation Patterns\n\nThe A2A protocol supports several patterns for multi-turn interactions:\n\n**Context Continuity:**\n\n- [`Task`](#411-task) objects maintain conversation context through the `contextId` field\n- Clients **MAY** include the `contextId` in subsequent messages to indicate continuation of a previous interaction\n- Clients **MAY** use `taskId` (with or without `contextId`) to continue or refine a specific task\n- Clients **MAY** use `contextId` without `taskId` to start a new task within an existing conversation context\n- Agents **MUST** infer `contextId` from the task if only `taskId` is provided\n- Agents **MUST** reject messages containing mismatching `contextId` and `taskId` (i.e., the provided `contextId` is different from that of the referenced [`Task`](#411-task)).\n\n**Input Required State:**\n\n- Agents can request additional input mid-processing by transitioning a task to the `input-required` state\n- The client continues the interaction by sending a new message with the same `taskId` and `contextId`\n\n**Follow-up Messages:**\n\n- Clients can send additional messages with `taskId` references to continue or refine existing tasks\n- Clients **SHOULD** use the `referenceTaskIds` field in [`Message`](#414-message) to explicitly reference related tasks\n- Agents **SHOULD** use referenced tasks to understand the context and intent of follow-up requests\n\n**Context Inheritance:**\n\n- New tasks created within the same `contextId` can inherit context from previous interactions\n- Agents **SHOULD** leverage the shared `contextId` to provide contextually relevant responses\n\n### 3.5. Task Update Delivery Mechanisms\n\nThe A2A protocol provides three complementary mechanisms for clients to receive updates about task progress and completion.\n\n#### 3.5.1. Overview of Update Mechanisms\n\n**Polling (Get Task):**\n\n- Client periodically calls Get Task ([Section 3.1.3](#313-get-task)) to check task status\n- Simple to implement, works with all protocol bindings\n- Higher latency, potential for unnecessary requests\n- Best for: Simple integrations, infrequent updates, clients behind restrictive firewalls\n\n**Streaming:**\n\n- Real-time delivery of events as they occur\n- Operations: Stream Message ([Section 3.1.2](#312-send-streaming-message)) and Subscribe to Task ([Section 3.1.6](#316-subscribe-to-task))\n- Low latency, efficient for frequent updates\n- Requires persistent connection support\n- Best for: Interactive applications, real-time dashboards, live progress monitoring\n- Requires `AgentCard.capabilities.streaming` to be `true`\n\n**Push Notifications (WebHooks):**\n\n- Agent sends HTTP POST requests to client-registered endpoints when task state changes\n- Client does not maintain persistent connection\n- Asynchronous delivery, client must be reachable via HTTP\n- Best for: Server-to-server integrations, long-running tasks, event-driven architectures\n- Operations: Create ([Section 3.1.7](#317-create-push-notification-config)), Get ([Section 3.1.8](#76-taskspushnotificationconfigget)), List ([Section 3.1.9](#319-list-push-notification-configs)), Delete ([Section 3.1.10](#3110-delete-push-notification-config))\n- Event types: TaskStatusUpdateEvent ([Section 4.2.1](#421-taskstatusupdateevent)), TaskArtifactUpdateEvent ([Section 4.2.2](#422-taskartifactupdateevent)), WebHook payloads ([Section 4.3](#43-push-notification-objects))\n- Requires `AgentCard.capabilities.pushNotifications` to be `true`\n- Regardless of the protocol binding being used by the agent, WebHook calls use plain HTTP and the JSON payloads as defined in the HTTP protocol binding\n\n#### 3.5.2. Streaming Event Delivery\n\n**Event Ordering:**\n\nAll implementations MUST deliver events in the order they were generated. Events MUST NOT be reordered during transmission, regardless of protocol binding.\n\n**Multiple Streams Per Task:**\n\nAn agent MAY serve multiple concurrent streams to one or more clients for the same task. This allows multiple clients (or the same client with multiple connections) to independently subscribe to and receive updates about a task's progress.\n\nWhen multiple streams are active for a task:\n\n- Events MUST be broadcast to all active streams for that task\n- Each stream MUST receive the same events in the same order\n- Closing one stream MUST NOT affect other active streams for the same task\n- The task lifecycle is independent of any individual stream's lifecycle\n\nThis capability enables scenarios such as:\n\n- Multiple team members monitoring the same long-running task\n- A client reconnecting to a task after a network interruption by opening a new stream\n- Different applications or dashboards displaying real-time updates for the same task\n\n#### 3.5.3. Push Notification Delivery\n\nPush notifications are delivered via HTTP POST to client-registered webhook endpoints. The delivery semantics and reliability guarantees are defined in [Section 4.3](#43-push-notification-objects).\n\n### 3.6 Versioning\n\nThe specific version of the A2A protocol in use is identified using the `Major.Minor` elements (e.g. `1.0`) of the corresponding A2A specification version. Patch version numbers used by the specification, do not affect protocol compatibility. Patch version numbers SHOULD NOT be used in requests, responses and Agent Cards, and MUST not be considered when clients and servers negotiate protocol versions.\n\n#### 3.6.1 Client Responsibilities\n\nClients MUST send the `A2A-Version` header with each request to maintain compatibility after an agent upgrades to a new version of the protocol (except for 0.3 Clients - 0.3 will be assumed for empty header). Sending the `A2A-Version` header also provides visibility to agents about version usage in the ecosystem, which can help inform the risks of inplace version upgrades.\n\n**Example of HTTP GET Request with Version Header:**\n\n```http\nGET /tasks/task-123 HTTP/1.1\nHost: agent.example.com\nA2A-Version: 1.0\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\nAccept: application/json\n```\n\nClients MAY provide the `A2A-Version` as a request parameter instead of a header.\n\n**Example of HTTP GET Request with Version request parameter:**\n\n```http\nGET /tasks/task-123?A2A-Version=1.0 HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\nAccept: application/json\n```\n\n#### 3.6.2 Server Responsibilities\n\nAgents MUST process requests using the semantics of the requested `A2A-Version` (matching `Major.Minor`). If the version is not supported by the interface, agents MUST return a [`VersionNotSupportedError`](#332-error-handling).\n\nAgents MUST interpret empty value as 0.3 version.\n\nAgents CAN expose multiple interfaces for the same transport with different versions under the same or different URLs.\n\n#### 3.6.3 Tooling support\n\nTooling libraries and SDKs that implement the A2A protocol MUST provide mechanisms to help clients manage protocol versioning, such as negotiation of the transport and protocol version used. Client Agents that require the latest features of the protocol should be configured to request specific versions and avoid automatic fallback to older versions, to prevent silently losing functionality.\n\n### 3.7 Messages and Artifacts\n\nMessages and Artifacts serve distinct purposes within the A2A protocol. The core interaction model defined by A2A is for clients to send messages to initiate a task that produces one or more artifacts.\n\nMessages play several key roles:\n\n- **Task Initiation**: Clients send Messages to agents to initiate new tasks.\n- **Clarification Messages**: Agents may send Messages back to the client to request clarification prior to initiating a task.\n- **Status Messages**: Agents attach Messages to status update events to inform clients about task progress, request additional input, or provide informational updates.\n- **Task Interaction**: Clients send Messages to provide additional input or instructions for ongoing tasks.\n\nMessages SHOULD NOT be used to deliver task outputs. Results SHOULD BE returned using Artifacts associated with a Task. This separation allows for a clear distinction between communication (Messages) and data output (Artifacts).\n\nThe Task History field contains Messages exchanged during task execution. However, not all Messages are guaranteed to be persisted in the Task history; for example, transient informational messages may not be stored. Messages exchanged prior to task creation may not be stored in Task history. The agent is responsible to determine which Messages are persisted in the Task History.\n\nClients using streaming to retrieve task updates MAY not receive all status update messages if the client is disconnected and then reconnects. Messages MUST NOT be considered a reliable delivery mechanism for critical information.\n\nAgents MAY choose to persist all Messages that contain important information in the Task history to ensure clients can retrieve it later. However, clients MUST NOT rely on this behavior unless negotiated out-of-band.\n\n## 4. Protocol Data Model\n\nThe A2A protocol defines a canonical data model using Protocol Buffers. All protocol bindings **MUST** provide functionally equivalent representations of these data structures.\n\n### 4.1. Core Objects\n\n<a id=\"Task\"></a>\n\n#### 4.1.1. Task\n\n{{ proto_to_table(\"Task\") }}\n\n<a id=\"TaskStatus\"></a>\n\n#### 4.1.2. TaskStatus\n\n{{ proto_to_table(\"TaskStatus\") }}\n\n<a id=\"TaskState\"></a>\n\n#### 4.1.3. TaskState\n\n{{ proto_enum_to_table(\"TaskState\") }}\n\n<a id=\"Message\"></a>\n\n#### 4.1.4. Message\n\n{{ proto_to_table(\"Message\") }}\n\n<a id=\"Role\"></a>\n\n#### 4.1.5. Role\n\n{{ proto_enum_to_table(\"Role\") }}\n\n<a id=\"Part\"></a>\n\n#### 4.1.6. Part\n\n{{ proto_to_table(\"Part\") }}\n\n<a id=\"Artifact\"></a>\n\n#### 4.1.7. Artifact\n\n{{ proto_to_table(\"Artifact\") }}\n\n### 4.2. Streaming Events\n\n<a id=\"TaskStatusUpdateEvent\"></a>\n\n#### 4.2.1. TaskStatusUpdateEvent\n\n{{ proto_to_table(\"TaskStatusUpdateEvent\") }}\n\n<a id=\"TaskArtifactUpdateEvent\"></a>\n\n#### 4.2.2. TaskArtifactUpdateEvent\n\n{{ proto_to_table(\"TaskArtifactUpdateEvent\") }}\n\n### 4.3. Push Notification Objects\n\n<a id=\"PushNotificationConfig\"></a>\n\n#### 4.3.1. PushNotificationConfig\n\n{{ proto_to_table(\"PushNotificationConfig\") }}\n\n<a id=\"PushNotificationAuthenticationInfo\"></a>\n\n#### 4.3.2. AuthenticationInfo\n\n{{ proto_to_table(\"AuthenticationInfo\") }}\n\n#### 4.3.3. Push Notification Payload\n\nWhen a task update occurs, the agent sends an HTTP POST request to the configured webhook URL. The payload uses the same [`StreamResponse`](#323-stream-response) format as streaming operations, allowing push notifications to deliver the same event types as real-time streams.\n\n**Request Format:**\n\n```http\nPOST {webhook_url}\nAuthorization: {authentication_scheme} {credentials}\nContent-Type: application/json\n\n{\n  /* StreamResponse object - one of: */\n  \"task\": { /* Task object */ },\n  \"message\": { /* Message object */ },\n  \"statusUpdate\": { /* TaskStatusUpdateEvent object */ },\n  \"artifactUpdate\": { /* TaskArtifactUpdateEvent object */ }\n}\n```\n\n**Payload Structure:**\n\nThe webhook payload is a [`StreamResponse`](#323-stream-response) object containing exactly one of the following:\n\n- **task**: A [`Task`](#411-task) object with the current task state\n- **message**: A [`Message`](#414-message) object containing a message response\n- **statusUpdate**: A [`TaskStatusUpdateEvent`](#421-taskstatusupdateevent) indicating a status change\n- **artifactUpdate**: A [`TaskArtifactUpdateEvent`](#422-taskartifactupdateevent) indicating artifact updates\n\n**Authentication:**\n\nThe agent MUST include authentication credentials in the request headers as specified in the [`PushNotificationConfig.authentication`](#432-authenticationinfo) field. The format follows standard HTTP authentication patterns (Bearer tokens, Basic auth, etc.).\n\n**Client Responsibilities:**\n\n- Clients MUST respond with HTTP 2xx status codes to acknowledge successful receipt\n- Clients SHOULD process notifications idempotently, as duplicate deliveries may occur\n- Clients MUST validate the task ID matches an expected task\n- Clients SHOULD implement appropriate security measures to verify the notification source\n\n**Server Guarantees:**\n\n- Agents MUST attempt delivery at least once for each configured webhook\n- Agents MAY implement retry logic with exponential backoff for failed deliveries\n- Agents SHOULD include a reasonable timeout for webhook requests (recommended: 10-30 seconds)\n- Agents MAY stop attempting delivery after a configured number of consecutive failures\n\nFor detailed security guidance on push notifications, see [Section 13.2 Push Notification Security](#132-push-notification-security).\n\n### 4.4. Agent Discovery Objects\n\n<a id=\"AgentCard\"></a>\n\n#### 4.4.1. AgentCard\n\n{{ proto_to_table(\"AgentCard\") }}\n\n<a id=\"AgentProvider\"></a>\n\n#### 4.4.2. AgentProvider\n\n{{ proto_to_table(\"AgentProvider\") }}\n\n<a id=\"AgentCapabilities\"></a>\n\n#### 4.4.3. AgentCapabilities\n\n{{ proto_to_table(\"AgentCapabilities\") }}\n\n<a id=\"AgentExtension\"></a>\n\n#### 4.4.4. AgentExtension\n\n{{ proto_to_table(\"AgentExtension\") }}\n\n<a id=\"AgentSkill\"></a>\n\n#### 4.4.5. AgentSkill\n\n{{ proto_to_table(\"AgentSkill\") }}\n\n<a id=\"AgentInterface\"></a>\n\n#### 4.4.6. AgentInterface\n\n{{ proto_to_table(\"AgentInterface\") }}\n\n<a id=\"AgentCardSignature\"></a>\n\n#### 4.4.7. AgentCardSignature\n\n{{ proto_to_table(\"AgentCardSignature\") }}\n\n### 4.5. Security Objects\n\n<a id=\"Security\"></a>\n<a id=\"SecurityScheme\"></a>\n\n#### 4.5.1. SecurityScheme\n\n{{ proto_to_table(\"SecurityScheme\") }}\n\n<a id=\"APIKeySecurityScheme\"></a>\n\n#### 4.5.2. APIKeySecurityScheme\n\n{{ proto_to_table(\"APIKeySecurityScheme\") }}\n\n<a id=\"HTTPAuthSecurityScheme\"></a>\n\n#### 4.5.3. HTTPAuthSecurityScheme\n\n{{ proto_to_table(\"HTTPAuthSecurityScheme\") }}\n\n<a id=\"OAuth2SecurityScheme\"></a>\n\n#### 4.5.4. OAuth2SecurityScheme\n\n{{ proto_to_table(\"OAuth2SecurityScheme\") }}\n\n<a id=\"OpenIdConnectSecurityScheme\"></a>\n\n#### 4.5.5. OpenIdConnectSecurityScheme\n\n{{ proto_to_table(\"OpenIdConnectSecurityScheme\") }}\n\n<a id=\"MutualTlsSecurityScheme\"></a>\n\n#### 4.5.6. MutualTlsSecurityScheme\n\n{{ proto_to_table(\"MutualTlsSecurityScheme\") }}\n\n<a id=\"OAuthFlows\"></a>\n\n#### 4.5.7. OAuthFlows\n\n{{ proto_to_table(\"OAuthFlows\") }}\n\n<a id=\"AuthorizationCodeOAuthFlow\"></a>\n\n#### 4.5.8. AuthorizationCodeOAuthFlow\n\n{{ proto_to_table(\"AuthorizationCodeOAuthFlow\") }}\n\n<a id=\"ClientCredentialsOAuthFlow\"></a>\n\n#### 4.5.9. ClientCredentialsOAuthFlow\n\n{{ proto_to_table(\"ClientCredentialsOAuthFlow\") }}\n\n<a id=\"DeviceCodeOAuthFlow\"></a>\n\n#### 4.5.10. DeviceCodeOAuthFlow\n\n{{ proto_to_table(\"DeviceCodeOAuthFlow\") }}\n\n### 4.6. Extensions\n\nThe A2A protocol supports extensions to provide additional functionality or data beyond the core specification while maintaining backward compatibility and interoperability. Extensions allow agents to declare additional capabilities such as protocol enhancements or vendor-specific features, maintain compatibility with clients that don't support specific extensions, enable innovation through experimental or domain-specific features without modifying the core protocol, and facilitate standardization by providing a pathway for community-developed features to become part of the core specification.\n\n#### 4.6.1. Extension Declaration\n\nAgents declare their supported extensions in the [`AgentCard`](#441-agentcard) using the `extensions` field, which contains an array of [`AgentExtension`](#444-agentextension) objects.\n\n*Example: Agent declaring extension support in AgentCard:*\n\n```json\n{\n  \"name\": \"Research Assistant Agent\",\n  \"description\": \"AI agent for academic research and fact-checking\",\n  \"supportedInterfaces\": [\n    {\n      \"url\": \"https://research-agent.example.com/a2a/v1\",\n      \"protocolBinding\": \"HTTP+JSON\",\n      \"protocolVersion\": \"0.3\",\n    }\n  ],\n  \"capabilities\": {\n    \"streaming\": false,\n    \"pushNotifications\": false,\n    \"extensions\": [\n      {\n        \"uri\": \"https://standards.org/extensions/citations/v1\",\n        \"description\": \"Provides citation formatting and source verification\",\n        \"required\": false\n      },\n      {\n        \"uri\": \"https://example.com/extensions/geolocation/v1\",\n        \"description\": \"Location-based search capabilities\",\n        \"required\": false\n      }\n    ]\n  },\n  \"defaultInputModes\": [\"text/plain\"],\n  \"defaultOutputModes\": [\"text/plain\"],\n  \"skills\": [\n    {\n      \"id\": \"academic-research\",\n      \"name\": \"Academic Research Assistant\",\n      \"description\": \"Provides research assistance with citations and source verification\",\n      \"tags\": [\"research\", \"citations\", \"academic\"],\n      \"examples\": [\"Find peer-reviewed articles on climate change\"],\n      \"inputModes\": [\"text/plain\"],\n      \"outputModes\": [\"text/plain\"]\n    }\n  ]\n}\n```\n\nClients indicate their desire to opt into the use of specific extensions through binding-specific mechanisms such as HTTP headers, gRPC metadata, or JSON-RPC request parameters that identify the extension identifiers they wish to utilize during the interaction.\n\n*Example: HTTP client opting into extensions using headers:*\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/json\nAuthorization: Bearer token\nA2A-Extensions: https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Find restaurants near me\"}],\n    \"extensions\": [\"https://example.com/extensions/geolocation/v1\"],\n    \"metadata\": {\n      \"https://example.com/extensions/geolocation/v1\": {\n        \"latitude\": 37.7749,\n        \"longitude\": -122.4194\n      }\n    }\n  }\n}\n```\n\n#### 4.6.2. Extensions Points\n\nExtensions can be integrated into the A2A protocol at several well-defined extension points:\n\n**Message Extensions:**\n\nMessages can be extended to allow clients to provide additional strongly typed context or parameters relevant to the message being sent, or TaskStatus Messages to include extra information about the task's progress.\n\n*Example: A location extension using the extensions and metadata arrays:*\n\n```json\n{\n  \"role\": \"ROLE_USER\",\n  \"parts\": [\n    {\"text\": \"Find restaurants near me\"}\n  ],\n  \"extensions\": [\"https://example.com/extensions/geolocation/v1\"],\n  \"metadata\": {\n    \"https://example.com/extensions/geolocation/v1\": {\n      \"latitude\": 37.7749,\n      \"longitude\": -122.4194,\n      \"accuracy\": 10.0,\n      \"timestamp\": \"2025-10-21T14:30:00Z\"\n    }\n  }\n}\n```\n\n**Artifact Extensions:**\n\nArtifacts can include extension data to provide strongly typed context or metadata about the generated content.\n\n*Example: An artifact with citation extension for research sources:*\n\n```json\n{\n  \"artifactId\": \"research-summary-001\",\n  \"name\": \"Climate Change Summary\",\n  \"parts\": [\n    {\n      \"text\": \"Global temperatures have risen by 1.1°C since pre-industrial times, with significant impacts on weather patterns and sea levels.\"\n    }\n  ],\n  \"extensions\": [\"https://standards.org/extensions/citations/v1\"],\n  \"metadata\": {\n    \"https://standards.org/extensions/citations/v1\": {\n      \"sources\": [\n        {\n          \"title\": \"Global Temperature Anomalies - 2023 Report\",\n          \"authors\": [\"Smith, J.\", \"Johnson, M.\"],\n          \"url\": \"https://climate.gov/reports/2023-temperature\",\n          \"accessDate\": \"2025-10-21\",\n          \"relevantText\": \"Global temperatures have risen by 1.1°C\"\n        }\n      ]\n    }\n  }\n}\n```\n\n#### 4.6.3. Extension Versioning and Compatibility\n\nExtensions **SHOULD** include version information in their URI identifier. This allows clients and agents to negotiate compatible versions of extensions during interactions. A new URI **MUST** be created for breaking changes to an extension.\n\nIf a client requests a versions of an extension that the agent does not support, the agent **SHOULD** ignore the extension for that interaction and proceed without it, unless the extension is marked as `required` in the AgentCard, in which case the agent **MUST** return an error indicating unsupported extension. It **MUST NOT** fall back to a previous version of the extension automatically.\n\n## 5. Protocol Binding Requirements and Interoperability\n\n### 5.1. Functional Equivalence Requirements\n\nWhen an agent supports multiple protocols, all supported protocols **MUST**:\n\n- **Identical Functionality**: Provide the same set of operations and capabilities\n- **Consistent Behavior**: Return semantically equivalent results for the same requests\n- **Same Error Handling**: Map errors consistently using appropriate protocol-specific codes\n- **Equivalent Authentication**: Support the same authentication schemes declared in the AgentCard\n\n### 5.2. Protocol Selection and Negotiation\n\n- **Agent Declaration**: Agents **MUST** declare all supported protocols in their AgentCard\n- **Client Choice**: Clients **MAY** choose any protocol declared by the agent\n- **Fallback Behavior**: Clients **SHOULD** implement fallback logic for alternative protocols\n\n### 5.3. Method Mapping Reference\n\n| Functionality                   | JSON-RPC Method                    | gRPC Method                        | REST Endpoint                                           |\n| :------------------------------ | :--------------------------------- | :--------------------------------- | :------------------------------------------------------ |\n| Send message                    | `SendMessage`                      | `SendMessage`                      | `POST /message:send`                                    |\n| Stream message                  | `SendStreamingMessage`             | `SendStreamingMessage`             | `POST /message:stream`                                  |\n| Get task                        | `GetTask`                          | `GetTask`                          | `GET /tasks/{id}`                                       |\n| List tasks                      | `ListTasks`                        | `ListTasks`                        | `GET /tasks`                                            |\n| Cancel task                     | `CancelTask`                       | `CancelTask`                       | `POST /tasks/{id}:cancel`                               |\n| Subscribe to task               | `SubscribeToTask`                  | `SubscribeToTask`                  | `POST /tasks/{id}:subscribe`                            |\n| Create push notification config | `CreateTaskPushNotificationConfig` | `CreateTaskPushNotificationConfig` | `POST /tasks/{id}/pushNotificationConfigs`              |\n| Get push notification config    | `GetTaskPushNotificationConfig`    | `GetTaskPushNotificationConfig`    | `GET /tasks/{id}/pushNotificationConfigs/{configId}`    |\n| List push notification configs  | `ListTaskPushNotificationConfigs`  | `ListTaskPushNotificationConfigs`  | `GET /tasks/{id}/pushNotificationConfigs`               |\n| Delete push notification config | `DeleteTaskPushNotificationConfig` | `DeleteTaskPushNotificationConfig` | `DELETE /tasks/{id}/pushNotificationConfigs/{configId}` |\n| Get extended Agent Card         | `GetExtendedAgentCard`             | `GetExtendedAgentCard`             | `GET /extendedAgentCard`                                |\n\n### 5.4. Error Code Mappings\n\nAll A2A-specific errors defined in [Section 3.3.2](#332-error-handling) **MUST** be mapped to binding-specific error representations. The following table provides the canonical mappings for each standard protocol binding:\n\n| A2A Error Type                        | JSON-RPC Code | gRPC Status           | HTTP Status                  |\n| :------------------------------------ | :------------ | :-------------------- | :--------------------------- |\n| `TaskNotFoundError`                   | `-32001`      | `NOT_FOUND`           | `404 Not Found`              |\n| `TaskNotCancelableError`              | `-32002`      | `FAILED_PRECONDITION` | `409 Conflict`               |\n| `PushNotificationNotSupportedError`   | `-32003`      | `UNIMPLEMENTED`       | `400 Bad Request`            |\n| `UnsupportedOperationError`           | `-32004`      | `UNIMPLEMENTED`       | `400 Bad Request`            |\n| `ContentTypeNotSupportedError`        | `-32005`      | `INVALID_ARGUMENT`    | `415 Unsupported Media Type` |\n| `InvalidAgentResponseError`           | `-32006`      | `INTERNAL`            | `502 Bad Gateway`            |\n| `ExtendedAgentCardNotConfiguredError` | `-32007`      | `FAILED_PRECONDITION` | `400 Bad Request`            |\n| `ExtensionSupportRequiredError`       | `-32008`      | `FAILED_PRECONDITION` | `400 Bad Request`            |\n| `VersionNotSupportedError`            | `-32009`      | `UNIMPLEMENTED`       | `400 Bad Request`            |\n\n**Custom Binding Requirements:**\n\nCustom protocol bindings **MUST** define equivalent error code mappings that preserve the semantic meaning of each A2A error type. The binding specification **SHOULD** provide a similar mapping table showing how each A2A error type is represented in the custom binding's native error format.\n\nFor binding-specific error structures and examples, see:\n\n- [JSON-RPC Error Handling](#95-error-handling)\n- [gRPC Error Handling](#106-error-handling)\n- [HTTP/REST Error Handling](#116-error-handling)\n\n### 5.5. JSON Field Naming Convention\n\nAll JSON serializations of the A2A protocol data model **MUST** use **camelCase** naming for field names, not the snake_case convention used in Protocol Buffer definitions.\n\n**Naming Convention:**\n\n- Protocol Buffer field: `protocol_version` → JSON field: `protocolVersion`\n- Protocol Buffer field: `context_id` → JSON field: `contextId`\n- Protocol Buffer field: `default_input_modes` → JSON field: `defaultInputModes`\n- Protocol Buffer field: `push_notification_config` → JSON field: `pushNotificationConfig`\n\n**Enum Values:**\n\n- Enum values **MUST** be represented according to the [ProtoJSON specification](https://protobuf.dev/programming-guides/json/), which serializes enums as their string names **as defined in the Protocol Buffer definition** (typically SCREAMING_SNAKE_CASE).\n\n**Examples:**\n\n- Protocol Buffer enum: `TASK_STATE_INPUT_REQUIRED` → JSON value: `\"TASK_STATE_INPUT_REQUIRED\"`\n- Protocol Buffer enum: `ROLE_USER` → JSON value: `\"ROLE_USER\"`\n\n**Note:** This follows the ProtoJSON specification as adopted in [ADR-001](../adrs/adr-001-protojson-serialization.md).\n\n### 5.6. Data Type Conventions\n\nThis section documents conventions for common data types used throughout the A2A protocol, particularly as they apply to protocol bindings.\n\n#### 5.6.1. Timestamps\n\nThe A2A protocol uses [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) for all timestamp fields in the Protocol Buffer definitions. When serialized to JSON (in JSON-RPC, HTTP/REST, or other JSON-based bindings), these timestamps **MUST** be represented as ISO 8601 formatted strings in UTC timezone.\n\n**Format Requirements:**\n\n- **Format:** ISO 8601 combined date and time representation\n- **Timezone:** UTC (denoted by 'Z' suffix)\n- **Precision:** Millisecond precision **SHOULD** be used where available\n- **Pattern:** `YYYY-MM-DDTHH:mm:ss.sssZ`\n\n**Examples:**\n\n```json\n{\n  \"timestamp\": \"2025-10-28T10:30:00.000Z\",\n  \"createdAt\": \"2025-10-28T14:25:33.142Z\",\n  \"lastModified\": \"2025-10-31T17:45:22.891Z\"\n}\n```\n\n**Implementation Notes:**\n\n- Protocol Buffer's `google.protobuf.Timestamp` represents time as seconds since Unix epoch (January 1, 1970, 00:00:00 UTC) plus nanoseconds\n- JSON serialization automatically converts this to ISO 8601 format when using standard Protocol Buffer JSON encoding\n- Clients and servers **MUST** parse and generate ISO 8601 timestamps correctly\n- When millisecond precision is not available, the fractional seconds portion **MAY** be omitted or zero-filled\n- Timestamps **MUST NOT** include timezone offsets other than 'Z' (all times are UTC)\n\n### 5.7. Field Presence and Optionality\n\nThe Protocol Buffer definition in `specification/a2a.proto` uses [`google.api.field_behavior`](https://github.com/googleapis/googleapis/blob/master/google/api/field_behavior.proto) annotations to indicate whether fields are `REQUIRED`. These annotations serve as both documentation and validation hints for implementations.\n\n**Required Fields:**\n\nFields marked with `[(google.api.field_behavior) = REQUIRED]` indicate that the field **MUST** be present and set in valid messages. Implementations **SHOULD** validate these requirements and reject messages with missing required fields. Arrays marked as required **MUST** contain at least one element.\n\n**Optional Field Presence:**\n\nThe Protocol Buffer `optional` keyword is used to distinguish between a field being explicitly set versus omitted. This distinction is critical for two scenarios:\n\n1. **Explicit Default Values:** Some fields in the specification define default values that differ from Protocol Buffer's implicit defaults. Implementations should apply the default value when the field is not explicitly provided.\n\n2. **Agent Card Canonicalization:** When creating cryptographic signatures of Agent Cards, it is required to produce a canonical JSON representation. The `optional` keyword enables implementations to distinguish between fields that were explicitly set (and should be included in the canonical form) versus fields that were omitted (and should be excluded from canonicalization). This ensures Agent Cards can be reconstructed to accurately match their signature.\n\n**Unrecognized Fields:**\n\nImplementations **SHOULD** ignore unrecognized fields in messages, allowing for forward compatibility as the protocol evolves.\n\n## 6. Common Workflows & Examples\n\nThis section provides illustrative examples of common A2A interactions across different bindings.\n\n### 6.1. Basic Task Execution\n\n**Scenario:** Client asks a question and receives a completed task response.\n\n**Request:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"What is the weather today?\"}],\n    \"messageId\": \"msg-uuid\"\n  }\n}\n```\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"task\": {\n    \"id\": \"task-uuid\",\n    \"contextId\": \"context-uuid\",\n    \"status\": {\"state\": \"TASK_STATE_COMPLETED\"},\n    \"artifacts\": [{\n      \"artifactId\": \"artifact-uuid\",\n      \"name\": \"Weather Report\",\n      \"parts\": [{\"text\": \"Today will be sunny with a high of 75°F\"}]\n    }]\n  }\n}\n```\n\n### 6.2. Streaming Task Execution\n\n**Scenario:** Client requests a long-running task with real-time updates.\n\n**Request:**\n\n```http\nPOST /message:stream HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Write a detailed report on climate change\"}],\n    \"messageId\": \"msg-uuid\"\n  }\n}\n```\n\n**SSE Response Stream:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: text/event-stream\n\ndata: {\"task\": {\"id\": \"task-uuid\", \"status\": {\"state\": \"TASK_STATE_WORKING\"}}}\n\ndata: {\"artifactUpdate\": {\"taskId\": \"task-uuid\", \"artifact\": {\"parts\": [{\"text\": \"# Climate Change Report\\n\\n\"}]}}}\n\ndata: {\"statusUpdate\": {\"taskId\": \"task-uuid\", \"status\": {\"state\": \"TASK_STATE_COMPLETED\"}}}\n```\n\n### 6.3. Multi-Turn Interaction\n\n**Scenario:** Agent requires additional input to complete a task.\n\n**Initial Request:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Book me a flight\"}],\n    \"messageId\": \"msg-1\"\n  }\n}\n```\n\n**Response (Input Required):**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"task\": {\n    \"id\": \"task-uuid\",\n    \"status\": {\n      \"state\": \"TASK_STATE_INPUT_REQUIRED\",\n      \"message\": {\n        \"role\": \"ROLE_AGENT\",\n        \"parts\": [{\"text\": \"I need more details. Where would you like to fly from and to?\"}]\n      }\n    }\n  }\n}\n```\n\n**Follow-up Request:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"taskId\": \"task-uuid\",\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"From San Francisco to New York\"}],\n    \"messageId\": \"msg-2\"\n  }\n}\n```\n\n### 6.4. Version Negotiation Error\n\n**Scenario:** Client requests an unsupported protocol version.\n\n**Request:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\nA2A-Version: 0.5\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Hello\"}],\n    \"messageId\": \"msg-uuid\"\n  }\n}\n```\n\n**Response:**\n\n```http\nHTTP/1.1 400 Bad Request\nContent-Type: application/problem+json\n\n{\n  \"type\": \"https://a2a-protocol.org/errors/version-not-supported\",\n  \"title\": \"Protocol Version Not Supported\",\n  \"status\": 400,\n  \"detail\": \"The requested A2A protocol version 0.5 is not supported by this agent\",\n  \"supportedVersions\": [\"0.3\"]\n}\n```\n\n### 6.5. Task Listing and Management\n\n**Scenario:** Client wants to see all tasks from a specific context or all tasks with a particular status.\n\n#### Request: All tasks from a specific context\n\n**Request:**\n\n```http\nGET /tasks?contextId=c295ea44-7543-4f78-b524-7a38915ad6e4&pageSize=10&historyLength=3 HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer token\n```\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"tasks\": [\n    {\n      \"id\": \"3f36680c-7f37-4a5f-945e-d78981fafd36\",\n      \"contextId\": \"c295ea44-7543-4f78-b524-7a38915ad6e4\",\n      \"status\": {\n        \"state\": \"TASK_STATE_COMPLETED\",\n        \"timestamp\": \"2024-03-15T10:15:00Z\"\n      }\n    }\n  ],\n  \"totalSize\": 5,\n  \"pageSize\": 10,\n  \"nextPageToken\": \"\"\n}\n```\n\n#### Request: All working tasks across all contexts\n\n**Request:**\n\n```http\nGET /tasks?status=TASK_STATE_WORKING&pageSize=20 HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer token\n```\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"tasks\": [\n    {\n      \"id\": \"789abc-def0-1234-5678-9abcdef01234\",\n      \"contextId\": \"another-context-id\",\n      \"status\": {\n        \"state\": \"TASK_STATE_WORKING\",\n        \"message\": {\n          \"role\": \"ROLE_AGENT\",\n          \"parts\": [\n            {\n              \"text\": \"Processing your document analysis...\"\n            }\n          ],\n          \"messageId\": \"msg-status-update\"\n        },\n        \"timestamp\": \"2024-03-15T10:20:00Z\"\n      }\n    }\n  ],\n  \"totalSize\": 1,\n  \"pageSize\": 20,\n  \"nextPageToken\": \"\"\n}\n```\n\n#### Pagination Example\n\n**Request:**\n\n```http\nGET /tasks?contextId=c295ea44-7543-4f78-b524-7a38915ad6e4&pageSize=10&pageToken=base64-encoded-cursor-token HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer token\n```\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"tasks\": [\n    /* ... additional tasks */\n  ],\n  \"totalSize\": 15,\n  \"pageSize\": 10,\n  \"nextPageToken\": \"base64-encoded-next-cursor-token\"\n}\n```\n\n#### Validation Error Example\n\n**Request:**\n\n```http\nGET /tasks?pageSize=150&historyLength=-5&status=TASK_STATE_RUNNING HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer token\n```\n\n**Response:**\n\n```http\nHTTP/1.1 400 Bad Request\nContent-Type: application/problem+json\n\n{\n  \"status\": 400,\n  \"detail\": \"Invalid parameters\",\n  \"errors\": [\n    {\n      \"field\": \"pageSize\",\n      \"message\": \"Must be between 1 and 100 inclusive, got 150\"\n    },\n    {\n      \"field\": \"historyLength\",\n      \"message\": \"Must be non-negative integer, got -5\"\n    },\n    {\n      \"field\": \"status\",\n      \"message\": \"Invalid status value 'running'. Must be one of: pending, working, completed, failed, canceled\"\n    }\n  ]\n}\n```\n\n### 6.6. Push Notification Setup and Usage\n\n**Scenario:** Client requests a long-running report generation and wants to be notified via webhook when it's done.\n\n**Initial Request with Push Notification Config:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [\n      {\n        \"text\": \"Generate the Q1 sales report. This usually takes a while. Notify me when it's ready.\"\n      }\n    ],\n    \"messageId\": \"6dbc13b5-bd57-4c2b-b503-24e381b6c8d6\"\n  },\n  \"configuration\": {\n    \"pushNotificationConfig\": {\n      \"url\": \"https://client.example.com/webhook/a2a-notifications\",\n      \"token\": \"secure-client-token-for-task-aaa\",\n      \"authentication\": {\n        \"schemes\": [\"Bearer\"]\n      }\n    }\n  }\n}\n```\n\n**Response (Task Submitted):**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"task\": {\n    \"id\": \"43667960-d455-4453-b0cf-1bae4955270d\",\n    \"contextId\": \"c295ea44-7543-4f78-b524-7a38915ad6e4\",\n    \"status\": {\n      \"state\": \"submitted\",\n      \"timestamp\": \"2024-03-15T11:00:00Z\"\n    }\n  }\n}\n```\n\n**Later: Server POSTs Notification to Webhook:**\n\n```http\nPOST /webhook/a2a-notifications HTTP/1.1\nHost: client.example.com\nAuthorization: Bearer server-generated-jwt\nContent-Type: application/a2a+json\nX-A2A-Notification-Token: secure-client-token-for-task-aaa\n\n{\n  \"statusUpdate\": {\n    \"taskId\": \"43667960-d455-4453-b0cf-1bae4955270d\",\n    \"contextId\": \"c295ea44-7543-4f78-b524-7a38915ad6e4\",\n    \"status\": {\n      \"state\": \"TASK_STATE_COMPLETED\",\n      \"timestamp\": \"2024-03-15T18:30:00Z\"\n    }\n  }\n}\n```\n\n### 6.7. File Exchange (Upload and Download)\n\n**Scenario:** Client sends an image for analysis, and the agent returns a modified image.\n\n**Request with File Upload:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [\n      {\n        \"text\": \"Analyze this image and highlight any faces.\"\n      },\n      {\n        \"raw\": \"iVBORw0KGgoAAAANSUhEUgAAAAUA...\"\n        \"filename\": \"input_image.png\",\n        \"mediaType\": \"image/png\",\n      }\n    ],\n    \"messageId\": \"6dbc13b5-bd57-4c2b-b503-24e381b6c8d6\"\n  }\n}\n```\n\n**Response with File Reference:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"task\": {\n    \"id\": \"43667960-d455-4453-b0cf-1bae4955270d\",\n    \"contextId\": \"c295ea44-7543-4f78-b524-7a38915ad6e4\",\n    \"status\": {\n      \"state\": \"TASK_STATE_COMPLETED\",\n      \"timestamp\": \"2024-03-15T12:05:00Z\"\n    },\n    \"artifacts\": [\n      {\n        \"artifactId\": \"9b6934dd-37e3-4eb1-8766-962efaab63a1\",\n        \"name\": \"processed_image_with_faces.png\",\n        \"parts\": [\n          {\n            \"url\": \"https://storage.example.com/processed/task-bbb/output.png?token=xyz\",\n            \"filename\": \"output.png\",\n            \"mediaType\": \"image/png\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n### 6.8. Structured Data Exchange\n\n**Scenario:** Client asks for a list of open support tickets in a specific JSON format.\n\n**Request:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/a2a+json\nAuthorization: Bearer token\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [\n      {\n        \"text\": \"Show me a list of my open IT tickets\",\n        \"metadata\": {\n          \"mediaType\": \"application/json\",\n          \"schema\": {\n            \"type\": \"array\",\n            \"items\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"ticketNumber\": { \"type\": \"string\" },\n                \"description\": { \"type\": \"string\" }\n              }\n            }\n          }\n        }\n      }\n    ],\n    \"messageId\": \"85b26db5-ffbb-4278-a5da-a7b09dea1b47\"\n  }\n}\n```\n\n**Response with Structured Data:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"task\": {\n    \"id\": \"d8c6243f-5f7a-4f6f-821d-957ce51e856c\",\n    \"contextId\": \"c295ea44-7543-4f78-b524-7a38915ad6e4\",\n    \"status\": {\n      \"state\": \"TASK_STATE_COMPLETED\",\n      \"timestamp\": \"2025-04-17T17:47:09.680794Z\"\n    },\n    \"artifacts\": [\n      {\n        \"artifactId\": \"c5e0382f-b57f-4da7-87d8-b85171fad17c\",\n        \"parts\": [\n          {\n            \"text\": \"[{\\\"ticketNumber\\\":\\\"REQ12312\\\",\\\"description\\\":\\\"request for VPN access\\\"},{\\\"ticketNumber\\\":\\\"REQ23422\\\",\\\"description\\\":\\\"Add to DL - team-gcp-onboarding\\\"}]\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n### 6.9. Fetching Authenticated Extended Agent Card\n\n**Scenario:** A client discovers a public Agent Card indicating support for an authenticated extended card and wants to retrieve the full details.\n\n**Step 1: Client fetches the public Agent Card:**\n\n```http\nGET /.well-known/agent-card.json HTTP/1.1\nHost: example.com\n```\n\n**Response includes:**\n\n```json\n{\n  \"capabilities\": {\n    \"extendedAgentCard\": true\n  },\n  \"securitySchemes\": {\n    \"google\": {\n      \"openIdConnectSecurityScheme\": {\n        \"openIdConnectUrl\": \"https://accounts.google.com/.well-known/openid-configuration\"\n      }\n    }\n  }\n}\n```\n\n### Step 2: Client obtains credentials (out-of-band OAuth 2.0 flow)\n\n### Step 3: Client fetches authenticated extended Agent Card\n\n```http\nGET /extendedAgentCard HTTP/1.1\nHost: agent.example.com\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n```\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/a2a+json\n\n{\n  \"name\": \"Extended Agent with Additional Skills\",\n  \"skills\": [\n    /* Extended skills available to authenticated users */\n  ]\n}\n```\n\n## 7. Authentication and Authorization\n\nA2A treats agents as standard enterprise applications, relying on established web security practices. Identity information is handled at the protocol layer, not within A2A semantics.\n\nFor a comprehensive guide on enterprise security aspects, see [Enterprise-Ready Features](./topics/enterprise-ready.md).\n\n### 7.1. Protocol Security\n\nProduction deployments **MUST** use encrypted communication (HTTPS for HTTP-based bindings, TLS for gRPC). Implementations **SHOULD** use modern TLS configurations (TLS 1.3+ recommended) with strong cipher suites.\n\n### 7.2. Server Identity Verification\n\nA2A Clients **SHOULD** verify the A2A Server's identity by validating its TLS certificate against trusted certificate authorities (CAs) during the TLS handshake.\n\n### 7.3. Client Authentication Process\n\n1. **Discovery of Requirements:** The client discovers the server's required authentication schemes via the `securitySchemes` field in the AgentCard.\n2. **Credential Acquisition (Out-of-Band):** The client obtains the necessary credentials through an out-of-band process specific to the required authentication scheme.\n3. **Credential Transmission:** The client includes these credentials in protocol-appropriate headers or metadata for every A2A request.\n\n### 7.4. Server Authentication Responsibilities\n\nThe A2A Server:\n\n- **MUST** authenticate every incoming request based on the provided credentials and its declared authentication requirements.\n- **SHOULD** use appropriate binding-specific error codes for authentication challenges or rejections.\n- **SHOULD** provide relevant authentication challenge information with error responses.\n\n### 7.5. Server Authorization Responsibilities\n\nOnce authenticated, the A2A Server authorizes requests based on the authenticated identity and its own policies. Authorization logic is implementation-specific and **MAY** consider:\n\n- Specific skills requested\n- Actions attempted within tasks\n- Data access policies\n- OAuth scopes (if applicable)\n\n### 7.6. In-Task Authorization\n\nIn the course of performing a task, an agent may require authorization to perform some action. Examples include:\n\n- An agent requiring an OAuth access token to call an API or another agent\n- An agent requiring human approval before a destructive action is taken\n\nIn the sections below, we refer to the object that represents the approved authorization as a credential.\n\nAgents may have multiple means for retrieving this authorization, such as via directly sending messages to a human.\n\nA2A provides the capability for agents to delegate the fulfillment of this authorization to the client via the `TASK_STATE_AUTH_REQUIRED` Task state. This provides agents a fallback path for requesting authorization by passing the responsibility to the client.\n\n#### 7.6.1 In-Task Authorization Agent Responsibilities\n\nTo request that a client fulfills an authorization request, the agent:\n\n1. MUST use a Task to track the operation it is performing\n2. MUST transition the TaskState to `TASK_STATE_AUTH_REQUIRED`\n3. MUST include a TaskStatus message explaining the required authorization, unless the details of the authorization have been negotiated out-of-band or via an extension\n\nAgents MUST arrange to receive credentials via an out-of-band means, unless an in-band mechanism has been negotiated out-of-band or via an extension.\n\nIf the credential is received out-of-band, the agent SHOULD maintain any active response streams with the client after setting the TaskState to `TASK_STATE_AUTH_REQUIRED`. The agent MAY immediately continue Task processing after receiving the credential, without a requirement that clients send a follow-up message.\n\nAgents SHOULD support receiving messages directed to the Task while the Task remains in `TASK_STATE_AUTH_REQUIRED`. This enables clients to negotiate, correct, or reject an authorization request.\n\n#### 7.6.2 In-Task Authorization Client Responsibilities\n\nUpon receiving a Task in `TASK_STATE_AUTH_REQUIRED`, a client is expected to take action in some way to resolve the agent's request for authorization.\n\nA client may:\n\n- Send a response message to the Task to negotiate, correct, or reject the authorization request.\n- Contact another human, agent, or service to fulfill the authorization request\n- Directly fulfill the authorization request via an out-of-band or extension negotiated means\n\nIf the client is itself an A2A agent actively processing a Task, the client may further delegate the authorization request to its client by transitioning its own Task to `TASK_STATE_AUTH_REQUIRED`. The client SHOULD follow all [In-Task Authorization Agent Responsibilities](#761-in-task-authorization-agent-responsibilities). This enables forming a chain of Tasks in `TASK_STATE_AUTH_REQUIRED`.\n\nClients may not be aware of when the agent receives credentials out-of-band and subsequently continues Task processing. If a client does not have an active response stream open with the agent, the client risks missing Task updates. To avoid this, a client SHOULD perform one of the following:\n\n- Subscribe to a stream of events for the Task using the [Subscribe to Task](#316-subscribe-to-task) operation\n- Register a webhook to receive events, if supported by the agent, using the [Create Push Notification Config](#317-create-push-notification-config) operation\n- Begin polling the Task using the [Get Task](#313-get-task) operation\n\n#### 7.6.3 In-Task Authorization Security Considerations\n\nAgents SHOULD receive credentials for in-task authorization requests out of band via a secure channel, such as HTTPS. This ensures that credentials are provided directly to the agent.\n\nIn-band credential exchange may be negotiated via out-of-band means or by using extensions. In-band credential exchange can allow credentials to be passed across chains of multiple A2A agents, exposing those credentials to each agent participating in the chain.\n\nIf using in-band credential exchange, we recommend adhering to the following security practices:\n\n- Credentials SHOULD be bound to the agent which originated the request, such that only this agent is able to use the credentials. This ensures that credentials propagating through a chain of A2A requests are only usable by the requesting agent.\n- Credentials containing sensitive information SHOULD be only readable by the agent which originated the request, such as by encrypting the credential.\n\n## 8. Agent Discovery: The Agent Card\n\n<span id=\"5-agent-discovery-the-agent-card\"></span>\n\n### 8.1. Purpose\n\nA2A Servers **MUST** make an Agent Card available. The Agent Card describes the server's identity, capabilities, skills, and interaction requirements. Clients use this information for discovering suitable agents and configuring interactions.\n\nFor more on discovery strategies, see the [Agent Discovery guide](./topics/agent-discovery.md).\n\n### 8.2. Discovery Mechanisms\n\nClients can find Agent Cards through:\n\n- **Well-Known URI:** Accessing `https://{server_domain}/.well-known/agent-card.json` (see [Section 8.6](#86-caching) for caching guidance)\n- **Registries/Catalogs:** Querying curated catalogs of agents\n- **Direct Configuration:** Pre-configured Agent Card URLs or content\n\n### 8.3. Protocol Declaration Requirements\n\nThe AgentCard **MUST** properly declare supported protocols:\n\n#### 8.3.1. Supported Interfaces Declaration\n\n- The `supportedInterfaces` field **SHOULD** declare all supported protocol combinations in preference order\n- The first entry in `supportedInterfaces` represents the preferred interface\n- Each interface **MUST** accurately declare its transport protocol and URL\n- URLs **MAY** be reused if multiple transports are available at the same endpoint\n\n#### 8.3.2. Client Protocol Selection\n\nClients **MUST** follow these rules:\n\n1. Parse `supportedInterfaces` if present, and select the first supported transport\n2. Prefer earlier entries in the ordered list when multiple options are supported\n3. Use the correct URL for the selected transport\n\n### 8.4. Agent Card Signing\n\nAgent Cards **MAY** be digitally signed using JSON Web Signature (JWS) as defined in [RFC 7515](https://tools.ietf.org/html/rfc7515) to ensure authenticity and integrity. Signatures allow clients to verify that an Agent Card has not been tampered with and originates from the claimed provider.\n\n#### 8.4.1. Canonicalization Requirements\n\nBefore signing, the Agent Card content **MUST** be canonicalized using the JSON Canonicalization Scheme (JCS) as defined in [RFC 8785](https://tools.ietf.org/html/rfc8785). This ensures consistent signature generation and verification across different JSON implementations.\n\n**Canonicalization Rules:**\n\n1. **Field Presence and Default Value Handling**: Before canonicalization, the JSON representation **MUST** respect Protocol Buffer field presence semantics as defined in [Section 5.7](#57-field-presence-and-optionality). This ensures that the canonical form accurately reflects which fields were explicitly provided versus which were omitted, enabling signature verification when Agent Cards are reconstructed:\n    - **Optional fields not explicitly set**: Fields marked with the `optional` keyword that were not explicitly set **MUST** be omitted from the JSON object\n    - **Optional fields explicitly set to defaults**: Fields marked with `optional` that were explicitly set to a value (even if that value matches a default) **MUST** be included in the JSON object\n    - **Required fields**: Fields marked with `REQUIRED` **MUST** always be present, even if the field value matches the default.\n    - **Default values**: Fields with default values **MUST** be omitted unless the field is marked as `REQUIRED` or has the `optional` keyword.\n\n2. **RFC 8785 Compliance**: The Agent Card JSON **MUST** be canonicalized according to RFC 8785, which specifies:\n    - Predictable ordering of object properties (lexicographic by key)\n    - Consistent representation of numbers, strings, and other primitive values\n    - Removal of insignificant whitespace\n\n3. **Signature Field Exclusion**: The `signatures` field itself **MUST** be excluded from the content being signed to avoid circular dependencies.\n\n**Example of Default Value Removal:**\n\nOriginal Agent Card fragment:\n\n```json\n{\n  \"name\": \"Example Agent\",\n  \"description\": \"\",\n  \"capabilities\": {\n    \"streaming\": false,\n    \"pushNotifications\": false,\n    \"extensions\": []\n  },\n  \"skills\": []\n}\n```\n\nApplying the canonicalization rules:\n\n- `name`: \"Example Agent\" - REQUIRED field → **include**\n- `description`: \"\" - REQUIRED field → **include**\n- `capabilities`: object - REQUIRED field → **include** (after processing children)\n    - `streaming`: false - optional field, present in JSON (explicitly set) → **include**\n    - `pushNotifications`: false - optional field, present in JSON (explicitly set) → **include**\n    - `extensions`: [] - repeated field (not REQUIRED) with empty array → **omit**\n- `skills`: [] - REQUIRED field → **include**\n\nAfter applying RFC 8785:\n\n```json\n{\"capabilities\":{\"pushNotifications\":false,\"streaming\":false},\"description\":\"\",\"name\":\"Example Agent\",\"skills\":[]}\n```\n\n#### 8.4.2. Signature Format\n\nSignatures use the JSON Web Signature (JWS) format as defined in [RFC 7515](https://tools.ietf.org/html/rfc7515). The [`AgentCardSignature`](#447-agentcardsignature) object represents JWS components using three fields:\n\n- **`protected`** (required, string): Base64url-encoded JSON object containing the JWS Protected Header\n- **`signature`** (required, string): Base64url-encoded signature value\n- **`header`** (optional, object): JWS Unprotected Header as a JSON object (not base64url-encoded)\n\n**JWS Protected Header Parameters:**\n\nThe protected header **MUST** include:\n\n- `alg`: Algorithm used for signing (e.g., \"ES256\", \"RS256\")\n- `typ`: **SHOULD** be set to \"JOSE\" for JWS\n- `kid`: Key ID for identifying the signing key\n\nThe protected header **MAY** include:\n\n- `jku`: URL to JSON Web Key Set (JWKS) containing the public key\n\n**Signature Generation Process:**\n\n1. **Prepare the payload:**\n    - Remove properties with default values from the Agent Card\n    - Exclude the `signatures` field\n    - Canonicalize the resulting JSON using RFC 8785 to produce the canonical payload\n\n2. **Create the protected header:**\n    - Construct a JSON object with the required header parameters (`alg`, `typ`, `kid`) and any optional parameters (`jku`)\n    - Serialize the header to JSON\n    - Base64url-encode the serialized header to produce the `protected` field value\n\n3. **Compute the signature:**\n    - Construct the JWS Signing Input: `ASCII(BASE64URL(UTF8(JWS Protected Header)) || '.' || BASE64URL(JWS Payload))`\n    - Sign the JWS Signing Input using the algorithm specified in the `alg` header parameter and the private key\n    - Base64url-encode the resulting signature bytes to produce the `signature` field value\n\n4. **Assemble the AgentCardSignature:**\n    - Set `protected` to the base64url-encoded protected header from step 2\n    - Set `signature` to the base64url-encoded signature value from step 3\n    - Optionally set `header` to a JSON object containing any unprotected header parameters.\n\n**Example:**\n\nGiven a canonical Agent Card payload and signing key, the signature generation produces:\n\n```json\n{\n  \"protected\": \"eyJhbGciOiJFUzI1NiIsInR5cCI6IkpPU0UiLCJraWQiOiJrZXktMSIsImprdSI6Imh0dHBzOi8vZXhhbXBsZS5jb20vYWdlbnQvandrcy5qc29uIn0\",\n  \"signature\": \"QFdkNLNszlGj3z3u0YQGt_T9LixY3qtdQpZmsTdDHDe3fXV9y9-B3m2-XgCpzuhiLt8E0tV6HXoZKHv4GtHgKQ\"\n}\n```\n\nWhere the `protected` value decodes to:\n\n```json\n{\"alg\":\"ES256\",\"typ\":\"JOSE\",\"kid\":\"key-1\",\"jku\":\"https://example.com/agent/jwks.json\"}\n```\n\n#### 8.4.3. Signature Verification\n\nClients verifying Agent Card signatures **MUST**:\n\n1. Extract the signature from the `signatures` array\n2. Retrieve the public key using the `kid` and `jku` (or from a trusted key store)\n3. Remove properties with default values from the received Agent Card\n4. Exclude the `signatures` field\n5. Canonicalize the resulting JSON using RFC 8785\n6. Verify the signature against the canonicalized payload\n\n**Security Considerations:**\n\n- Clients **SHOULD** verify at least one signature before trusting an Agent Card\n- Public keys **SHOULD** be retrieved over secure channels (HTTPS)\n- Clients **MAY** maintain a trusted key store for known agent providers\n- Expired or revoked keys **MUST NOT** be used for verification\n- Multiple signatures **MAY** be present to support key rotation\n\n### 8.5. Sample Agent Card\n\n```json\n{\n  \"name\": \"GeoSpatial Route Planner Agent\",\n  \"description\": \"Provides advanced route planning, traffic analysis, and custom map generation services. This agent can calculate optimal routes, estimate travel times considering real-time traffic, and create personalized maps with points of interest.\",\n  \"supportedInterfaces\": [\n    {\"url\": \"https://georoute-agent.example.com/a2a/v1\", \"protocolBinding\": \"JSONRPC\", \"protocolVersion\": \"1.0\"},\n    {\"url\": \"https://georoute-agent.example.com/a2a/grpc\", \"protocolBinding\": \"GRPC\", \"protocolVersion\": \"1.0\"},\n    {\"url\": \"https://georoute-agent.example.com/a2a/json\", \"protocolBinding\": \"HTTP+JSON\", \"protocolVersion\": \"1.0\"}\n  ],\n  \"provider\": {\n    \"organization\": \"Example Geo Services Inc.\",\n    \"url\": \"https://www.examplegeoservices.com\"\n  },\n  \"iconUrl\": \"https://georoute-agent.example.com/icon.png\",\n  \"version\": \"1.2.0\",\n  \"documentationUrl\": \"https://docs.examplegeoservices.com/georoute-agent/api\",\n  \"capabilities\": {\n    \"streaming\": true,\n    \"pushNotifications\": true,\n    \"stateTransitionHistory\": false,\n    \"extendedAgentCard\": true\n  },\n  \"securitySchemes\": {\n    \"google\": {\n      \"openIdConnectSecurityScheme\": {\n        \"openIdConnectUrl\": \"https://accounts.google.com/.well-known/openid-configuration\"\n      }\n    }\n  },\n  \"security\": [{ \"google\": [\"openid\", \"profile\", \"email\"] }],\n  \"defaultInputModes\": [\"application/json\", \"text/plain\"],\n  \"defaultOutputModes\": [\"application/json\", \"image/png\"],\n  \"skills\": [\n    {\n      \"id\": \"route-optimizer-traffic\",\n      \"name\": \"Traffic-Aware Route Optimizer\",\n      \"description\": \"Calculates the optimal driving route between two or more locations, taking into account real-time traffic conditions, road closures, and user preferences (e.g., avoid tolls, prefer highways).\",\n      \"tags\": [\"maps\", \"routing\", \"navigation\", \"directions\", \"traffic\"],\n      \"examples\": [\n        \"Plan a route from '1600 Amphitheatre Parkway, Mountain View, CA' to 'San Francisco International Airport' avoiding tolls.\",\n        \"{\\\"origin\\\": {\\\"lat\\\": 37.422, \\\"lng\\\": -122.084}, \\\"destination\\\": {\\\"lat\\\": 37.7749, \\\"lng\\\": -122.4194}, \\\"preferences\\\": [\\\"avoid_ferries\\\"]}\"\n      ],\n      \"inputModes\": [\"application/json\", \"text/plain\"],\n      \"outputModes\": [\n        \"application/json\",\n        \"application/vnd.geo+json\",\n        \"text/html\"\n      ]\n    },\n    {\n      \"id\": \"custom-map-generator\",\n      \"name\": \"Personalized Map Generator\",\n      \"description\": \"Creates custom map images or interactive map views based on user-defined points of interest, routes, and style preferences. Can overlay data layers.\",\n      \"tags\": [\"maps\", \"customization\", \"visualization\", \"cartography\"],\n      \"examples\": [\n        \"Generate a map of my upcoming road trip with all planned stops highlighted.\",\n        \"Show me a map visualizing all coffee shops within a 1-mile radius of my current location.\"\n      ],\n      \"inputModes\": [\"application/json\"],\n      \"outputModes\": [\n        \"image/png\",\n        \"image/jpeg\",\n        \"application/json\",\n        \"text/html\"\n      ]\n    }\n  ],\n  \"signatures\": [\n    {\n      \"protected\": \"eyJhbGciOiJFUzI1NiIsInR5cCI6IkpPU0UiLCJraWQiOiJrZXktMSIsImprdSI6Imh0dHBzOi8vZXhhbXBsZS5jb20vYWdlbnQvandrcy5qc29uIn0\",\n      \"signature\": \"QFdkNLNszlGj3z3u0YQGt_T9LixY3qtdQpZmsTdDHDe3fXV9y9-B3m2-XgCpzuhiLt8E0tV6HXoZKHv4GtHgKQ\"\n    }\n  ]\n}\n```\n\n### 8.6. Caching\n\nAgent Card content changes infrequently relative to the frequency at which clients may fetch it. Servers and clients **SHOULD** use standard HTTP caching mechanisms to reduce unnecessary network overhead.\n\n#### 8.6.1. Server Requirements\n\n- Agent Card HTTP endpoints **SHOULD** include a `Cache-Control` response header with a `max-age` directive appropriate for the agent's expected update frequency\n- Agent Card HTTP endpoints **SHOULD** include an `ETag` response header derived from the Agent Card's `version` field or a hash of the card content\n- Agent Card HTTP endpoints **MAY** include a `Last-Modified` response header\n\n#### 8.6.2. Client Requirements\n\n- Clients **SHOULD** honor HTTP caching semantics as defined in [RFC 9111](https://www.rfc-editor.org/rfc/rfc9111) when fetching Agent Cards\n- When a cached Agent Card has expired, clients **SHOULD** use conditional requests (`If-None-Match` with the stored `ETag`, or `If-Modified-Since`) to avoid re-downloading unchanged cards\n- When the server does not include caching headers, clients **MAY** apply an implementation-specific default cache duration\n\n## 9. JSON-RPC Protocol Binding\n\nThe JSON-RPC protocol binding provides a simple, HTTP-based interface using JSON-RPC 2.0 for method calls and Server-Sent Events for streaming.\n\n### 9.1. Protocol Requirements\n\n- **Protocol:** JSON-RPC 2.0 over HTTP(S)\n- **Content-Type:** `application/json` for requests and responses\n- **Method Naming:** PascalCase method names matching gRPC conventions (e.g., `SendMessage`, `GetTask`)\n- **Streaming:** Server-Sent Events (`text/event-stream`)\n\n### 9.2. Service Parameter Transmission\n\nA2A service parameters defined in [Section 3.2.6](#326-service-parameters) **MUST** be transmitted using standard HTTP request headers, as JSON-RPC 2.0 operates over HTTP(S).\n\n**Service Parameter Requirements:**\n\n- Service parameter names **MUST** be transmitted as HTTP header fields\n- Service parameter keys are case-insensitive per HTTP specification (RFC 7230)\n- Multiple values for the same service parameter (e.g., `A2A-Extensions`) **SHOULD** be comma-separated in a single header field\n\n**Example Request with A2A Service Parameters:**\n\n```http\nPOST /rpc HTTP/1.1\nHost: agent.example.com\nContent-Type: application/json\nAuthorization: Bearer token\nA2A-Version: 0.3\nA2A-Extensions: https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1\n\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"SendMessage\",\n  \"params\": { /* SendMessageRequest */ }\n}\n```\n\n### 9.3. Base Request Structure\n\nAll JSON-RPC requests **MUST** follow the standard JSON-RPC 2.0 format:\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"unique-request-id\",\n  \"method\": \"category/action\",\n  \"params\": { /* method-specific parameters */ }\n}\n```\n\n### 9.4. Core Methods\n\n#### 9.4.1. `SendMessage`\n\nSends a message to initiate or continue a task.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"SendMessage\",\n  \"params\": { /* SendMessageRequest object */ }\n}\n```\n\n**Referenced Objects:** [`SendMessageRequest`](#321-sendmessagerequest), [`Message`](#414-message)\n\n**Response:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    /* SendMessageResponse object, contains one of:\n     * \"task\": { Task object }\n     * \"message\": { Message object }\n    */\n  }\n```\n\n**Referenced Objects:** [`Task`](#411-task), [`Message`](#414-message)\n\n#### 9.4.2. `SendStreamingMessage`\n\nSends a message and subscribes to real-time updates via Server-Sent Events.\n\n**Request:** Same as `SendMessage`\n\n**Response:** HTTP 200 with `Content-Type: text/event-stream`\n\n```text\ndata: {\"jsonrpc\": \"2.0\", \"id\": 1, \"result\": { /* StreamResponse object */ }}\n\ndata: {\"jsonrpc\": \"2.0\", \"id\": 1, \"result\": { /* StreamResponse object */ }}\n```\n\n**Referenced Objects:** [`StreamResponse`](#323-stream-response)\n\n#### 9.4.3. `GetTask`\n\nRetrieves the current state of a task.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"method\": \"GetTask\",\n  \"params\": {\n    \"id\": \"task-uuid\",\n    \"historyLength\": 10\n  }\n}\n```\n\n#### 9.4.4. `ListTasks`\n\nLists tasks with optional filtering and pagination.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 3,\n  \"method\": \"ListTasks\",\n  \"params\": {\n    \"contextId\": \"context-uuid\",\n    \"status\": \"TASK_STATE_WORKING\",\n    \"pageSize\": 50,\n    \"pageToken\": \"cursor-token\"\n  }\n}\n```\n\n#### 9.4.5. `CancelTask`\n\nCancels an ongoing task.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 4,\n  \"method\": \"CancelTask\",\n  \"params\": {\n    \"id\": \"task-uuid\"\n  }\n}\n```\n\n#### 9.4.6. `SubscribeToTask`\n\n<span id=\"936-taskssubscribe\"></span>\n\nSubscribes to a task stream for receiving updates on a task that is not in a terminal state.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 5,\n  \"method\": \"SubscribeToTask\",\n  \"params\": {\n    \"id\": \"task-uuid\"\n  }\n}\n```\n\n**Response:** SSE stream (same format as `SendStreamingMessage`)\n\n**Error:** Returns `UnsupportedOperationError` if the task is in a terminal state (`completed`, `failed`, `canceled`, or `rejected`).\n\n#### 9.4.7. Push Notification Configuration Methods\n\n- `CreateTaskPushNotificationConfig` - Create push notification configuration\n- `GetTaskPushNotificationConfig` - Get push notification configuration\n- `ListTaskPushNotificationConfigs` - List push notification configurations\n- `DeleteTaskPushNotificationConfig` - Delete push notification configuration\n\n#### 9.4.8. `GetExtendedAgentCard`\n\nRetrieves an extended Agent Card.\n\n**Request:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 6,\n  \"method\": \"GetExtendedAgentCard\"\n}\n```\n\n### 9.5. Error Handling\n\nJSON-RPC error responses use the standard [JSON-RPC 2.0 error object](https://www.jsonrpc.org/specification#error_object) structure, which maps to the generic A2A error model defined in [Section 3.3.2](#332-error-handling) as follows:\n\n- **Error Code**: Mapped to `error.code` (numeric JSON-RPC error code)\n- **Error Message**: Mapped to `error.message` (human-readable string)\n- **Error Details**: Mapped to `error.data` (array containing `google.protobuf.Any` messages, using ProtoJSON representation)\n\n**Standard JSON-RPC Error Codes:**\n\n| JSON-RPC Error Code | Error Name            | Standard Message                   | Description                                             |\n| :------------------ | :-------------------- | :--------------------------------- | :------------------------------------------------------ |\n| `-32700`            | `JSONParseError`      | \"Invalid JSON payload\"             | The server received invalid JSON                        |\n| `-32600`            | `InvalidRequestError` | \"Request payload validation error\" | The JSON sent is not a valid Request object             |\n| `-32601`            | `MethodNotFoundError` | \"Method not found\"                 | The requested method does not exist or is not available |\n| `-32602`            | `InvalidParamsError`  | \"Invalid parameters\"               | The method parameters are invalid                       |\n| `-32603`            | `InternalError`       | \"Internal error\"                   | An internal error occurred on the server                |\n\n**A2A-Specific Error Codes:**\n\nA2A-specific errors use codes in the range `-32001` to `-32099`. For the complete mapping of A2A error types to JSON-RPC error codes, see [Section 5.4 (Error Code Mappings)](#54-error-code-mappings).\n\n**A2A Error Representation:**\n\nFor A2A-specific errors, implementations **MUST** include a `google.rpc.ErrorInfo` message in the `data` array with:\n\n- `@type`: Set to `\"type.googleapis.com/google.rpc.ErrorInfo\"`\n- `reason`: The A2A error type in UPPER_SNAKE_CASE without the \"Error\" suffix (e.g., `TASK_NOT_FOUND`)\n- `domain`: Set to `\"a2a-protocol.org\"`\n- `metadata`: Optional map of additional error context\n\nAdditional error context **MAY** be included in the `data` array.\n\n**Error Response Structure:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"error\": {\n    \"code\": -32601,\n    \"message\": \"Method not found\",\n    \"data\": {\n      \"method\": \"invalid/method\"\n    }\n  }\n}\n```\n\n**Example A2A-Specific Error Response:**\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"error\": {\n    \"code\": -32001,\n    \"message\": \"Task not found\",\n    \"data\": [\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n        \"reason\": \"TASK_NOT_FOUND\",\n        \"domain\": \"a2a-protocol.org\",\n        \"metadata\": {\n          \"taskId\": \"nonexistent-task-id\",\n          \"timestamp\": \"2025-11-09T10:30:00.000Z\"\n        }\n      }\n    ]\n  }\n}\n```\n\n## 10. gRPC Protocol Binding\n\nThe gRPC Protocol Binding provides a high-performance, strongly-typed interface using Protocol Buffers over HTTP/2. The gRPC Protocol Binding leverages the [API guidelines](https://google.aip.dev/general) to simplify gRPC to HTTP mapping.\n\n### 10.1. Protocol Requirements\n\n- **Protocol:** gRPC over HTTP/2 with TLS\n- **Definition:** Use the normative Protocol Buffers definition in `specification/a2a.proto`\n- **Serialization:** Protocol Buffers version 3\n- **Service:** Implement the `A2AService` gRPC service\n\n### 10.2. Service Parameter Transmission\n\nA2A service parameters defined in [Section 3.2.6](#326-service-parameters) **MUST** be transmitted using gRPC metadata (headers).\n\n**Service Parameter Requirements:**\n\n- Service parameter names **MUST** be transmitted as gRPC metadata keys\n- Metadata keys are case-insensitive and automatically converted to lowercase by gRPC\n- Multiple values for the same service parameter (e.g., `A2A-Extensions`) **SHOULD** be comma-separated in a single metadata entry\n\n**Example gRPC Request with A2A Service Parameters:**\n\n```go\n// Go example using gRPC metadata\nmd := metadata.Pairs(\n    \"authorization\", \"Bearer token\",\n    \"a2a-version\", \"0.3\",\n    \"a2a-extensions\", \"https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1\",\n)\nctx := metadata.NewOutgoingContext(context.Background(), md)\n\n// Make the RPC call with the context containing metadata\nresponse, err := client.SendMessage(ctx, request)\n```\n\n**Metadata Handling:**\n\n- Implementations **MUST** extract A2A service parameters from gRPC metadata for processing\n- Servers **SHOULD** validate required service parameters (e.g., `A2A-Version`) from metadata\n- Service parameter keys in metadata are normalized to lowercase per gRPC conventions\n\n### 10.3. Service Definition\n\n{{ proto_service_to_table(\"A2AService\") }}\n\n### 10.4. Core Methods\n\n#### 10.4.1. SendMessage\n\nSends a message to an agent.\n\n**Request:**\n\n{{ proto_to_table(\"SendMessageRequest\") }}\n\n**Response:**\n\n{{ proto_to_table(\"SendMessageResponse\") }}\n\n#### 10.4.2. SendStreamingMessage\n\nSends a message with streaming updates.\n\n**Request:**\n\n{{ proto_to_table(\"SendMessageRequest\") }}\n\n**Response:** Server streaming [`StreamResponse`](#stream-response) objects.\n\n#### 10.4.3. GetTask\n\nRetrieves task status.\n\n**Request:**\n\n{{ proto_to_table(\"GetTaskRequest\") }}\n\n**Response:** See [`Task`](#411-task) object definition.\n\n#### 10.4.4. ListTasks\n\nLists tasks with filtering.\n\n**Request:**\n\n{{ proto_to_table(\"ListTasksRequest\") }}\n\n**Response:**\n\n{{ proto_to_table(\"ListTasksResponse\") }}\n\n#### 10.4.5. CancelTask\n\nCancels a running task.\n\n**Request:**\n\n{{ proto_to_table(\"CancelTaskRequest\") }}\n\n**Response:** See [`Task`](#411-task) object definition.\n\n#### 10.4.6. SubscribeToTask\n\nSubscribe to task updates via streaming. Returns `UnsupportedOperationError` if the task is in a terminal state.\n\n**Request:**\n\n{{ proto_to_table(\"SubscribeToTaskRequest\") }}\n\n**Response:** Server streaming [`StreamResponse`](#stream-response) objects.\n\n#### 10.4.7. CreateTaskPushNotificationConfig\n\nCreates a push notification configuration for a task.\n\n**Request:**\n\n{{ proto_to_table(\"CreateTaskPushNotificationConfigRequest\") }}\n\n**Response:** See [`PushNotificationConfig`](#431-pushnotificationconfig) object definition.\n\n#### 10.4.8. GetTaskPushNotificationConfig\n\nRetrieves an existing push notification configuration for a task.\n\n**Request:**\n\n{{ proto_to_table(\"GetTaskPushNotificationConfigRequest\") }}\n\n**Response:** See [`PushNotificationConfig`](#431-pushnotificationconfig) object definition.\n\n#### 10.4.9. ListTaskPushNotificationConfigs\n\nLists all push notification configurations for a task.\n\n**Request:**\n\n{{ proto_to_table(\"ListTaskPushNotificationConfigsRequest\") }}\n\n**Response:**\n\n{{ proto_to_table(\"ListTaskPushNotificationConfigsResponse\") }}\n\n#### 10.4.10. DeleteTaskPushNotificationConfig\n\nRemoves a push notification configuration for a task.\n\n**Request:**\n\n{{ proto_to_table(\"DeleteTaskPushNotificationConfigRequest\") }}\n\n**Response:** `google.protobuf.Empty`\n\n#### 10.4.11. GetExtendedAgentCard\n\nRetrieves the agent's extended capability card after authentication.\n\n**Request:**\n\n{{ proto_to_table(\"GetExtendedAgentCardRequest\") }}\n\n**Response:** See [`AgentCard`](#441-agentcard) object definition.\n\n### 10.5. gRPC-Specific Data Types\n\n#### 10.5.1. TaskPushNotificationConfig\n\nResource wrapper for push notification configurations. This is a gRPC-specific type used in resource-oriented operations to provide the full resource name along with the configuration data.\n\n{{ proto_to_table(\"TaskPushNotificationConfig\") }}\n\n**Fields:**\n\n{{ proto_to_table(\"TaskPushNotificationConfig\") }}\n\n### 10.6. Error Handling\n\ngRPC error responses use the standard [gRPC status](https://grpc.io/docs/guides/error/) structure with [google.rpc.Status](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto), which maps to the generic A2A error model defined in [Section 3.3.2](#332-error-handling) as follows:\n\n- **Error Code**: Mapped to `status.code` (gRPC status code enum)\n- **Error Message**: Mapped to `status.message` (human-readable string)\n- **Error Details**: Mapped to `status.details` (repeated google.protobuf.Any messages)\n\n**A2A Error Representation:**\n\nFor A2A-specific errors, implementations **MUST** include a `google.rpc.ErrorInfo` message in the `status.details` array with:\n\n- `reason`: The A2A error type in UPPER_SNAKE_CASE without the \"Error\" suffix (e.g., `TASK_NOT_FOUND`)\n- `domain`: Set to `\"a2a-protocol.org\"`\n- `metadata`: Optional map of additional error context\n\nFor the complete mapping of A2A error types to gRPC status codes, see [Section 5.4 (Error Code Mappings)](#54-error-code-mappings).\n\n**Error Response Example:**\n\n```proto\n// Standard gRPC invalid argument error\nstatus {\n  code: INVALID_ARGUMENT\n  message: \"Invalid request parameters\"\n  details: [\n    {\n      type: \"type.googleapis.com/google.rpc.BadRequest\"\n      field_violations: [\n        {\n          field: \"message.parts\"\n          description: \"At least one part is required\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Example A2A-Specific Error Response:**\n\n```proto\n// A2A-specific task not found error\nstatus {\n  code: NOT_FOUND\n  message: \"Task with ID 'task-123' not found\"\n  details: [\n    {\n      type: \"type.googleapis.com/google.rpc.ErrorInfo\"\n      reason: \"TASK_NOT_FOUND\"\n      domain: \"a2a-protocol.org\"\n      metadata: {\n        task_id: \"task-123\"\n        timestamp: \"2025-11-09T10:30:00Z\"\n      }\n    }\n  ]\n}\n```\n\n### 10.7. Streaming\n\ngRPC streaming uses server streaming RPCs for real-time updates. The `StreamResponse` message provides a union of possible streaming events:\n\n{{ proto_to_table(\"StreamResponse\") }}\n\n## 11. HTTP+JSON/REST Protocol Binding\n\nThe HTTP+JSON protocol binding provides a RESTful interface using standard HTTP methods and JSON payloads.\n\n### 11.1. Protocol Requirements\n\n- **Protocol:** HTTP(S) with JSON payloads\n- **Content-Type:** `application/json` for requests and responses\n- **Methods:** Standard HTTP verbs (GET, POST, PUT, DELETE)\n- **URL Patterns:** RESTful resource-based URLs\n- **Streaming:** Server-Sent Events for real-time updates\n\n### 11.2. Service Parameter Transmission\n\nA2A service parameters defined in [Section 3.2.6](#326-service-parameters) **MUST** be transmitted using standard HTTP request headers.\n\n**Service Parameter Requirements:**\n\n- Service parameter names **MUST** be transmitted as HTTP header fields\n- Service parameter keys are case-insensitive per HTTP specification (RFC 9110)\n- Multiple values for the same service parameter (e.g., `A2A-Extensions`) **SHOULD** be comma-separated in a single header field\n\n**Example Request with A2A Service Parameters:**\n\n```http\nPOST /message:send HTTP/1.1\nHost: agent.example.com\nContent-Type: application/json\nAuthorization: Bearer token\nA2A-Version: 0.3\nA2A-Extensions: https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1\n\n{\n  \"message\": {\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Find restaurants near me\"}]\n  }\n}\n```\n\n### 11.3. URL Patterns and HTTP Methods\n\n#### 11.3.1. Message Operations\n\n- `POST /message:send` - Send message\n- `POST /message:stream` - Send message with streaming (SSE response)\n\n#### 11.3.2. Task Operations\n\n- `GET /tasks/{id}` - Get task status\n- `GET /tasks` - List tasks (with query parameters)\n- `POST /tasks/{id}:cancel` - Cancel task\n- `POST /tasks/{id}:subscribe` - Subscribe to task updates (SSE response, returns error for terminal tasks)\n\n#### 11.3.3. Push Notification Configuration\n\n- `POST /tasks/{id}/pushNotificationConfigs` - Create configuration\n- `GET /tasks/{id}/pushNotificationConfigs/{configId}` - Get configuration\n- `GET /tasks/{id}/pushNotificationConfigs` - List configurations\n- `DELETE /tasks/{id}/pushNotificationConfigs/{configId}` - Delete configuration\n\n#### 11.3.4. Agent Card\n\n- `GET /extendedAgentCard` - Get authenticated extended Agent Card\n\n### 11.4. Request/Response Format\n\nAll requests and responses use JSON objects structurally equivalent to the Protocol Buffer definitions.\n\n**Example Send Message:**\n\n```http\nPOST /message:send\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"messageId\": \"uuid\",\n    \"role\": \"ROLE_USER\",\n    \"parts\": [{\"text\": \"Hello\"}]\n  },\n  \"configuration\": {\n    \"acceptedOutputModes\": [\"text/plain\"]\n  }\n}\n```\n\n**Referenced Objects:** [`SendMessageRequest`](#321-sendmessagerequest), [`Message`](#414-message)\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n  \"task\": {\n    \"id\": \"task-uuid\",\n    \"contextId\": \"context-uuid\",\n    \"status\": {\n      \"state\": \"TASK_STATE_COMPLETED\"\n    }\n  }\n}\n```\n\n**Referenced Objects:** [`Task`](#411-task)\n\n### 11.5. Query Parameter Naming for Request Parameters\n\nHTTP methods that do not support request bodies (GET, DELETE) **MUST** transmit operation request parameters as path parameters or query parameters. This section defines how to map Protocol Buffer field names to query parameter names.\n\n**Naming Convention:**\n\nQuery parameter names **MUST** use `camelCase` to match the JSON serialization of Protocol Buffer field names. This ensures consistency with request bodies used in POST operations.\n\n**Example Mappings:**\n\n| Protocol Buffer Field | Query Parameter Name | Example Usage       |\n| --------------------- | -------------------- | ------------------- |\n| `context_id`          | `contextId`          | `?contextId=uuid`   |\n| `page_size`           | `pageSize`           | `?pageSize=50`      |\n| `page_token`          | `pageToken`          | `?pageToken=cursor` |\n| `task_id`             | `taskId`             | `?taskId=uuid`      |\n\n**Usage Examples:**\n\nList tasks with filtering:\n\n```http\nGET /tasks?contextId=uuid&status=working&pageSize=50&pageToken=cursor\n```\n\nGet task with history:\n\n```http\nGET /tasks/{id}?historyLength=10\n```\n\n**Field Type Handling:**\n\n- **Strings**: Passed directly as query parameter values\n- **Booleans**: Represented as lowercase strings (`true`, `false`)\n- **Numbers**: Represented as decimal strings\n- **Enums**: Represented using their string values (e.g., `status=working`)\n- **Repeated Fields**: Multiple values **MAY** be passed by repeating the parameter name (e.g., `?tag=value1&tag=value2`) or as comma-separated values (e.g., `?tag=value1,value2`)\n- **Nested Objects**: Not supported in query parameters; operations requiring nested objects **MUST** use POST with a request body\n- **Datetimes/Timestamps**: Represented as ISO 8601 strings (e.g., `2025-11-09T10:30:00Z`)\n\n**URL Encoding:**\n\nAll query parameter values **MUST** be properly URL-encoded per [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986.html).\n\n### 11.6. Error Handling\n\nHTTP error responses use the representation specified in [AIP-193](https://google.aip.dev/193#http11json-representation) which maps to the generic A2A error model defined in [Section 3.3.2](#332-error-handling) as follows:\n\n- **Error Code**: Mapped to the HTTP status code and the `error.code` field\n- **Error Message**: Mapped to the `error.message` field (human-readable string)\n- **Error Details**: Mapped to the `error.details` array (containing `google.protobuf.Any` messages)\n\n**A2A Error Representation:**\n\nFor A2A-specific errors, implementations **MUST** include a `google.rpc.ErrorInfo` message in the `details` array with:\n\n- `@type`: Set to `\"type.googleapis.com/google.rpc.ErrorInfo\"`\n- `reason`: The A2A error type in UPPER_SNAKE_CASE without the \"Error\" suffix (e.g., `TASK_NOT_FOUND`)\n- `domain`: Set to `\"a2a-protocol.org\"`\n- `metadata`: Optional map of additional error context\n\nFor the complete mapping of A2A error types to HTTP status codes, see [Section 5.4 (Error Code Mappings)](#54-error-code-mappings). Additional error context **MAY** be included in the `details` array of the Status object.\n\n**Error Response Example:**\n\n```http\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n  \"error\": {\n    \"code\": 404,\n    \"status\": \"NOT_FOUND\",\n    \"message\": \"The specified task ID does not exist or is not accessible\",\n    \"details\": [\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n        \"reason\": \"TASK_NOT_FOUND\",\n        \"domain\": \"a2a-protocol.org\",\n        \"metadata\": {\n          \"taskId\": \"task-123\",\n          \"timestamp\": \"2025-11-09T10:30:00.000Z\"\n        }\n      }\n    ]\n  }\n}\n```\n\nExtension fields like `taskId` and `timestamp` provide additional context to help diagnose the error.\n\n### 11.7. Streaming\n\n<span id=\"stream-response\"></span>\n\nREST streaming uses Server-Sent Events with the `data` field containing JSON serializations of the protocol data objects:\n\n```http\nPOST /message:stream\nContent-Type: application/json\n\n{ /* SendMessageRequest object */ }\n```\n\n**Referenced Objects:** [`SendMessageRequest`](#321-sendmessagerequest)\n\n**Response:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: text/event-stream\n\ndata: { /* StreamResponse object */ }\n\ndata: { /* StreamResponse object */ }\n```\n\n**Referenced Objects:** [`StreamResponse`](#323-stream-response)\nStreaming responses are simple, linearly ordered sequences: first a `Task` (or single `Message`), then zero or more status or artifact update events until the task reaches a terminal or interrupted state, at which point the stream closes. Implementations SHOULD avoid re-ordering events and MAY optionally resend a final `Task` snapshot before closing.\n\n## 12. Custom Binding Guidelines\n\nWhile the A2A protocol provides three standard bindings (JSON-RPC, gRPC, and HTTP+JSON/REST), implementers **MAY** create custom protocol bindings to support additional transport mechanisms or communication patterns. Custom bindings **MUST** comply with all requirements defined in [Section 5 (Protocol Binding Requirements and Interoperability)](#5-protocol-binding-requirements-and-interoperability). This section provides additional guidelines specific to developing custom bindings.\n\n### 12.1. Binding Requirements\n\nCustom protocol bindings **MUST**:\n\n1. **Implement All Core Operations**: Support all operations defined in [Section 3 (A2A Protocol Operations)](#3-a2a-protocol-operations)\n2. **Preserve Data Model**: Use data structures functionally equivalent to those defined in [Section 4 (Protocol Data Model)](#4-protocol-data-model)\n3. **Maintain Semantics**: Ensure operations behave consistently with the abstract operation definitions\n4. **Document Completely**: Provide comprehensive documentation of the binding specification\n\n### 12.2. Data Type Mappings\n\nCustom bindings **MUST** provide clear mappings for:\n\n- **Protocol Buffer Types**: Define how each Protocol Buffer message type is represented\n- **Timestamps**: Follow the conventions in [Section 5.6.1 (Timestamps)](#561-timestamps)\n- **Binary Data**: Specify encoding for binary content (e.g., base64 for text-based protocols)\n- **Enumerations**: Define representation of enum values (e.g., strings, integers)\n\n### 12.3. Service Parameter Transmission\n\nAs specified in [Section 3.2.6 (Service Parameters)](#326-service-parameters), custom protocol bindings **MUST** document how service parameters are transmitted. The binding specification **MUST** address:\n\n1. **Transmission Mechanism**: The protocol-specific method for transmitting service parameter key-value pairs\n2. **Value Constraints**: Any limitations on service parameter values (e.g., character encoding, size limits)\n3. **Reserved Names**: Any service parameter names reserved by the binding itself\n4. **Fallback Strategy**: What happens when the protocol lacks native header support (e.g., passing service parameters in metadata)\n\n**Example Documentation Requirements:**\n\n- **For native header support**: \"Service parameters are transmitted using HTTP request headers. Service parameter keys are case-insensitive and must conform to RFC 7230. Service parameter values must be UTF-8 strings.\"\n- **For protocols without headers**: \"Service parameters are serialized as a JSON object and transmitted in the request metadata field `a2a-service-parameters`.\"\n\n### 12.4. Error Mapping\n\nCustom bindings **MUST**:\n\n1. **Map Standard Errors**: Provide mappings for all A2A-specific error types defined in [Section 3.2.2 (Error Handling)](#332-error-handling)\n2. **Preserve Error Information**: Ensure error details are accessible to clients\n3. **Use Appropriate Codes**: Map to protocol-native error codes where applicable\n4. **Document Error Format**: Specify the structure of error responses\n\n### 12.5. Streaming Support\n\nIf the binding supports streaming operations:\n\n1. **Define Stream Mechanism**: Document how streaming is implemented (e.g., WebSockets, long-polling, chunked encoding)\n2. **Event Ordering**: Specify ordering guarantees for streaming events\n3. **Reconnection**: Define behavior for connection interruption and resumption\n4. **Stream Termination**: Specify how stream completion is signaled\n\nIf streaming is not supported, the binding **MUST** clearly document this limitation in the Agent Card.\n\n### 12.6. Authentication and Authorization\n\nCustom bindings **MUST**:\n\n1. **Support Standard Schemes**: Implement authentication schemes declared in the Agent Card\n2. **Document Integration**: Specify how credentials are transmitted in the protocol\n3. **Handle Challenges**: Define how authentication challenges are communicated\n4. **Maintain Security**: Follow security best practices for the transport protocol\n\n### 12.7. Agent Card Declaration\n\nCustom bindings **MUST** be declared in the Agent Card:\n\n1. **Transport Identifier**: Use a clear, descriptive transport name\n2. **Endpoint URL**: Provide the full URL where the binding is available\n3. **Documentation Link**: Include a URL to the complete binding specification\n\n**Example:**\n\n```json\n{\n  \"supportedInterfaces\": [\n    {\n      \"url\": \"wss://agent.example.com/a2a/websocket\",\n      \"protocolBinding\": \"WEBSOCKET\"\n    }\n  ]\n}\n```\n\n### 12.8. Interoperability Testing\n\nCustom binding implementers **SHOULD**:\n\n1. **Test Against Reference**: Verify behavior matches standard bindings\n2. **Document Differences**: Clearly note any deviations from standard binding behavior\n3. **Provide Examples**: Include sample requests and responses\n4. **Test Edge Cases**: Verify handling of error conditions, large payloads, and long-running tasks\n\n## 13. Security Considerations\n\nThis section consolidates security guidance and best practices for implementing and operating A2A agents. For additional enterprise security considerations, see [Enterprise-Ready Features](./topics/enterprise-ready.md).\n\n### 13.1. Data Access and Authorization Scoping\n\nImplementations **MUST** ensure appropriate scope limitation based on the authenticated caller's authorization boundaries. This applies to all operations that access or list tasks and other resources.\n\n**Authorization Principles:**\n\n- Servers **MUST** implement authorization checks on every [A2A Protocol Operations](#3-a2a-protocol-operations) request\n- Implementations **MUST** scope results to the caller's authorized access boundaries as defined by the agent's authorization model\n- Even when `contextId` or other filter parameters are not specified in requests, implementations **MUST** scope results to the caller's authorized access boundaries\n- Authorization models are agent-defined and **MAY** be based on:\n    - User identity (user-based authorization)\n    - Organizational roles or groups (role-based authorization)\n    - Project or workspace membership (project-based authorization)\n    - Organizational or tenant boundaries (multi-tenant authorization)\n    - Custom authorization logic specific to the agent's domain\n\n**Operations Requiring Scope Limitation:**\n\n- [`List Tasks`](#314-list-tasks): **MUST** only return tasks visible to the authenticated client according to the agent's authorization model\n- [`Get Task`](#313-get-task): **MUST** verify the authenticated client has access to the requested task according to the agent's authorization model\n- Task-related operations (Cancel, Subscribe, Push Notification Config): **MUST** verify the client has appropriate access rights according to the agent's authorization model\n\n**Implementation Requirements:**\n\n- Authorization boundaries are defined by each agent's authorization model, not prescribed by the protocol\n- Authorization checks **MUST** occur before any database queries or operations that could leak information about the existence of resources outside the caller's authorization scope\n- Agents **SHOULD** document their authorization model and access control policies\n\nSee also: [Section 3.1.4 List Tasks (Security Note)](#314-list-tasks) for operation-specific requirements.\n\n### 13.2. Push Notification Security\n\nWhen implementing push notifications, both agents (as webhook callers) and clients (as webhook receivers) have security responsibilities.\n\n**Agent (Webhook Caller) Requirements:**\n\n- Agents **MUST** include authentication credentials in webhook requests as specified in [`PushNotificationConfig.authentication`](#432-authenticationinfo)\n- Agents **SHOULD** implement reasonable timeout values for webhook requests (recommended: 10-30 seconds)\n- Agents **SHOULD** implement retry logic with exponential backoff for failed deliveries\n- Agents **MAY** stop attempting delivery after a configured number of consecutive failures\n- Agents **SHOULD** validate webhook URLs to prevent SSRF (Server-Side Request Forgery) attacks:\n    - Reject private IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)\n    - Reject localhost and link-local addresses\n    - Implement URL allowlists where appropriate\n\n**Client (Webhook Receiver) Requirements:**\n\n- Clients **MUST** validate webhook authenticity using the provided authentication credentials\n- Clients **SHOULD** verify the task ID in the payload matches an expected task they created\n- Clients **MUST** respond with HTTP 2xx status codes to acknowledge successful receipt\n- Clients **SHOULD** process notifications idempotently, as duplicate deliveries may occur\n- Clients **SHOULD** implement rate limiting to prevent webhook flooding\n- Clients **SHOULD** use HTTPS endpoints for webhook URLs to ensure confidentiality\n\n**Configuration Security:**\n\n- Webhook URLs **SHOULD** use HTTPS to protect payload confidentiality in transit\n- Authentication tokens in [`PushNotificationConfig`](#431-pushnotificationconfig) **SHOULD** be treated as secrets and rotated periodically\n- Agents **SHOULD** securely store push notification configurations and credentials\n- Clients **SHOULD** use unique, single-purpose tokens for each push notification configuration\n\nSee also: [Section 4.3 Push Notification Objects](#43-push-notification-objects) and [Section 4.3.3 Push Notification Payload](#433-push-notification-payload).\n\n### 13.3. Extended Agent Card Access Control\n\nThe extended Agent Card feature allows agents to provide additional capabilities or information to authenticated clients beyond what is available in the public Agent Card.\n\n**Access Control Requirements:**\n\n- The [`Get Extended Agent Card`](#3111-get-extended-agent-card) operation **MUST** require authentication\n- Agents **MUST** authenticate requests using one of the schemes declared in the public `AgentCard.securitySchemes` and `AgentCard.security` fields\n- Agents **MAY** return different extended card content based on the authenticated client's identity or authorization level\n- Agents **SHOULD** implement appropriate caching headers to control client-side caching of extended cards\n\n**Capability-Based Access:**\n\n- Extended cards **MAY** include additional skills not present in the public card\n- Extended cards **MAY** expose more detailed capability information (e.g., rate limits, quotas)\n- Extended cards **MAY** include organization-specific or user-specific configuration\n- Agents **SHOULD** document which capabilities are available at different authentication levels\n\n**Security Considerations:**\n\n- Extended cards **SHOULD NOT** include sensitive information that could be exploited if leaked (e.g., internal service URLs, unmasked credentials)\n- Agents **MUST** validate that clients have appropriate permissions before returning privileged information in extended cards\n- Clients retrieving extended cards **SHOULD** replace their cached public Agent Card with the extended version for the duration of their authenticated session\n- Agents **SHOULD** version extended cards appropriately and honor client cache invalidation\n\n**Availability Declaration:**\n\n- Agents declare extended card support via `AgentCard.capabilities.extendedAgentCard`\n- When `capabilities.extendedAgentCard` is `false` or not present, the operation **MUST** return [`UnsupportedOperationError`](#332-error-handling)\n- When support is declared but no extended card is configured, the operation **MUST** return [`ExtendedAgentCardNotConfiguredError`](#332-error-handling)\n\nSee also: [Section 3.1.11 Get Extended Agent Card](#3111-get-extended-agent-card) and [Section 3.3.4 Capability Validation](#334-capability-validation).\n\n### 13.4. General Security Best Practices\n\n**Transport Security:**\n\n- Production deployments **MUST** use encrypted communication (HTTPS for HTTP-based bindings, TLS for gRPC)\n- Implementations **SHOULD** use modern TLS configurations (TLS 1.3+ recommended) with strong cipher suites\n- Agents **SHOULD** enforce HSTS (HTTP Strict Transport Security) headers when using HTTP-based bindings\n- Implementations **SHOULD** disable support for deprecated SSL/TLS versions (SSLv3, TLS 1.0, TLS 1.1)\n\n**Input Validation:**\n\n- Agents **MUST** validate all input parameters before processing\n- Agents **SHOULD** implement appropriate limits on message sizes, file sizes, and request complexity\n- Agents **SHOULD** sanitize or validate file content types and reject unexpected media types\n\n**Credential Management:**\n\n- API keys, tokens, and other credentials **MUST** be treated as secrets\n- Credentials **SHOULD** be rotated periodically\n- Credentials **SHOULD** be transmitted only over encrypted connections\n- Agents **SHOULD** implement credential revocation mechanisms\n- Agents **SHOULD** log authentication failures and implement rate limiting to prevent brute-force attacks\n\n**Audit and Monitoring:**\n\n- Agents **SHOULD** log security-relevant events (authentication failures, authorization denials, suspicious requests)\n- Agents **SHOULD** implement monitoring for unusual patterns (rapid task creation, excessive cancellations)\n- Agents **SHOULD** provide audit trails for sensitive operations\n- Logs **MUST NOT** include sensitive information (credentials, personal data) unless required and properly protected\n\n**Rate Limiting and Abuse Prevention:**\n\n- Agents **SHOULD** implement rate limiting on all operations\n- Agents **SHOULD** return appropriate error responses when rate limits are exceeded\n- Agents **MAY** implement different rate limits for different operations or user tiers\n\n**Data Privacy:**\n\n- Agents **MUST** comply with applicable data protection regulations\n- Agents **SHOULD** provide mechanisms for users to request deletion of their data\n- Agents **SHOULD** implement appropriate data retention policies\n- Agents **SHOULD** minimize logging of sensitive or personal information\n\n**Custom Binding Security:**\n\n- Custom protocol bindings **MUST** address security considerations in their specification\n- Custom bindings **SHOULD** follow the same security principles as standard bindings\n- Custom bindings **MUST** document authentication integration and credential transmission\n\nSee also: [Section 12.6 Authentication and Authorization (Custom Bindings)](#126-authentication-and-authorization).\n\n## 14. IANA Considerations\n\nThis section provides registration templates for the A2A protocol's media type, HTTP headers, and well-known URI, intended for submission to the Internet Assigned Numbers Authority (IANA).\n\n### 14.1. Media Type Registration\n\n#### 14.1.1. application/a2a+json\n\n**Type name:** `application`\n\n**Subtype name:** `a2a+json`\n\n**Required parameters:** None\n\n**Optional parameters:**\n\n- None\n\n**Encoding considerations:** Binary (UTF-8 encoding MUST be used for JSON text)\n\n**Security considerations:**\nThis media type shares security considerations common to all JSON-based formats as described in RFC 8259, Section 12. Additionally:\n\n- Content MUST be validated against the A2A protocol schema before processing\n- Implementations MUST sanitize user-provided content to prevent injection attacks\n- File references within A2A messages MUST be validated to prevent server-side request forgery (SSRF)\n- Authentication and authorization MUST be enforced as specified in Section 7 of the A2A specification\n- Sensitive information in task history and artifacts MUST be protected according to applicable data protection regulations\n\n**Interoperability considerations:**\nThe A2A protocol supports multiple protocol bindings. This media type is intended for the HTTP+JSON/REST binding.\n\n**Published specification:**\nAgent2Agent (A2A) Protocol Specification, available at: <https://a2a-protocol.org/latest/specification>\n\n**Applications that use this media type:**\nAI agent platforms, agentic workflow systems, multi-agent collaboration tools, and enterprise automation systems that implement the A2A protocol for agent-to-agent communication.\n\n**Fragment identifier considerations:** None\n\n**Additional information:**\n\n- **Deprecated alias names for this type:** None\n- **Magic number(s):** None\n- **File extension(s):** .a2a.json\n- **Macintosh file type code(s):** TEXT\n\n**Person & email address to contact for further information:**\nA2A Protocol Working Group, <a2a-protocol@example.org>\n\n**Intended usage:** COMMON\n\n**Restrictions on usage:** None\n\n**Author:** A2A Protocol Working Group\n\n**Change controller:** A2A Protocol Working Group\n\n**Provisional registration:** No\n\n### 14.2. HTTP Header Field Registrations\n\n**Note:** The following HTTP headers represent the HTTP-based protocol binding implementation of the abstract A2A service parameters defined in [Section 3.2.6](#326-service-parameters). These registrations are specific to HTTP/HTTPS transports.\n\n#### 14.2.1. A2A-Version Header\n\n**Header field name:** A2A-Version\n\n**Applicable protocol:** HTTP\n\n**Status:** Standard\n\n**Author/Change controller:** A2A Protocol Working Group\n\n**Specification document:** Section 3.2.5 of the A2A Protocol Specification\n\n**Related information:**\nThe A2A-Version header field indicates the A2A protocol version that the client is using. The value MUST be in the format `Major.Minor` (e.g., \"0.3\"). If the version is not supported by the agent, the agent returns a `VersionNotSupportedError`.\n\n**Example:**\n\n```text\nA2A-Version: 0.3\n```\n\n#### 14.2.2. A2A-Extensions Header\n\n**Header field name:** A2A-Extensions\n\n**Applicable protocol:** HTTP\n\n**Status:** Standard\n\n**Author/Change controller:** A2A Protocol Working Group\n\n**Specification document:** Section 3.2.5 of the A2A Protocol Specification\n\n**Related information:**\nThe A2A-Extensions header field contains a comma-separated list of extension URIs that the client wants to use for the request. Extensions allow agents to provide additional functionality beyond the core A2A specification while maintaining backward compatibility.\n\n**Example:**\n\n```text\nA2A-Extensions: https://example.com/extensions/geolocation/v1,https://standards.org/extensions/citations/v1\n```\n\n### 14.3. Well-Known URI Registration\n\n**URI suffix:** agent-card.json\n\n**Change controller:** A2A Protocol Working Group\n\n**Specification document:** Section 8.2 of the A2A Protocol Specification\n\n**Related information:**\nThe `.well-known/agent-card.json` URI provides a standardized location for discovering an A2A agent's capabilities, supported protocols, authentication requirements, and available skills. The resource at this URI MUST return an AgentCard object as defined in Section 4.4.1 of the A2A specification.\n\n**Status:** Permanent\n\n**Security considerations:**\n\n- The Agent Card MAY contain public information about an agent's capabilities and SHOULD NOT include sensitive credentials or internal implementation details\n- Implementations SHOULD support HTTPS to ensure authenticity and integrity of the Agent Card\n- Agent Cards MAY be signed using JSON Web Signatures (JWS) as specified in the AgentCardSignature object (Section 4.4.7)\n- Clients SHOULD verify signatures when present to ensure the Agent Card has not been tampered with\n- Extended Agent Cards retrieved via authenticated endpoints (Section 3.1.11) MAY contain additional information and MUST enforce appropriate access controls\n\n**Example:**\n\n```text\nhttps://agent.example.com/.well-known/agent-card.json\n```\n\n---\n\n## Appendix A. Migration & Legacy Compatibility\n\nThis appendix catalogs renamed protocol messages and objects, their legacy identifiers, and the planned deprecation/removal schedule. All legacy names and anchors MUST remain resolvable until the stated earliest removal version.\n\n| Legacy Name                                     | Current Name                              | Earliest Removal Version | Notes                                                  |\n| ----------------------------------------------- | ----------------------------------------- | ------------------------ | ------------------------------------------------------ |\n| `MessageSendParams`                             | `SendMessageRequest`                      | >= 0.5.0                 | Request payload rename for clarity (request vs params) |\n| `SendMessageSuccessResponse`                    | `SendMessageResponse`                     | >= 0.5.0                 | Unified success response naming                        |\n| `SendStreamingMessageSuccessResponse`           | `StreamResponse`                          | >= 0.5.0                 | Shorter, binding-agnostic streaming response           |\n| `SetTaskPushNotificationConfigRequest`          | `CreateTaskPushNotificationConfigRequest` | >= 0.5.0                 | Explicit creation intent                               |\n| `ListTaskPushNotificationConfigSuccessResponse` | `ListTaskPushNotificationConfigsResponse` | >= 0.5.0                 | Consistent response suffix removal                     |\n| `GetAuthenticatedExtendedCardRequest`           | `GetExtendedAgentCardRequest`             | >= 0.5.0                 | Removed \"Authenticated\" from naming                    |\n\nPlanned Lifecycle (example timeline; adjust per release strategy):\n\n1. 0.3.x: New names introduced; legacy names documented; aliases added.\n2. 0.4.x: Legacy names marked \"deprecated\" in SDKs and schemas; warning notes added.\n3. ≥0.5.0: Legacy names eligible for removal after review; migration appendix updated.\n\n### A.1 Legacy Documentation Anchors\n\nHidden anchor spans preserve old inbound links:\n\n<!-- Legacy inbound link compatibility anchors (old spec numbering & names) -->\n<span id=\"32-supported-transport-protocols\"></span>\n<span id=\"324-transport-extensions\"></span>\n<span id=\"35-method-mapping-and-naming-conventions\"></span>\n<span id=\"5-agent-discovery-the-agent-card\"></span>\n<span id=\"53-recommended-location\"></span>\n<span id=\"55-agentcard-object-structure\"></span>\n<span id=\"56-transport-declaration-and-url-relationships\"></span>\n<span id=\"563-client-transport-selection-rules\"></span>\n<span id=\"57-sample-agent-card\"></span>\n<span id=\"6-protocol-data-objects\"></span>\n<span id=\"61-task-object\"></span>\n<span id=\"610-taskpushnotificationconfig-object\"></span>\n<span id=\"611-json-rpc-structures\"></span>\n<span id=\"612-jsonrpcerror-object\"></span>\n<span id=\"63-taskstate-enum\"></span>\n<span id=\"69-pushnotificationauthenticationinfo-object\"></span>\n<span id=\"711-messagesendparams-object\"></span>\n<span id=\"72-messagestream\"></span>\n<span id=\"721-sendstreamingmessageresponse-object\"></span>\n<span id=\"731-taskqueryparams-object\"></span>\n<span id=\"741-listtasksparams-object\"></span>\n<span id=\"742-listtasksresult-object\"></span>\n<span id=\"751-taskidparams-object-for-taskscancel-and-taskspushnotificationconfigget\"></span>\n<span id=\"77-taskspushnotificationconfigget\"></span>\n<span id=\"771-gettaskpushnotificationconfigparams-object-taskspushnotificationconfigget\"></span>\n<span id=\"781-listtaskpushnotificationconfigparams-object-taskspushnotificationconfiglist\"></span>\n<span id=\"791-deletetaskpushnotificationconfigparams-object-taskspushnotificationconfigdelete\"></span>\n<span id=\"8-error-handling\"></span>\n<span id=\"82-a2a-specific-errors\"></span>\n<!-- Legacy renamed message/object name anchors -->\n<span id=\"messagesendparams\"></span>\n<span id=\"sendmessagesuccessresponse\"></span>\n<span id=\"sendstreamingmessagesuccessresponse\"></span>\n<span id=\"settaskpushnotificationconfigrequest\"></span>\n<span id=\"listtaskpushnotificationconfigsuccessresponse\"></span>\n<span id=\"getauthenticatedextendedcardrequest\"></span>\n<span id=\"938-agentgetauthenticatedextendedcard\"></span>\n\nEach legacy span SHOULD be placed adjacent to the current object's heading (to be inserted during detailed object section edits). If an exact numeric-prefixed anchor existed (e.g., `#414-message`), add an additional span matching that historical form if known.\n\n### A.2 Migration Guidance\n\nClient Implementations SHOULD:\n\n- Prefer new names immediately for all new integrations.\n- Implement dual-handling where schemas/types permit (e.g., union type or backward-compatible decoder).\n- Log a warning when receiving legacy-named objects after the first deprecation announcement release.\n\nServer Implementations MAY:\n\n- Accept both legacy and current request message forms during the overlap period.\n- Emit only current form in responses (recommended) while providing explicit upgrade notes.\n\n#### A.2.1 Breaking Change: Kind Discriminator Removed\n\n**Version 1.0 introduces a breaking change** in how polymorphic objects are represented in the protocol. This affects `Part` types and streaming event types.\n\n**Legacy Pattern (v0.3.x):**\nObjects used an inline `kind` field as a discriminator to identify the object type:\n\n**Example 1 - TextPart:**\n\n```json\n{\n  \"kind\": \"text\",\n  \"text\": \"Hello, world!\"\n}\n```\n\n**Example 2 - FilePart:**\n\n```json\n{\n  \"kind\": \"file\",\n  \"file\": {\n    \"name\": \"diagram.png\",\n    \"mimeType\": \"image/png\",\n    \"fileWithBytes\": \"iVBORw0KGgo...\"\n  }\n}\n```\n\n**Current Pattern (v1.0):**\nObjects now use the **JSON member name** itself to identify the type. The member name acts as the discriminator, and the value structure depends on the specific type:\n\n**Example 1 - TextPart:**\n\n```json\n{\n  \"text\": \"Hello, world!\"\n}\n```\n\n**Example 2 - FilePart:**\n\n```json\n{\n  \"raw\": \"iVBORw0KGgo...\",\n  \"filename\": \"diagram.png\",\n  \"mediaType\": \"image/png\"\n}\n```\n\n**Affected Types:**\n\n1. **Part Union Types**:\n   - **TextPart**:\n     - **Legacy:** `{ \"kind\": \"text\", \"text\": \"...\" }`\n     - **Current:** `{ \"text\": \"...\" }` (member presence acts as discriminator)\n   - **FilePart**:\n     - **Legacy:** `{ \"kind\": \"file\", \"file\": { \"name\": \"...\", \"mimeType\": \"...\", \"fileWithBytes\": \"...\" } }`\n     - **Current:** `{ \"raw\": \"...\", \"filename\": \"...\", \"mediaType\": \"...\" }` (or `url` instead of `raw`)\n   - **DataPart**:\n     - **Legacy:** `{ \"kind\": \"data\", \"data\": {...} }`\n     - **Current:** `{ \"data\": {...}, \"mediaType\": \"application/json\" }`\n\n2. **Streaming Event Types**:\n   - **TaskStatusUpdateEvent**:\n     - **Legacy:** `{ \"kind\": \"status-update\", \"taskId\": \"...\", \"status\": {...} }`\n     - **Current:** `{ \"statusUpdate\": { \"taskId\": \"...\", \"status\": {...} } }`\n   - **TaskArtifactUpdateEvent**:\n     - **Legacy:** `{ \"kind\": \"artifact-update\", \"taskId\": \"...\", \"artifact\": {...} }`\n     - **Current:** `{ \"artifactUpdate\": { \"taskId\": \"...\", \"artifact\": {...} } }`\n\n**Migration Strategy:**\n\nFor **Clients** upgrading from pre-0.3.x:\n\n1. Update parsers to expect wrapper objects with member names as discriminators\n2. When constructing requests, use the new wrapper format\n3. Implement version detection based on the agent's `protocolVersions` in the `AgentCard`\n4. Consider maintaining backward compatibility by detecting and handling both formats during a transition period\n\nFor **Servers** upgrading from pre-0.3.x:\n\n1. Update serialization logic to emit wrapper objects\n2. **Breaking:** The `kind` field is no longer part of the protocol and should not be emitted\n3. Update deserialization to expect wrapper objects with member names\n4. Ensure the `AgentCard` declares the correct `protocolVersions` (e.g., [\"1.0\"] or later)\n\n**Rationale:**\n\nThis change aligns with modern API design practices and Protocol Buffers' `oneof` semantics, where the field name itself serves as the type discriminator. This approach:\n\n- Reduces redundancy (no need for both a field name and a `kind` value)\n- Aligns JSON-RPC and gRPC representations more closely\n- Simplifies code generation from schema definitions\n- Eliminates the need for representing inheritance structures in schema languages\n- Improves type safety in strongly-typed languages\n\n#### A.2.2 Breaking Change: Extended Agent Card Field Relocated\n\n**Version 1.0 relocates the extended agent card capability** from a top-level field to the capabilities object for architectural consistency.\n\n**Legacy Structure (pre-1.0):**\n\n```json\n{\n  \"supportsExtendedAgentCard\": true,\n  \"capabilities\": {\n    \"streaming\": true\n  }\n}\n```\n\n**Current Structure (1.0+):**\n\n```json\n{\n  \"capabilities\": {\n    \"streaming\": true,\n    \"extendedAgentCard\": true\n  }\n}\n```\n\n**Proto Changes:**\n\n- Removed: `AgentCard.supports_extended_agent_card` (field 13)\n- Added: `AgentCapabilities.extended_agent_card` (field 5)\n\n**Migration Steps:**\n\nFor **Agent Implementations**:\n\n1. Remove `supportsExtendedAgentCard` from top-level AgentCard\n2. Add `extendedAgentCard` to `capabilities` object\n3. Update validation: `agentCard.capabilities?.extendedAgentCard`\n\nFor **Client Implementations**:\n\n1. Update capability checks: `agentCard.capabilities?.extendedAgentCard`\n2. Temporary fallback (transition period):\n\n   ```javascript\n   const supported = agentCard.capabilities?.extendedAgentCard ||\n                     agentCard.supportsExtendedAgentCard;\n   ```\n\n3. Remove fallback after agent ecosystem migrates\n\nFor **SDK Developers**:\n\n1. Regenerate code from updated proto\n2. Update type definitions\n3. Document breaking change in release notes\n\n**Rationale:**\n\nAll optional features enabling specific operations (`streaming`, `pushNotifications`, `stateTransitionHistory`) reside in `AgentCapabilities`. Moving `extendedAgentCard` achieves:\n\n- Architectural consistency\n- Improved discoverability\n- Semantic correctness (it is a capability)\n\n### A.3 Future Automation\n\nOnce the proto→schema generation pipeline lands, this appendix will be partially auto-generated (legacy mapping table sourced from a maintained manifest). Until then, edits MUST be manual and reviewed in PRs affecting `a2a.proto`.\n\n## Appendix B. Relationship to MCP (Model Context Protocol)\n\nA2A and MCP are complementary protocols designed for different aspects of agentic systems:\n\n- **[Model Context Protocol (MCP)](https://modelcontextprotocol.io/):** Focuses on standardizing how AI models and agents connect to and interact with **tools, APIs, data sources, and other external resources.** It defines structured ways to describe tool capabilities (like function calling in LLMs), pass inputs, and receive structured outputs. Think of MCP as the \"how-to\" for an agent to *use* a specific capability or access a resource.\n- **Agent2Agent Protocol (A2A):** Focuses on standardizing how independent, often opaque, **AI agents communicate and collaborate with each other as peers.** A2A provides an application-level protocol for agents to discover each other, negotiate interaction modalities, manage shared tasks, and exchange conversational context or complex results. It's about how agents *partner* or *delegate* work.\n\n**How they work together:**\nAn A2A Client agent might request an A2A Server agent to perform a complex task. The Server agent, in turn, might use MCP to interact with several underlying tools, APIs, or data sources to gather information or perform actions necessary to fulfill the A2A task.\n\nFor a more detailed comparison, see the [A2A and MCP guide](./topics/a2a-and-mcp.md).\n\n---\n"
  },
  {
    "path": "docs/stylesheets/custom.css",
    "content": "/**\n * Copyright 2025 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* Index page styling */\n\n.md-grid {\n  max-width: 80%;\n}\n\n.footer {\n  padding-bottom: 30vh;\n}\n\n.centered-logo-text-group {\n  display: inline-flex;\n  align-items: center;\n  gap: 1.5em;\n  margin-bottom: 0.5em;\n  vertical-align: middle;\n}\n\n.centered-logo-text-group img {\n  height: auto;\n}\n\n.centered-logo-text-group h1 {\n  margin: 0;\n  text-align: left;\n}\n\n.install-command-container {\n  max-width: 600px;\n  margin: 2.5em auto;\n  padding: 1.5em 2em;\n  background-color: var(--md-code-bg-color, #f5f5f5);\n  border-radius: 8px;\n  text-align: center;\n  box-shadow: 0 3px 6px rgb(0 0 0 / 5%);\n  border-left: 5px solid var(--md-primary-fg-color, #526cfe);\n  margin-top: 30px;\n}\n\n.install-command-container p {\n  font-size: 1.1em;\n  color: var(--md-default-fg-color);\n  margin-bottom: -10px;\n  margin-top: -10px;\n}\n\n.install-command-container p code {\n  font-size: 1.1em;\n  font-weight: 600;\n  padding: 0.3em 0.6em;\n  background-color: var(--md-code-fg-color--light);\n  border-radius: 4px;\n  display: inline-block;\n  line-height: 1.4;\n}\n\n.announce .md-button {\n  font-size: 0.8em;\n  padding: 0.3em 1em;\n  margin-left: 0.5em;\n}\n\nh1#agent2agent-a2a-protocol {\n  display: none;\n}\n\nfigure.hero {\n  margin-top: 0;\n  margin-bottom: 10px;\n}\n\nfigure.hero figcaption {\n  max-width: 100%;\n  width: 100%;\n  margin-bottom: 0;\n  text-align: left;\n}\n\niframe.video-container {\n    width: 100%;\n    aspect-ratio: 16 / 9;\n    height: auto;\n    border-radius: 4px;\n}\n"
  },
  {
    "path": "docs/topics/a2a-and-mcp.md",
    "content": "# A2A and MCP: Detailed Comparison\n\nIn AI agent development, two key protocol types emerge to facilitate\ninteroperability. One connects agents to tools and resources. The other enables\nagent-to-agent collaboration. The Agent2Agent (A2A) Protocol and the\n[Model Context Protocol](https://modelcontextprotocol.io/) (MCP) address these distinct but highly complementary needs.\n\n## Model Context Protocol\n\nThe Model Context Protocol (MCP) defines how an AI agent interacts with and utilizes individual tools and resources, such as a database or an API.\n\nThis protocol offers the following capabilities:\n\n- Standardizes how AI models and agents connect to and interact with tools,\n  APIs, and other external resources.\n- Defines a structured way to describe tool capabilities, similar to function\n  calling in Large Language Models.\n- Passes inputs to tools and receives structured outputs.\n- Supports common use cases, such as an LLM calling an external API, an agent\n  querying a database, or an agent connecting to predefined functions.\n\n## Agent2Agent Protocol\n\nThe Agent2Agent Protocol focuses on enabling different agents to collaborate with one another to achieve a common goal.\n\nThis protocol offers the following capabilities:\n\n- Standardizes how independent, often opaque, AI agents communicate and\n  collaborate as peers.\n- Provides an application-level protocol for agents to discover each other,\n  negotiate interactions, manage shared tasks, and exchange conversational\n  context and complex data.\n- Supports typical use cases, including a customer service agent delegating an\n  inquiry to a billing agent, or a travel agent coordinating with flight,\n  hotel, and activity agents.\n\n## Why Different Protocols?\n\nBoth the MCP and A2A protocols are essential for building complex AI systems, and they address distinct but highly complementary needs. The distinction between A2A and MCP depends on what an agent interacts with.\n\n- **Tools and Resources (MCP Domain)**:\n      - **Characteristics:** These are typically primitives with well-defined,\n        structured inputs and outputs. They perform specific, often stateless,\n        functions. Examples include a calculator, a database query API, or a\n        weather lookup service.\n      - **Purpose:** Agents use tools to gather information and perform discrete\n        functions.\n- **Agents (A2A domain)**:\n      - **Characteristics:** These are more autonomous systems. They reason,\n        plan, use multiple tools, maintain state over longer interactions, and\n        engage in complex, often multi-turn dialogues to achieve novel or\n        evolving tasks.\n      - **Purpose:** Agents collaborate with other agents to tackle broader, more\n        complex goals.\n\n## A2A ❤️ MCP: Complementary Protocols for Agentic Systems\n\nAn agentic application might primarily use A2A to communicate with other agents.\nEach individual agent internally uses MCP to interact with its specific tools\nand resources.\n\n<div style=\"text-align: center; margin: 20px;\" markdown>\n\n![Diagram showing A2A and MCP working together. A User interacts with Agent A using A2A. Agent A interacts with Agent B using A2A. Agent B uses MCP to interact with Tool 1 and Tool 2.](../assets/a2a-mcp.png){width=\"80%\"}\n\n_An agentic application might use A2A to communicate with other agents, while each agent internally uses MCP to interact with its specific tools and resources._\n\n</div>\n\n### Example Scenario: The Auto Repair Shop\n\nConsider an auto repair shop staffed by autonomous AI agent \"mechanics\".\nThese mechanics use special-purpose tools, such as vehicle diagnostic scanners,\nrepair manuals, and platform lifts, to diagnose and repair problems. The repair\nprocess can involve extensive conversations, research, and interaction with part\nsuppliers.\n\n- **Customer Interaction (User-to-Agent using A2A)**: A customer (or their\n    primary assistant agent) uses A2A to communicate with the \"Shop Manager\"\n    agent.\n\n    For example, the customer might say, \"My car is making a rattling noise\".\n\n- **Multi-turn Diagnostic Conversation (Agent-to-Agent using A2A)**: The Shop\n    Manager agent uses A2A for a multi-turn diagnostic conversation.\n\n    For example, the Manager might ask, \"Can you send a video of the noise?\" or \"I see some fluid leaking. How long has this been happening?\".\n\n- **Internal Tool Usage (Agent-to-Tool using MCP)**: The Mechanic agent,\n    assigned the task by the Shop Manager, needs to diagnose the issue. The\n    Mechanic agent uses MCP to interact with its specialized tools.\n\n    For example:\n\n    - MCP call to a \"Vehicle Diagnostic Scanner\" tool:\n        `scan_vehicle_for_error_codes(vehicle_id='XYZ123')`\n    - MCP call to a \"Repair Manual Database\" tool:\n        `get_repair_procedure(error_code='P0300', vehicle_make='Toyota',\n        vehicle_model='Camry')`\n    - MCP call to a \"Platform Lift\" tool: `raise_platform(height_meters=2)`\n\n- **Supplier Interaction (Agent-to-Agent using A2A)**: The Mechanic agent\n    determines that a specific part is needed. The Mechanic agent uses A2A to\n    communicate with a \"Parts Supplier\" agent to order a part.\n    For example, the\n    Mechanic agent might ask, \"Do you have part #12345 in stock for a Toyota Camry 2018?\"\n\n- **Order processing (Agent-to-Agent using A2A)**: The Parts Supplier agent,\n    which is also an A2A-compliant system, responds, potentially leading to an\n    order.\n\nIn this example:\n\n- A2A facilitates the higher-level, conversational, and task-oriented\n    interactions between the customer and the shop, and between the shop's\n    agents and external supplier agents.\n- MCP enables the mechanic agent to use its specific, structured tools to\n    perform its diagnostic and repair functions.\n\nAn A2A server could expose some of its skills as MCP-compatible resources.\nHowever, A2A's primary strength lies in its support for more flexible, stateful,\nand collaborative interactions. These interactions go beyond a typical tool\ninvocation. A2A focuses on agents partnering on tasks, whereas MCP focuses on\nagents using capabilities.\n\n## Representing A2A Agents as MCP Resources\n\nAn A2A Server (a remote agent) could expose some of its skills as MCP-compatible resources, especially if those skills are well-defined and can be invoked in a more tool-like, stateless manner. In such a case, another agent might \"discover\" this A2A agent's specific skill through an MCP-style tool description (perhaps derived from its Agent Card).\n\nHowever, the primary strength of A2A lies in its support for more flexible, stateful, and collaborative interactions that go beyond typical tool invocation. A2A is about agents _partnering_ on tasks, while MCP is more about agents _using_ capabilities.\n\nBy leveraging both A2A for inter-agent collaboration and MCP for tool integration, developers can build more powerful, flexible, and interoperable AI systems.\n"
  },
  {
    "path": "docs/topics/agent-discovery.md",
    "content": "# Agent Discovery in A2A\n\nTo collaborate using the Agent2Agent (A2A) protocol, AI agents need to first find each other and understand their capabilities. A2A standardizes agent self-descriptions through the **[Agent Card](../specification.md#5-agent-discovery-the-agent-card)**. However, discovery methods for these Agent Cards vary by environment and requirements. The Agent Card defines what an agent offers. Various strategies exist for a client agent to discover these cards. The choice of strategy depends on the deployment environment and security requirements.\n\n## The Role of the Agent Card\n\nThe Agent Card is a JSON document that serves as a digital \"business card\" for an A2A Server (the remote agent). It is crucial for agent discovery and interaction. The key information included in an Agent Card is as follows:\n\n- **Identity:** Includes `name`, `description`, and `provider` information.\n- **Service Endpoint:** Specifies the `url` for the A2A service.\n- **A2A Capabilities:** Lists supported features such as `streaming` or `pushNotifications`.\n- **Authentication:** Details the required `schemes` (e.g., \"Bearer\", \"OAuth2\").\n- **Skills:** Describes the agent's tasks using `AgentSkill` objects, including `id`, `name`, `description`, `inputModes`, `outputModes`, and `examples`.\n\nClient agents use the Agent Card to determine an agent's suitability, structure requests, and ensure secure communication.\n\n## Discovery Strategies\n\nThe following sections detail common strategies used by client agents to discover remote Agent Cards:\n\n### 1. Well-Known URI\n\nThis approach is recommended for public agents or agents intended for broad discovery within a specific domain.\n\n- **Mechanism:** A2A Servers make their Agent Card discoverable by hosting it at a standardized, `well-known` URI on their domain. The standard path is `https://{agent-server-domain}/.well-known/agent-card.json`, following the principles of [RFC 8615](https://datatracker.ietf.org/doc/html/rfc8615).\n\n- **Process:**\n    1. A client agent knows or programmatically discovers the domain of a potential A2A Server (e.g., `smart-thermostat.example.com`).\n    2. The client performs an HTTP GET request to `https://smart-thermostat.example.com/.well-known/agent-card.json`.\n    3. If the Agent Card exists and is accessible, the server returns it as a JSON response.\n\n- **Advantages:**\n    - Ease of implementation\n    - Adheres to standards\n    - Facilitates automated discovery\n\n- **Considerations:**\n    - Best suited for open or domain-controlled discovery scenarios.\n    - Authentication is necessary at the endpoint serving the Agent Card if it contains sensitive details.\n\n### 2. Curated Registries (Catalog-Based Discovery)\n\nThis approach is employed in enterprise environments or public marketplaces, where Agent Cards are often managed by a central registry. The curated registry acts as a central repository, allowing clients to query and discover agents based on criteria like \"skills\" or \"tags\".\n\n- **Mechanism:** An intermediary service (the registry) maintains a collection of Agent Cards. Clients query this registry to find agents based on various criteria (e.g., skills offered, tags, provider name, capabilities).\n\n- **Process:**\n    1. A2A Servers publish their Agent Cards to the registry.\n    2. Client agents query the registry's API, and search by criteria such as \"specific skills\".\n    3. The registry returns matching Agent Cards or references.\n\n- **Advantages:**\n    - Centralized management and governance.\n    - Capability-based discovery (e.g., by skill).\n    - Support for access controls and trust frameworks.\n    - Applicable in both private and public marketplaces.\n- **Considerations:**\n    - Requires deployment and maintenance of a registry service.\n    - The current A2A specification does not prescribe a standard API for curated registries.\n\n### 3. Direct Configuration / Private Discovery\n\nThis approach is used for tightly coupled systems, private agents, or development purposes, where clients are directly configured with Agent Card information or URLs.\n\n- **Mechanism:** Client applications utilize hardcoded details, configuration files, environment variables, or proprietary APIs for discovery.\n- **Process:** The process is specific to the application's deployment and configuration strategy.\n- **Advantages:** This method is straightforward for establishing connections within known, static relationships.\n- **Considerations:**\n    - Inflexible for dynamic discovery scenarios.\n    - Changes to Agent Card information necessitate client reconfiguration.\n    - Proprietary API-based discovery also lacks standardization.\n\n## Securing Agent Cards\n\nAgent Cards include sensitive information, such as:\n\n- URLs for internal or restricted agents.\n- Descriptions of sensitive skills.\n\n### Protection Mechanisms\n\nTo mitigate risks, the following protection mechanisms should be considered:\n\n- **Authenticated Agent Cards:** We recommend the use of [authenticated extended agent cards](../specification.md#3111-get-extended-agent-card) for sensitive information or for serving a more detailed version of the card.\n- **Secure Endpoints:** Implement access controls on the HTTP endpoint serving the Agent Card (e.g., `/.well-known/agent-card.json` or registry API). The methods include:\n    - Mutual TLS (mTLS)\n    - Network restrictions (e.g., IP ranges)\n    - HTTP Authentication (e.g., OAuth 2.0)\n\n- **Registry Selective Disclosure:** Registries return different Agent Cards based on the client's identity and permissions.\n\nAny Agent Card containing sensitive data must be protected with authentication and authorization mechanisms. The A2A specification strongly recommends the use of out-of-band dynamic credentials rather than embedding static secrets within the Agent Card.\n\n## Caching Considerations\n\nAgent Cards describe an agent's capabilities and typically change infrequently — for example, when skills are added or authentication requirements are updated. Applying standard HTTP caching practices to Agent Card endpoints reduces unnecessary network requests while ensuring clients eventually receive updated information.\n\n### Server Guidance\n\nServers hosting Agent Card endpoints should include HTTP caching headers in their responses. The `Cache-Control` header with an appropriate `max-age` directive allows clients and intermediaries to cache the card for a specified duration. Including an `ETag` header — derived from the card's `version` field or a content hash — enables clients to make conditional requests and avoid re-downloading unchanged cards.\n\n### Client Guidance\n\nClients fetching Agent Cards should honor standard HTTP caching semantics. When a cached card expires, clients should use conditional requests (for example, `If-None-Match` with the stored `ETag` or `If-Modified-Since`) rather than unconditionally re-fetching the full card. When the server does not provide caching headers, clients may apply a reasonable default cache duration.\n\nFor Extended Agent Cards, clients should also follow the session-scoped caching guidance described in the [specification](../specification.md#133-extended-agent-card-access-control).\n\nFor normative requirements, see [Section 8.6](../specification.md#86-caching) of the specification.\n\n## Future Considerations\n\nThe A2A community explores standardizing registry interactions or advanced discovery protocols.\n"
  },
  {
    "path": "docs/topics/enterprise-ready.md",
    "content": "# Enterprise Implementation of A2A\n\nThe Agent2Agent (A2A) protocol is designed with enterprise requirements at its\ncore. Rather than inventing new, proprietary standards for security and\noperations, A2A aims to integrate seamlessly with existing enterprise\ninfrastructure and widely adopted best practices. This approach allows\norganizations to use their existing investments and expertise in security,\nmonitoring, governance, and identity management.\n\nA key principle of A2A is that agents are typically **opaque** because they don't\nshare internal memory, tools, or direct resource access with each other. This\nopacity naturally aligns with standard client-server security paradigms,\ntreating remote agents as standard HTTP-based enterprise applications.\n\n## Transport Level Security (TLS)\n\nEnsuring the confidentiality and integrity of data in transit is fundamental for\nany enterprise application.\n\n- **HTTPS Mandate**: All A2A communication in production environments must\n    occur over `HTTPS`.\n- **Modern TLS Standards**: Implementations should use modern TLS versions.\n    TLS 1.2 or higher is recommended. Strong, industry-standard cipher suites\n    should be used to protect data from eavesdropping and tampering.\n- **Server Identity Verification**: A2A clients should verify the A2A server's\n    identity by validating its TLS certificate against trusted certificate\n    authorities during the TLS handshake. This prevents man-in-the-middle\n    attacks.\n\n## Authentication\n\nA2A delegates authentication to standard web mechanisms. It primarily relies on\nHTTP headers and established standards like OAuth2 and OpenID Connect.\nAuthentication requirements are advertised by the A2A server in its Agent Card.\n\n- **No Identity in Payload**: A2A protocol payloads, such as `JSON-RPC`\n    messages, don't carry user or client identity information directly. Identity\n    is established at the transport/HTTP layer.\n- **Agent Card Declaration**: The A2A server's Agent Card describes the\n    authentication schemes it supports in its `security` field and aligns with\n    those defined in the OpenAPI Specification for authentication.\n- **Out-of-Band Credential Acquisition**: The A2A Client obtains the necessary credentials,\n    such as OAuth 2.0 tokens or API keys, through processes external to the A2A protocol itself. Examples include OAuth flows or secure key distribution.\n- **HTTP Header Transmission**: Credentials **must** be transmitted in standard\n    HTTP headers as per the requirements of the chosen authentication scheme.\n    Examples include `Authorization: Bearer <TOKEN>` or `API-Key: <KEY_VALUE>`.\n- **Server-Side Validation**: The A2A server **must** authenticate every\n    incoming request using the credentials provided in the HTTP headers.\n    - If authentication fails or credentials are missing, the server **should**\n        respond with a standard HTTP status code:\n        - `401 Unauthorized`: If the credentials are missing or invalid. This\n            response **should** include a `WWW-Authenticate` header to inform\n            the client about the supported authentication methods.\n        - `403 Forbidden`: If the credentials are valid, but the authenticated\n            client does not have permission to perform the requested action.\n- **In-Task Authentication (Secondary Credentials)**: If an agent needs\n    additional credentials to access a different system or service during a\n    task (for example, to use a specific tool on the user's behalf), the A2A server\n    indicates to the client that more information is needed. The client\n    is then responsible for obtaining these secondary credentials through a\n    process outside of the A2A protocol itself (for example, an OAuth flow) and\n    providing them back to the A2A server to continue the task.\n\n## Authorization\n\nOnce a client is authenticated, the A2A server is responsible for authorizing\nthe request. Authorization logic is specific to the agent's implementation,\nthe data it handles, and applicable enterprise policies.\n\n- **Granular Control**: Authorization **should** be applied based on the\n    authenticated identity, which could represent an end user, a client\n    application, or both.\n- **Skill-Based Authorization**: Access can be controlled on a per-skill\n    basis, as advertised in the Agent Card. For example, specific OAuth scopes\n    **should** grant an authenticated client access to invoke certain skills but\n    not others.\n- **Data and Action-Level Authorization**: Agents that interact with backend\n    systems, databases, or tools **must** enforce appropriate authorization before\n    performing sensitive actions or accessing sensitive data through those\n    underlying resources. The agent acts as a gatekeeper.\n- **Principle of Least Privilege**: Agents **must** grant only the necessary\n    permissions required for a client or user to perform their intended\n    operations through the A2A interface.\n\n## Data Privacy and Confidentiality\n\nProtecting sensitive data exchanged between agents is paramount, requiring\nstrict adherence to privacy regulations and best practices.\n\n- **Sensitivity Awareness**: Implementers must be acutely aware of the\n    sensitivity of data exchanged in Message and Artifact parts of A2A\n    interactions.\n- **Compliance**: Ensure compliance with relevant data privacy regulations\n    such as GDPR, CCPA, and HIPAA, based on the domain and data involved.\n- **Data Minimization**: Avoid including or requesting unnecessarily sensitive\n    information in A2A exchanges.\n- **Secure Handling**: Protect data both in transit, using TLS as mandated,\n    and at rest if persisted by agents, according to enterprise data security\n    policies and regulatory requirements.\n\n## Tracing, Observability, and Monitoring\n\nA2A's reliance on HTTP allows for straightforward integration with standard\nenterprise tracing, logging, and monitoring tools, providing critical visibility\ninto inter-agent workflows.\n\n- **Distributed Tracing**: A2A Clients and Servers **should** participate in\n    distributed tracing systems. For example, use OpenTelemetry to propagate\n    trace context, including trace IDs and span IDs, through standard HTTP\n    headers, such as W3C Trace Context headers. This enables end-to-end\n    visibility for debugging and performance analysis.\n- **Comprehensive Logging**: Log details on both client and server, including\n    taskId, sessionId, correlation IDs, and trace context for troubleshooting\n    and auditing.\n- **Metrics**: A2A servers should expose key operational metrics, such as\n    request rates, error rates, task processing latency, and resource\n    utilization, to enable performance monitoring, alerting, and capacity\n    planning.\n- **Auditing**: Audit significant events, such as task creation, critical\n    state changes, and agent actions, especially when involving sensitive data\n    or high-impact operations.\n\n## API Management and Governance\n\nFor A2A servers exposed externally, across organizational boundaries, or even within\nlarge enterprises, integration with API Management solutions is highly recommended,\nas this provides:\n\n- **Centralized Policy Enforcement**: Consistent application of security\n    policies such as authentication and authorization, rate limiting, and quotas.\n- **Traffic Management**: Load balancing, routing, and mediation.\n- **Analytics and Reporting**: Insights into agent usage, performance, and\n    trends.\n- **Developer Portals**: Facilitate discovery of A2A-enabled agents, provide\ndocumentation such as Agent Cards, and streamline onboarding for client developers.\n\nBy adhering to these enterprise-grade practices, A2A implementations can be\ndeployed securely, reliably, and manageably within complex organizational\nenvironments. This fosters trust and enables scalable inter-agent collaboration.\n"
  },
  {
    "path": "docs/topics/extensions.md",
    "content": "# Extensions in A2A\n\nThe Agent2Agent (A2A) protocol provides a strong foundation for inter-agent\ncommunication. However, specific domains or advanced use cases often require\nadditional structure, custom data, or new interaction patterns beyond the\ngeneric methods. Extensions are A2A's powerful mechanism for layering new capabilities onto the\nbase protocol.\n\nExtensions allow for extending the A2A protocol with new data, requirements,\nRPC methods, and state machines. Agents declare their support for specific\nextensions in their Agent Card, and clients can then opt in to the behavior\noffered by an extension as part of requests they make to the agent. Extensions\nare identified by a URI and defined by their own specification. Anyone is able to define, publish, and implement an extension.\n\nThe flexibility of extensions allows for customizing A2A without fragmenting\nthe core standard, fostering innovation and domain-specific optimizations.\n\n## Scope of Extensions\n\nThe exact set of possible ways to use extensions is intentionally broad,\nfacilitating the ability to expand A2A beyond known use cases.\nHowever, some foreseeable applications include:\n\n- **Data-only Extensions**: Exposing new, structured information in the Agent\n    Card that doesn't impact the request-response flow. For example, an\n    extension could add structured data about an agent's GDPR compliance.\n- **Profile Extensions**: Overlaying additional structure and state change\n    requirements on the core request-response messages. This type effectively\n    acts as a profile on the core A2A protocol, narrowing the space of allowed\n    values (for example, requiring all messages to use `DataParts` adhering to\n    a specific schema). This can also include augmenting existing states in the\n    task state machine by using metadata. For example, an extension could define\n    a 'generating-image' substate when `TaskStatus.state` is 'working' and\n    `TaskStatus.message.metadata[\"generating-image\"]` is true.\n- **Method Extensions (Extended Skills)**: Adding entirely new RPC methods\n    beyond the core set defined by the protocol. An Extended Skill refers to a\n    capability or function an agent gains or exposes specifically through the\n    implementation of an extension that defines new RPC methods. For example, a\n    `task-history` extension might add a `tasks/search` RPC method to retrieve\n    a list of previous tasks, effectively providing the agent with a new,\n    extended skill.\n- **State Machine Extensions**: Adding new states or transitions to the task\n  state machine.\n\n## List of Example Extensions\n\n| Extension | Description |\n| :-------- | :------------ |\n| [Secure Passport Extension](https://github.com/a2aproject/a2a-samples/tree/main/extensions/secure-passport) | Adds a trusted, contextual layer for immediate personalization and reduced overhead (v1). |\n| [Hello World or Timestamp Extension](https://github.com/a2aproject/a2a-samples/tree/main/extensions/timestamp) | A simple extension demonstrating how to augment base A2A types by adding timestamps to the `metadata` field of `Message` and `Artifact` objects (v1). |\n| [Traceability Extension](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/extensions/traceability) | Explore the Python implementation and basic usage of the Traceability Extension (v1). |\n| [Agent Gateway Protocol (AGP) Extension](https://github.com/a2aproject/a2a-samples/tree/main/extensions/agp) | A Core Protocol Layer or Routing Extension that introduces Autonomous Squads (ASq) and routes Intent payloads based on declared Capabilities, enhancing scalability (v1). |\n\n## Extension Governance\n\nThe A2A protocol provides extension points in the specification, allowing\nagents to advertise and negotiate extended capabilities. This section defines\na formal governance framework for how extensions are proposed, developed,\npromoted, and maintained within the A2A organization.\n\n### Extension Tiers\n\nThis framework defines two tiers of extensions within the A2A organization.\nAnyone may develop and publish their own extensions independently; these tiers\napply specifically to extensions hosted under the `a2aproject` GitHub\norganization.\n\n#### Official Extensions\n\nOfficial extensions are developed and maintained under the `a2aproject` GitHub\norganization, officially recommended by the TSC, and use the\n`https://a2a-protocol.org/extensions/` URI prefix.\n\n**Repository Structure:**\n\n- Extension repositories use the `ext-` prefix:\n    `github.com/a2aproject/ext-{name}`\n- Examples: `ext-ui`, `ext-payments`, `ext-auth`\n- Each repository has designated maintainers identified in `MAINTAINERS.md`\n\n**Requirements:**\n\n- Extension specifications MUST use the same language as the core\n    specification ([RFC 2119](https://tools.ietf.org/html/rfc2119))\n- Extensions MUST be licensed under Apache 2.0\n- Extensions MUST have at least one reference implementation\n- Extensions SHOULD have associated documentation on the A2A website\n\n#### Experimental Extensions\n\nExperimental extensions provide an incubation pathway for community\ncontributors to prototype and collaborate on extension ideas before graduation\nto official status.\n\n**Repository Structure:**\n\n- Experimental repositories use the `experimental-ext-` prefix:\n    `github.com/a2aproject/experimental-ext-{name}`\n- Example: `experimental-ext-orchestration`\n\n**Creation Requirements:**\n\n- An experimental extension repository can ONLY be created with sponsorship\n    from an A2A Maintainer\n- The sponsoring Maintainer is responsible for initial oversight of the\n    experimental extension\n- Experimental repositories MUST clearly indicate their\n    experimental/non-official status in the README\n- Any published packages MUST use naming that clearly indicates experimental\n    status\n- The TSC retains oversight, including the ability to archive or remove\n    experimental repositories\n\n### Extension Lifecycle\n\nExtensions progress through the following phases:\n\n#### Proposal Phase\n\nAny community member may propose an extension:\n\n1. **Open an Issue**: Create an issue in the main `a2aproject/A2A` repository\n    describing:\n    - An abstract describing the extension's purpose\n    - Motivation explaining why this cannot be achieved with the core protocol\n    - An initial technical approach or specification draft\n2. **Community Discussion**: The proposal is open for community feedback and\n    refinement\n\n#### Maintainer Sponsorship\n\nFor a proposal to proceed to experimental status:\n\n1. **Secure a Sponsor**: An A2A Maintainer must agree to sponsor the extension\n    proposal\n2. **Repository Creation**: The sponsoring Maintainer creates the\n    `experimental-ext-*` repository under `a2aproject`\n3. **Oversight**: The sponsoring Maintainer provides initial oversight and\n    ensures alignment with A2A design principles\n\n#### Experimental Development\n\nWhile in experimental status:\n\n- Contributors iterate on the specification and reference implementations\n- The experimental extension MAY be used by early adopters with the\n    understanding that breaking changes are expected\n- Community feedback is gathered and incorporated\n- The experimental repository MUST clearly indicate its non-official status\n\n#### Graduation to Official Extension\n\nTo graduate an experimental extension to official status:\n\n1. **Maturity Requirements**:\n    - At least one production-quality reference implementation\n    - Documentation meeting A2A standards\n    - Evidence of community adoption or interest\n    - Clear maintainer commitment for ongoing maintenance\n2. **Graduation Proposal**: Open an issue in `a2aproject/A2A` with:\n    - Reference to the experimental repository and its implementations\n    - Summary of community feedback and adoption\n    - Proposed maintainers for the official extension\n3. **TSC Vote**:\n    - The proposal is added to the TSC meeting agenda\n    - **Quorum Requirement**: At least 50% of TSC voting members must be\n        present\n    - **Approval**: Requires majority vote of those in attendance (per A2A\n        governance)\n    - The TSC may request revisions before a final vote\n4. **Acceptance**:\n    - Upon approval, the repository is renamed from `experimental-ext-*` to\n        `ext-*`\n    - Documentation is added to the A2A website's extensions page\n\n#### Official Extension Iteration\n\nOnce official, extensions may be iterated on:\n\n- Extension repository maintainers are responsible for day-to-day governance\n- Changes SHOULD be coordinated via the relevant working group if one exists\n- Breaking changes require a new extension identifier\n- Breaking changes require TSC review\n- Maintainers SHOULD coordinate with SDK maintainers for implementation\n    updates\n\n#### Promotion to Core Protocol\n\nSome extensions may eventually transition to core protocol features. This is\ngoverned through the existing A2A specification enhancement process:\n\n- A proposal is submitted following the standard specification change process\n- The proposal references the official extension and its adoption\n- TSC vote with standard quorum and majority requirements applies\n- Not all extensions are suitable for core inclusion; many will remain as\n    extensions indefinitely\n\n### SDK Extension Support\n\nA2A SDKs MAY implement extensions. Where implemented:\n\n- Extensions MUST be disabled by default and require explicit opt-in\n- SDK documentation SHOULD list supported extensions\n- SDK maintainers have full autonomy over extension support decisions\n- Extension support is not required for protocol conformance\n\n### Legal Requirements\n\n#### Licensing\n\nOfficial extensions MUST be available under the Apache 2.0 license, consistent\nwith the core A2A project.\n\n#### Contributor License Grant\n\nBy submitting a contribution to an official A2A extension repository,\ncontributors represent that:\n\n1. They have the legal authority to grant the rights\n2. The contribution is original work or they have sufficient rights to submit\n    it\n3. They grant to the Linux Foundation and recipients a perpetual, worldwide,\n    non-exclusive, royalty-free license to use, reproduce, modify, and\n    distribute the contribution\n\n#### Antitrust\n\nExtension developers acknowledge that:\n\n- They may compete with other participants\n- They have no obligation to implement any extension\n- They are free to develop competing extensions\n- Status as an official extension does not create an exclusive relationship\n\n## Limitations\n\nThere are some changes to the protocol that extensions don't allow, primarily\nto prevent breaking core type validations:\n\n- **Changing the Definition of Core Data Structures**: For example, adding new\n    fields or removing required fields to protocol-defined data structures.\n    Extensions should place custom attributes in the `metadata` map present on\n    core data structures.\n- **Adding New Values to Enum Types**: Extensions should use existing enum values\n    and annotate additional semantic meaning in the `metadata` field.\n\n## Extension Declaration\n\nAgents declare their support for extensions in their Agent Card by including\n`AgentExtension` objects within their `AgentCapabilities` object.\n\n{{ proto_to_table(\"AgentExtension\") }}\n\nThe following is an example of an Agent Card with an extension:\n\n```json\n{\n  \"name\": \"Magic 8-ball\",\n  \"description\": \"An agent that can tell your future... maybe.\",\n  \"version\": \"0.1.0\",\n  \"url\": \"https://example.com/agents/eightball\",\n  \"capabilities\": {\n    \"streaming\": true,\n    \"extensions\": [\n      {\n        \"uri\": \"https://example.com/ext/konami-code/v1\",\n        \"description\": \"Provide cheat codes to unlock new fortunes\",\n        \"required\": false,\n        \"params\": {\n          \"hints\": [\n            \"When your sims need extra cash fast\",\n            \"You might deny it, but we've seen the evidence of those cows.\"\n          ]\n        }\n      }\n    ]\n  },\n  \"defaultInputModes\": [\"text/plain\"],\n  \"defaultOutputModes\": [\"text/plain\"],\n  \"skills\": [\n    {\n      \"id\": \"fortune\",\n      \"name\": \"Fortune teller\",\n      \"description\": \"Seek advice from the mystical magic 8-ball\",\n      \"tags\": [\"mystical\", \"untrustworthy\"]\n    }\n  ]\n}\n```\n\n## Required Extensions\n\nWhile extensions generally offer optional functionality, some agents may have\nstricter requirements. When an Agent Card declares an extension as\n`required: true`, it signals to clients that some aspect of the extension impacts how\nrequests are structured or processed, and that the client must abide by it.\nAgents shouldn't mark data-only extensions as required. If a client does not\nrequest activation of a required extension, or fails to follow its protocol,\nthe agent should reject the incoming request with an appropriate error.\n\n## Extension Specification\n\nThe detailed behavior and structure of an extension are defined by its\n**specification**. While the exact format is not mandated, it should contain at\nleast:\n\n- The specific URI(s) that identify the extension.\n- The schema and meaning of objects specified in the `params` field of the\n    `AgentExtension` object.\n- Schemas of any additional data structures communicated between client and\n    agent.\n- Details of new request-response flows, additional endpoints, or any other\n    logic required to implement the extension.\n\n## Extension Dependencies\n\nExtensions might depend on other extensions. This can be a required dependency\n(where the extension cannot function without the dependent) or an optional one\n(where additional functionality is enabled if another extension is present).\nExtension specifications should document these dependencies. It is the client's\nresponsibility to activate an extension and all its required dependencies as\nlisted in the extension's specification.\n\n## Extension Activation\n\nExtensions default to being inactive, providing a baseline\nexperience for extension-unaware clients. Clients and agents perform\nnegotiation to determine which extensions are active for a specific request.\n\n1. **Client Request**: A client requests extension activation by including the\n    `A2A-Extensions` header in the HTTP request to the agent. The value is a\n    comma-separated list of extension URIs the client intends to activate.\n2. **Agent Processing**: Agents are responsible for identifying supported\n    extensions in the request and performing the activation. Any requested\n    extensions not supported by the agent can be ignored.\n3. **Response**: Once the agent has identified all activated extensions, the\n    response SHOULD include the `A2A-Extensions` header, listing all\n    extensions that were successfully activated for that request.\n\n![A2A Extension Flow Diagram](https://storage.googleapis.com/gweb-developer-goog-blog-assets/images/Screenshot_2025-09-04_at_13.03.31.original.png){ width=\"70%\" style=\"margin:20px auto;display:block;\" }\n\n**Example request showing extension activation:**\n\n```http\nPOST /agents/eightball HTTP/1.1\nHost: example.com\nContent-Type: application/json\nA2A-Extensions: https://example.com/ext/konami-code/v1\nContent-Length: 519\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"SendMessage\",\n  \"id\": \"1\",\n  \"params\": {\n    \"message\": {\n      \"messageId\": \"1\",\n      \"role\": \"ROLE_USER\",\n      \"parts\": [{\"text\": \"Oh magic 8-ball, will it rain today?\"}]\n    },\n    \"metadata\": {\n      \"https://example.com/ext/konami-code/v1/code\": \"motherlode\"\n    }\n  }\n}\n```\n\n**Corresponding response echoing activated extensions:**\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/json\nA2A-Extensions: https://example.com/ext/konami-code/v1\nContent-Length: 338\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"result\": {\n    \"message\": {\n      \"messageId\": \"2\",\n      \"role\": \"ROLE_AGENT\",\n      \"parts\": [{\"text\": \"That's a bingo!\"}]\n    }\n  }\n}\n```\n\n## Implementation Considerations\n\nWhile the A2A protocol defines the functionality of extensions, this section\nprovides guidance on their implementation—best practices for authoring,\nversioning, and distributing extension implementations.\n\n- **Versioning**: Extension specifications evolve. It is\n    crucial to have a clear versioning strategy to ensure that clients and\n    agents can negotiate compatible implementations.\n    - **Recommendation**: Use the extension's URI as the primary version\n        identifier, ideally including a version number (for example,\n        `https://example.com/ext/my-extension/v1`).\n    - **Breaking Changes**: A new URI MUST be used when introducing a breaking\n        change to an extension's logic, data structures, or required parameters.\n    - Handling Mismatches: If a client requests a version not supported by\n        the agent, the agent SHOULD ignore the activation request for that\n        extension; it MUST NOT fall back to a different version.\n- **Discoverability and Publication**:\n    - **Specification Hosting**: The extension specification document **should** be\n        hosted at the extension's URI.\n    - **Permanent Identifiers**: Authors are encouraged to use a permanent\n        identifier service, such as `w3id.org`, for their extension URIs to\n        prevent broken links.\n    - **Community Registry**: The A2A [Extension Governance](#extension-governance)\n        framework defines a tiered system for official and experimental\n        extensions hosted under the `a2aproject` organization, including a\n        lifecycle for proposing and promoting extensions.\n- **Packaging and Reusability (A2A SDKs and Libraries)**:\n    To promote adoption, extension logic should be packaged into reusable\n        libraries that can be integrated into existing A2A client and\n        server applications.\n    - An extension implementation should be distributed as a\n        standard package for its language ecosystem (for example, a PyPI package\n        for Python, an npm package for TypeScript/JavaScript).\n    - The objective is to provide a streamlined integration experience for\n        developers. A well-designed extension package should allow a developer\n        to add it to their server with minimal code, for example:\n\n        ```python\n        --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/adk_expense_reimbursement/__main__.py\"\n        ```\n\n        This example showcases how A2A SDKs or libraries such as `a2a.server` in\n        Python facilitate the implementation of A2A agents and extensions.\n\n- **Security**: Extensions modify the core behavior of the A2A protocol, and therefore\n    introduce new security considerations:\n\n    - **Input Validation**: Any new data fields, parameters, or methods\n        introduced by an extension MUST be rigorously validated. Treat all\n        extension-related data from an external party as untrusted input.\n    - **Scope of Required Extensions**: Be mindful when marking an extension as\n        `required: true` in an Agent Card. This creates a hard dependency for\n        all clients and should only be used for extensions fundamental to the\n        agent's core function and security (for example, a message signing\n        extension).\n    - **Authentication and Authorization**: If an extension adds new methods,\n        the implementation MUST ensure these methods are subject to the same\n        authentication and authorization checks as the core A2A methods. An\n        extension MUST NOT provide a way to bypass the agent's primary security\n        controls.\n\nFor more information, see the [A2A Extensions: Empowering Custom Agent Functionality](https://developers.googleblog.com/en/a2a-extensions-empowering-custom-agent-functionality/) blog post.\n"
  },
  {
    "path": "docs/topics/key-concepts.md",
    "content": "# Core Concepts and Components in A2A\n\nA2A uses a set of core concepts that define how agents interact.\nUnderstand these core building blocks to develop or integrate with A2A-compliant\nsystems.\n\n![A2A Actors showing a User, A2A Client (Client Agent), and A2A Server (Remote Agent)](../assets/a2a-actors.png){ width=\"70%\" style=\"margin:20px auto;display:block;\" }\n\n## Core Actors in A2A Interactions\n\n- **User**: The end user, which can be a human operator or an automated\n    service. The user initiates a request or defines a goal that requires\n    assistance from one or more AI agents.\n- **A2A Client (Client Agent)**: An application, service, or another AI agent\n    that acts on behalf of the user. The client initiates communication using the\n    A2A protocol.\n- **A2A Server (Remote Agent)**: An AI agent or an agentic system that exposes\n    an HTTP endpoint implementing the A2A protocol. It receives requests from\n    clients, processes tasks, and returns results or status updates. From the client's perspective,\n    the remote agent operates as an _opaque_ (black-box) system, meaning its internal workings, memory, or tools are not exposed.\n\n## Fundamental Communication Elements\n\nThe following table describes the fundamental communication elements in A2A:\n\n| Element | Description | Key Purpose |\n| :------ | :---------- | :---------- |\n| Agent Card | A JSON metadata document describing an agent's identity, capabilities, endpoint, skills, and authentication requirements. | Enables clients to discover agents and understand how to interact with them securely and effectively. |\n| Task | A stateful unit of work initiated by an agent, with a unique ID and defined lifecycle. | Facilitates tracking of long-running operations and enables multi-turn interactions and collaboration. |\n| Message | A single turn of communication between a client and an agent, containing content and a role (\"user\" or \"agent\"). | Conveys instructions, context, questions, answers, or status updates that are not necessarily formal artifacts. |\n| Part | The fundamental content container used within Messages and Artifacts. A Part holds one of: text content, a file reference (URL or inline bytes), or structured data. | Provides flexibility for agents to exchange various content types within messages and artifacts. |\n| Artifact | A tangible output generated by an agent during a task (for example, a document, image, or structured data). | Delivers the concrete results of an agent's work, ensuring structured and retrievable outputs. |\n\n## Interaction Mechanisms\n\nThe A2A Protocol supports various interaction patterns to accommodate different\nneeds for responsiveness and persistence. These mechanisms ensure that agents\ncan exchange information efficiently and reliably, regardless of the task's\ncomplexity or duration:\n\n- **Request/Response (Polling)**: Clients send a request and the server\n    responds. For long-running tasks, the client periodically polls the server\n    for updates.\n- **Streaming with Server-Sent Events (SSE)**: Clients initiate a stream to\n    receive real-time, incremental results or status updates from the server\n    over an open HTTP connection.\n- **Push Notifications**: For very long-running tasks or disconnected\n    scenarios, the server can actively send asynchronous notifications to a\n    client-provided webhook when significant task updates occur.\n\nFor a detailed exploration of streaming and push notifications, refer to the\n[Streaming & Asynchronous Operations](./streaming-and-async.md) document.\n\n## Agent Cards\n\nThe Agent Card is a JSON document that serves as a digital business card for\ninitial discovery and interaction setup. It provides essential metadata about an\nagent. Clients parse this information to determine if an agent is suitable for a\ngiven task, how to structure requests, and how to communicate securely. Key\ninformation includes identity, service endpoint (URL), A2A capabilities,\nauthentication requirements, and a list of skills.\n\n## Messages and Parts\n\nA message represents a single turn of communication between a client and an\nagent. It includes a role (\"user\" or \"agent\") and a unique `messageId`. It\ncontains one or more Part objects, which are granular containers for the actual\ncontent. This design allows A2A to be modality independent.\n\nThe `Part` object is a flexible container that can hold different types of content using a `oneof` field structure. A Part must contain exactly one of the following content fields:\n\n- `text`: A string containing plain textual content.\n- `raw`: A byte array containing binary file data (inline).\n- `url`: A string URI referencing external file content.\n- `data`: A structured JSON value (e.g., object, array) for machine-readable data.\n\nAdditionally, every `Part` can include:\n\n- `mediaType`: The MIME type of the content (e.g., `\"text/plain\"`, `\"image/png\"`, `\"application/json\"`).\n- `filename`: An optional name for the file or content.\n- `metadata`: A key-value map for additional context.\n\n## Artifacts\n\nAn artifact represents a tangible output or a concrete result generated by a\nremote agent during task processing. Unlike general messages, artifacts are the\nactual deliverables. An artifact has a unique `artifactId`, a human-readable\nname, and consists of one or more part objects. Artifacts are closely tied to the\ntask lifecycle and can be streamed incrementally to the client.\n\n## Agent Response: Task or Message\n\nThe agent response can be a new `Task` (when the agent needs to perform a\nlong-running operation) or a `Message` (when the agent can respond immediately).\n\nFor more details, see [Life of a Task](./life-of-a-task.md).\n\n## Other Important Concepts\n\n- **Context (`contextId`):** A server-generated identifier that can be used to logically group multiple related `Task` objects, providing context across a series of interactions.\n- **Transport and Format:** A2A communication occurs over HTTP(S). JSON-RPC 2.0 is used as the payload format for all requests and responses.\n- **Authentication & Authorization:** A2A relies on standard web security practices. Authentication requirements are declared in the Agent Card, and credentials (e.g., OAuth tokens, API keys) are typically passed through HTTP headers, separate from the A2A protocol messages themselves. For more information, see [Enterprise-Ready Features](./enterprise-ready.md).\n- **Agent Discovery:** The process by which clients find Agent Cards to learn about available A2A Servers and their capabilities. For more information, see [Agent Discovery](./agent-discovery.md).\n- **Extensions:** A2A allows agents to declare custom protocol extensions as part of their AgentCard. For more information, see [Extensions](./extensions.md).\n"
  },
  {
    "path": "docs/topics/life-of-a-task.md",
    "content": "# Life of a Task\n\nIn the Agent2Agent (A2A) Protocol, interactions can range from simple, stateless\nexchanges to complex, long-running processes. When an agent receives a message\nfrom a client, it can respond in one of two fundamental ways:\n\n- **Respond with a Stateless `Message`**: This type of response is\n    typically used for immediate, self-contained interactions that conclude\n    without requiring further state management.\n- **Initiate a Stateful `Task`**: If the response is a `Task`, the agent will\n    process it through a defined lifecycle, communicating progress and requiring\n    input as needed, until it reaches an interrupted state (e.g.,\n    `input-required`, `auth-required`) or a terminal state (e.g., `completed`,\n    `canceled`, `rejected`, `failed`).\n\n## Group Related Interactions\n\nA `contextId` is a crucial identifier that logically groups multiple `Task`\nobjects and independent `Message` objects, providing continuity across a series of\ninteractions.\n\n- When a client sends a message for the first time, the agent responds\n    with a new `contextId`. If a task is initiated, it will also have a `taskId`.\n- Clients can send subsequent messages and include the same `contextId` to\n    indicate that they are continuing their previous interaction within the same\n    context.\n- Clients optionally attach the `taskId` to a subsequent message to\n    indicate that it continues that specific task.\n\nThe `contextId` enables collaboration towards a common goal or a shared\ncontextual session across multiple, potentially concurrent tasks. Internally, an\nA2A agent (especially one using an LLM) uses the `contextId` to manage its internal\nconversational state or its LLM context.\n\n## Agent Response: Message or Task\n\nThe choice between responding with a `Message` or a `Task` depends on the\nnature of the interaction and the agent's capabilities:\n\n- **Messages for Trivial Interactions**: `Message` objects are suitable for\n    transactional interactions that don't require long-running\n    processing or complex state management. An agent might use messages to\n    negotiate the acceptance or scope of a task before committing to a `Task`\n    object.\n- **Tasks for Stateful Interactions**: Once an agent maps the intent of an\n    incoming message to a supported capability that requires substantial,\n    trackable work over an extended period, the agent responds with a `Task`\n    object.\n\nConceptually, agents operate at different levels of complexity:\n\n- **Message-only Agents**: Always respond with `Message` objects. They\n    typically don't manage complex state or long-running executions, and use\n    `contextId` to tie messages together. These agents might directly wrap LLM\n    invocations and simple tools.\n- **Task-generating Agents**: Always respond with `Task` objects, even for\n    responses, which are then modeled as completed tasks. Once a task is\n    created, the agent will only return `Task` objects in response to messages\n    sent, and once a task is complete, no more messages can be sent. This\n    approach avoids deciding between `Task` versus `Message`, but creates completed task objects\n    for even simple interactions.\n- **Hybrid Agents**: Generate both `Message` and `Task` objects. These agents\n    use messages to negotiate agent capability and the scope of work for a task,\n    then send a `Task` object to track execution and manage states like\n    `input-required` or error handling. Once a task is created, the agent will\n    only return `Task` objects in response to messages sent, and once a task is\n    complete, no more messages can be sent. A hybrid agent uses messages to\n    negotiate the scope of a task, and then generate a task to track its\n    execution.\n    For more information about hybrid agents, see [A2A protocol: Demystifying Tasks vs Messages](https://discuss.google.dev/t/a2a-protocol-demystifying-tasks-vs-messages/255879).\n\n## Task Refinements\n\nClients often need to send new requests based on task results or refine the\noutputs of previous tasks. This is modeled by starting another interaction using\nthe same `contextId` as the original task. Clients further hint the agent by\nproviding references to the original task using `referenceTaskIds` in the\n`Message` object. The agent then responds with either a new `Task` or a\n`Message`.\n\n## Task Immutability\n\nOnce a task reaches a terminal state (completed, canceled, rejected, or failed),\nit cannot restart. Any subsequent interaction related to that task, such as a\nrefinement, must initiate a new task within the same `contextId`. This principle\noffers several benefits:\n\n- **Task Immutability.** Clients reliably reference tasks and their\n    associated state, artifacts, and messages, providing a clean mapping of\n    inputs to outputs. This is valuable for orchestration and traceability.\n- **Clear Unit of Work.** Every new request, refinement, or follow-up becomes\n    a distinct task. This simplifies bookkeeping, allows for granular tracking\n    of an agent's work, and enables tracing each artifact to a specific unit of\n    work.\n- **Easier Implementation.** This removes ambiguity for agent developers\n    regarding whether to create a new task or restart an existing one.\n\n## Parallel Follow-ups\n\nA2A supports parallel work by enabling agents to create distinct, parallel\ntasks for each follow-up message sent within the same `contextId`. This allows\nclients to track individual tasks and create new dependent tasks as soon as a\nprerequisite task is complete.\n\nFor example:\n\n- Task 1: Book a flight to Helsinki.\n- Task 2: Based on Task 1, book a hotel.\n- Task 3: Based on Task 1, book a snowmobile activity.\n- Task 4: Based on Task 2, add a spa reservation to the hotel booking.\n\n## Referencing Previous Artifacts\n\nThe serving agent infers the relevant artifact from a referenced task or from the\n`contextId`. As the domain expert, the serving agent is best suited to resolve\nambiguity or identify missing information. If there is ambiguity, the agent asks\nthe client for clarification by returning an `input-required` state. The client\nthen specifies the artifact in its response, optionally populating artifact\nreferences (`artifactId`, `taskId`) in `Part` metadata.\n\n## Tracking Artifact Mutation\n\nFollow-up or refinement tasks often lead to the creation of new artifacts based on older ones. Tracking these mutations is important to ensure that only the most recent version of an artifact is used in subsequent interactions. This could be conceptualized as a version history, where each new artifact is linked to its predecessor.\n\nHowever, the client is in the best position to manage this artifact linkage. The client determines what constitutes an acceptable result and has the ability to accept or reject new versions. Therefore, the serving agent shouldn't be responsible for tracking artifact mutations, and this linkage is not part of the A2A protocol specification. Clients should maintain this version history on their end and present the latest acceptable version to the user.\n\nTo facilitate client-side tracking, serving agents should use a consistent `artifact-name` when generating a refined version of an existing artifact.\n\nWhen initiating follow-up or refinement tasks, the client should explicitly reference the specific artifact they intend to refine, ideally the \"latest\" version from their perspective. If the artifact reference is not provided, the serving agent can:\n\n- Attempt to infer the intended artifact based on the current `contextId`.\n- If there is ambiguity or insufficient context, the agent should respond with an `input-required` task state to request clarification from the client.\n\n## Example Follow-up Scenario\n\nThe following example illustrates a typical task flow with a follow-up:\n\n1. Client sends a message to the agent:\n\n    ```json\n    {\n      \"jsonrpc\": \"2.0\",\n      \"id\": \"req-001\",\n      \"method\": \"SendMessage\",\n      \"params\": {\n        \"message\": {\n          \"role\": \"user\",\n          \"parts\": [\n            {\n              \"text\": \"Generate an image of a sailboat on the ocean.\"\n            }\n          ],\n          \"messageId\": \"msg-user-001\"\n        }\n      }\n    }\n    ```\n\n2. Agent responds with a boat image (completed task):\n\n    ```json\n    {\n      \"jsonrpc\": \"2.0\",\n      \"id\": \"req-001\",\n      \"result\": {\n        \"task\": {\n          \"id\": \"task-boat-gen-123\",\n          \"contextId\": \"ctx-conversation-abc\",\n          \"status\": {\n            \"state\": \"TASK_STATE_COMPLETED\"\n          },\n          \"artifacts\": [\n            {\n              \"artifactId\": \"artifact-boat-v1-xyz\",\n              \"name\": \"sailboat_image.png\",\n              \"description\": \"A generated image of a sailboat on the ocean.\",\n              \"parts\": [\n                {\n                  \"filename\": \"sailboat_image.png\",\n                  \"mediaType\": \"image/png\",\n                  \"raw\": \"base64_encoded_png_data_of_a_sailboat\"\n                }\n              ]\n            }\n          ]\n        }\n      }\n    }\n    ```\n\n3. Client asks to color the boat red. This refinement request refers to the\n    previous `taskId` and uses the same `contextId`.\n\n    ```json\n    {\n      \"jsonrpc\": \"2.0\",\n      \"id\": \"req-002\",\n      \"method\": \"SendMessage\",\n      \"params\": {\n        \"message\": {\n          \"role\": \"user\",\n          \"messageId\": \"msg-user-002\",\n          \"contextId\": \"ctx-conversation-abc\",\n          \"referenceTaskIds\": [\n            \"task-boat-gen-123\"\n          ],\n          \"parts\": [\n            {\n              \"text\": \"Please modify the sailboat to be red.\"\n            }\n          ]\n        }\n      }\n    }\n    ```\n\n4. Agent responds with a new image artifact (new task, same context, same\n    artifact name): The agent creates a new task within the same `contextId`. The\n    new boat image artifact retains the same name but has a new `artifactId`.\n\n    ```json\n    {\n      \"jsonrpc\": \"2.0\",\n      \"id\": \"req-002\",\n      \"result\": {\n        \"task\": {\n          \"id\": \"task-boat-color-456\",\n          \"contextId\": \"ctx-conversation-abc\",\n          \"status\": {\n            \"state\": \"TASK_STATE_COMPLETED\"\n          },\n          \"artifacts\": [\n            {\n              \"artifactId\": \"artifact-boat-v2-red-pqr\",\n              \"name\": \"sailboat_image.png\",\n              \"description\": \"A generated image of a red sailboat on the ocean.\",\n              \"parts\": [\n                {\n                  \"filename\": \"sailboat_image.png\",\n                  \"mediaType\": \"image/png\",\n                  \"raw\": \"base64_encoded_png_data_of_a_RED_sailboat\"\n                }\n              ]\n            }\n          ]\n        }\n      }\n    }\n    ```\n"
  },
  {
    "path": "docs/topics/streaming-and-async.md",
    "content": "# Streaming and Asynchronous Operations for Long-Running Tasks\n\nThe Agent2Agent (A2A) protocol is explicitly designed to handle tasks that might not complete immediately. Many AI-driven operations are often long-running, involve multiple steps, produce incremental results, or require human intervention. A2A provides mechanisms for managing such asynchronous interactions, ensuring that clients receive updates effectively, whether they remain continuously connected or operate in a more disconnected fashion.\n\n## Streaming with Server-Sent Events (SSE)\n\nFor tasks that produce incremental results (like generating a long document or streaming media) or provide ongoing status updates, A2A supports real-time communication using Server-Sent Events (SSE). This approach is ideal when the client is able to maintain an active HTTP connection with the A2A Server.\n\nThe following key features detail how SSE streaming is implemented and managed within the A2A protocol:\n\n- **Server Capability:** The A2A Server must indicate its support for streaming by setting `capabilities.streaming: true` in its Agent Card.\n\n- **Initiating a Stream:** The client uses the `SendStreamingMessage` RPC method to send an initial message (for example, a prompt or command) and simultaneously subscribe to updates for that task.\n\n- **Server Response and Connection:** If the subscription is successful, the server responds with an HTTP 200 OK status and a `Content-Type: text/event-stream`. This HTTP connection remains open for the server to push events to the client.\n\n- **Event Structure and Types:** The server sends events over this stream. Each event's `data` field contains a JSON-RPC 2.0 Response object, typically a `SendStreamingMessageResponse`. The `result` field of the `SendStreamingMessageResponse` contains:\n\n    - [`Task`](../specification.md#61-task-object): Represents the current state of the work.\n    - [`TaskStatusUpdateEvent`](../specification.md#taskstatusupdateevent): Communicates changes in the task's lifecycle state (for example, from `working` to `input-required` or `completed`). It also provides intermediate messages from the agent.\n    - [`TaskArtifactUpdateEvent`](../specification.md#taskartifactupdateevent): Delivers new or updated Artifacts generated by the task. This is used to stream large files or data structures in chunks, with fields like `append` and `lastChunk` to help reassemble.\n\n- **Stream Termination:** When a task reaches a terminal or interrupted state (e.g., `COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`, or `INPUT_REQUIRED`), the server closes the stream and sends no further updates.\n\n- **Resubscription:** If a client's SSE connection breaks prematurely while a task is still active, the client is able to attempt to reconnect to the stream using the `SubscribeToTask` RPC method.\n\n### When to Use Streaming\n\nStreaming with SSE is best suited for:\n\n- Real-time progress monitoring of long-running tasks.\n- Receiving large results (artifacts) incrementally.\n- Interactive, conversational exchanges where immediate feedback or partial responses are beneficial.\n- Applications requiring low-latency updates from the agent.\n\n### Protocol Specification References\n\nRefer to the Protocol Specification for detailed structures:\n\n- [`SendStreamingMessage`](../specification.md#72-messagestream)\n- [`SubscribeToTask`](../specification.md#79-taskssubscribe)\n\n## Push Notifications for Disconnected Scenarios\n\nFor very long-running tasks (for example, lasting minutes, hours, or even days) or when clients are unable to or prefer not to maintain persistent connections (like mobile clients or serverless functions), A2A supports asynchronous updates using push notifications. This allows the A2A Server to actively notify a client-provided webhook when a significant task update occurs.\n\nThe following key features detail how push notifications are implemented and managed within the A2A protocol:\n\n- **Server Capability:** The A2A Server must indicate its support for this feature by setting `capabilities.pushNotifications: true` in its Agent Card.\n- **Configuration:** The client provides a [`PushNotificationConfig`](../specification.md#pushnotificationconfig) to the server. This configuration is supplied:\n    - Within the initial `SendMessage` or `SendStreamingMessage` request, or\n    - Separately, using the `CreateTaskPushNotificationConfig` RPC method for an existing task.\n    The `PushNotificationConfig` includes a `url` (the HTTPS webhook URL), an optional `token` (for client-side validation), and optional `authentication` details (for the A2A Server to authenticate to the webhook).\n- **Notification Trigger:** The A2A Server decides when to send a push notification, typically when a task reaches a significant state change (for example, terminal state, `input-required`, or `auth-required`).\n- **Notification Payload:** The A2A protocol defines the HTTP body payload as a [`StreamResponse`](../specification.md#323-stream-response) object, matching the format used in streaming operations. The payload contains one of: `task`, `message`, `statusUpdate`, or `artifactUpdate`. See [Push Notification Payload](../specification.md#pushnotificationpayload) for detailed structure.\n- **Client Action:** Upon receiving a push notification (and successfully verifying its authenticity), the client typically uses the `GetTask` RPC method with the `taskId` from the notification to retrieve the complete, updated `Task` object, including any new artifacts.\n\n### When to Use Push Notifications\n\nPush notifications are ideal for:\n\n- Very long-running tasks that can take minutes, hours, or days to complete.\n- Clients that cannot or prefer not to maintain persistent connections, such as mobile applications or serverless functions.\n- Scenarios where clients only need to be notified of significant state changes rather than continuous updates.\n\n### Protocol Specification References\n\nRefer to the Protocol Specification for detailed structures:\n\n- [`CreateTaskPushNotificationConfig`](../specification.md#317-create-push-notification-config)\n- [`GetTask`](../specification.md#76-taskspushnotificationconfigget)\n\n### Client-Side Push Notification Service\n\nThe `url` specified in `PushNotificationConfig.url` points to a client-side Push Notification Service. This service is responsible for receiving the HTTP POST notification from the A2A Server. Its responsibilities include authenticating the incoming notification, validating its relevance, and relaying the notification or its content to the appropriate client application logic or system.\n\n### Security Considerations for Push Notifications\n\nSecurity is paramount for push notifications due to their asynchronous and server-initiated outbound nature. Both the A2A Server (sending the notification) and the client's webhook receiver have critical responsibilities.\n\n#### A2A Server Security (when sending notifications to client webhook)\n\n- **Webhook URL Validation:** Servers SHOULD NOT blindly trust and send POST requests to any URL provided by a client. Malicious clients could provide URLs pointing to internal services or unrelated third-party systems, leading to Server-Side Request Forgery (SSRF) attacks or acting as Distributed Denial of Service (DDoS) amplifiers.\n    - **Mitigation strategies:** Allowlisting of trusted domains, ownership verification (for example, challenge-response mechanisms), and network controls (e.g., egress firewalls).\n- **Authenticating to the Client's Webhook:** The A2A Server MUST authenticate itself to the client's webhook URL according to the scheme specified in `PushNotificationConfig.authentication`. Common schemes include Bearer Tokens (OAuth 2.0), API keys, HMAC signatures, or mutual TLS (mTLS).\n\n#### Client Webhook Receiver Security (when receiving notifications from A2A server)\n\n- **Authenticating the A2A Server:** The webhook endpoint MUST rigorously verify the authenticity of incoming notification requests to ensure they originate from the legitimate A2A Server and not an imposter.\n    - **Verification methods:** Verify signatures/tokens (for example, JWT signatures against the A2A Server's trusted public keys, HMAC signatures, or API key validation). Also, validate the `PushNotificationConfig.token` if provided.\n- **Preventing Replay Attacks:**\n    - **Timestamps:** Notifications SHOULD include a timestamp. The webhook SHOULD reject notifications that are too old.\n    - **Nonces/unique IDs:** For critical notifications, consider using unique, single-use identifiers (for example, JWT's `jti` claim or event IDs) to prevent processing duplicate notifications.\n- **Secure Key Management and Rotation:** Implement secure key management practices, including regular key rotation, especially for cryptographic keys. Protocols like JWKS (JSON Web Key Set) facilitate key rotation for asymmetric keys.\n\n#### Example Asymmetric Key Flow (JWT + JWKS)\n\n1. Client creates a `PushNotificationConfig` specifying `authentication.scheme: \"Bearer\"` and possibly an expected `issuer` or `audience` for the JWT.\n2. A2A Server, when sending a notification:\n    - Generates a JWT, signing it with its private key. The JWT includes claims like `iss` (issuer), `aud` (audience), `iat` (issued at), `exp` (expires), `jti` (JWT ID), and `taskId`.\n    - The JWT header indicates the signing algorithm and key ID (`kid`).\n    - The A2A Server makes its public keys available through a JWKS endpoint.\n3. Client Webhook, upon receiving the notification:\n    - Extracts the JWT from the Authorization header.\n    - Inspects the `kid` (key ID) in the JWT header.\n    - Fetches the corresponding public key from the A2A Server's JWKS endpoint (caching keys is recommended).\n    - Verifies the JWT signature using the public key.\n    - Validates claims (`iss`, `aud`, `iat`, `exp`, `jti`).\n    - Checks the `PushNotificationConfig.token` if provided.\n\nThis comprehensive, layered approach to security for push notifications helps ensure that messages are authentic, integral, and timely, protecting both the sending A2A Server and the receiving client webhook infrastructure.\n"
  },
  {
    "path": "docs/topics/what-is-a2a.md",
    "content": "# What is A2A?\n\nThe A2A protocol is an open standard that enables seamless communication and\ncollaboration between AI agents. It provides a common language for agents built\nusing diverse frameworks and by different vendors, fostering interoperability\nand breaking down silos. Agents are autonomous problem-solvers that act\nindependently within their environment. A2A allows agents from different\ndevelopers, built on different frameworks, and owned by different organizations\nto unite and work together.\n\n## Why Use the A2A Protocol\n\nA2A addresses key challenges in AI agent collaboration. It provides\na standardized approach for agents to interact. This section explains the\nproblems A2A solves and the benefits it offers.\n\n### Problems that A2A Solves\n\nConsider a user request for an AI assistant to plan an international trip. This\ntask involves orchestrating multiple specialized agents, such as:\n\n- A flight booking agent\n- A hotel reservation agent\n- An agent for local tour recommendations\n- A currency conversion agent\n\nWithout A2A, integrating these diverse agents presents several challenges:\n\n- **Agent Exposure**: Developers often wrap agents as tools to expose them to\n    other agents, similar to how tools are exposed in a Multi-agent Control\n    Platform (Model Context Protocol). However, this approach is inefficient because agents are\n    designed to negotiate directly. Wrapping agents as tools limits their capabilities.\n    A2A allows agents to be exposed as they are, without requiring this wrapping.\n- **Custom Integrations**: Each interaction requires custom, point-to-point\n    solutions, creating significant engineering overhead.\n- **Slow Innovation**: Bespoke development for each new integration slows\n    innovation.\n- **Scalability Issues**: Systems become difficult to scale and maintain as\n    the number of agents and interactions grows.\n- **Interoperability**: This approach limits interoperability,\n    preventing the organic formation of complex AI ecosystems.\n- **Security Gaps**: Ad hoc communication often lacks consistent security\n    measures.\n\nThe A2A protocol addresses these challenges by establishing interoperability for\nAI agents to interact reliably and securely.\n\n### A2A Example Scenario\n\nThis section provides an example scenario to illustrate the benefits of using an A2A (Agent2Agent) protocol for complex interactions between AI agents.\n\n#### A User's Complex Request\n\nA user interacts with an AI assistant, giving it a complex prompt like \"Plan an international trip.\"\n\n```mermaid\ngraph LR\n    User --> Prompt --> AI_Assistant[AI Assistant]\n```\n\n#### The Need for Collaboration\n\nThe AI assistant receives the prompt and realizes it needs to call upon multiple specialized agents to fulfill the request. These agents include a Flight Booking Agent, a Hotel Reservation Agent, a Currency Conversion Agent, and a Local Tours Agent.\n\n```mermaid\ngraph LR\n    subgraph \"Specialized Agents\"\n        FBA[✈️ Flight Booking Agent]\n        HRA[🏨 Hotel Reservation Agent]\n        CCA[💱 Currency Conversion Agent]\n        LTA[🚌 Local Tours Agent]\n    end\n\n    AI_Assistant[🤖 AI Assistant] --> FBA\n    AI_Assistant --> HRA\n    AI_Assistant --> CCA\n    AI_Assistant --> LTA\n```\n\n#### The Interoperability Challenge\n\nThe core problem: The agents are unable to work together because each has its own bespoke development and deployment.\n\nThe consequence of a lack of a standardized protocol is that these agents cannot collaborate with each other let alone discover what they can do. The individual agents (Flight, Hotel, Currency, and Tours) are isolated.\n\n#### The \"With A2A\" Solution\n\nThe A2A Protocol provides standard methods and data structures for agents to communicate with one another, regardless of their underlying implementation, so the same agents can be used as an interconnected system, communicating seamlessly through the standardized protocol.\n\nThe AI assistant, now acting as an orchestrator, receives the cohesive information from all the A2A-enabled agents. It then presents a single, complete travel plan as a seamless response to the user's initial prompt.\n\n![A2A Actors showing a User, A2A Client (Client Agent), and A2A Server (Remote Agent)](../assets/a2a-actors.png){ width=\"70%\" style=\"margin:20px auto;display:block;\" }\n\n### Core Benefits of A2A\n\nImplementing the A2A protocol offers significant advantages across the AI ecosystem:\n\n- **Secure collaboration**: Without a standard, it's difficult to ensure\n    secure communication between agents. A2A uses HTTPS for secure communication\n    and maintains opaque operations, so agents can't see the inner workings of\n    other agents during collaboration.\n- **Interoperability**: A2A breaks down silos between different AI\n    agent ecosystems, enabling agents from various vendors and frameworks to work\n    together seamlessly.\n- **Agent autonomy**: A2A allows agents to retain their individual capabilities\n    and act as autonomous entities while collaborating with other agents.\n- **Reduced integration complexity**: The protocol standardizes agent\n    communication, enabling teams to focus on the unique value their agents\n    provide.\n- **Support for LRO**: The protocol supports long-running operations (LRO) and\n    streaming with Server-Sent Events (SSE) and asynchronous execution.\n\n### Key Design Principles of A2A\n\nA2A development follows principles that prioritize broad adoption,\nenterprise-grade capabilities, and future-proofing.\n\n- **Simplicity**: A2A leverages existing standards like HTTP, JSON-RPC, and\n    Server-Sent Events (SSE). This avoids reinventing core technologies and\n    accelerates developer adoption.\n- **Enterprise Readiness**: A2A addresses critical enterprise needs. It aligns\n    with standard web practices for robust authentication, authorization,\n    security, privacy, tracing, and monitoring.\n- **Asynchronous**: A2A natively supports long-running tasks. It handles\n    scenarios where agents or users might not remain continuously connected. It\n    uses mechanisms like streaming and push notifications.\n- **Modality Independent**: The protocol allows agents to communicate using a\n    wide variety of content types. This enables rich and flexible interactions\n    beyond plain text.\n- **Opaque Execution**: Agents collaborate effectively without exposing their\n    internal logic, memory, or proprietary tools. Interactions rely on declared\n    capabilities and exchanged context. This preserves intellectual property and\n    enhances security.\n\n### Understanding the Agent Stack: A2A, MCP, Agent Frameworks and Models\n\nA2A is situated within a broader agent stack, which includes:\n\n- **A2A:** Standardizes communication among agents deployed in different organizations and developed using diverse frameworks.\n- **MCP:** Connects models to data and external resources.\n- **Frameworks (like ADK):** Provide toolkits for constructing agents.\n- **Models:** Fundamental to an agent's reasoning, these can be any Large Language Model (LLM).\n\n![ADK versus MCP](../assets/agentic-stack.png){ width=\"70%\" style=\"margin:20px auto;display:block;\" }\n\n#### A2A and MCP\n\nIn the broader ecosystem of AI communication, you might be familiar with protocols designed to facilitate interactions between agents, models, and tools. Notably, the Model Context Protocol (MCP) is an emerging standard focused on connecting Large Language Models (LLMs) with data and external resources.\n\nThe Agent2Agent (A2A) protocol is designed to standardize communication between AI agents, particularly those deployed in external systems. A2A is positioned to complement MCP, addressing a distinct yet related aspect of agent interaction.\n\n- **MCP's Focus:** Reducing the complexity involved in connecting agents with tools and data. Tools are typically stateless and perform specific, predefined functions (e.g., a calculator, a database query).\n- **A2A's Focus:** Enabling agents to collaborate within their native modalities, allowing them to communicate as agents (or as users) rather than being constrained to tool-like interactions. This enables complex, multi-turn interactions where agents reason, plan, and delegate tasks to other agents. For example, this facilitates multi-turn interactions, such as those involving negotiation or clarification when placing an order.\n\n![ADK + MCP](../assets/a2a-mcp-readme.png){ width=\"70%\" style=\"margin:20px auto;display:block;\" }\n\nThe practice of encapsulating an agent as a simple tool is fundamentally limiting, as it fails to capture the agent's full capabilities. This critical distinction is explored in the post, [Why Agents Are Not Tools](https://discuss.google.dev/t/agents-are-not-tools/192812).\n\nFor a more in-depth comparison, refer to the [A2A and MCP Comparison](a2a-and-mcp.md) document.\n\n#### A2A and ADK\n\nThe [Agent Development Kit (ADK)](https://google.github.io/adk-docs)\nis an open-source agent development toolkit developed by Google. A2A is a\ncommunication protocol for agents that enables inter-agent communication,\nregardless of the framework used for their construction (e.g., ADK, LangGraph,\nor Crew AI). ADK is a flexible and modular framework for developing and\ndeploying AI agents. While optimized for Gemini AI and the Google ecosystem,\nADK is model-agnostic, deployment-agnostic, and built for compatibility with\nother frameworks.\n\n### A2A Request Lifecycle\n\nThe A2A request lifecycle is a sequence that details the four main steps a request follows: agent discovery, authentication, `sendMessage` API, and `sendMessageStream` API. The following diagram provides a deeper look into the operational flow, illustrating the interactions between the client, A2A server, and auth server.\n\n```mermaid\nsequenceDiagram\n    participant Client\n    participant A2A Server\n    participant Auth Server\n\n    rect rgb(240, 240, 240)\n    Note over Client, A2A Server: 1. Agent Discovery\n    Client->>A2A Server: GET agent card eg: (/.well-known/agent-card)\n    A2A Server-->>Client: Returns Agent Card\n    end\n\n    rect rgb(240, 240, 240)\n    Note over Client, Auth Server: 2. Authentication\n    Client->>Client: Parse Agent Card for securitySchemes\n    alt securityScheme is \"openIdConnect\"\n        Client->>Auth Server: Request token based on \"authorizationUrl\" and \"tokenUrl\".\n        Auth Server-->>Client: Returns JWT\n    end\n    end\n\n    rect rgb(240, 240, 240)\n    Note over Client, A2A Server: 3. sendMessage API\n    Client->>Client: Parse Agent Card for \"url\" param to send API requests to.\n    Client->>A2A Server: POST /sendMessage (with JWT)\n    A2A Server->>A2A Server: Process message and create task\n    A2A Server-->>Client: Returns Task Response\n    end\n\n    rect rgb(240, 240, 240)\n    Note over Client, A2A Server: 4. sendMessageStream API\n    Client->>A2A Server: POST /sendMessageStream (with JWT)\n    A2A Server-->>Client: Stream: Task (Submitted)\n    A2A Server-->>Client: Stream: TaskStatusUpdateEvent (Working)\n    A2A Server-->>Client: Stream: TaskArtifactUpdateEvent (artifact A)\n    A2A Server-->>Client: Stream: TaskArtifactUpdateEvent (artifact B)\n    A2A Server-->>Client: Stream: TaskStatusUpdateEvent (Completed)\n    end\n```\n\n## What's Next\n\nLearn about the [Key Concepts](./key-concepts.md) that form the foundation of the A2A protocol.\n"
  },
  {
    "path": "docs/tutorials/index.md",
    "content": "# Tutorials\n\n## Python\n\nTutorial | Description | Difficulty\n:--------|:------------|:-----------\n[A2A and Python Quickstart](./python/1-introduction.md) | Learn to build a simple Python-based \"echo\" A2A server and client. | Easy\n[ADK facts](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/adk_facts) | Build and test a simple Personal Assistant agent using the Agent Development Kit (ADK) that can provide interesting facts. | Easy\n[ADK agent on Cloud Run](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/adk_cloud_run) | Deploy, manage, and observe an ADK-based agent as a scalable, serverless service on Google Cloud Run.| Easy\n[Multi-agent collaboration using A2A](https://github.com/a2aproject/a2a-samples/tree/main/demo) | Learn how to set up an orchestrator (host agent) that routes and manages requests among several specialized A2A-compatible agents. | Easy\n[Airbnb and weather multi-agent](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/airbnb_planner_multiagent) | Build a complex multi-agent system where agents collaborate using A2A to plan a trip, finding both Airbnb accommodations and weather information. | Medium\n[A2A Client-Server example using remote ADK agent](https://goo.gle/adk-a2a) | Learn how a local A2A client agent discovers and consumes the capabilities of a separate, remote ADK-based agent (for example, a prime number checker). | Easy\n[Colab Notebook](https://github.com/a2aproject/a2a-samples/blob/main/notebooks/multi_agents_eval_with_cloud_run_deployment.ipynb) | Use Colab Notebook to deploy A2A agents to Cloud Run from your browser, and then evaluate their performance with Vertex AI. | Easy\n\n## Java\n\nTutorial | Description | Difficulty\n:--------|:------------|:-----------\n[Weather Agent](https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/weather_mcp) | Build a weather information agent using an MCP server.<br><br>**To make use of this agent in a multi-language, multi-agent system, check out the [weather_and_airbnb_planner sample](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/hosts/weather_and_airbnb_planner).** | Easy\n[Content Writer Agent](https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/content_writer) | Build a content writer agent that generates engaging pieces of content from outlines.<br><br>**To make use of this agent in a content creation multi-language, multi-agent system, check out the [content_creation sample](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/hosts/content_creation).** | Easy\n[Content Editor Agent](https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/content_editor) | Build a content editor agent that proof-reads and polishes content.<br><br>**To make use of this agent in a content creation multi-language, multi-agent system, check out the [content_creation sample](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/hosts/content_creation).** | Easy\n[Dice Agent (Multi-Transport)](https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/dice_agent_multi_transport) | Build a multi-transport agent that rolls dice and checks for prime numbers. | Medium\n[Magic 8 Ball Agent (Security)](https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/magic_8_ball_security) | Build a Magic 8 Ball agent to learn how to secure A2A servers with Keycloak using bearer token authentication and configure an A2A client to obtain and pass the required token. | Medium\n\n## JavaScript\n\nTutorial | Description\n:--------|:------------\n[Movie research agent using JavaScript](https://github.com/a2aproject/a2a-samples/tree/main/samples/js) | Build an A2A agent with Node.js that uses the TMDB (The Movie Database) API to handle movie searches and queries.\n\n## C#/.NET\n\nTutorial | Description\n:--------|:------------\n[All .NET samples](https://github.com/a2aproject/a2a-dotnet/tree/main/samples) | Repository of foundational samples showing how to build A2A clients and servers, including an Echo Agent, using the C#/.NET SDK.\n"
  },
  {
    "path": "docs/tutorials/python/1-introduction.md",
    "content": "# Python Quickstart Tutorial: Building an A2A Agent\n\nWelcome to the Agent2Agent (A2A) Python Quickstart Tutorial!\n\nIn this tutorial, you will explore a simple \"echo\" A2A server using the Python SDK. This will introduce you to the fundamental concepts and components of an A2A server. You will then look at a more advanced example that integrates a Large Language Model (LLM).\n\nThis hands-on guide will help you understand:\n\n- The basic concepts behind the A2A protocol.\n- How to set up a Python environment for A2A development using the SDK.\n- How Agent Skills and Agent Cards describe an agent.\n- How an A2A server handles tasks.\n- How to interact with an A2A server using a client.\n- How streaming capabilities and multi-turn interactions work.\n- How an LLM can be integrated into an A2A agent.\n\nBy the end of this tutorial, you will have a functional understanding of A2A agents and a solid foundation for building or integrating A2A-compliant applications.\n\n## Tutorial Sections\n\nThe tutorial is broken down into the following steps:\n\n1. **[Introduction (This Page)](./1-introduction.md)**\n2. **[Setup](./2-setup.md)**: Prepare your Python environment and the A2A SDK.\n3. **[Agent Skills & Agent Card](./3-agent-skills-and-card.md)**: Define what your agent can do and how it describes itself.\n4. **[The Agent Executor](./4-agent-executor.md)**: Understand how the agent logic is implemented.\n5. **[Starting the Server](./5-start-server.md)**: Run the Helloworld A2A server.\n6. **[Interacting with the Server](./6-interact-with-server.md)**: Send requests to your agent.\n7. **[Streaming & Multi-Turn Interactions](./7-streaming-and-multiturn.md)**: Explore advanced capabilities with the LangGraph example.\n8. **[Next Steps](./8-next-steps.md)**: Explore further possibilities with A2A.\n\nLet's get started!\n"
  },
  {
    "path": "docs/tutorials/python/2-setup.md",
    "content": "# 2. Setup Your Environment\n\n## Prerequisites\n\n- Python 3.10 or higher.\n- Access to a terminal or command prompt.\n- Git, for cloning the repository.\n- A code editor (e.g., Visual Studio Code) is recommended.\n\n## Clone the Repository\n\nIf you haven't already, clone the A2A Samples repository:\n\n```bash\ngit clone https://github.com/a2aproject/a2a-samples.git -b main --depth 1\ncd a2a-samples\n```\n\n## Python Environment & SDK Installation\n\nWe recommend using a virtual environment for Python projects. The A2A Python SDK uses `uv` for dependency management, but you can use `pip` with `venv` as well.\n\n1. **Create and activate a virtual environment:**\n\n    Using `venv` (standard library):\n\n    === \"Mac/Linux\"\n\n        ```sh\n        python -m venv .venv\n        source .venv/bin/activate\n        ```\n\n    === \"Windows\"\n\n        ```powershell\n        python -m venv .venv\n        .venv\\Scripts\\activate\n        ```\n\n2. **Install needed Python dependencies along with the A2A SDK and its dependencies:**\n\n    ```bash\n    pip install -r samples/python/requirements.txt\n    ```\n\n## Verify Installation\n\nAfter installation, you should be able to import the `a2a` package in a Python interpreter:\n\n```bash\npython -c \"import a2a; print('A2A SDK imported successfully')\"\n```\n\nIf this command runs without error and prints the success message, your environment is set up correctly.\n"
  },
  {
    "path": "docs/tutorials/python/3-agent-skills-and-card.md",
    "content": "# 3. Agent Skills & Agent Card\n\nBefore an A2A agent can do anything, it needs to define what it _can_ do (its skills) and how other agents or clients can find out about these capabilities (its Agent Card).\n\nWe'll use the `helloworld` example located in [`a2a-samples/samples/python/agents/helloworld/`](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/helloworld).\n\n## Agent Skills\n\nAn **Agent Skill** describes a specific capability or function the agent can perform. It's a building block that tells clients what kinds of tasks the agent is good for.\n\nKey attributes of an `AgentSkill` (defined in `a2a.types`):\n\n- `id`: A unique identifier for the skill.\n- `name`: A human-readable name.\n- `description`: A more detailed explanation of what the skill does.\n- `tags`: Keywords for categorization and discovery.\n- `examples`: Sample prompts or use cases.\n- `inputModes` / `outputModes`: Supported Media Types for input and output (e.g., \"text/plain\", \"application/json\").\n\nIn `__main__.py`, you can see how a skill for the Helloworld agent is defined:\n\n```python { .no-copy }\n--8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/__main__.py:AgentSkill\"\n```\n\nThis skill is very simple: it's named \"Returns hello world\" and primarily deals with text.\n\n## Agent Card\n\nThe **Agent Card** is a JSON document that an A2A Server makes available, typically at a `.well-known/agent-card.json` endpoint. It's like a digital business card for the agent.\n\nKey attributes of an `AgentCard` (defined in `a2a.types`):\n\n- `name`, `description`, `version`: Basic identity information.\n- `url`: The endpoint where the A2A service can be reached.\n- `capabilities`: Specifies supported A2A features like `streaming` or `pushNotifications`.\n- `defaultInputModes` / `defaultOutputModes`: Default Media Types for the agent.\n- `skills`: A list of `AgentSkill` objects that the agent offers.\n\nThe `helloworld` example defines its Agent Card like this:\n\n```python { .no-copy }\n--8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/__main__.py:AgentCard\"\n```\n\nThis card tells us the agent is named \"Hello World Agent\", runs at `http://localhost:9999/`, supports text interactions, and has the `hello_world` skill. It also indicates public authentication, meaning no specific credentials are required.\n\nUnderstanding the Agent Card is crucial because it's how a client discovers an agent and learns how to interact with it.\n"
  },
  {
    "path": "docs/tutorials/python/4-agent-executor.md",
    "content": "# 4. The Agent Executor\n\nThe core logic of how an A2A agent processes requests and generates responses/events is handled by an **Agent Executor**. The A2A Python SDK provides an abstract base class `a2a.server.agent_execution.AgentExecutor` that you implement.\n\n## `AgentExecutor` Interface\n\nThe `AgentExecutor` class defines two primary methods:\n\n- `async def execute(self, context: RequestContext, event_queue: EventQueue)`: Handles incoming requests that expect a response or a stream of events. It processes the user's input (available via `context`) and uses the `event_queue` to send back `Message`, `Task`, `TaskStatusUpdateEvent`, or `TaskArtifactUpdateEvent` objects.\n- `async def cancel(self, context: RequestContext, event_queue: EventQueue)`: Handles requests to cancel an ongoing task.\n\nThe `RequestContext` provides information about the incoming request, such as the user's message and any existing task details. The `EventQueue` is used by the executor to send events back to the client.\n\n## Helloworld Agent Executor\n\nLet's look at `agent_executor.py`. It defines `HelloWorldAgentExecutor`.\n\n1. **The Agent (`HelloWorldAgent`)**:\n    This is a simple helper class that encapsulates the actual \"business logic\".\n\n    ```python { .no-copy }\n    --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/agent_executor.py:HelloWorldAgent\"\n    ```\n\n    It has a simple `invoke` method that returns the string \"Hello World\".\n\n2. **The Executor (`HelloWorldAgentExecutor`)**:\n    This class implements the `AgentExecutor` interface.\n\n    - **`__init__`**:\n\n        ```python { .no-copy }\n        --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/agent_executor.py:HelloWorldAgentExecutor_init\"\n        ```\n\n        It instantiates the `HelloWorldAgent`.\n\n    - **`execute`**:\n\n        ```python { .no-copy }\n        --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/agent_executor.py:HelloWorldAgentExecutor_execute\"\n        ```\n\n        When a `message/send` or `message/stream` request comes in (both are handled by `execute` in this simplified executor):\n\n        1. It calls `self.agent.invoke()` to get the \"Hello World\" string.\n        2. It creates an A2A `Message` object using the `new_agent_text_message` utility function.\n        3. It enqueues this message onto the `event_queue`. The underlying `DefaultRequestHandler` will then process this queue to send the response(s) to the client. For a single message like this, it will result in a single response for `message/send` or a single event for `message/stream` before the stream closes.\n\n    - **`cancel`**:\n        The Hello World example's `cancel` method simply raises an exception, indicating that cancellation is not supported for this basic agent.\n\n        ```python { .no-copy }\n        --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/agent_executor.py:HelloWorldAgentExecutor_cancel\"\n        ```\n\nThe `AgentExecutor` acts as the bridge between the A2A protocol (managed by the request handler and server application) and your agent's specific logic. It receives context about the request and uses an event queue to communicate results or updates back.\n"
  },
  {
    "path": "docs/tutorials/python/5-start-server.md",
    "content": "# 5. Starting the Server\n\nNow that we have an Agent Card and an Agent Executor, we can set up and start the A2A server.\n\nThe A2A Python SDK provides an `A2AStarletteApplication` class that simplifies running an A2A-compliant HTTP server. It uses [Starlette](https://www.starlette.io/) for the web framework and is typically run with an ASGI server like [Uvicorn](https://www.uvicorn.org/).\n\n## Server Setup in Helloworld\n\nLet's look at `__main__.py` again to see how the server is initialized and started.\n\n```python { .no-copy }\n--8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/__main__.py\"\n```\n\nLet's break this down:\n\n1. **`DefaultRequestHandler`**:\n\n    - The SDK provides `DefaultRequestHandler`. This handler takes your `AgentExecutor` implementation (here, `HelloWorldAgentExecutor`) and a `TaskStore` (here, `InMemoryTaskStore`).\n    - It routes incoming A2A RPC calls to the appropriate methods on your executor (like `execute` or `cancel`).\n    - The `TaskStore` is used by the `DefaultRequestHandler` to manage the lifecycle of tasks, especially for stateful interactions, streaming, and resubscription. Even if your agent executor is simple, the handler needs a task store.\n\n2. **`A2AStarletteApplication`**:\n\n    - The `A2AStarletteApplication` class is instantiated with the `agent_card` and the `request_handler` (referred to as `http_handler` in its constructor).\n    - The `agent_card` is crucial because the server will expose it at the `/.well-known/agent-card.json` endpoint (by default).\n    - The `request_handler` is responsible for processing all incoming A2A method calls by interacting with your `AgentExecutor`.\n\n3. **`uvicorn.run(server_app_builder.build(), ...)`**:\n    - The `A2AStarletteApplication` has a `build()` method that constructs the actual Starlette application.\n    - This application is then run using `uvicorn.run()`, making your agent accessible over HTTP.\n    - `host='0.0.0.0'` makes the server accessible on all network interfaces on your machine.\n    - `port=9999` specifies the port to listen on. This matches the `url` in the `AgentCard`.\n\n## Running the Helloworld Server\n\nNavigate to the `a2a-samples` directory in your terminal (if you're not already there) and ensure your virtual environment is activated.\n\nTo run the Helloworld server:\n\n```bash\n# from the a2a-samples directory\npython samples/python/agents/helloworld/__main__.py\n```\n\nYou should see output similar to this, indicating the server is running:\n\n```console { .no-copy }\nINFO:     Started server process [xxxxx]\nINFO:     Waiting for application startup.\nINFO:     Application startup complete.\nINFO:     Uvicorn running on http://0.0.0.0:9999 (Press CTRL+C to quit)\n```\n\nYour A2A Helloworld agent is now live and listening for requests! In the next step, we'll interact with it.\n"
  },
  {
    "path": "docs/tutorials/python/6-interact-with-server.md",
    "content": "# 6. Interacting with the Server\n\nWith the Helloworld A2A server running, let's send some requests to it. The SDK includes a client (`A2AClient`) that simplifies these interactions.\n\n## The Helloworld Test Client\n\nThe `test_client.py` script demonstrates how to:\n\n1. Fetch the Agent Card from the server.\n2. Create an `A2AClient` instance.\n3. Send both non-streaming (`message/send`) and streaming (`message/stream`) requests.\n\nOpen a **new terminal window**, activate your virtual environment, and navigate to the `a2a-samples` directory.\n\nActivate virtual environment (Be sure to do this in the same directory where you created the virtual environment):\n\n=== \"Mac/Linux\"\n\n    ```sh\n    source .venv/bin/activate\n    ```\n\n=== \"Windows\"\n\n    ```powershell\n    .venv\\Scripts\\activate\n    ```\n\nRun the test client:\n\n```bash\n# from the a2a-samples directory\npython samples/python/agents/helloworld/test_client.py\n```\n\n## Understanding the Client Code\n\nLet's look at key parts of `test_client.py`:\n\n1. **Fetching the Agent Card & Initializing the Client**:\n\n    ```python { .no-copy }\n    --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/test_client.py:A2ACardResolver\"\n    ```\n\n    The `A2ACardResolver` class is a convenience. It first fetches the `AgentCard` from the server's `/.well-known/agent-card.json` endpoint (based on the provided base URL) and then initializes the client with it.\n\n2. **Sending a Non-Streaming Message (`send_message`)**:\n\n    ```python { .no-copy }\n    --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/test_client.py:send_message\"\n    ```\n\n    - The `send_message_payload` constructs the data for `MessageSendParams`.\n    - This is wrapped in a `SendMessageRequest`.\n    - It includes a `message` object with the `role` set to \"user\" and the content in `parts`.\n    - The Helloworld agent's `execute` method will enqueue a single \"Hello World\" message. The `DefaultRequestHandler` will retrieve this and send it as the response.\n    - The `response` will be a `SendMessageResponse` object, which contains either a `SendMessageSuccessResponse` (with the agent's `Message` as the result) or a `JSONRPCErrorResponse`.\n\n3. **Handling Task IDs (Illustrative Note for Helloworld)**:\n\n    The Helloworld client (`test_client.py`) doesn't attempt `get_task` or `cancel_task` directly because the simple Helloworld agent's `execute` method, when called via `message/send`, results in the `DefaultRequestHandler` returning a direct `Message` response rather than a `Task` object. More complex agents that explicitly manage tasks (like the LangGraph example) would return a `Task` object from `message/send`, and its `id` could then be used for `get_task` or `cancel_task`.\n\n4. **Sending a Streaming Message (`send_message_streaming`)**:\n\n    ```python { .no-copy }\n    --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/helloworld/test_client.py:send_message_streaming\"\n    ```\n\n    - This method calls the agent's `message/stream` endpoint. The `DefaultRequestHandler` will invoke the `HelloWorldAgentExecutor.execute` method.\n    - The `execute` method enqueues one \"Hello World\" message, and then the event queue is closed.\n    - The client will receive this single message as one `SendStreamingMessageResponse` event, and then the stream will terminate.\n    - The `stream_response` is an `AsyncGenerator`.\n\n## Expected Output\n\nWhen you run `test_client.py`, you'll see JSON outputs for:\n\n- The non-streaming response (a single \"Hello World\" message).\n- The streaming response (a single \"Hello World\" message as one chunk, after which the stream ends).\n\nThe `id` fields in the output will vary with each run.\n\n```console { .no-copy }\n// Non-streaming response\n{\"jsonrpc\":\"2.0\",\"id\":\"xxxxxxxx\",\"result\":{\"message\":{\"role\":\"ROLE_AGENT\",\"parts\":[{\"text\":\"Hello World\"}],\"messageId\":\"yyyyyyyy\"}}}\n// Streaming response (one chunk)\n{\"jsonrpc\":\"2.0\",\"id\":\"zzzzzzzz\",\"result\":{\"message\":{\"role\":\"ROLE_AGENT\",\"parts\":[{\"text\":\"Hello World\"}],\"messageId\":\"wwwwwwww\"}}}\n```\n\n_(Actual IDs like `xxxxxxxx`, `yyyyyyyy`, `zzzzzzzz`, `wwwwwwww` will be different UUIDs/request IDs)_\n\nThis confirms your server is correctly handling basic A2A interactions with the updated SDK structure!\n\nNow you can shut down the server by typing Ctrl+C in the terminal window where `__main__.py` is running.\n"
  },
  {
    "path": "docs/tutorials/python/7-streaming-and-multiturn.md",
    "content": "# 7. Streaming & Multi-Turn Interactions (LangGraph Example)\n\nThe Hello World example demonstrates the basic mechanics of A2A. For more advanced features like robust streaming, task state management, and multi-turn conversations powered by an LLM, we'll turn to the LangGraph example located in [`a2a-samples/samples/python/agents/langgraph/`](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/langgraph).\n\nThis example features a \"Currency Agent\" that uses the Gemini model via LangChain and LangGraph to answer currency conversion questions.\n\n## Setting up the LangGraph Example\n\n1. Create a [Gemini API Key](https://ai.google.dev/gemini-api/docs/api-key), if you don't already have one.\n\n2. **Environment Variable:**\n\n    Create a `.env` file in the `a2a-samples/samples/python/agents/langgraph/` directory:\n\n    ```bash\n    echo \"GOOGLE_API_KEY=YOUR_API_KEY_HERE\" > .env\n    ```\n\n    Replace `YOUR_API_KEY_HERE` with your actual Gemini API key.\n\n3. **Install Dependencies (if not already covered):**\n\n    The `langgraph` example has its own `pyproject.toml` which includes dependencies like `langchain-google-genai` and `langgraph`. When you installed the SDK from the `a2a-samples` root using `pip install -e .[dev]`, this should have also installed the dependencies for the workspace examples, including `langgraph-example`. If you encounter import errors, ensure your primary SDK installation from the root directory was successful.\n\n## Running the LangGraph Server\n\nNavigate to the `a2a-samples/samples/python/agents/langgraph/app` directory in your terminal and ensure your virtual environment (from the SDK root) is activated.\n\nStart the LangGraph agent server:\n\n```bash\npython __main__.py\n```\n\nThis will start the server, usually on `http://localhost:10000`.\n\n## Interacting with the LangGraph Agent\n\nOpen a **new terminal window**, activate your virtual environment, and navigate to `a2a-samples/samples/python/agents/langgraph/app`.\n\nRun its test client:\n\n```bash\npython test_client.py\n```\n\nNow, you can shut down the server by typing Ctrl+C in the terminal window where `__main__.py` is running.\n\n## Key Features Demonstrated\n\nThe `langgraph` example showcases several important A2A concepts:\n\n1. **LLM Integration**:\n\n    - `agent.py` defines `CurrencyAgent`. It uses `ChatGoogleGenerativeAI` and LangGraph's `create_react_agent` to process user queries.\n    - This demonstrates how a real LLM can power the agent's logic.\n\n2. **Task State Management**:\n\n    - `samples/langgraph/__main__.py` initializes a `DefaultRequestHandler` with an `InMemoryTaskStore`.\n\n        ```python { .no-copy }\n        --8<-- \"https://raw.githubusercontent.com/a2aproject/a2a-samples/refs/heads/main/samples/python/agents/langgraph/app/__main__.py:DefaultRequestHandler\"\n        ```\n\n    - The `CurrencyAgentExecutor` (in `samples/langgraph/agent_executor.py`), when its `execute` method is called by the `DefaultRequestHandler`, interacts with the `RequestContext` which contains the current task (if any).\n    - For `message/send`, the `DefaultRequestHandler` uses the `TaskStore` to persist and retrieve task state across interactions. The response to `message/send` will be a full `Task` object if the agent's execution flow involves multiple steps or results in a persistent task.\n    - The `test_client.py`'s `run_single_turn_test` demonstrates getting a `Task` object back and then querying it using `get_task`.\n\n3. **Streaming with `TaskStatusUpdateEvent` and `TaskArtifactUpdateEvent`**:\n\n    - The `execute` method in `CurrencyAgentExecutor` is responsible for handling both non-streaming and streaming requests, orchestrated by the `DefaultRequestHandler`.\n    - As the LangGraph agent processes the request (which might involve calling tools like `get_exchange_rate`), the `CurrencyAgentExecutor` enqueues different types of events onto the `EventQueue`:\n        - `TaskStatusUpdateEvent`: For intermediate updates (e.g., \"Looking up exchange rates...\", \"Processing the exchange rates..\").\n        - `TaskArtifactUpdateEvent`: When the final answer is ready, it's enqueued as an artifact. The `lastChunk` flag is `True`.\n        - A final `TaskStatusUpdateEvent` with `state=TaskState.completed` is sent to signify the end of the task, closing the stream.\n    - The `test_client.py`'s `run_streaming_test` function will print these individual event chunks as they are received from the server.\n\n4. **Multi-Turn Conversation (`TaskState.input_required`)**:\n\n    - The `CurrencyAgent` can ask for clarification if a query is ambiguous (e.g., user asks \"how much is 100 USD?\").\n    - When this happens, the `CurrencyAgentExecutor` will enqueue a `TaskStatusUpdateEvent` where `status.state` is `TaskState.input_required` and `status.message` contains the agent's question (e.g., \"To which currency would you like to convert?\"). The stream closes after this event.\n    - The `test_client.py`'s `run_multi_turn_test` function demonstrates this:\n        - It sends an initial ambiguous query.\n        - The agent responds (via the `DefaultRequestHandler` processing the enqueued events) with a `Task` whose status is `input_required`.\n        - The client then sends a second message, including the `taskId` and `contextId` from the first turn's `Task` response, to provide the missing information (\"in GBP\"). This continues the same task.\n\n## Exploring the Code\n\nTake some time to look through these files:\n\n- `__main__.py`: Server setup using `A2AStarletteApplication` and `DefaultRequestHandler`. Note the `AgentCard` definition includes `capabilities.streaming=True`.\n- `agent.py`: The `CurrencyAgent` with LangGraph, LLM model, and tool definitions.\n- `agent_executor.py`: The `CurrencyAgentExecutor` implementing the `execute` (and `cancel`) method. It uses the `RequestContext` to understand the ongoing task and the `EventQueue` to send back various events (`TaskStatusUpdateEvent`, `TaskArtifactUpdateEvent`, new `Task` object implicitly via the first event if no task exists).\n- `test_client.py`: Demonstrates various interaction patterns, including retrieving task IDs and using them for multi-turn conversations.\n\nThis example provides a much richer illustration of how A2A facilitates complex, stateful, and asynchronous interactions between agents.\n"
  },
  {
    "path": "docs/tutorials/python/8-next-steps.md",
    "content": "# Next Steps\n\nCongratulations on completing the A2A Python SDK Tutorial! You've learned how to:\n\n- Set up your environment for A2A development.\n- Define Agent Skills and Agent Cards using the SDK's types.\n- Implement a basic HelloWorld A2A server and client.\n- Understand and implement streaming capabilities.\n- Integrate a more complex agent using LangGraph, demonstrating task state management and tool use.\n\nYou now have a solid foundation for building and integrating your own A2A-compliant agents.\n\n## Where to Go From Here?\n\nHere are some ideas and resources to continue your A2A journey:\n\n- **Explore Other Examples:**\n    - Check out the other examples in the [a2a-samples GitHub repository](https://github.com/a2aproject/a2a-samples/tree/main/samples) for more complex agent integrations and features.\n- **Deepen Your Protocol Understanding:**\n    - 📚 Read the complete [A2A Protocol Documentation site](https://a2a-protocol.org) for a comprehensive overview.\n    - 📝 Review the detailed [A2A Protocol Specification](../../specification.md) to understand the nuances of all data structures and RPC methods.\n- **Review Key A2A Topics:**\n    - [A2A and MCP](../../topics/a2a-and-mcp.md): Understand how A2A complements the Model Context Protocol for tool usage.\n    - [Enterprise-Ready Features](../../topics/enterprise-ready.md): Learn about security, observability, and other enterprise considerations.\n    - [Streaming & Asynchronous Operations](../../topics/streaming-and-async.md): Get more details on SSE and push notifications.\n    - [Agent Discovery](../../topics/agent-discovery.md): Explore different ways agents can find each other.\n- **Build Your Own Agent:**\n    - Try creating a new A2A agent using your favorite Python agent framework (like LangChain, CrewAI, AutoGen, Semantic Kernel, or a custom solution).\n    - Implement the `a2a.server.AgentExecutor` interface to bridge your agent's logic with the A2A protocol.\n    - Think about what unique skills your agent could offer and how its Agent Card would represent them.\n- **Experiment with Advanced Features:**\n    - Implement robust task management with a persistent `TaskStore` if your agent handles long-running or multi-session tasks.\n    - Explore implementing push notifications if your agent's tasks are very long-lived.\n    - Consider more complex input and output modalities (e.g., handling file uploads/downloads via file Parts, or structured data via data Parts).\n- **Contribute to the A2A Community:**\n    - Join the discussions on the [A2A GitHub Discussions page](https://github.com/a2aproject/A2A/discussions).\n    - Report issues or suggest improvements via [GitHub Issues](https://github.com/a2aproject/A2A/issues).\n    - Consider contributing code, examples, or documentation. See the [CONTRIBUTING.md](https://github.com/a2aproject/A2A/blob/main/CONTRIBUTING.md) guide.\n\nThe A2A protocol aims to foster an ecosystem of interoperable AI agents. By building and sharing A2A-compliant agents, you can be a part of this exciting development!\n"
  },
  {
    "path": "docs/whats-new-v1.md",
    "content": "# What's New in A2A Protocol v1.0\n\nThis document provides a comprehensive overview of changes from A2A Protocol v0.3.0 to v1.0. The v1.0 release represents a significant maturation of the protocol with enhanced clarity, stronger specifications, and important structural improvements.\n\n## Overview of Major Themes\n\nThe v1.0 release focuses on four major themes:\n\n### 1. **Protocol Maturity and Standardization**\n\n- Elevate a2a.proto from being a gRPC-specific implementation file to the universal, normative source of truth\n- Leverage formal specification standards (RFC 8785, RFC 7515) and google.rpc.Status where possible\n- Stricter adherence to industry-standard patterns for REST, gRPC, and JSON-RPC bindings\n- Enhanced versioning strategy with explicit backward compatibility rules\n- Comprehensive error taxonomy with protocol-specific mappings\n\n### 2. **Enhanced Type Safety and Clarity**\n\n- Removal of discriminator `kind` fields in favor of JSON member-based polymorphism\n- **Breaking:** Enum values changed from `kebab-case` to `SCREAMING_SNAKE_CASE` for compliance with the ProtoJSON specification\n- Stricter field naming conventions (`camelCase` for JSON)\n- More precise timestamp specifications (ISO 8601 with millisecond precision)\n- Better-defined data types with clearer Optional vs Required semantics\n\n### 3. **Improved Developer Experience**\n\n- Renamed operations for consistency and clarity\n- Reorganized Agent Card structure for better logical grouping\n- Enhanced extension mechanism with versioning and requirement declarations\n- More explicit service parameter handling (A2A-Version, A2A-Extensions headers)\n- **Simplified ID format** - Removed complex compound IDs (e.g., `tasks/{id}`) in favor of simple UUIDs\n- **Protocol versioning per interface** - Each AgentInterface specifies its own protocol version for better backward compatibility\n- **Multi-tenancy support** - Native tenant scoping in gRPC requests\n\n### 4. **Enterprise-Ready Features**\n\n- Agent Card signature verification using JWS and JSON Canonicalization\n- Formal specification of all three protocol bindings with equivalence guarantees\n- Enhanced security scheme declarations with mutual TLS support\n- **Modern OAuth 2.0 flows** - Added Device Code flow (RFC 8628), removed deprecated implicit/password flows\n- **PKCE support** - Added `pkce_required` field to Authorization Code flow for enhanced security\n- Cursor-based pagination for scalable task listing\n\n---\n\n## Behavioral Changes for Core Operations\n\n### Send Message (`message/send` → **`SendMessage`**)\n\n**v0.3.0 Behavior:**\n\n- Operation named `message/send`\n- Less formal specification of when `Task` vs `Message` is returned\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operation now **`SendMessage`**\n- **✅ CLARIFIED:** More precise specification of Task vs Message return semantics\n\n### Send Streaming Message (`message/stream` → **SendStreamingMessage**)\n\n**v0.3.0 Behavior:**\n\n- Operation named `message/stream`\n- Stream events had `kind` discriminator field\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operation now **`SendStreamingMessage`**\n- **✅ BREAKING:** Stream events no longer have `kind` field\n    - Use JSON member names to discriminate between `TaskStatusUpdateEvent` and `TaskArtifactUpdateEvent`\n- **✅ REMOVED:** `final` boolean field removed from TaskStatusUpdateEvent. Leverage protocol binding specific stream closure mechanism instead.\n- **✅ CLARIFIED:** Multiple concurrent streams allowed; all receive same ordered events\n\n### Get Task (`tasks/get` → **GetTask**)\n\n**v0.3.0 Behavior:**\n\n- Operation named `tasks/get`\n- Returns task with status, artifacts, and optionally history\n- Less formal specification of what \"include history\" means\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operation now **GetTask**\n- **✅ NEW:** `createdAt` and `lastModified` timestamp fields added to Task object\n- **✅ CLARIFIED:** More precise specification of history inclusion behavior\n- **✅ NEW:** Task object now includes `extensions[]` array in messages and artifacts\n- **✅ CLARIFIED:** Authentication/authorization scoping - servers MUST only return tasks visible to caller\n\n### List Tasks (`tasks/list` → **ListTasks**)\n\n**v0.3.0 Behavior:**\n\n- Operation unavailable.\n\n**v1.0 Changes:**\n\n- **✅ NEW:** New operation **ListTasks** with filtering capabilities\n- **✅ CLARIFIED:** Task visibility scoped to authenticated caller\n\n### Cancel Task (`tasks/cancel` → **CancelTask**)\n\n**v0.3.0 Behavior:**\n\n- Operation named `tasks/cancel`\n- Request with taskId, returns Task\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operation now **CancelTask**\n- **✅ CLARIFIED:** More precise specification of when cancellation is allowed\n- **✅ CLARIFIED:** Task state transitions for cancellation scenarios\n\n### Get Agent Card (Well-known URI and **GetExtendedAgentCard**)\n\n**v0.3.0 Behavior:**\n\n- Discovery via `/.well-known/agent-card.json`\n- Extended card via `agent/getAuthenticatedExtendedCard`\n- `supportsAuthenticatedExtendedCard` boolean at top level\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** `agent/getAuthenticatedExtendedCard` → **GetExtendedAgentCard**\n- **✅ BREAKING:** `supportsAuthenticatedExtendedCard` moved to `capabilities.extendedAgentCard`\n- **✅ NEW:** Canonicalization (RFC 8785) clarified for Agent Card signature\n- **✅ BREAKING:** `protocolVersion` moved from AgentCard to individual AgentInterface objects\n- **✅ BREAKING:** `preferredTransport` and `additionalInterfaces` consolidated into `supportedInterfaces[]`\n    - Each interface has `url`, `protocolBinding`, and `protocolVersion`\n\n### Subscribe to task (`tasks/resubscribe` → **SubscribeToTask**)\n\n**v0.3.0 Behavior:**\n\n- Used `tasks/resubscribe` to reconnect interrupted SSE streams\n- Backfill behavior implementation-dependent\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operation now **SubscribeToTask**\n- **✅ CLARIFIED:** Formal specification of streaming subscription lifecycle\n- **✅ CLARIFIED:** Stream closure behavior when task reaches terminal state\n- **✅ CLARIFIED:** Multiple concurrent subscriptions supported per task\n\n### Push Notification Operations\n\n**v0.3.0 Operations:**\n\n- `tasks/pushNotificationConfig/set`\n- `tasks/pushNotificationConfig/get`\n- `tasks/pushNotificationConfig/list`\n- `tasks/pushNotificationConfig/delete`\n\n**v1.0 Changes:**\n\n- **✅ RENAMED:** Operations now **CreateTaskPushNotificationConfig**, **GetTaskPushNotificationConfig**, **ListTaskPushNotificationConfigs**, **DeleteTaskPushNotificationConfig**\n- **✅ NEW:** `createdAt` timestamp field added to PushNotificationConfig\n- **✅ CLARIFIED:** Push notification payloads now use StreamResponse format\n- **✅ BREAKING:** model changed for all methods, with TaskPushNotificationConfig flattened\n\n### NEW: Multi-Tenancy Support\n\n**v0.3.0:**\n\n- No native multi-tenancy support in protocol\n- Tenants handled implicitly via authentication or URL paths\n\n**v1.0 Changes:**\n\n- **✅ NEW:** `tenant` field added to all request messages\n- **✅ NEW:** `tenant` field added to `AgentInterface` to specify default tenant\n- **✅ CLARIFIED:** Tenant provided per-request, inherited from AgentInterface\n- **✅ USE CASE:** Enables to serve multiple agents from a single endpoint\n\n### Protocol Simplifications\n\n#### ID Format Simplification (#1389)\n\n**v0.3.0:**\n\n- Some operations used complex compound IDs like `tasks/{taskId}`\n- Required clients/servers to construct/deconstruct resource names\n\n**v1.0 Changes:**\n\n- **✅ BREAKING:** All IDs are now simple literals\n- **✅ BREAKING:** Operations that previously used compound IDs now separate parent and resource ID\n    - Example: `tasks/{taskId}/pushNotificationConfigs/{configId}` → separate `task_id` and `config_id` fields\n- **✅ BENEFIT:** Simpler to implement - IDs map directly to database keys\n\n#### HTTP URL Path Simplification (#1269)\n\n**v0.3.0:**\n\n- HTTP+JSON binding used `/v1/` prefix in URLs\n- Example: `POST /v1/message:send`\n\n**v1.0 Changes:**\n\n- **✅ BREAKING:** Removed `/v1` prefix from HTTP+JSON URL paths\n- **✅ NEW:** Examples: `POST /message:send`, `GET /tasks/{id}`\n- **✅ RATIONALE:** Version can be part of the base url if required by agent owner\n- **✅ BENEFIT:** Cleaner URLs, version management at interface level\n\n---\n\n## Structural Changes in Core Model Objects\n\n### TaskStatus Object\n\n**Modified Fields:**\n\n- ✅ `state`: **BREAKING** - Enum values changed from lowercase to `SCREAMING_SNAKE_CASE` with `TASK_STATE_` prefix\n    - v0.3.0: `\"submitted\"`, `\"working\"`, `\"completed\"`, `\"failed\"`, `\"canceled\"`, `\"rejected\"`, `\"input-required\"`, `\"auth-required\"`\n    - v1.0: `\"TASK_STATE_SUBMITTED\"`, `\"TASK_STATE_WORKING\"`, `\"TASK_STATE_COMPLETED\"`, `\"TASK_STATE_FAILED\"`, `\"TASK_STATE_CANCELED\"`, `\"TASK_STATE_REJECTED\"`, `\"TASK_STATE_INPUT_REQUIRED\"`, `\"TASK_STATE_AUTH_REQUIRED\"`\n- ✅ `timestamp`: Now explicitly ISO 8601 UTC with millisecond precision (YYYY-MM-DDTHH:mm:ss.sssZ)\n\n**Removed Fields:**\n\n- None\n\n**Example Migration:**\n\n```json\n// v0.3.0\n{\n  \"status\": {\n    \"state\": \"completed\",\n    \"timestamp\": \"2024-03-15T10:15:00Z\"\n  }\n}\n\n// v1.0\n{\n  \"status\": {\n    \"state\": \"TASK_STATE_COMPLETED\",\n    \"timestamp\": \"2024-03-15T10:15:00.000Z\"\n  }\n}\n```\n\n### Message Object\n\n**Added Fields:**\n\n- ✅ `extensions[]`: Array of extension URIs applicable to this message\n\n**Modified Fields:**\n\n- ✅ `role`: **BREAKING** - Enum values changed from lowercase to `SCREAMING_SNAKE_CASE` with `ROLE_` prefix\n    - v0.3.0: `\"user\"`, `\"agent\"`\n    - v1.0: `\"ROLE_USER\"`, `\"ROLE_AGENT\"`\n\n**Example Migration:**\n\n```json\n// v0.3.0\n{\n  \"role\": \"user\",\n  \"parts\": [{\"kind\": \"text\", \"text\": \"Hello\"}]\n}\n\n// v1.0\n{\n  \"role\": \"ROLE_USER\",\n  \"parts\": [{\"text\": \"Hello\"}],\n}\n```\n\n**Behavior Changes:**\n\n- Parts array now uses member-based discrimination instead of `kind` field\n\n### Part Object\n\n**BREAKING CHANGE - Complete Redesign:**\n\nThe Part structure has been completely redesigned in v1.0. Instead of separate TextPart, FilePart, and DataPart message types, there is now a single unified `Part` message.\n\n**v0.3.0 Structure (Separate Types):**\n\n```json\n// Text example\n{\n  \"kind\": \"text\",\n  \"text\": \"Hello world\"\n}\n\n// File example\n{\n  \"kind\": \"file\",\n  \"file\": {\n    \"fileWithUri\": \"https://example.com/doc.pdf\",\n    \"mimeType\": \"application/pdf\"\n  }\n}\n\n// Data example\n{\n  \"kind\": \"data\",\n  \"data\": {\"key\": \"value\"}\n}\n```\n\n**v1.0 Structure (Unified Part):**\n\n```json\n// Text example\n{\n  \"text\": \"Hello world\",\n  \"mediaType\": \"text/plain\"\n}\n\n// File with URL example\n{\n  \"url\": \"https://example.com/doc.pdf\",\n  \"filename\": \"doc.pdf\",\n  \"mediaType\": \"application/pdf\"\n}\n\n// File with raw bytes example\n{\n  \"raw\": \"base64encodedcontent==\",\n  \"filename\": \"image.png\",\n  \"mediaType\": \"image/png\"\n}\n\n// Data example\n{\n  \"data\": {\"key\": \"value\"},\n  \"mediaType\": \"application/json\"\n}\n```\n\n**Changes:**\n\n- ⛔ **REMOVED:** Separate `TextPart`, `FilePart`, and `DataPart` types\n- ⛔ **REMOVED:** `kind` discriminator field\n- ⛔ **REMOVED:** Nested `file` object structure\n- ✅ **NEW:** Single unified `Part` message with `oneof content` field\n- ✅ **NEW:** Content type determined by which field is present: `text`, `raw`, `url`, or `data`\n- ✅ **NEW:** `mediaType` field (replaces `mimeType`) - available for all part types\n- ✅ **NEW:** `filename` field - available for all part types (not just files)\n- ✅ **NEW:** `raw` field for inline binary content (base64 in JSON)\n- ✅ **NEW:** `url` field for file references (replaces `file.fileWithUri`)\n\n**Migration Examples:**\n\n```typescript\n// v0.3.0\nconst textPart = { kind: \"text\", text: \"Hello\" };\nconst filePart = { kind: \"file\", file: { fileWithUri: \"https://...\", mimeType: \"image/png\" } };\nconst dataPart = { kind: \"data\", data: { key: \"value\" } };\n\n// v1.0\nconst textPart = { text: \"Hello\", mediaType: \"text/plain\" };\nconst filePart = { url: \"https://...\", mediaType: \"image/png\", filename: \"image.png\" };\nconst dataPart = { data: { key: \"value\" }, mediaType: \"application/json\" };\n\n// Discrimination changed from kind field to member presence\nif (part.kind === \"text\") { ... }  // v0.3.0\nif (\"text\" in part) { ... }        // v1.0\n```\n\n### Artifact Object\n\n**Added Fields:**\n\n- ✅ `extensions[]`: Array of extension URIs\n\n**Modified Fields:**\n\n- ✅ `parts[]`: Now uses member-based Part discrimination (see Part changes above)\n\n### AgentCard Object\n\n**Added Fields:**\n\n- ✅ `supportedInterfaces[]`: Array of `AgentInterface` objects\n\n**Removed Fields:**\n\n- ⛔ `protocolVersion`: Removed from AgentCard (now in each AgentInterface)\n- ⛔ `preferredTransport`: Consolidated into `supportedInterfaces`\n- ⛔ `additionalInterfaces`: Consolidated into `supportedInterfaces`\n- ⛔ `supportsAuthenticatedExtendedCard`: Moved to `capabilities.extendedAgentCard`\n- ⛔ `url`: Primary endpoint now in `supportedInterfaces[0].url`\n\n**Structure Example:**\n\n**v0.3.0:**\n\n```json\n{\n  \"protocolVersion\": \"0.3\",\n  \"url\": \"https://agent.example.com/a2a\",\n  \"preferredTransport\": \"JSONRPC\",\n  \"supportsAuthenticatedExtendedCard\": true,\n  \"additionalInterfaces\": [...]\n}\n```\n\n**v1.0:**\n\n```json\n{\n  \"supportedInterfaces\": [\n    {\n      \"url\": \"https://agent.example.com/a2a\",\n      \"protocolBinding\": \"JSONRPC\",\n      \"protocolVersion\": \"1.0\"\n    }\n  ],\n  \"capabilities\": {\n    \"extendedAgentCard\": true\n  },\n  \"signatures\": [...]\n}\n```\n\n### AgentCapabilities Object\n\n**Modified Fields:**\n\n- ✅ `extendedAgentCard`: Moved from top-level `supportsAuthenticatedExtendedCard` field\n\n### PushNotificationConfig Object\n\n**Added Fields:**\n\n- ✅ `configId`: Unique identifier for the configuration\n- ✅ `createdAt`: Timestamp - Configuration creation time\n\n**Modified Fields:**\n\n- ✅ `authentication`: Enhanced PushNotificationAuthenticationInfo structure\n\n### Stream Event Objects\n\n**TaskStatusUpdateEvent:**\n\n**v0.3.0:**\n\n```json\n{\n  \"kind\": \"taskStatusUpdate\",\n  \"taskId\": \"...\",\n  \"contextId\": \"...\",\n  \"status\": {...},\n  \"final\": true\n}\n```\n\n**v1.0:**\n\n```json\n{\n  \"taskStatusUpdate\": {\n    \"taskId\": \"...\",\n    \"contextId\": \"...\",\n    \"status\": {...}\n  }\n}\n```\n\n**Changes:**\n\n- ⛔ **REMOVED:** `kind` discriminator\n- ⛔ **REMOVED:** `final` boolean field (stream closure indicates completion instead)\n- ✅ **NEW PATTERN:** Event type determined by JSON member name (`taskStatusUpdate` or `taskArtifactUpdate`)\n- ✅ **CLARIFIED:** Terminal state indicated by protocol-specific stream closure mechanism\n\n**TaskArtifactUpdateEvent:**\n\n**v0.3.0:**\n\n```json\n{\n  \"kind\": \"taskArtifactUpdate\",\n  \"taskId\": \"...\",\n  \"contextId\": \"...\",\n  \"artifact\": {...}\n}\n```\n\n**v1.0:**\n\n```json\n{\n  \"taskArtifactUpdate\": {\n    \"taskId\": \"...\",\n    \"contextId\": \"...\",\n    \"artifact\": {...},\n    \"index\": 0\n  }\n}\n```\n\n**Changes:**\n\n- ⛔ **REMOVED:** `kind` discriminator\n- ✅ **NEW PATTERN:** Wrapped in `taskArtifactUpdate` object\n- ✅ **NEW:** `index` field indicates artifact position in task's artifacts array\n\n### OAuth 2.0 Security Updates (#1303)\n\nv1.0 modernizes OAuth 2.0 support in alignment with OAuth 2.0 Security Best Current Practice (BCP).\n\n**Removed Flows (Deprecated by OAuth BCP):**\n\n- ⛔ `ImplicitOAuthFlow` - Deprecated due to token leakage risks in browser history/logs\n- ⛔ `PasswordOAuthFlow` - Deprecated due to credential exposure risks\n\n**Added Flows:**\n\n- ✅ `DeviceCodeOAuthFlow` (RFC 8628) - For CLI tools, IoT devices, and input-constrained scenarios\n    - Provides `device_authorization_url` endpoint\n    - Supports `verification_uri`, `user_code` pattern\n    - Ideal for headless environments\n\n**Enhanced Security:**\n\n- ✅ `pkce_required` field added to `AuthorizationCodeOAuthFlow` (RFC 7636)\n    - Indicates whether PKCE (Proof Key for Code Exchange) is mandatory\n    - Protects against authorization code interception attacks\n    - Recommended for all OAuth clients, required for public clients\n\n**Migration Guide:**\n\n```typescript\n// v0.3.0 - Implicit Flow (now removed)\n{\n  \"implicitFlow\": {\n    \"authorizationUrl\": \"https://auth.example.com/authorize\",\n    \"scopes\": {\"read\": \"Read access\"}\n  }\n}\n\n// v1.0 - Use Authorization Code + PKCE instead\n{\n  \"authorizationCodeFlow\": {\n    \"authorizationUrl\": \"https://auth.example.com/authorize\",\n    \"tokenUrl\": \"https://auth.example.com/token\",\n    \"pkceRequired\": true,\n    \"scopes\": {\"read\": \"Read access\"}\n  }\n}\n```\n\n---\n\n## New Dependencies on Other Specifications\n\nv1.0 introduces several new formal dependencies on industry-standard specifications:\n\n### Added Specifications\n\n#### ✅ google.rpc.Status / google.rpc.ErrorInfo\n\n- **Purpose:** Standardized error response model with ProtoJSON representation\n- **Usage:** Error responses for HTTP+JSON and JSON-RPC bindings\n- **Impact:** Replaces RFC 9457 for HTTP errors. Enforces structured `ErrorInfo` with `reason` and `domain` for A2A-specific errors.\n\n#### ✅ RFC 8785 - JSON Canonicalization Scheme (JCS)\n\n- **Purpose:** Deterministic JSON serialization for signing\n- **Usage:** Agent Card signature verification\n- **Impact:** Enables cryptographic verification of Agent Card integrity\n- **Details:** Canonical form used before JWS signing (excludes `signatures` field)\n\n#### ✅ RFC 7515 - JSON Web Signature (JWS)\n\n- **Purpose:** Cryptographic signing standard\n- **Usage:** Agent Card signatures field\n- **Impact:** Industry-standard signature format for trust verification\n- **Details:** Supports detached signatures with public key retrieval via `jku` or trusted keystores\n\n#### ✅ Google API Design Guidelines\n\n- **Purpose:** gRPC best practices and conventions\n- **Usage:** gRPC binding design patterns\n- **Impact:** Better alignment with gRPC ecosystem expectations\n\n#### ✅ ISO 8601\n\n- **Purpose:** Timestamp format standard\n- **Usage:** All timestamp fields (createdAt, lastModified, timestamp)\n- **Impact:** Explicit format requirement: UTC with millisecond precision (YYYY-MM-DDTHH:mm:ss.sssZ)\n\n### Existing Dependencies (Retained from v0.3.0)\n\n- JSON-RPC 2.0\n- gRPC / Protocol Buffers 3\n- HTTP/HTTPS (various RFCs)\n- Server-Sent Events (SSE) - W3C specification\n- RFC 8615 - Well-known URIs\n- OAuth 2.0, OpenID Connect (for authentication)\n- TLS (RFC 8446 recommended)\n\n### Complementary Protocol\n\n**Model Context Protocol (MCP):**\n\n- Relationship clarified: MCP handles tool/resource integration, A2A handles agent-to-agent coordination\n- Protocols are complementary, not competing\n- Agents may support both protocols for different use cases\n\n---\n\n## Impact on Developers\n\n### Breaking Changes Requiring Code Updates\n\n#### 1. Part Type Unification (CRITICAL IMPACT)\n\nThe most significant breaking change: TextPart, FilePart, and DataPart types have been removed and replaced with a single unified Part structure.\n\n**Before (v0.3.0):**\n\n```typescript\n// Separate types with kind discriminator\nif (part.kind === \"text\") {\n  return part.text;\n} else if (part.kind === \"file\") {\n  if (part.file.fileWithUri) {\n    return fetchFile(part.file.fileWithUri);\n  } else {\n    return part.file.fileWithBytes;\n  }\n} else if (part.kind === \"data\") {\n  return part.data;\n}\n```\n\n**After (v1.0):**\n\n```typescript\n// Unified Part with oneof content\nif (\"text\" in part) {\n  return part.text;\n} else if (\"url\" in part) {\n  return fetchFile(part.url);\n} else if (\"raw\" in part) {\n  return decodeBase64(part.raw);\n} else if (\"data\" in part) {\n  return part.data;\n}\n```\n\n#### 2. Stream Event Discriminator Pattern (HIGH IMPACT)\n\nStream events changed from kind-based to wrapper-based discrimination:\n\n**Before (v0.3.0):**\n\n```typescript\nif (event.kind === \"taskStatusUpdate\") {\n  handleStatusUpdate(event);\n} else if (event.kind === \"taskArtifactUpdate\") {\n  handleArtifactUpdate(event);\n}\n```\n\n**After (v1.0):**\n\n```typescript\nif (\"taskStatusUpdate\" in event) {\n  handleStatusUpdate(event.taskStatusUpdate);\n} else if (\"taskArtifactUpdate\" in event) {\n  handleArtifactUpdate(event.taskArtifactUpdate);\n}\n```\n\n#### 3. Agent Card Structure (HIGH IMPACT)\n\nAgent discovery and capability checking requires updates:\n\n**Before (v0.3.0):**\n\n```typescript\nconst endpoint = agentCard.url;\nconst transport = agentCard.preferredTransport;\nconst supportsExtended = agentCard.supportsAuthenticatedExtendedCard;\n```\n\n**After (v1.0):**\n\n```typescript\nconst primaryInterface = agentCard.supportedInterfaces[0];\nconst endpoint = primaryInterface.url;\nconst transport = primaryInterface.protocolBinding;\nconst supportsExtended = agentCard.capabilities.extendedAgentCard;\n```\n\n#### 4. Pagination (MEDIUM IMPACT)\n\nList Tasks implementation must switch from page-based to cursor-based:\n\n**Before (v0.3.0):**\n\n```typescript\nconst response = await listTasks({ page: 1, perPage: 50 });\n```\n\n**After (v1.0):**\n\n```typescript\nlet cursor = undefined;\ndo {\n  const response = await listTasks({ cursor, limit: 50 });\n  // process response.tasks\n  cursor = response.nextCursor;\n} while (cursor);\n```\n\n#### 5. Enum Value Changes (HIGH IMPACT)\n\nAll enum values now use SCREAMING_SNAKE_CASE with type prefixes:\n\n**TaskState:**\n\n```typescript\n// v0.3.0\nif (task.status.state === \"completed\") { ... }\nif (task.status.state === \"input-required\") { ... }\n\n// v1.0\nif (task.status.state === \"TASK_STATE_COMPLETED\") { ... }\nif (task.status.state === \"TASK_STATE_INPUT_REQUIRED\") { ... }\n```\n\n**MessageRole:**\n\n```typescript\n// v0.3.0\nconst message = { role: \"user\", parts: [...] };\n\n// v1.0\nconst message = { role: \"ROLE_USER\", parts: [...] };\n```\n\n**Complete Mapping:**\n\n- `\"submitted\"` → `\"TASK_STATE_SUBMITTED\"`\n- `\"working\"` → `\"TASK_STATE_WORKING\"`\n- `\"completed\"` → `\"TASK_STATE_COMPLETED\"`\n- `\"failed\"` → `\"TASK_STATE_FAILED\"`\n- `\"canceled\"` → `\"TASK_STATE_CANCELED\"`\n- `\"rejected\"` → `\"TASK_STATE_REJECTED\"`\n- `\"input-required\"` → `\"TASK_STATE_INPUT_REQUIRED\"`\n- `\"auth-required\"` → `\"TASK_STATE_AUTH_REQUIRED\"`\n- `\"user\"` → `\"ROLE_USER\"`\n- `\"agent\"` → `\"ROLE_AGENT\"`\n\n#### 6. Field Name Changes (LOW IMPACT)\n\n- `file.mimeType` → `mediaType`\n- Operation names (aliases provided during transition)\n\n#### 7. Standardized Error Handling via google.rpc.Status (HIGH IMPACT)\n\nHTTP+JSON error responses have been updated to use the ProtoJSON representation of `google.rpc.Status` instead of RFC 9457 (Problem Details). JSON-RPC and HTTP+JSON bindings now use `google.rpc.ErrorInfo` within the `data` / `details` array to provide A2A-specific error context.\n\n**Changes:**\n\n- **HTTP+JSON Content-Type:** Changed from `application/problem+json` to `application/json`.\n- **Error Model:** Uses `google.rpc.Status` fields (`code`, `message`, `details`).\n- **A2A Error Info:** MUST include a `google.rpc.ErrorInfo` object in `details` with `reason` (UPPER_SNAKE_CASE from A2A error types) and `domain: \"a2a-protocol.org\"`.\n\n**JSON-RPC Example Migration:**\n\n```json\n// v0.3.0\n\"error\": {\n  \"code\": -32001,\n  \"message\": \"Task not found\",\n  \"data\": { \"taskId\": \"123\" }\n}\n\n// v1.0\n\"error\": {\n  \"code\": -32001,\n  \"message\": \"Task not found\",\n  \"data\": [\n    {\n      \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n      \"reason\": \"TASK_NOT_FOUND\",\n      \"domain\": \"a2a-protocol.org\",\n      \"metadata\": { \"taskId\": \"123\" }\n    }\n  ]\n}\n```\n\n**HTTP+JSON Example Migration:**\n\n```http\n// v0.3.0 (Draft using RFC 9457)\nHTTP/1.1 404 Not Found\nContent-Type: application/problem+json\n\n{\n  \"type\": \"https://a2a-protocol.org/errors/task-not-found\",\n  \"title\": \"Task Not Found\",\n  \"status\": 404,\n  \"detail\": \"The specified task ID does not exist\"\n}\n\n// v1.0\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n  \"error\": {\n    \"code\": 404,\n    \"status\": \"NOT_FOUND\",\n    \"message\": \"The specified task ID does not exist\",\n    \"details\": [\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n        \"reason\": \"TASK_NOT_FOUND\",\n        \"domain\": \"a2a-protocol.org\"\n      }\n    ]\n  }\n}\n```\n\n### New Capabilities to Leverage\n\n#### 1. Execution Mode Control\n\n```typescript\n// Wait for task completion (Default)\nconst result = await sendMessage(message, { returnImmediately: false });\n\n// Return immediately, poll later\nconst task = await sendMessage(message, { returnImmediately: true });\n```\n\n#### 2. Agent Card Signature Verification\n\n```typescript\nif (agentCard.signatures && agentCard.signatures.length > 0) {\n  const verified = await verifyAgentCardSignature(agentCard);\n  if (!verified) {\n    throw new Error(\"Agent Card signature verification failed\");\n  }\n}\n```\n\n#### 3. Extension Requirements\n\n```typescript\nconst requiredExtensions = agentCard.extensions\n  .filter(ext => ext.required)\n  .map(ext => ext.uri);\n\n// Check if client supports required extensions\nif (!clientSupportsAll(requiredExtensions)) {\n  throw new Error(\"Missing required extension support\");\n}\n```\n\n#### 4. Enhanced Timestamp Tracking\n\n```typescript\nconst taskAge = Date.now() - new Date(task.createdAt).getTime();\nconst timeSinceUpdate = Date.now() - new Date(task.lastModified).getTime();\n```\n\n#### 5. Versioning Negotiation\n\n```typescript\n// Client sends A2A-Version header\nheaders[\"A2A-Version\"] = \"1.0\";\n\n// Server validates and rejects if unsupported\nif (!supportedVersions.includes(requestedVersion)) {\n  throw new VersionNotSupportedError();\n}\n```\n\n### Migration Strategy Recommendations\n\n#### Phase 1: Compatibility Layer\n\n1. Add support for parsing both old and new discriminator patterns\n2. Implement version detection based on protocol version\n3. Support both Agent Card structures during transition\n\n#### Phase 2: Dual Support\n\n1. Update all APIs to emit v1.0 format\n2. Maintain backward compatibility readers for v0.3.0\n3. Add A2A-Version header handling\n4. Implement cursor-based pagination alongside legacy page-based\n\n#### Phase 3: v1.0 Only\n\n1. Deprecate v0.3.0 compatibility code\n2. Remove legacy discriminator parsing\n3. Remove page-based pagination\n4. Clean up dual-format support code\n\n#### Backward Compatibility Strategy (#1401)\n\nv1.0 introduces a formal approach to protocol versioning that enables SDK backward compatibility.\n\n**Protocol Version Per Interface:**\n\n- Each `AgentInterface` now specifies its own `protocolVersion` field\n- Agents can support multiple protocol versions simultaneously by exposing multiple interfaces\n- Clients negotiate version by selecting appropriate interface from Agent Card\n\n**SDK Implementation Pattern:**\n\n```typescript\n// SDK can support multiple protocol versions\nclass A2AClient {\n  async connect(agentCardUrl: string) {\n    const card = await this.getAgentCard(agentCardUrl);\n\n    // Find best matching interface\n    const interface = card.supportedInterfaces.find(i =>\n      this.supportedVersions.includes(i.protocolVersion)\n    );\n\n    if (!interface) {\n      throw new Error(\"No compatible protocol version\");\n    }\n\n    // Use version-specific adapter\n    return this.createAdapter(interface.protocolVersion, interface);\n  }\n}\n```\n\n**Benefits:**\n\n- SDKs can maintain support for multiple protocol versions\n- Agents can gradually migrate by supporting both old and new versions\n- Clients automatically select best compatible version\n- Enables graceful deprecation of old protocol versions\n\n### Testing Considerations\n\n- Test with both v0.3.0 and v1.0 formatted data\n- Validate Agent Card signature verification\n- Test cursor-based pagination edge cases (empty results, single page, etc.)\n- Verify proper handling of new error types\n- Test extension requirement validation\n\n### Recommended Priority\n\n#### Critical (Do Immediately)\n\n- Update Part and streaming event parsing (discriminator pattern)\n- Update Agent Card parsing (structure changes)\n- Add A2A-Version header to all requests\n\n#### High (Within 1 Month)\n\n- Implement cursor-based pagination\n- Update enum value handling (state field)\n- Add return_immediately parameter support\n\n#### Medium (Within 3 Months)\n\n- Implement Agent Card signature verification\n- Add extension requirement checking\n- Update timestamp handling to ISO 8601 format\n- Implement new error types\n\n#### Low (Nice to Have)\n\n- Add createdAt/lastModified timestamp tracking\n- Leverage enhanced metadata capabilities\n- Implement mutual TLS authentication support\n\n---\n\n## Conclusion\n\nA2A Protocol v1.0 represents a significant step forward in protocol maturity while maintaining the core architectural principles of v0.3.0. The changes focus on standardization, type safety, and enterprise readiness, requiring developers to update their implementations but providing clearer specifications and better developer experience in return.\n\nThe breaking changes, while requiring code updates, are straightforward to implement and improve code clarity. The new capabilities around versioning, signatures, and enhanced extensions provide a solid foundation for future protocol evolution within the v1.x line.\n\nDevelopers should plan for a phased migration approach, prioritizing the critical breaking changes while gradually adopting new capabilities over time.\n"
  },
  {
    "path": "lychee.toml",
    "content": "exclude = [\n    'https://fonts.gstatic.com/',\n    'https://fonts.googleapis.com/',\n    'https://medium.com/',\n    'https://x.com/',\n    'http://localhost:12000/',\n    'http://localhost:10020/',\n    'https://goo.gle/',\n]\nexclude_path = [\n    \".github/actions/spelling\",\n    \"CHANGELOG.md\",\n    \"docs/partners.md\",\n    \"docs/robots.txt\",\n    \"docs/llms.txt\",\n    \"docs/spec/a2a.json\",\n    \"docs/spec-proto.md\",\n    \"docs/sdk/python.md\",\n]\n\naccept = [\"200..=299\", 403, 408, 429]\n\nmax_retries = 0\nskip_missing = true\n"
  },
  {
    "path": "mkdocs.yml",
    "content": "# Project information\nsite_name: A2A Protocol\nsite_url: https://a2a-protocol.org/\nsite_description: >-\n  The official documentation for the Agent2Agent (A2A) protocol. The A2A protocol is an open standard that allows different AI agents to securely communicate, collaborate, and solve complex problems together.\nsite_author: The Linux Foundation\nsite_dir: site\nedit_uri: edit/main/docs/\n\n# Exclude files from the docs directory\nexclude_docs: |\n  README.md\n\nextra:\n  a2a_version: !ENV [MIKE_VERSION, \"dev\"]\n  analytics:\n    provider: google\n    property: G-RB39M83WHB\n\n# Navigation\nnav:\n  - Home: index.md\n  - 🆕 Announcing Version 1.0: announcing-1.0.md\n  - Documentation:\n      - What is A2A?: topics/what-is-a2a.md\n      - Core Concepts: topics/key-concepts.md\n      - Agent Discovery: topics/agent-discovery.md\n      - Enterprise Features: topics/enterprise-ready.md\n      - Life of a Task: topics/life-of-a-task.md\n      - Extensions: topics/extensions.md\n      - Streaming & Asynchronous Operations: topics/streaming-and-async.md\n      - A2A and MCP: topics/a2a-and-mcp.md\n  - Tutorials and Samples:\n      - tutorials/index.md\n      - Quickstart (Python):\n          - Introduction: tutorials/python/1-introduction.md\n          - Setup: tutorials/python/2-setup.md\n          - Agent Skills & Agent Card: tutorials/python/3-agent-skills-and-card.md\n          - Agent Executor: tutorials/python/4-agent-executor.md\n          - Start Server: tutorials/python/5-start-server.md\n          - Interact with Server: tutorials/python/6-interact-with-server.md\n          - Streaming & Multiturn: tutorials/python/7-streaming-and-multiturn.md\n          - Next Steps: tutorials/python/8-next-steps.md\n      - DeepLearning.AI Course: https://goo.gle/dlai-a2a\n  - Specification:\n      - Overview: specification.md\n      - What's New in v1.0: whats-new-v1.md\n      - Protocol Definition: definitions.md\n  - SDK Reference:\n      - sdk/index.md\n      - Python: sdk/python/api/index.html\n  - Community: community.md\n  - Partners: partners.md\n  - Roadmap: roadmap.md\n\n# Repository\nrepo_name: a2aproject/A2A\nrepo_url: https://github.com/a2aproject/A2A\n\n# Copyright\ncopyright: Copyright 2026 The Linux Foundation. Licensed under the Apache License, Version 2.0.\n\n# Custom CSS\nextra_css:\n  - stylesheets/custom.css\n\n# Configuration\ntheme:\n  name: material\n  custom_dir: .mkdocs/overrides\n  font:\n    text: Google Sans\n    code: Roboto Mono\n  logo: assets/a2a-logo-white.svg\n  favicon: assets/a2a-logo-black.svg\n  icon:\n    repo: fontawesome/brands/github\n    view: material/pencil-box-multiple\n    admonition:\n      note: fontawesome/solid/note-sticky\n      abstract: fontawesome/solid/book\n      info: fontawesome/solid/circle-info\n      tip: fontawesome/solid/bullhorn\n      success: fontawesome/solid/check\n      question: fontawesome/solid/circle-question\n      warning: fontawesome/solid/triangle-exclamation\n      failure: fontawesome/solid/bomb\n      danger: fontawesome/solid/skull\n      bug: fontawesome/solid/robot\n      example: fontawesome/solid/flask\n      quote: fontawesome/solid/quote-left\n  palette:\n    - scheme: default\n      primary: indigo\n      accent: white\n  features:\n    - announce.dismiss\n    - content.action.view\n    - content.code.annotate\n    - content.code.copy\n    - content.code.select\n    - content.tabs.link\n    - navigation.footer\n    - navigation.indexes\n    - navigation.instant\n    - navigation.instant.progress\n    - navigation.path\n    - navigation.top\n    - navigation.tracking\n    - toc.follow\n    - versioning:\n        provider: mike\n\n# Extensions\nmarkdown_extensions:\n  - meta\n  - footnotes\n  - admonition\n  - attr_list\n  - md_in_html\n  - pymdownx.details\n  - pymdownx.emoji:\n      emoji_index: !!python/name:material.extensions.emoji.twemoji\n      emoji_generator: !!python/name:material.extensions.emoji.to_svg\n  - pymdownx.highlight:\n      anchor_linenums: true\n      line_spans: __span\n      pygments_lang_class: true\n  - pymdownx.inlinehilite\n  - pymdownx.snippets:\n      base_path: .\n      url_download: true\n      dedent_subsections: true\n  - pymdownx.superfences:\n      custom_fences:\n        - name: mermaid\n          class: mermaid\n          format: !!python/name:pymdownx.superfences.fence_code_format\n  - pymdownx.tabbed:\n      alternate_style: true\n      slugify: !!python/object/apply:pymdownx.slugs.slugify\n        kwds:\n          case: lower\n  - toc:\n      permalink: true\n\n# Plugins\nplugins:\n  - search\n  - macros:\n      module_name: .mkdocs/macros\n  - redirects:\n      redirect_maps:\n        \"specification/overview.md\": \"specification.md\"\n        \"specification/agent-card.md\": \"specification.md#5-agent-discovery-the-agent-card\"\n        \"specification/agent-to-agent-communication.md\": \"specification.md#6-protocol-data-objects\"\n        \"specification/sample-messages.md\": \"specification.md#9-common-workflows-examples\"\n        \"specification/details.md\": \"specification.md\"\n        \"documentation.md\": \"topics/key-concepts.md\"\n        \"resources.md\": \"index.md\"\n        \"topics/push-notifications.md\": \"topics/streaming-and-async.md\"\n        \"specification/topics/a2a_and_mcp.md\": \"topics/a2a-and-mcp.md\"\n        \"specification/topics/agent_discovery.md\": \"topics/agent-discovery.md\"\n        \"specification/topics/enterprise_ready.md\": \"topics/enterprise-ready.md\"\n        \"specification/topics/push_notification.md\": \"topics/streaming-and-async.md\"\n        \"specification/topics/push_notifications.md\": \"topics/streaming-and-async.md\"\n        \"topics/index.md\": \"topics/what-is-a2a.md\"\n        \"topics/roadmap.md\": \"roadmap.md\"\n        # Tutorial\n        \"tutorials/python/index.md\": \"tutorials/python/1-introduction.md\"\n        \"tutorials/python/1_introduction.md\": \"tutorials/python/1-introduction.md\"\n        \"tutorials/python/3-create-project.md\": \"tutorials/python/2-setup.md\"\n        \"tutorials/python/4-agent-skills.md\": \"tutorials/python/3-agent-skills-and-card.md\"\n        \"tutorials/python/5-add-agent-card.md\": \"tutorials/python/3-agent-skills-and-card.md\"\n        \"tutorials/python/6-start-server.md\": \"tutorials/python/5-start-server.md\"\n        \"tutorials/python/7-interact-with-server.md\": \"tutorials/python/6-interact-with-server.md\"\n        \"tutorials/python/8-agent-capabilities.md\": \"tutorials/python/7-streaming-and-multiturn.md\"\n        \"tutorials/python/9-ollama-agent.md\": \"tutorials/python/7-streaming-and-multiturn.md\"\n        \"tutorials/python/10-next-steps.md\": \"tutorials/python/8-next-steps.md\"\n  - mike:\n      canonical_version: latest\n"
  },
  {
    "path": "requirements-docs.txt",
    "content": "mkdocs-material\nmkdocs-redirects\na2a-sdk[all]\nmike\nmkdocs-macros-plugin\nsphinx\nfuro\nmyst-parser\nproto-schema-parser\ntabulate\n"
  },
  {
    "path": "scripts/build_docs.sh",
    "content": "#!/bin/bash\nset -euo pipefail\n\n# Unified docs build script that ensures the non-normative JSON artifact is\n# regenerated (if stale) before invoking MkDocs. Uses pure shell.\n\nROOT_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")/..\" && pwd)\"\n\nSCHEMA_JSON=\"$ROOT_DIR/specification/json/a2a.json\"\nPROTO_SRC=\"$ROOT_DIR/specification/a2a.proto\"\nSPEC_SITE_DIR=\"$ROOT_DIR/docs/spec\"\nSCHEMA_JSON_SITE_FILE=\"$SPEC_SITE_DIR/a2a.json\"\nPROTO_SITE_FILE=\"$SPEC_SITE_DIR/a2a.proto\"\nPROTO_TO_SCHEMA_SCRIPT=\"$ROOT_DIR/scripts/proto_to_json_schema.sh\"\n\nregen_needed() {\n  if [ ! -f \"$SCHEMA_JSON\" ]; then return 0; fi\n\n  local proto_mtime\n  local schema_mtime\n  if [[ \"$(uname)\" == \"Darwin\" ]]; then\n    proto_mtime=$(stat -f %m \"$PROTO_SRC\")\n    schema_mtime=$(stat -f %m \"$SCHEMA_JSON\")\n  else\n    proto_mtime=$(stat -c %Y \"$PROTO_SRC\")\n    schema_mtime=$(stat -c %Y \"$SCHEMA_JSON\")\n  fi\n  [ \"$proto_mtime\" -gt \"$schema_mtime\" ]\n}\n\necho \"[build_docs] Checking schema freshness...\" >&2\nif regen_needed; then\n  echo \"[build_docs] Regenerating a2a.json from proto\" >&2\n  if [ -x \"$PROTO_TO_SCHEMA_SCRIPT\" ]; then\n    bash \"$PROTO_TO_SCHEMA_SCRIPT\" \"$SCHEMA_JSON\" || {\n      echo \"[build_docs] Warning: proto to JSON schema conversion failed\" >&2\n    }\n  else\n    echo \"[build_docs] proto_to_json_schema.sh missing or not executable; skipping schema generation.\" >&2\n  fi\nelse\n  echo \"[build_docs] Schema is up-to-date, skipping regeneration\" >&2\nfi\n\n# Always ensure spec files are available in docs directory for MkDocs\nmkdir -p \"$SPEC_SITE_DIR\"\n\nif [ -f \"$SCHEMA_JSON\" ]; then\n  cp \"$SCHEMA_JSON\" \"$SCHEMA_JSON_SITE_FILE\"\n  echo \"[build_docs] Published schema to $SCHEMA_JSON_SITE_FILE\" >&2\nelse\n  echo \"[build_docs] Warning: Schema file not found at $SCHEMA_JSON - MkDocs may fail\" >&2\nfi\n\nif [ -f \"$PROTO_SRC\" ]; then\n  cp \"$PROTO_SRC\" \"$PROTO_SITE_FILE\"\n  echo \"[build_docs] Published proto to $PROTO_SITE_FILE\" >&2\nelse\n  echo \"[build_docs] Warning: Proto file not found at $PROTO_SRC\" >&2\nfi\n\n# Build SDK documentation\necho \"[build_docs] Building SDK documentation...\" >&2\nSDK_DOCS_SCRIPT=\"$ROOT_DIR/scripts/build_sdk_docs.sh\"\nif [ -x \"$SDK_DOCS_SCRIPT\" ]; then\n  bash \"$SDK_DOCS_SCRIPT\" || echo \"[build_docs] Warning: SDK docs build failed\" >&2\nelse\n  echo \"[build_docs] SDK docs script not found or not executable: $SDK_DOCS_SCRIPT\" >&2\nfi\n\n# Add venv bin to PATH to ensure mike finds mkdocs and plugins\nif [ -d \"$ROOT_DIR/.doc-venv/bin\" ]; then\n  export PATH=\"$ROOT_DIR/.doc-venv/bin:$PATH\"\nfi\n\nif [ \"${1:-}\" = \"deploy\" ]; then\n  shift\n  echo \"[build_docs] Deploying with mike...\" >&2\n  mike deploy \"$@\"\nelse\n  echo \"[build_docs] Building MkDocs site...\" >&2\n  mkdocs build \"$@\"\nfi\necho \"[build_docs] Done.\" >&2\n"
  },
  {
    "path": "scripts/build_llms_full.sh",
    "content": "#!/bin/bash\nset -e\n\n# This script concatenates all documentation and specification files\n# into a single file for LLM consumption.\n\n# --- Configuration ---\nOUTPUT_FILE=\"docs/llms-full.txt\"\nDOCS_DIR=\"docs\"\nSPEC_DIR=\"specification\"\nSDK_DOCS_SCRIPT=\"scripts/build_sdk_docs.sh\"\nPROJECT_NAME=\"A2A (Agent2Agent) Protocol\"\n\necho \"--- Generating consolidated LLM file: ${OUTPUT_FILE} ---\"\n\n# --- Generate Python SDK Text Documentation ---\nif [ -f \"$SDK_DOCS_SCRIPT\" ]; then\n  echo \"Generating Python SDK documentation...\"\n  bash \"$SDK_DOCS_SCRIPT\"\nelse\n  echo \"Warning: SDK docs script not found at $SDK_DOCS_SCRIPT\"\nfi\n\n# Clear the output file and add introduction\ncat <<EOF >\"${OUTPUT_FILE}\"\n# ${PROJECT_NAME} - Full Documentation\n\nThis file is a consolidated version of all documentation, specifications, and API references\nfor the ${PROJECT_NAME} project, optimized for LLM consumption.\n\nEOF\n\n# Include llms.txt as the core summary if it exists\nif [ -f \"${DOCS_DIR}/llms.txt\" ]; then\n  echo \"Including summary from ${DOCS_DIR}/llms.txt\"\n  {\n    echo \"## Project Summary\"\n    echo\n    cat \"${DOCS_DIR}/llms.txt\"\n    echo\n    echo \"---\"\n    echo\n  } >>\"${OUTPUT_FILE}\"\nfi\n\n# --- Helper function to append file content with XML-style tags ---\nappend_file() {\n  local file_path=\"$1\"\n  local display_path=\"${2:-$file_path}\"\n  if [ -f \"$file_path\" ]; then\n    echo \"Appending: $file_path\"\n    {\n      echo \"<file path=\\\"${display_path}\\\">\"\n      cat \"$file_path\"\n      echo \"</file>\"\n      echo\n    } >>\"${OUTPUT_FILE}\"\n  else\n    echo \"Warning: File not found, skipping: $file_path\" >&2\n  fi\n}\n\n# --- Build File List ---\necho \"## File Index\" >>\"${OUTPUT_FILE}\"\necho >>\"${OUTPUT_FILE}\"\n\n# Collect all files we intend to include\nFILES_TO_INCLUDE=()\nFILES_TO_INCLUDE+=(\"README.md\")\n\n# Doc files\nwhile IFS= read -r doc_file; do\n  FILES_TO_INCLUDE+=(\"$doc_file\")\ndone < <(find \"${DOCS_DIR}\" -type f \\( -name \"*.md\" -o -name \"*.rst\" \\) \\\n  -not -path \"docs/sdk/python/*\" \\\n  -not -path \"docs/README.md\" \\\n  -not -path \"docs/sdk/python.md\" \\\n  -not -path \"docs/llms-full.txt\" | sort)\n\n# SDK text files\nSDK_TEXT_DIR=\"docs/sdk/python/_build/text\"\nif [ -d \"$SDK_TEXT_DIR\" ]; then\n  while IFS= read -r sdk_file; do\n    FILES_TO_INCLUDE+=(\"$sdk_file\")\n  done < <(find \"$SDK_TEXT_DIR\" -type f -name \"*.txt\" | sort)\nfi\n\n# Specification\nif [ -f \"${SPEC_DIR}/a2a.proto\" ]; then\n  FILES_TO_INCLUDE+=(\"${SPEC_DIR}/a2a.proto\")\nfi\n\n# Write the index to the output file\nfor f in \"${FILES_TO_INCLUDE[@]}\"; do\n  display_name=\"$f\"\n  # Clean up display name for SDK files\n  if [[ \"$f\" == \"$SDK_TEXT_DIR\"* ]]; then\n    display_name=\"sdk/python/${f#\"$SDK_TEXT_DIR\"/}\"\n  fi\n  echo \"- ${display_name}\" >>\"${OUTPUT_FILE}\"\ndone\n\n{\n  echo\n  echo \"---\"\n  echo\n} >>\"${OUTPUT_FILE}\"\n\n# --- Append file contents ---\nfor f in \"${FILES_TO_INCLUDE[@]}\"; do\n  display_name=\"$f\"\n  if [[ \"$f\" == \"$SDK_TEXT_DIR\"* ]]; then\n    display_name=\"sdk/python/${f#\"$SDK_TEXT_DIR\"/}\"\n  fi\n  append_file \"$f\" \"$display_name\"\ndone\n\necho \"✅ Consolidated LLM file generated successfully at ${OUTPUT_FILE}\"\n"
  },
  {
    "path": "scripts/build_sdk_docs.sh",
    "content": "#!/bin/bash\nset -e # Exit immediately if a command exits with a non-zero status.\n\n# --- Configuration ---\nPACKAGE_NAME=\"a2a\"          # The name of the package to import\nPYPI_PACKAGE_NAME=\"a2a-sdk\" # The name on PyPI\nDOCS_SOURCE_DIR=\"docs/sdk/python\"\nDOCS_BUILD_DIR=\"${DOCS_SOURCE_DIR}/_build\"\nVENV_DIR=\".doc-venv\"\n\necho \"--- Setting up documentation build environment ---\"\n\n# Create a clean virtual environment\nif [ -d \"$VENV_DIR\" ]; then\n  rm -rf \"$VENV_DIR\"\nfi\nuv venv \"$VENV_DIR\"\nsource \"$VENV_DIR/bin/activate\"\n\necho \"--- Installing package and dependencies ---\"\n\n# Install documentation requirements\nuv pip install -r \"requirements-docs.txt\"\n\n# Install the package itself\nuv pip install \"${PYPI_PACKAGE_NAME}\"\n\necho \"--- Finding installed package path ---\"\n\n# Find the installation path of the package\nPACKAGE_PATH=$(python -c \"import ${PACKAGE_NAME}, os; print(os.path.dirname(${PACKAGE_NAME}.__file__))\")\necho \"Found '${PACKAGE_NAME}' at: ${PACKAGE_PATH}\"\n\necho \"--- Generating API documentation source files (.rst) ---\"\n\n# Run sphinx-apidoc on the installed package directory\n# -f: force overwrite of existing files\n# -e: put each module on its own page\nsphinx-apidoc -f -e -o \"${DOCS_SOURCE_DIR}\" \"${PACKAGE_PATH}\"\n\necho \"--- Building HTML documentation ---\"\n\n# Build the HTML documentation\nsphinx-build -b html \"${DOCS_SOURCE_DIR}\" \"${DOCS_BUILD_DIR}/html\"\n\necho \"--- Building Text documentation ---\"\n\n# Build the Text documentation\nsphinx-build -b text \"${DOCS_SOURCE_DIR}\" \"${DOCS_BUILD_DIR}/text\"\n\necho \"--- Copying SDK docs to MkDocs integration path ---\"\n\n# Copy SDK docs to where MkDocs expects them (docs/sdk/python/api/)\nSDK_API_DIR=\"${DOCS_SOURCE_DIR}/api\"\nif [ -d \"${DOCS_BUILD_DIR}/html\" ]; then\n  rm -rf \"${SDK_API_DIR}\"\n  cp -r \"${DOCS_BUILD_DIR}/html\" \"${SDK_API_DIR}\"\n  echo \"SDK docs copied to: ${SDK_API_DIR}\"\nelse\n  echo \"Warning: SDK docs build directory not found at ${DOCS_BUILD_DIR}/html\"\nfi\n\n# Deactivate the virtual environment\ndeactivate\n\necho \"\"\necho \"✅ Documentation build complete!\"\necho \"View the docs by opening: ${SDK_API_DIR}/index.html\"\n"
  },
  {
    "path": "scripts/deploy_root_files.sh",
    "content": "#!/bin/bash\n\n# Exit immediately if a command exits with a non-zero status.\nset -e\n\n# This script deploys a list of specified files (e.g., 404.html, robots.txt)\n# to the root of the gh-pages branch.\n# It's designed to be called from a GitHub Actions workflow.\n#\n# Arguments:\n# $1: The GitHub repository name (e.g., \"a2aproject/A2A\").\n# $2: The GITHUB_TOKEN for authentication.\n\n# --- Configuration ---\n# List of files to copy from the source directory to the root of the gh-pages branch.\nFILES_TO_DEPLOY=(\"404.html\" \"robots.txt\" \"llms.txt\", \"llms-full.txt\")\n# The source directory in the main branch where these files are located.\nSOURCE_DIR=\"docs\"\n\n# --- Validate Input ---\nif [ -z \"$1\" ] || [ -z \"$2\" ]; then\n  echo \"Error: Missing required arguments.\"\n  echo \"Usage: $0 <owner/repo> <github_token>\"\n  exit 1\nfi\n\nREPO_NAME=$1\nGH_TOKEN=$2\n\necho \"Deploying root-level site files for repository: $REPO_NAME\"\necho \"Files to deploy: ${FILES_TO_DEPLOY[*]}\"\n\n# --- Deployment Logic ---\n# Clone the gh-pages branch using the provided token for authentication.\n# This ensures we have push access.\ngit clone --branch=gh-pages --single-branch --depth=1 \"https://x-access-token:${GH_TOKEN}@github.com/${REPO_NAME}.git\" gh-pages-deploy\n\n# Navigate into the cloned directory\ncd gh-pages-deploy\n\n# Loop through the files, copy them from the source checkout, and add them to git.\n# The source checkout is in the parent directory (`../`).\nfor file in \"${FILES_TO_DEPLOY[@]}\"; do\n  SOURCE_FILE=\"../${SOURCE_DIR}/${file}\"\n  if [ -f \"$SOURCE_FILE\" ]; then\n    echo \"Copying $file...\"\n    cp \"$SOURCE_FILE\" \"./$file\"\n    git add \"$file\"\n  else\n    echo \"Warning: Source file not found, skipping: $SOURCE_FILE\"\n  fi\ndone\n\n# Commit and push only if any of the files have actually changed\nif git diff --staged --quiet; then\n  echo \"Root files are up-to-date. No new commit needed.\"\nelse\n  echo \"Committing and pushing updated root files...\"\n  # Configure git user for commit\n  git config user.name \"GitHub Actions\"\n  git config user.email \"github-actions@github.com\"\n\n  git commit -m \"docs: Deploy root-level site files\"\n  git push\nfi\n\n# Go back to the original directory and clean up\ncd ..\nrm -rf gh-pages-deploy\n\necho \"Root file deployment complete.\"\n"
  },
  {
    "path": "scripts/format.sh",
    "content": "#!/bin/bash\n\nset -euo pipefail\n# Determine the repository root directory based on the script's location.\nSCRIPT_DIR=$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" &>/dev/null && pwd)\nREPO_ROOT=$(cd -- \"$SCRIPT_DIR/..\" &>/dev/null && pwd)\nbash \"${SCRIPT_DIR}/sort_spelling.sh\"\n\n# Define file and directory paths.\nMARKDOWN_DIR=\"${REPO_ROOT}/docs/\"\nMARKDOWNLINT_CONFIG=\"${REPO_ROOT}/.github/linters/.markdownlint.json\"\n\n# Install markdownlint-cli if the command doesn't already exist.\nif ! command -v markdownlint &>/dev/null; then\n  echo \"Installing markdownlint-cli...\"\n  npm install -g markdownlint-cli\nfi\n\n# Run markdownlint to format files.\necho \"Formatting markdown files...\"\n# Check for the existence of the directory and config file before running.\n[ -d \"${MARKDOWN_DIR}\" ] || {\n  echo \"ERROR: Markdown directory not found: ${MARKDOWN_DIR}\"\n  exit 1\n}\n[ -f \"${MARKDOWNLINT_CONFIG}\" ] || {\n  echo \"ERROR: Markdownlint config not found: ${MARKDOWNLINT_CONFIG}\"\n  exit 1\n}\n\nmarkdownlint \"${MARKDOWN_DIR}\" --config \"${MARKDOWNLINT_CONFIG}\" --fix\n\necho \"Script finished successfully.\"\n"
  },
  {
    "path": "scripts/lint.sh",
    "content": "#!/bin/bash\n\n# Exit on error (-e), undefined variable usage (-u), or failed pipe command (-o pipefail).\nset -euo pipefail\n\n# Determine the repository root directory based on the script's location.\nSCRIPT_DIR=$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" &>/dev/null && pwd)\nREPO_ROOT=$(cd -- \"${SCRIPT_DIR}/..\" &>/dev/null && pwd)\n# Absolute path to the Super Linter configuration file.\nSUPER_LINTER_ENV=\"${REPO_ROOT}/.github/super-linter.env\"\n# Detect the default branch from the remote repository.\nDEFAULT_BRANCH=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)\n\n# Run Super Linter locally using Docker.\n# This mirrors the configuration used in GitHub Actions to provide consistent linting behavior.\ndocker run \\\n  --rm -t \\\n  --platform linux/x86_64 \\\n  -v \"${REPO_ROOT}\":/tmp/lint \\\n  -e SHELL=/bin/bash \\\n  -e DEFAULT_BRANCH=\"${DEFAULT_BRANCH}\" \\\n  -e RUN_LOCAL=true \\\n  -e LOG_LEVEL=INFO \\\n  --env-file \"${SUPER_LINTER_ENV}\" \\\n  ghcr.io/super-linter/super-linter:slim-v8\n"
  },
  {
    "path": "scripts/proto_to_json_schema.sh",
    "content": "#!/bin/bash\nset -euo pipefail\n# Convert proto files to JSON Schema in a single operation.\n# Usage: proto_to_json_schema.sh <output_json_schema>\n\nOUTPUT=${1:-}\nif [[ -z \"$OUTPUT\" ]]; then\n  echo \"Usage: $0 <output.json>\" >&2\n  exit 1\nfi\n\nROOT_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")/..\" && pwd)\"\nPROTO_DIR=\"$ROOT_DIR/specification\"\nPROTO_FILE=\"$PROTO_DIR/a2a.proto\"\nGOOGLEAPIS_DIR=\"${GOOGLEAPIS_DIR:-}\"\n\ncheck_command() {\n  if ! command -v \"$1\" >/dev/null 2>&1; then\n    echo \"Error: $1 not found on PATH\" >&2\n    exit 1\n  fi\n}\n\n# Check dependencies\ncheck_command \"protoc\"\ncheck_command \"protoc-gen-jsonschema\"\ncheck_command \"jq\"\n\n# Verify protoc-gen-jsonschema is the correct implementation (bufbuild/protoschema-plugins)\n# The bufbuild implementation outputs a version string starting with \"v\" (e.g., \"v0.5.2\")\n# Other implementations (like chrusty/protoc-gen-jsonschema) typically output \"protoc-gen-jsonschema version X.Y.Z\"\nPLUGIN_VERSION=$(protoc-gen-jsonschema --version 2>&1 || true)\nif [[ ! \"$PLUGIN_VERSION\" =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then\n  echo \"Error: Incorrect protoc-gen-jsonschema plugin detected.\" >&2\n  echo \"Current version output: '$PLUGIN_VERSION'\" >&2\n  echo \"This script requires the plugin from github.com/bufbuild/protoschema-plugins\" >&2\n  echo \"Please install it with:\" >&2\n  echo \"  go install github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@latest\" >&2\n  exit 1\nfi\n\n# Create temporary directory for intermediate files\nTEMP_DIR=$(mktemp -d)\ntrap 'rm -rf \"$TEMP_DIR\"' EXIT\n\n# Setup include paths for googleapis\nINCLUDE_FLAGS=(\"-I$PROTO_DIR\")\nif [ -n \"$GOOGLEAPIS_DIR\" ]; then\n  INCLUDE_FLAGS+=(\"-I$GOOGLEAPIS_DIR\")\nelif [ -d \"$ROOT_DIR/third_party/googleapis\" ]; then\n  INCLUDE_FLAGS+=(\"-I$ROOT_DIR/third_party/googleapis\")\nelif [ -d \"/usr/local/include/google/api\" ]; then\n  INCLUDE_FLAGS+=(\"-I/usr/local/include\")\nfi\n\n# Verify googleapis annotations are available\nANNOTATIONS_FOUND=false\nfor inc in \"${INCLUDE_FLAGS[@]}\"; do\n  dir=\"${inc#-I}\"\n  if [ -f \"$dir/google/api/annotations.proto\" ]; then\n    ANNOTATIONS_FOUND=true\n    break\n  fi\ndone\nif [ \"$ANNOTATIONS_FOUND\" != true ]; then\n  echo \"Error: google/api/annotations.proto not found in include paths\" >&2\n  echo \"Set GOOGLEAPIS_DIR env var or ensure third_party/googleapis exists\" >&2\n  exit 1\nfi\n\n# Step 0: Pre-process proto\necho \"→ Cleaning proto comments...\" >&2\n\n# Define path for the cleaned proto in the temp directory\nCLEAN_PROTO_FILE=\"$TEMP_DIR/$(basename \"$PROTO_FILE\")\"\n\n# Use grep to remove lines containing specific patterns:\n# 1. matches \"// --8<--\"\n# 2. matches \"// protolint:\"\ngrep -v -e \"// --8<--\" -e \"// protolint:\" \"$PROTO_FILE\" >\"$CLEAN_PROTO_FILE\"\n\n# Add the temp dir to the include path so protoc finds the clean file context\n# We prepend it so it takes precedence over the original file\nINCLUDE_FLAGS=(\"-I$TEMP_DIR\" \"${INCLUDE_FLAGS[@]}\")\n\n# Step 1: Generate individual JSON Schema files with JSON field names (camelCase)\necho \"→ Generating JSON Schema from proto...\" >&2\nif ! protoc \"${INCLUDE_FLAGS[@]}\" \\\n  --jsonschema_out=\"$TEMP_DIR\" \\\n  --jsonschema_opt=target=json \\\n  \"$CLEAN_PROTO_FILE\" 2>&1; then\n  echo \"Error: protoc generation failed\" >&2\n  exit 1\nfi\n\n# Step 2: Bundle all schemas into a single file with cleaned names\necho \"→ Creating JSON Schema bundle...\" >&2\n\n# Check if any JSON files were generated\nJSON_FILES=(\"$TEMP_DIR\"/*.json)\nif [ ! -f \"${JSON_FILES[0]}\" ]; then\n  echo \"Error: No JSON schema files generated\" >&2\n  exit 1\nfi\n\njq -s '\n  (if .[0].\"$schema\" then .[0].\"$schema\" else \"http://json-schema.org/draft-07/schema#\" end) as $schema |\n  (reduce .[] as $item ({};\n    if $item.title then\n      . + {($item.title): ($item | del(.\"$id\"))}\n    else\n      .\n    end\n  )) as $defs |\n  {\n    \"$schema\": $schema,\n    title: \"A2A Protocol Schemas\",\n    description: \"Non-normative JSON Schema bundle extracted from proto definitions.\",\n    version: \"v1\",\n    definitions: $defs\n  }\n' \"$TEMP_DIR\"/*.json >\"$OUTPUT\"\n\n# Count definitions\nDEF_COUNT=$(jq '.definitions | length' \"$OUTPUT\")\necho \"✓ Generated $OUTPUT with $DEF_COUNT definitions\" >&2\n"
  },
  {
    "path": "scripts/sort_spelling.sh",
    "content": "#!/bin/bash\n\nset -euo pipefail\n\n# Determine the repository root directory based on the script's location.\nSCRIPT_DIR=$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" &>/dev/null && pwd)\nREPO_ROOT=$(cd -- \"$SCRIPT_DIR/..\" &>/dev/null && pwd)\n\nALLOW_FILE=\"${REPO_ROOT}/.github/actions/spelling/allow.txt\"\n\necho \"Sorting spelling allow list...\"\n[ -f \"${ALLOW_FILE}\" ] || {\n  echo \"ERROR: Allow list not found: ${ALLOW_FILE}\"\n  exit 1\n}\nLC_ALL=C sort -u -o \"${ALLOW_FILE}\" \"${ALLOW_FILE}\"\n"
  },
  {
    "path": "specification/.api-linter.yaml",
    "content": "# API Linter Configuration\n# https://linter.aip.dev/\n\n- included_paths:\n    - \"**/*.proto\"\n  disabled_rules:\n    - \"core::0140::abbreviations\"\n    - \"core::0191::java-multiple-files\"\n    - \"core::0191::java-outer-classname\"\n    - \"core::0191::java-package\"\n    - \"core::0191::proto-package\"\n    - \"core::0123::resource-annotation\"\n    - \"core::0203::optional\"\n    - \"core::0203::required\"\n    - \"core::0127::http-annotation\"\n    - \"core::0131::request-message-name\"\n    - \"core::0132::response-message-name\"\n    - \"core::0158::request-required-fields\"\n    - \"core::0203::input-only\"\n    - \"core::0203::output-only\"\n    - \"core::0203::immutable\"\n\n    # TODO: Evaluate if the following should be enabled due to breaking changes\n    - \"core::0131::method-signature\"\n    - \"core::0131::http-uri-name\"\n    - \"core::0127::resource-name-extraction\"\n    - \"core::0131::request-name-required\"\n    - \"core::0131::request-required-fields\"\n    - \"core::0131::response-message-name\"\n    - \"core::0131::request-unknown-fields\"\n    - \"core::0132::request-required-fields\"\n    - \"core::0132::request-unknown-fields\"\n    - \"core::0132::request-parent-required\"\n    - \"core::0132::response-unknown-fields\"\n    - \"core::0133::http-body\"\n    - \"core::0133::request-required-fields\"\n    - \"core::0133::request-unknown-fields\"\n    - \"core::0133::request-parent-required\"\n    - \"core::0133::request-resource-field\"\n    - \"core::0133::request-id-field\"\n    - \"core::0133::http-uri-parent\"\n    - \"core::0135::http-uri-name\"\n    - \"core::0135::request-name-required\"\n    - \"core::0135::method-signature\"\n    - \"core::0135::request-unknown-fields\"\n    - \"core::0135::request-required-fields\"\n    - \"core::0136::http-uri-suffix\"\n    - \"core::0136::prepositions\"\n    - \"core::0136::request-message-name\"\n    - \"core::0136::response-message-name\"\n    - \"core::0140::uri\"\n    - \"core::0140::base64\"\n    - \"core::0140::prepositions\"\n    - \"core::0142::time-field-names\"\n    - \"core::0191::file-layout\"\n    - \"core::0203::field-behavior-required\"\n    - \"core::0216::state-field-output-only\"\n    - \"core::0216::nesting\"\n"
  },
  {
    "path": "specification/a2a.proto",
    "content": "// Older protoc compilers don't understand edition yet.\nsyntax = \"proto3\";\npackage lf.a2a.v1;\n\nimport \"google/api/annotations.proto\";\nimport \"google/api/client.proto\";\nimport \"google/api/field_behavior.proto\";\nimport \"google/protobuf/empty.proto\";\nimport \"google/protobuf/struct.proto\";\nimport \"google/protobuf/timestamp.proto\";\n\noption csharp_namespace = \"Lf.A2a.V1\";\noption go_package = \"google.golang.org/lf/a2a/v1\";\noption java_multiple_files = true;\noption java_outer_classname = \"A2A\";\noption java_package = \"com.google.lf.a2a.v1\";\n\n// Provides operations for interacting with agents using the A2A protocol.\nservice A2AService {\n  // Sends a message to an agent.\n  rpc SendMessage(SendMessageRequest) returns (SendMessageResponse) {\n    option (google.api.http) = {\n      post: \"/message:send\"\n      body: \"*\"\n      additional_bindings: {\n        post: \"/{tenant}/message:send\"\n        body: \"*\"\n      }\n    };\n  }\n  // Sends a streaming message to an agent, allowing for real-time interaction and status updates.\n  // Streaming version of `SendMessage`\n  rpc SendStreamingMessage(SendMessageRequest) returns (stream StreamResponse) {\n    option (google.api.http) = {\n      post: \"/message:stream\"\n      body: \"*\"\n      additional_bindings: {\n        post: \"/{tenant}/message:stream\"\n        body: \"*\"\n      }\n    };\n  }\n\n  // Gets the latest state of a task.\n  rpc GetTask(GetTaskRequest) returns (Task) {\n    option (google.api.http) = {\n      get: \"/tasks/{id=*}\"\n      additional_bindings: {\n        get: \"/{tenant}/tasks/{id=*}\"\n      }\n    };\n    option (google.api.method_signature) = \"id\";\n  }\n  // Lists tasks that match the specified filter.\n  rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) {\n    option (google.api.http) = {\n      get: \"/tasks\"\n      additional_bindings: {\n        get: \"/{tenant}/tasks\"\n      }\n    };\n  }\n  // Cancels a task in progress.\n  rpc CancelTask(CancelTaskRequest) returns (Task) {\n    option (google.api.http) = {\n      post: \"/tasks/{id=*}:cancel\"\n      body: \"*\"\n      additional_bindings: {\n        post: \"/{tenant}/tasks/{id=*}:cancel\"\n        body: \"*\"\n      }\n    };\n  }\n  // Subscribes to task updates for tasks not in a terminal state.\n  // Returns `UnsupportedOperationError` if the task is already in a terminal state (completed, failed, canceled, rejected).\n  rpc SubscribeToTask(SubscribeToTaskRequest) returns (stream StreamResponse) {\n    option (google.api.http) = {\n      get: \"/tasks/{id=*}:subscribe\"\n      additional_bindings: {\n        get: \"/{tenant}/tasks/{id=*}:subscribe\"\n      }\n    };\n  }\n\n  // (-- api-linter: client-libraries::4232::required-fields=disabled\n  //     api-linter: core::0133::method-signature=disabled\n  //     api-linter: core::0133::request-message-name=disabled\n  //     aip.dev/not-precedent: method_signature preserved for backwards compatibility --)\n  // Creates a push notification config for a task.\n  rpc CreateTaskPushNotificationConfig(TaskPushNotificationConfig) returns (TaskPushNotificationConfig) {\n    option (google.api.http) = {\n      post: \"/tasks/{task_id=*}/pushNotificationConfigs\"\n      body: \"*\"\n      additional_bindings: {\n        post: \"/{tenant}/tasks/{task_id=*}/pushNotificationConfigs\"\n        body: \"*\"\n      }\n    };\n    option (google.api.method_signature) = \"task_id,config\";\n  }\n  // Gets a push notification config for a task.\n  rpc GetTaskPushNotificationConfig(GetTaskPushNotificationConfigRequest) returns (TaskPushNotificationConfig) {\n    option (google.api.http) = {\n      get: \"/tasks/{task_id=*}/pushNotificationConfigs/{id=*}\"\n      additional_bindings: {\n        get: \"/{tenant}/tasks/{task_id=*}/pushNotificationConfigs/{id=*}\"\n      }\n    };\n    option (google.api.method_signature) = \"task_id,id\";\n  }\n  // Get a list of push notifications configured for a task.\n  rpc ListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsRequest) returns (ListTaskPushNotificationConfigsResponse) {\n    option (google.api.http) = {\n      get: \"/tasks/{task_id=*}/pushNotificationConfigs\"\n      additional_bindings: {\n        get: \"/{tenant}/tasks/{task_id=*}/pushNotificationConfigs\"\n      }\n    };\n    option (google.api.method_signature) = \"task_id\";\n  }\n  // Gets the extended agent card for the authenticated agent.\n  rpc GetExtendedAgentCard(GetExtendedAgentCardRequest) returns (AgentCard) {\n    option (google.api.http) = {\n      get: \"/extendedAgentCard\"\n      additional_bindings: {\n        get: \"/{tenant}/extendedAgentCard\"\n      }\n    };\n  }\n  // Deletes a push notification config for a task.\n  rpc DeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigRequest) returns (google.protobuf.Empty) {\n    option (google.api.http) = {\n      delete: \"/tasks/{task_id=*}/pushNotificationConfigs/{id=*}\"\n      additional_bindings: {\n        delete: \"/{tenant}/tasks/{task_id=*}/pushNotificationConfigs/{id=*}\"\n      }\n    };\n    option (google.api.method_signature) = \"task_id,id\";\n  }\n}\n\n// Configuration of a send message request.\nmessage SendMessageConfiguration {\n  // A list of media types the client is prepared to accept for response parts.\n  // Agents SHOULD use this to tailor their output.\n  repeated string accepted_output_modes = 1;\n  // Configuration for the agent to send push notifications for task updates.\n  // Task id should be empty when sending this configuration in a `SendMessage` request.\n  TaskPushNotificationConfig task_push_notification_config = 2;\n  // The maximum number of most recent messages from the task's history to retrieve in\n  // the response. An unset value means the client does not impose any limit. A\n  // value of zero is a request to not include any messages. The server MUST NOT\n  // return more messages than the provided value, but MAY apply a lower limit.\n  optional int32 history_length = 3;\n  // If `true`, the operation returns immediately after creating the task,\n  // even if processing is still in progress.\n  // If `false` (default), the operation MUST wait until the task reaches a\n  // terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted\n  // (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.\n  bool return_immediately = 4;\n}\n\n// `Task` is the core unit of action for A2A. It has a current status\n// and when results are created for the task they are stored in the\n// artifact. If there are multiple turns for a task, these are stored in\n// history.\nmessage Task {\n  // Unique identifier (e.g. UUID) for the task, generated by the server for a\n  // new task.\n  string id = 1 [(google.api.field_behavior) = REQUIRED];\n  // Unique identifier (e.g. UUID) for the contextual collection of interactions\n  // (tasks and messages).\n  string context_id = 2;\n  // The current status of a `Task`, including `state` and a `message`.\n  TaskStatus status = 3 [(google.api.field_behavior) = REQUIRED];\n  // A set of output artifacts for a `Task`.\n  repeated Artifact artifacts = 4;\n  // protolint:disable REPEATED_FIELD_NAMES_PLURALIZED\n  // The history of interactions from a `Task`.\n  repeated Message history = 5;\n  // protolint:enable REPEATED_FIELD_NAMES_PLURALIZED\n  // A key/value object to store custom metadata about a task.\n  google.protobuf.Struct metadata = 6;\n}\n\n// Defines the possible lifecycle states of a `Task`.\nenum TaskState {\n  // The task is in an unknown or indeterminate state.\n  TASK_STATE_UNSPECIFIED = 0;\n  // Indicates that a task has been successfully submitted and acknowledged.\n  TASK_STATE_SUBMITTED = 1;\n  // Indicates that a task is actively being processed by the agent.\n  TASK_STATE_WORKING = 2;\n  // Indicates that a task has finished successfully. This is a terminal state.\n  TASK_STATE_COMPLETED = 3;\n  // Indicates that a task has finished with an error. This is a terminal state.\n  TASK_STATE_FAILED = 4;\n  // Indicates that a task was canceled before completion. This is a terminal state.\n  TASK_STATE_CANCELED = 5;\n  // Indicates that the agent requires additional user input to proceed. This is an interrupted state.\n  TASK_STATE_INPUT_REQUIRED = 6;\n  // Indicates that the agent has decided to not perform the task.\n  // This may be done during initial task creation or later once an agent\n  // has determined it can't or won't proceed. This is a terminal state.\n  TASK_STATE_REJECTED = 7;\n  // Indicates that authentication is required to proceed. This is an interrupted state.\n  TASK_STATE_AUTH_REQUIRED = 8;\n}\n\n// A container for the status of a task\nmessage TaskStatus {\n  // The current state of this task.\n  TaskState state = 1 [(google.api.field_behavior) = REQUIRED];\n  // A message associated with the status.\n  Message message = 2;\n  // ISO 8601 Timestamp when the status was recorded.\n  // Example: \"2023-10-27T10:00:00Z\"\n  google.protobuf.Timestamp timestamp = 3;\n}\n\n// `Part` represents a container for a section of communication content.\n// Parts can be purely textual, some sort of file (image, video, etc) or\n// a structured data blob (i.e. JSON).\nmessage Part {\n  oneof content {\n    // The string content of the `text` part.\n    string text = 1;\n    // The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.\n    bytes raw = 2;\n    // A `url` pointing to the file's content.\n    string url = 3;\n    // Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).\n    google.protobuf.Value data = 4;\n  }\n  // Optional. metadata associated with this part.\n  google.protobuf.Struct metadata = 5;\n  // An optional `filename` for the file (e.g., \"document.pdf\").\n  string filename = 6;\n  // The `media_type` (MIME type) of the part content (e.g., \"text/plain\", \"application/json\", \"image/png\").\n  // This field is available for all part types.\n  string media_type = 7;\n}\n\n// Defines the sender of a message in A2A protocol communication.\nenum Role {\n  // The role is unspecified.\n  ROLE_UNSPECIFIED = 0;\n  // The message is from the client to the server.\n  ROLE_USER = 1;\n  // The message is from the server to the client.\n  ROLE_AGENT = 2;\n}\n\n// `Message` is one unit of communication between client and server. It can be\n// associated with a context and/or a task. For server messages, `context_id` must\n// be provided, and `task_id` only if a task was created. For client messages, both\n// fields are optional, with the caveat that if both are provided, they have to\n// match (the `context_id` has to be the one that is set on the task). If only\n// `task_id` is provided, the server will infer `context_id` from it.\nmessage Message {\n  // The unique identifier (e.g. UUID) of the message. This is created by the message creator.\n  string message_id = 1 [(google.api.field_behavior) = REQUIRED];\n  // Optional. The context id of the message. If set, the message will be associated with the given context.\n  string context_id = 2;\n  // Optional. The task id of the message. If set, the message will be associated with the given task.\n  string task_id = 3;\n  // Identifies the sender of the message.\n  Role role = 4 [(google.api.field_behavior) = REQUIRED];\n  // Parts is the container of the message content.\n  repeated Part parts = 5 [(google.api.field_behavior) = REQUIRED];\n  // Optional. Any metadata to provide along with the message.\n  google.protobuf.Struct metadata = 6;\n  // The URIs of extensions that are present or contributed to this Message.\n  repeated string extensions = 7;\n  // A list of task IDs that this message references for additional context.\n  repeated string reference_task_ids = 8;\n}\n\n// Artifacts represent task outputs.\nmessage Artifact {\n  // Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.\n  string artifact_id = 1 [(google.api.field_behavior) = REQUIRED];\n  // A human readable name for the artifact.\n  string name = 2;\n  // Optional. A human readable description of the artifact.\n  string description = 3;\n  // The content of the artifact. Must contain at least one part.\n  repeated Part parts = 4 [(google.api.field_behavior) = REQUIRED];\n  // Optional. Metadata included with the artifact.\n  google.protobuf.Struct metadata = 5;\n  // The URIs of extensions that are present or contributed to this Artifact.\n  repeated string extensions = 6;\n}\n\n// An event sent by the agent to notify the client of a change in a task's status.\nmessage TaskStatusUpdateEvent {\n  // The ID of the task that has changed.\n  string task_id = 1 [(google.api.field_behavior) = REQUIRED];\n  // The ID of the context that the task belongs to.\n  string context_id = 2 [(google.api.field_behavior) = REQUIRED];\n  // The new status of the task.\n  TaskStatus status = 3 [(google.api.field_behavior) = REQUIRED];\n  // Optional. Metadata associated with the task update.\n  google.protobuf.Struct metadata = 4;\n}\n\n// A task delta where an artifact has been generated.\nmessage TaskArtifactUpdateEvent {\n  // The ID of the task for this artifact.\n  string task_id = 1 [(google.api.field_behavior) = REQUIRED];\n  // The ID of the context that this task belongs to.\n  string context_id = 2 [(google.api.field_behavior) = REQUIRED];\n  // The artifact that was generated or updated.\n  Artifact artifact = 3 [(google.api.field_behavior) = REQUIRED];\n  // If true, the content of this artifact should be appended to a previously\n  // sent artifact with the same ID.\n  bool append = 4;\n  // If true, this is the final chunk of the artifact.\n  bool last_chunk = 5;\n  // Optional. Metadata associated with the artifact update.\n  google.protobuf.Struct metadata = 6;\n}\n\n// Defines authentication details, used for push notifications.\nmessage AuthenticationInfo {\n  // HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).\n  // Examples: `Bearer`, `Basic`, `Digest`.\n  // Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).\n  string scheme = 1 [(google.api.field_behavior) = REQUIRED];\n  // Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).\n  string credentials = 2;\n}\n\n// Declares a combination of a target URL, transport and protocol version for interacting with the agent.\n// This allows agents to expose the same functionality over multiple protocol binding mechanisms.\nmessage AgentInterface {\n  // The URL where this interface is available. Must be a valid absolute HTTPS URL in production.\n  // Example: \"https://api.example.com/a2a/v1\", \"https://grpc.example.com/a2a\"\n  string url = 1 [(google.api.field_behavior) = REQUIRED];\n  // The protocol binding supported at this URL. This is an open form string, to be\n  // easily extended for other protocol bindings. The core ones officially\n  // supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.\n  string protocol_binding = 2 [(google.api.field_behavior) = REQUIRED];\n  // Tenant ID to be used in the request when calling the agent.\n  string tenant = 3;\n  // The version of the A2A protocol this interface exposes.\n  // Use the latest supported minor version per major version.\n  // Examples: \"0.3\", \"1.0\"\n  string protocol_version = 4 [(google.api.field_behavior) = REQUIRED];\n}\n\n// A self-describing manifest for an agent. It provides essential\n// metadata including the agent's identity, capabilities, skills, supported\n// communication methods, and security requirements.\n// Next ID: 20\nmessage AgentCard {\n  // A human readable name for the agent.\n  // Example: \"Recipe Agent\"\n  string name = 1 [(google.api.field_behavior) = REQUIRED];\n  // A human-readable description of the agent, assisting users and other agents\n  // in understanding its purpose.\n  // Example: \"Agent that helps users with recipes and cooking.\"\n  string description = 2 [(google.api.field_behavior) = REQUIRED];\n  // Ordered list of supported interfaces. The first entry is preferred.\n  repeated AgentInterface supported_interfaces = 3 [(google.api.field_behavior) = REQUIRED];\n  // The service provider of the agent.\n  AgentProvider provider = 4;\n  // The version of the agent.\n  // Example: \"1.0.0\"\n  string version = 5 [(google.api.field_behavior) = REQUIRED];\n  // A URL providing additional documentation about the agent.\n  optional string documentation_url = 6;\n  // A2A Capability set supported by the agent.\n  AgentCapabilities capabilities = 7 [(google.api.field_behavior) = REQUIRED];\n  // The security scheme details used for authenticating with this agent.\n  map<string, SecurityScheme> security_schemes = 8;\n  // Security requirements for contacting the agent.\n  repeated SecurityRequirement security_requirements = 9;\n  // protolint:enable REPEATED_FIELD_NAMES_PLURALIZED\n  // The set of interaction modes that the agent supports across all skills.\n  // This can be overridden per skill. Defined as media types.\n  repeated string default_input_modes = 10 [(google.api.field_behavior) = REQUIRED];\n  // The media types supported as outputs from this agent.\n  repeated string default_output_modes = 11 [(google.api.field_behavior) = REQUIRED];\n  // Skills represent the abilities of an agent.\n  // It is largely a descriptive concept but represents a more focused set of behaviors that the\n  // agent is likely to succeed at.\n  repeated AgentSkill skills = 12 [(google.api.field_behavior) = REQUIRED];\n  // JSON Web Signatures computed for this `AgentCard`.\n  repeated AgentCardSignature signatures = 13;\n  // Optional. A URL to an icon for the agent.\n  optional string icon_url = 14;\n}\n\n// Represents the service provider of an agent.\nmessage AgentProvider {\n  // A URL for the agent provider's website or relevant documentation.\n  // Example: \"https://ai.google.dev\"\n  string url = 1 [(google.api.field_behavior) = REQUIRED];\n  // The name of the agent provider's organization.\n  // Example: \"Google\"\n  string organization = 2 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Defines optional capabilities supported by an agent.\nmessage AgentCapabilities {\n  // Indicates if the agent supports streaming responses.\n  optional bool streaming = 1;\n  // Indicates if the agent supports sending push notifications for asynchronous task updates.\n  optional bool push_notifications = 2;\n  // A list of protocol extensions supported by the agent.\n  repeated AgentExtension extensions = 3;\n  // Indicates if the agent supports providing an extended agent card when authenticated.\n  optional bool extended_agent_card = 4;\n}\n\n// A declaration of a protocol extension supported by an Agent.\nmessage AgentExtension {\n  // The unique URI identifying the extension.\n  string uri = 1;\n  // A human-readable description of how this agent uses the extension.\n  string description = 2;\n  // If true, the client must understand and comply with the extension's requirements.\n  bool required = 3;\n  // Optional. Extension-specific configuration parameters.\n  google.protobuf.Struct params = 4;\n}\n\n// Represents a distinct capability or function that an agent can perform.\nmessage AgentSkill {\n  // A unique identifier for the agent's skill.\n  string id = 1 [(google.api.field_behavior) = REQUIRED];\n  // A human-readable name for the skill.\n  string name = 2 [(google.api.field_behavior) = REQUIRED];\n  // A detailed description of the skill.\n  string description = 3 [(google.api.field_behavior) = REQUIRED];\n  // A set of keywords describing the skill's capabilities.\n  repeated string tags = 4 [(google.api.field_behavior) = REQUIRED];\n  // Example prompts or scenarios that this skill can handle.\n  repeated string examples = 5;\n  // The set of supported input media types for this skill, overriding the agent's defaults.\n  repeated string input_modes = 6;\n  // The set of supported output media types for this skill, overriding the agent's defaults.\n  repeated string output_modes = 7;\n  // Security schemes necessary for this skill.\n  repeated SecurityRequirement security_requirements = 8;\n}\n\n// AgentCardSignature represents a JWS signature of an AgentCard.\n// This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).\nmessage AgentCardSignature {\n  // (-- api-linter: core::0140::reserved-words=disabled\n  //     aip.dev/not-precedent: Backwards compatibility --)\n  // Required. The protected JWS header for the signature. This is always a\n  // base64url-encoded JSON object.\n  string protected = 1 [(google.api.field_behavior) = REQUIRED];\n  // Required. The computed signature, base64url-encoded.\n  string signature = 2 [(google.api.field_behavior) = REQUIRED];\n  // The unprotected JWS header values.\n  google.protobuf.Struct header = 3;\n}\n\n// A container associating a push notification configuration with a specific task.\nmessage TaskPushNotificationConfig {\n  // Optional. Tenant ID.\n  string tenant = 1;\n  // The push notification configuration details.\n  // A unique identifier (e.g. UUID) for this push notification configuration.\n  string id = 2;\n  // The ID of the task this configuration is associated with.\n  string task_id = 3;\n  // The URL where the notification should be sent.\n  string url = 4 [(google.api.field_behavior) = REQUIRED];\n  // A token unique for this task or session.\n  string token = 5;\n  // Authentication information required to send the notification.\n  AuthenticationInfo authentication = 6;\n}\n\n// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED\n// A list of strings.\nmessage StringList {\n  // The individual string values.\n  repeated string list = 1;\n}\n// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED\n\n// Defines the security requirements for an agent.\nmessage SecurityRequirement {\n  // A map of security schemes to the required scopes.\n  map<string, StringList> schemes = 1;\n}\n\n// Defines a security scheme that can be used to secure an agent's endpoints.\n// This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object.\n// See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object\nmessage SecurityScheme {\n  oneof scheme {\n    // API key-based authentication.\n    APIKeySecurityScheme api_key_security_scheme = 1;\n    // HTTP authentication (Basic, Bearer, etc.).\n    HTTPAuthSecurityScheme http_auth_security_scheme = 2;\n    // OAuth 2.0 authentication.\n    OAuth2SecurityScheme oauth2_security_scheme = 3;\n    // OpenID Connect authentication.\n    OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4;\n    // Mutual TLS authentication.\n    MutualTlsSecurityScheme mtls_security_scheme = 5;\n  }\n}\n\n// Defines a security scheme using an API key.\nmessage APIKeySecurityScheme {\n  // An optional description for the security scheme.\n  string description = 1;\n  // The location of the API key. Valid values are \"query\", \"header\", or \"cookie\".\n  string location = 2 [(google.api.field_behavior) = REQUIRED];\n  // The name of the header, query, or cookie parameter to be used.\n  string name = 3 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Defines a security scheme using HTTP authentication.\nmessage HTTPAuthSecurityScheme {\n  // An optional description for the security scheme.\n  string description = 1;\n  // The name of the HTTP Authentication scheme to be used in the Authorization header,\n  // as defined in RFC7235 (e.g., \"Bearer\").\n  // This value should be registered in the IANA Authentication Scheme registry.\n  string scheme = 2 [(google.api.field_behavior) = REQUIRED];\n  // A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\").\n  // Primarily for documentation purposes.\n  string bearer_format = 3;\n}\n\n// Defines a security scheme using OAuth 2.0.\nmessage OAuth2SecurityScheme {\n  // An optional description for the security scheme.\n  string description = 1;\n  // An object containing configuration information for the supported OAuth 2.0 flows.\n  OAuthFlows flows = 2 [(google.api.field_behavior) = REQUIRED];\n  // URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).\n  // TLS is required.\n  string oauth2_metadata_url = 3;\n}\n\n// Defines a security scheme using OpenID Connect.\nmessage OpenIdConnectSecurityScheme {\n  // An optional description for the security scheme.\n  string description = 1;\n  // The [OpenID Connect Discovery URL](https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC provider's metadata.\n  string open_id_connect_url = 2 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Defines a security scheme using mTLS authentication.\nmessage MutualTlsSecurityScheme {\n  // An optional description for the security scheme.\n  string description = 1;\n}\n\n// Defines the configuration for the supported OAuth 2.0 flows.\nmessage OAuthFlows {\n  oneof flow {\n    // Configuration for the OAuth Authorization Code flow.\n    AuthorizationCodeOAuthFlow authorization_code = 1;\n    // Configuration for the OAuth Client Credentials flow.\n    ClientCredentialsOAuthFlow client_credentials = 2;\n    // Deprecated: Use Authorization Code + PKCE instead.\n    ImplicitOAuthFlow implicit = 3 [deprecated = true];\n    // Deprecated: Use Authorization Code + PKCE or Device Code.\n    PasswordOAuthFlow password = 4 [deprecated = true];\n    // Configuration for the OAuth Device Code flow.\n    DeviceCodeOAuthFlow device_code = 5;\n  }\n}\n\n// Defines configuration details for the OAuth 2.0 Authorization Code flow.\nmessage AuthorizationCodeOAuthFlow {\n  // The authorization URL to be used for this flow.\n  string authorization_url = 1 [(google.api.field_behavior) = REQUIRED];\n  // The token URL to be used for this flow.\n  string token_url = 2 [(google.api.field_behavior) = REQUIRED];\n  // The URL to be used for obtaining refresh tokens.\n  string refresh_url = 3;\n  // The available scopes for the OAuth2 security scheme.\n  map<string, string> scopes = 4 [(google.api.field_behavior) = REQUIRED];\n  // Indicates if PKCE (RFC 7636) is required for this flow.\n  // PKCE should always be used for public clients and is recommended for all clients.\n  bool pkce_required = 5;\n}\n\n// Defines configuration details for the OAuth 2.0 Client Credentials flow.\nmessage ClientCredentialsOAuthFlow {\n  // The token URL to be used for this flow.\n  string token_url = 1 [(google.api.field_behavior) = REQUIRED];\n  // The URL to be used for obtaining refresh tokens.\n  string refresh_url = 2;\n  // The available scopes for the OAuth2 security scheme.\n  map<string, string> scopes = 3 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Deprecated: Use Authorization Code + PKCE instead.\nmessage ImplicitOAuthFlow {\n  // The authorization URL to be used for this flow. This MUST be in the\n  // form of a URL. The OAuth2 standard requires the use of TLS\n  string authorization_url = 1;\n  // The URL to be used for obtaining refresh tokens. This MUST be in the\n  // form of a URL. The OAuth2 standard requires the use of TLS.\n  string refresh_url = 2;\n  // The available scopes for the OAuth2 security scheme. A map between the\n  // scope name and a short description for it. The map MAY be empty.\n  map<string, string> scopes = 3;\n}\n\n// Deprecated: Use Authorization Code + PKCE or Device Code.\nmessage PasswordOAuthFlow {\n  // The token URL to be used for this flow. This MUST be in the form of a URL.\n  // The OAuth2 standard requires the use of TLS.\n  string token_url = 1;\n  // The URL to be used for obtaining refresh tokens. This MUST be in the\n  // form of a URL. The OAuth2 standard requires the use of TLS.\n  string refresh_url = 2;\n  // The available scopes for the OAuth2 security scheme. A map between the\n  // scope name and a short description for it. The map MAY be empty.\n  map<string, string> scopes = 3;\n}\n\n// Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).\n// This flow is designed for input-constrained devices such as IoT devices,\n// and CLI tools where the user authenticates on a separate device.\nmessage DeviceCodeOAuthFlow {\n  // The device authorization endpoint URL.\n  string device_authorization_url = 1 [(google.api.field_behavior) = REQUIRED];\n  // The token URL to be used for this flow.\n  string token_url = 2 [(google.api.field_behavior) = REQUIRED];\n  // The URL to be used for obtaining refresh tokens.\n  string refresh_url = 3;\n  // The available scopes for the OAuth2 security scheme.\n  map<string, string> scopes = 4 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Represents a request for the `SendMessage` method.\nmessage SendMessageRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The message to send to the agent.\n  Message message = 2 [(google.api.field_behavior) = REQUIRED];\n  // Configuration for the send request.\n  SendMessageConfiguration configuration = 3;\n  // A flexible key-value map for passing additional context or parameters.\n  google.protobuf.Struct metadata = 4;\n}\n\n// Represents a request for the `GetTask` method.\nmessage GetTaskRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The resource ID of the task to retrieve.\n  string id = 2 [(google.api.field_behavior) = REQUIRED];\n  // The maximum number of most recent messages from the task's history to retrieve. An\n  // unset value means the client does not impose any limit. A value of zero is\n  // a request to not include any messages. The server MUST NOT return more\n  // messages than the provided value, but MAY apply a lower limit.\n  optional int32 history_length = 3;\n}\n\n// Parameters for listing tasks with optional filtering criteria.\nmessage ListTasksRequest {\n  // Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // Filter tasks by context ID to get tasks from a specific conversation or session.\n  string context_id = 2;\n  // Filter tasks by their current status state.\n  TaskState status = 3;\n  // The maximum number of tasks to return. The service may return fewer than this value.\n  // If unspecified, at most 50 tasks will be returned.\n  // The minimum value is 1.\n  // The maximum value is 100.\n  optional int32 page_size = 4;\n  // A page token, received from a previous `ListTasks` call.\n  // `ListTasksResponse.next_page_token`.\n  // Provide this to retrieve the subsequent page.\n  string page_token = 5;\n  // The maximum number of messages to include in each task's history.\n  optional int32 history_length = 6;\n  // Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., \"2023-10-27T10:00:00Z\").\n  // Only tasks with a status timestamp time greater than or equal to this value will be returned.\n  google.protobuf.Timestamp status_timestamp_after = 7;\n  // Whether to include artifacts in the returned tasks.\n  // Defaults to false to reduce payload size.\n  optional bool include_artifacts = 8;\n}\n\n// Result object for `ListTasks` method containing an array of tasks and pagination information.\nmessage ListTasksResponse {\n  // Array of tasks matching the specified criteria.\n  repeated Task tasks = 1 [(google.api.field_behavior) = REQUIRED];\n  // A token to retrieve the next page of results, or empty if there are no more results in the list.\n  string next_page_token = 2 [(google.api.field_behavior) = REQUIRED];\n  // The page size used for this response.\n  int32 page_size = 3 [(google.api.field_behavior) = REQUIRED];\n  // Total number of tasks available (before pagination).\n  int32 total_size = 4 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Represents a request for the `CancelTask` method.\nmessage CancelTaskRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The resource ID of the task to cancel.\n  string id = 2 [(google.api.field_behavior) = REQUIRED];\n  // A flexible key-value map for passing additional context or parameters.\n  google.protobuf.Struct metadata = 3;\n}\n\n// Represents a request for the `GetTaskPushNotificationConfig` method.\nmessage GetTaskPushNotificationConfigRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The parent task resource ID.\n  string task_id = 2 [(google.api.field_behavior) = REQUIRED];\n  // The resource ID of the configuration to retrieve.\n  string id = 3 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Represents a request for the `DeleteTaskPushNotificationConfig` method.\nmessage DeleteTaskPushNotificationConfigRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The parent task resource ID.\n  string task_id = 2 [(google.api.field_behavior) = REQUIRED];\n  // The resource ID of the configuration to delete.\n  string id = 3 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Represents a request for the `SubscribeToTask` method.\nmessage SubscribeToTaskRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n  // The resource ID of the task to subscribe to.\n  string id = 2 [(google.api.field_behavior) = REQUIRED];\n}\n\n// Represents a request for the `ListTaskPushNotificationConfigs` method.\nmessage ListTaskPushNotificationConfigsRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 4;\n  // The parent task resource ID.\n  string task_id = 1 [(google.api.field_behavior) = REQUIRED];\n\n  // The maximum number of configurations to return.\n  int32 page_size = 2;\n\n  // A page token received from a previous `ListTaskPushNotificationConfigsRequest` call.\n  string page_token = 3;\n}\n\n// Represents a request for the `GetExtendedAgentCard` method.\nmessage GetExtendedAgentCardRequest {\n  // Optional. Tenant ID, provided as a path parameter.\n  string tenant = 1;\n}\n\n// Represents the response for the `SendMessage` method.\nmessage SendMessageResponse {\n  // The payload of the response.\n  oneof payload {\n    // The task created or updated by the message.\n    Task task = 1;\n    // A message from the agent.\n    Message message = 2;\n  }\n}\n\n// A wrapper object used in streaming operations to encapsulate different types of response data.\nmessage StreamResponse {\n  // The payload of the stream response.\n  oneof payload {\n    // A Task object containing the current state of the task.\n    Task task = 1;\n    // A Message object containing a message from the agent.\n    Message message = 2;\n    // An event indicating a task status update.\n    TaskStatusUpdateEvent status_update = 3;\n    // An event indicating a task artifact update.\n    TaskArtifactUpdateEvent artifact_update = 4;\n  }\n}\n\n// Represents a successful response for the `ListTaskPushNotificationConfigs`\n// method.\nmessage ListTaskPushNotificationConfigsResponse {\n  // The list of push notification configurations.\n  repeated TaskPushNotificationConfig configs = 1;\n  // A token to retrieve the next page of results, or empty if there are no more results in the list.\n  string next_page_token = 2;\n}\n"
  },
  {
    "path": "specification/buf.gen.yaml",
    "content": "# buf generate\n# Configuration for the buf generate command\n# Uses remote plugins, no separate install required.\n# This config generates python, go and java (protobuf) source.\nversion: v2\nplugins:\n  # Python\n  - remote: buf.build/protocolbuffers/python:v29.3\n    out: src/python\n  - remote: buf.build/grpc/python\n    out: src/python\n\n  # Go\n  - remote: buf.build/protocolbuffers/go\n    out: src/go\n\n  - remote: buf.build/grpc/go\n    out: src/go\n\n  # Java\n  - remote: buf.build/protocolbuffers/java\n    out: src/java\n\n  - remote: buf.build/grpc/java\n    out: src/java\n\n  # TypeScript\n  - remote: buf.build/community/stephenh-ts-proto:v1.165.0\n    out: src/typescript\n"
  },
  {
    "path": "specification/buf.yaml",
    "content": "version: v2\ndeps:\n  # Common Protobuf types.\n  - buf.build/googleapis/googleapis\nlint:\n  use:\n    # Indicates that all the default rules should be used.\n    # See https://buf.build/docs/lint/rules for more details.\n    - STANDARD\n    - COMMENTS\n  except:\n    - PACKAGE_DIRECTORY_MATCH\n    - RPC_REQUEST_RESPONSE_UNIQUE\n    - RPC_REQUEST_STANDARD_NAME\n    - RPC_RESPONSE_STANDARD_NAME\nbreaking:\n  use:\n    # Indicates that breaking change detection should be done on a file level.\n    # See https://buf.build/docs/breaking/rules for more details.\n    - FILE\n"
  },
  {
    "path": "specification/json/README.md",
    "content": "# A2A JSON Artifact\n\n`a2a.json` is a **non-normative build artifact** derived from the canonical proto definition at `specification/a2a.proto`. It is generated during builds and intentionally **not** committed to source control.\n\nGeneration pipeline:\n\n1. `scripts/proto_to_json_schema.sh` converts proto directly to JSON Schema using bufbuild's `protoc-gen-jsonschema` plugin.\n2. The resulting `a2a.json` (JSON Schema 2020-12 bundle) is copied to `docs/spec/a2a.json` for site publishing.\n\nThe build uses `protoc` with `protoc-gen-jsonschema` plugin and `jq` for bundling. Only source (`a2a.proto`) and scripts remain under version control.\n\nThe artifact is generated automatically in:\n\n- Local docs builds (`scripts/build_docs.sh`)\n\n## Do Not Edit\n\nDo **NOT** edit `a2a.json` manually. Update the proto instead. The file is transient and will be regenerated.\n\n## Building the A2A JSON Artifact Locally\n\nTo build the `a2a.json` artifact locally, you'll need several dependencies depending on your operating system. This is useful for contributors who want to preview changes before submitting pull requests.\n\n<details>\n<summary>macOS/Linux</summary>\n\n### Prerequisites for macOS/Linux\n\n1. **Homebrew (macOS) or apt-get (Debian/Ubuntu)**\n   - **macOS**: Install from [brew.sh](https://brew.sh/)\n   - **Debian/Ubuntu**: `apt-get` is pre-installed.\n\n2. **Python with pip**\n\n   ```bash\n   # Verify installation:\n   python3 --version\n   pip3 --version\n   ```\n\n3. **Core build tools (`protoc`, `go`, `jq`)**\n   - **macOS**:\n\n     ```bash\n     brew install protobuf go jq\n     ```\n\n   - **Debian/Ubuntu**:\n\n     ```bash\n     sudo apt-get update && sudo apt-get install -y protobuf-compiler golang jq\n     ```\n\n4. **protoc-gen-jsonschema plugin**\n\n   ```bash\n   # Install via Go (requires Go to be installed first):\n   go install github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@latest\n   ```\n\n5. **Clone googleapis repository**\n\n   ```bash\n   # Clone to a location like $HOME/googleapis\n   git clone https://github.com/googleapis/googleapis.git $HOME/googleapis\n   export GOOGLEAPIS_DIR=$HOME/googleapis\n\n   # To persist this, add the export command to your shell profile (e.g., ~/.zshrc or ~/.bashrc)\n   echo 'export GOOGLEAPIS_DIR=$HOME/googleapis' >> ~/.bashrc\n   ```\n\n6. **Python documentation dependencies**\n\n   ```bash\n   # Create and activate virtual environment:\n   python3 -m venv .venv-docs\n   source .venv-docs/bin/activate\n\n   # Install requirements:\n   pip install -r requirements-docs.txt\n   ```\n\n#### Building the A2A JSON Artifact on macOS/Linux\n\nOnce all prerequisites are installed:\n\n```bash\n# Run the build script:\n./scripts/build_docs.sh\n```\n\nThis script handles all necessary steps to generate the `a2a.json` artifact and build the documentation site.\n</details>\n\n<details>\n<summary>Windows</summary>\n\n#### Windows Prerequisites\n\n1. **Python with pip** (for MkDocs)\n\n   ```powershell\n   # Install Python from python.org or via Microsoft Store\n   # Verify installation:\n   python --version\n   pip --version\n   ```\n\n2. **Protocol Buffers compiler (protoc)**\n\n   ```powershell\n   # Install via WinGet (recommended):\n   winget install Google.Protobuf\n\n   # Verify installation:\n   protoc --version\n   ```\n\n3. **Go programming language** (for protoc-gen-jsonschema plugin)\n\n   ```powershell\n   # Install via WinGet:\n   winget install GoLang.Go\n\n   # Or download from https://golang.org/dl/\n   # Verify installation:\n   go version\n   ```\n\n4. **protoc-gen-jsonschema plugin**\n\n   ```powershell\n   # Install via Go (requires Go to be installed first):\n   go install github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@latest\n\n   # Verify installation (should be in your Go bin directory):\n   protoc-gen-jsonschema --version\n   ```\n\n5. **jq (JSON processor)**\n\n   ```powershell\n   # Install via WinGet:\n   winget install jqlang.jq\n\n   # Verify installation:\n   jq --version\n   ```\n\n6. **Clone googleapis repository**\n\n   ```powershell\n   # Clone to any location and set environment variable:\n   git clone https://github.com/googleapis/googleapis.git C:\\path\\to\\googleapis\n   $env:GOOGLEAPIS_DIR = \"C:\\path\\to\\googleapis\"\n\n   # To persist this setting, add the following line to your PowerShell profile.\n   # You can open your profile for editing by running: notepad $PROFILE\n   $env:GOOGLEAPIS_DIR = \"C:\\path\\to\\googleapis\"\n   ```\n\n7. **Python documentation dependencies**\n\n   ```powershell\n   # Create and activate virtual environment:\n   python -m venv .venv-docs\n   .\\.venv-docs\\Scripts\\Activate.ps1\n\n   # Install requirements:\n   pip install -r requirements-docs.txt\n   ```\n\n#### Building the A2A JSON Artifact on Windows\n\nOnce all prerequisites are installed:\n\n```powershell\n# Run the build script:\n.\\scripts\\build_docs.ps1\n\n# The documentation will be generated in the ./site directory\n# Open site/index.html in your browser to view locally\n```\n\nThe build script will:\n\n- Generate JSON Schema from Protocol Buffer definitions\n- Build the MkDocs site with all content\n\n</details>\n\n#### Troubleshooting\n\n- **protoc errors**: Ensure both `protoc` and the googleapis directory are properly configured\n- **jq not found**: Ensure jq is installed and in your `PATH`\n- **Python import errors**: Activate the virtual environment and ensure all requirements are installed\n- **Missing schemas**: Check that `protoc-gen-jsonschema` is in your `PATH` (run `go env GOPATH` to find Go bin directory)\n\n## Future Work\n\nPlanned improvements include:\n\n- Optional OpenAPI v3 conversion and publishing a draft 2020-12 `components.schemas` bundle.\n- Automatic alias injection for deprecated names (anyOf wrapper) to ease migrations.\n- Validation step ensuring no generated artifacts are reintroduced into git.\n"
  }
]