CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/maven-com-embabel-agent--embabel-agent-starter

Base starter module for the Embabel Agent Framework providing core dependencies for building agentic flows on the JVM with Spring Boot integration and GOAP-based intelligent path finding.

Overview
Eval results
Files

quickstart.mddocs/

Quickstart

Add Dependency

Maven:

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

Gradle (Kotlin DSL):

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

For Gradle, add Spring Milestones repository:

maven {
    name = "Spring Milestones"
    url = uri("https://repo.spring.io/milestone")
}

Create Application

@SpringBootApplication
public class MyAgentApp {
    public static void main(String[] args) {
        SpringApplication.run(MyAgentApp.class, args);
    }
}

Define Agent

@Agent(description = "Customer service agent")
@Component
public class CustomerAgent {

    @Action(description = "Process customer request", post = {"requestProcessed"})
    public Response processRequest(Request request) {
        return service.process(request);
    }

    @AchievesGoal(
        description = "Resolve customer issue",
        export = @Export(remote = true, local = true)
    )
    @Action(description = "Resolve issue", pre = {"requestProcessed"})
    public Resolution resolveIssue(Response response, @Provided Ai ai) {
        return ai.createObject("Resolve: " + response);
    }
}

Configure

application.yml:

embabel:
  agent:
    logging:
      personality: starwars
  models:
    default-llm: gpt-4.1-mini

spring:
  ai:
    openai:
      api-key: ${OPENAI_API_KEY}

Invoke Agent

@Service
public class MyService {
    private final AgentPlatform platform;

    public Resolution handleCustomer(Request request) {
        AgentInvocation<Resolution> invocation =
            AgentInvocation.create(platform, Resolution.class);
        return invocation.invoke(request);
    }
}

Next: Agent Concepts | API Reference

tessl i tessl/maven-com-embabel-agent--embabel-agent-starter@0.3.1

docs

api-annotations.md

api-domain-model.md

api-invocation.md

api-tools.md

concepts-actions.md

concepts-agents.md

concepts-goals.md

concepts-invocation.md

concepts-tools.md

guides-creating-agents.md

guides-creating-tools.md

guides-defining-actions.md

guides-goal-achievement.md

guides-human-in-loop.md

guides-multimodal.md

index.md

integration-mcp.md

integration-model-providers.md

integration-spring-boot.md

LlmTool.md

quickstart.md

reference-component-scanning.md

reference-configuration-properties.md

reference-installation.md

reference-logging.md

reference-resilience.md

reference-streaming.md

tile.json