Module handler

Module handler 

Source
Expand description

A2A HTTP handlers

Axum handlers for A2A protocol endpoints.

§Endpoints

  • GET /.well-known/agent.json - Agent Card
  • POST /a2a/tasks - Create a new task
  • GET /a2a/tasks/:id - Get task status

§Security

  • Authentication required for task endpoints
  • Agent Card is public but can be rate-limited
  • All responses include Merkle hashes

Structs§

A2aState
Shared state for A2A handlers

Functions§

a2a_routes
Build A2A routes for inclusion in the main router
agent_card_handler
Handler: GET /.well-known/agent.json
create_task_handler
Handler: POST /a2a/tasks
get_task_handler
Handler: GET /a2a/tasks/:id