The Dynamic Execution Engine
Transform your Java application into an intelligent, self-extending environment.
Any Java Code, Any Framework
The core RunningJVM tool allows the AI Agent to pull any Java framework in existence from Maven Central at runtime and execute LLM-generated code immediately.
- JIT Compilation: In-memory compilation of AI-generated classes.
- Dynamic Classloading: Child-first classloader for instant hot-reloads.
- Maven Integration: Resolve and download dependencies on-the-fly.
- Full JVM Access: Introspect threads, memory, and application state.
Real-World Agency: IoT & Hardware
The agent isn't trapped in the IDE. It's a Hardware Orchestrator.
Network & Device Mastery
By leveraging LocalShell and network introspection, the agent can discover and control physical devices on your LAN.
- LAN Discovery: Find TVs, servers, and IoT devices.
- Smart TV Control: Take screenshots and send remote commands via ADB.
- Security Auditing: Perform network assessments and find open ports.
"Explore my LAN, find the TCL TV, take a screenshot, and perform a security assessment of the network."
Hardware Insider
The agent uses native shell access to bridge the gap between LLM logic and physical hardware.
Media & Creative Flow
Engineering the perfect environment for deep work.
Integrated Radio & DJ Engine
The RadioTool and DJTool allow the AI Agent to manage the auditory environment, keeping the developer in the "zone".
- SomaFM Integration: Stream high-quality internet radio.
- MIDI DJ: Generate foundational beats on-the-fly.
- Natural Language Control: "Play some SomaFM Groove Salad."
"Turn on the radio and play SomaFM Indie Pop Rocks while you put Javadoc on all source files."
Core Framework Features
Everything you need to build a production-grade AI Agent in Java.
Annotation-Driven Tools
Turn any Java method into an AI-callable function with a single @AIToolMethod annotation. Automatic JSON schema generation included.
PAYG v2 Pruning
Advanced context management that automatically prunes stale tool calls and responses to maximize the token window.
Session Persistence
Fast, reliable session saving and loading using Kryo serialization. Resume conversations instantly across restarts.
Embeddable Swing UI
A complete, high-performance ChatPanel that can be dropped into any Swing application with zero boilerplate.
Get Started in Seconds
<dependency>
<groupId>uno.anahata</groupId>
<artifactId>gemini-java-client</artifactId>
<version>1.0.9</version>
</dependency>