- Add a PromptSpec contract under
src/main/promptspec/example.promptspec.yaml. - Register allowed tools in
src/main/promptspec/tools.yaml. - Run validation and generation.
- Inject the generated Spring AI client into your service.
- Record snapshots locally and replay them in CI.
The sample app under examples/spring-boot-demo demonstrates the full flow.