Add tool-confirmation module: Spring AI 2.1 human-in-the-loop tool calls (requiresConfirmation, ToolCallConfirmationPolicy, ToolCallDecisions pause and resume), a server-side approval store with approver check, replay guard and audit log, and an approver page over SSE and htmx; 17 transcripts. The model is a scripted ChatModel; the htmx page was not opened in a browser. Spring Boot 4.1.3, Spring AI 2.1.0, Java 25.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5x1ufsjyvu9RJFUUb
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
spring:
|
||||
application:
|
||||
name: tool-confirmation
|
||||
ai:
|
||||
openai:
|
||||
# No real key is needed to run this module's tests: they replace the ChatModel with a scripted
|
||||
# one. The placeholder only lets the context start standalone with a real key in OPENAI_API_KEY.
|
||||
api-key: ${OPENAI_API_KEY:demo-key-not-used-by-tests}
|
||||
|
||||
app:
|
||||
approval:
|
||||
approvers: alice,bob
|
||||
Reference in New Issue
Block a user