RÇRıfat Çakırinrifatcakir.hashnode.dev·Aug 12 · 6 min readMocking Spring AI @Tool calls via record/replayThe first question about testing a Spring AI agent is "how do I avoid calling the model." The second one, the moment tools enter the picture, is scarier: When my test makes the agent call refundCusto00
RÇRıfat Çakırinrifatcakir.hashnode.dev·Aug 11 · 5 min readYour Spring AI tests are slow, flaky, and cost money. Here's how to make them deterministic.You wire up Spring AI, the ChatClient fluent API feels great, your feature works. Then you sit down to write a test — and every good option is bad. A test that calls a real model is: Slow. A hosted c00