CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/maven-com-embabel-agent--embabel-agent-a2a

A2A protocol integration for Embabel Agent Framework enabling agent-to-agent communication

Overview
Eval results
Files

quick-start.mddocs/guides/

Quick Start

Get A2A endpoints running in your Spring Boot application.

Prerequisites

Required: Embabel Agent Framework with these dependencies:

  • embabel-agent-core - AgentPlatform, Goal, ProcessOptions
  • embabel-agent-api - Autonomy, AgenticEventListener
  • embabel-common - Common utilities

Installation

Maven:

<dependency>
    <groupId>com.embabel.agent</groupId>
    <artifactId>embabel-agent-a2a</artifactId>
    <version>0.3.3</version>
</dependency>

Gradle (Kotlin DSL):

implementation("com.embabel.agent:embabel-agent-a2a:0.3.3")

Auto-Configuration

Spring Boot automatically configures A2A endpoints when the module is on the classpath.

Default Endpoints:

  • GET /a2a/.well-known/agent.json - AgentCard discovery
  • POST /a2a - JSON-RPC requests (streaming and non-streaming)

Access Beans:

@Autowired
lateinit var agentCardHandler: AgentCardHandler

@Autowired
lateinit var requestHandler: AutonomyA2ARequestHandler

Testing Endpoints

Get AgentCard:

curl http://localhost:8080/a2a/.well-known/agent.json

Send Message:

curl -X POST http://localhost:8080/a2a \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "test-1",
    "method": "message/send",
    "params": {
      "message": {
        "messageId": "m1",
        "role": "user",
        "parts": [{"text": "Hello"}]
      }
    }
  }'

Stream Message:

curl -X POST http://localhost:8080/a2a \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": "stream-1",
    "method": "message/stream",
    "params": {
      "message": {
        "messageId": "m2",
        "role": "user",
        "parts": [{"text": "Research topic"}]
      }
    }
  }'

Next Steps

  • Common Tasks - Customize configuration, filter goals, add security
  • API Reference - Detailed API documentation
  • Integration Patterns - Best practices and patterns
tessl i tessl/maven-com-embabel-agent--embabel-agent-a2a@0.3.3

docs

index.md

tile.json