# A gated tool pauses the loop; an approval resumes it

-- first request ----------------------------------------------
model calls so far:            1
reply text (content()):        ''
reply has tool calls:          true
awaitingDecision(reply):       [call_1]
isAwaitingDecision(reply):     true
tool call shown to the person: bookFlight {"flightNumber":"VX205"}
ledger (real side effects):    []
metadata key holding the keys: spring.ai.tool-calls-awaiting-decision

-- after allow(call_1) + executeToolCalls ---------------------
ledger (real side effects):    [bookFlight VX205]
conversationHistory():
    UserMessage[Book flight VX205 for tomorrow]
    AssistantMessage[toolCalls=call_1:bookFlight{"flightNumber":"VX205"}]
    ToolResponseMessage[call_1:bookFlight -> "Booked VX205, reference BK-5"]
returnDirect():                false

-- resumed request --------------------------------------------
model calls so far:            2
final answer:                  Done. VX205 is booked.
