A2A (Agent-to-Agent) is a new open protocol that enables AI agents to discover and communicate with each other. The protocol uses JSON-based agent cards for discovery and JSON-RPC for interaction, supporting three communication modes: asynchronous sessions, streamed sessions, and push notifications. The tutorial demonstrates building a serverless A2A agent using Spin and WebAssembly that provides ethical reasoning using Google's Gemini model. The agent exposes its capabilities through a standardized agent card and handles requests via JSON-RPC, making it discoverable and interoperable with other A2A-compliant agents.
Table of contents
What is an Agent?What is A2A?The Virtual Ethicist CodeWhere Should Agents Run?ConclusionSort: