Overview
The Agent Card endpoint exposes Routa’s capabilities through the A2A protocol. It provides a machine-readable description of Routa’s skills, transport methods, and API endpoints for external AI systems to discover and integrate.Endpoint
Response Format
The agent card follows the A2A SDK v0.3.x AgentCard specification:Skills
Routa exposes three primary skills:1. Agent Coordination
- Breaking down complex projects into subtasks
- Coordinating multiple agents
- Planning multi-step workflows
- Orchestrating parallel work streams
2. Software Development
- Implementing new features
- Writing code from specifications
- Adding tests to existing code
- Refactoring or modernizing code
3. Code Verification
- Reviewing pull requests
- Verifying implementations
- Running acceptance tests
- Checking code quality
Capabilities
Streaming
- Tool execution progress
- Agent messages
- Task state changes
- Completion notifications
Push Notifications
Transport Interfaces
Routa provides two transport methods:1. JSON-RPC
2. HTTP
Input/Output Modes
Input Modes
Output Modes
- text/plain - Natural language responses
- application/json - Structured data (task status, agent info, etc.)
Fetching the Agent Card
cURL
TypeScript
JavaScript (Browser)
Skill Selection
External systems can route requests to specific skills:Example: Discovering and Using Routa
Dynamic Base URL
The agent card adapts to the request’s base URL:Versioning
Protocol Version
Agent Version
Documentation
/a2a path.
CORS Support
The agent card endpoint supports CORS for browser-based clients:Caching
The agent card is static and can be cached:Best Practices
- Cache the agent card - It rarely changes
- Check protocol version - Ensure compatibility
- Inspect skills before use - Validate Routa supports your use case
- Use the correct RPC URL - Don’t hardcode endpoints
- Handle version mismatches - Gracefully degrade if protocol versions differ