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.
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")
}@SpringBootApplication
public class MyAgentApp {
public static void main(String[] args) {
SpringApplication.run(MyAgentApp.class, args);
}
}@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);
}
}application.yml:
embabel:
agent:
logging:
personality: starwars
models:
default-llm: gpt-4.1-mini
spring:
ai:
openai:
api-key: ${OPENAI_API_KEY}@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.1docs