# Building a Java Agent to Generate a Karaoke Bar Schedule

DevFeed: [Building a Java Agent to Generate a Karaoke Bar Schedule](<https://devfeed.tech/articles/tinkering-with-a-hands-off-agent-23033.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/tinkering-with-a-hands-off-agent.html>)

Author: Tom Cools

Published: 2025-12-15T03:03:31Z

Content type: tutorial

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [Library](<https://devfeed.tech/topics/library.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Development](<https://devfeed.tech/topics/development.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [agent](<https://devfeed.tech/tags/agent.md>), [building](<https://devfeed.tech/tags/building.md>), [development](<https://devfeed.tech/tags/development.md>), [java](<https://devfeed.tech/tags/java.md>), [java-advent](<https://devfeed.tech/tags/java-advent.md>), [library](<https://devfeed.tech/tags/library.md>), [optimization](<https://devfeed.tech/tags/optimization.md>)

## AI overview

This article describes experimenting with Langchain4J Agentic to build a Java agent that generates an optimization application from a problem description. The example scenario is a karaoke bar scheduler with rules for alternating singers and artists and with song start times.

## Source excerpt

It's great to write another entry for Java Advent this year! Last year, I wrote about how you can use Timefold Solver, an optimization library written in Java, to solve planning problems such as employee scheduling or, in true holiday spirit, optimizing Santa's travel route. This year, as the world is now all going "agentic", [...] The post Tinkering with a "hands-off" agent appeared first on JVM Advent.