embabel: move to 1.5.4, add Spring Boot application, deterministic testing layers and measured failure modes

Spring Boot starter and OpenAI-compatible model module behind a REST endpoint, tested against a fake provider
on localhost. FakeOperationContext and EmbabelMockitoIntegrationTest examples, retry multiplication, a STUCK
process surfacing as NullPointerException, two-goal agents, and plain Spring AI with the branches written.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
Claude
2026-12-04 07:48:11 +05:30
parent 5323e6c71a
commit 38c9ca8452
34 changed files with 886 additions and 15 deletions
+3 -4
View File
@@ -6,7 +6,7 @@ facts, so the build fails when a claim stops being true.
| Module | Post | What it shows |
|---|---|---|
| `embabel` | Embabel: Goal-Oriented AI Agents on the JVM | actions, goals, conditions and cost-based planning with GOAP, compared with plain Spring AI |
| `embabel` | Embabel for Spring Developers: Goal-Oriented AI Agents with GOAP Planning | actions, goals, conditions and cost-based planning, the Spring Boot starter behind a REST endpoint, four ways to test without a model, retry multiplication measured against a fake provider, and plain Spring AI for contrast. See `embabel/README.md` |
| `a2a` | A2A Protocol in Java: Agents That Talk to Each Other | agent card, tasks, streaming, input-required and agent-to-agent calls with the A2A Java SDK |
| `onnx-djl` | Running ONNX Models in Java with ONNX Runtime and DJL | a DistilBERT sentiment model: DJL tokenizer, ONNX Runtime directly and through DJL's engine, batching, and a Spring Boot endpoint with latency numbers |
| `jlama` | Local LLM Inference in Pure Java with Jlama | load and run a 4-bit TinyLlama inside the JVM on the Vector API, tokens per second, streaming, and the same measurement against Ollama |
@@ -27,7 +27,7 @@ facts, so the build fails when a claim stops being true.
| Component | Version | Note |
|---|---|---|
| Embabel `embabel-agent-api` | 1.5.3 | brings Spring AI 2.0.1 and Spring Boot 4.1.1 transitively |
| Embabel `embabel-agent-api` and starters | 1.5.4 | verified on Maven Central 2026-12-04; brings Spring AI 2.0.1 and Spring Boot 4.1.1 transitively; 1.0.0 GA (2026-07-20) was on Spring Boot 3.5.14 |
| A2A Java SDK `io.github.a2asdk` | 1.0.0.Alpha3 | alpha; targets A2A protocol 1.0. The newest stable release, 0.3.3.Final, targets the 0.3 protocol and its API differs |
| Jlama `jlama-core` (`com.github.tjake`) | 0.8.4 | needs `--add-modules jdk.incubator.vector` at compile and run time |
| Model | `tjake/TinyLlama-1.1B-Chat-v1.0-Jlama-Q4` | 1.1 GB, downloaded by Jlama into `jlama/models/` on first run (git-ignored) |
@@ -61,8 +61,7 @@ mvn test # everything
mvn test -pl a2a -am # one module
```
No API key is needed. The A2A agents contain no model call, because the protocol is the subject. The Embabel tests use `ScriptedLlmOperations`, the scripted stand-in shipped inside
`embabel-agent-api`, and the Spring AI comparison uses a small scripted `ChatModel`.
No API key is needed. The A2A agents contain no model call, because the protocol is the subject. The Embabel tests use the stand-ins shipped with Embabel and a fake OpenAI-compatible server on localhost (see `embabel/README.md`).
Each module writes its transcripts to `<module>/output/` when you run the tests.
## The `jlama` module needs a model and takes minutes