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,13 @@
|
||||
# One gated call pauses the whole reply, including the harmless call beside it
|
||||
|
||||
calls in the reply: [call_1=searchFlights, call_2=bookFlight]
|
||||
awaitingDecision(reply): [call_2]
|
||||
ledger after the pause: []
|
||||
|
||||
decision for call_2 only -> IllegalArgumentException:
|
||||
Every tool call of the reply needs a decision; missing: [call_1]
|
||||
ledger after the refused resume: []
|
||||
|
||||
decisions for both -> ledger: [searchFlights BOS->SFO, bookFlight VX205]
|
||||
tool results, in the model's order:
|
||||
ToolResponseMessage[call_1:searchFlights -> "VX205 07:10 USD 240; VX311 18:40 USD 198"][call_2:bookFlight -> "Booked VX205, reference BK-5"]
|
||||
Reference in New Issue
Block a user