Files
spring-ai/tool-confirmation/output/07-multi-round-turn.txt
T

20 lines
806 B
Plaintext

# Search (ungated) then book (gated) in one turn: what the model sees on each call
ledger at the pause: [searchFlights BOS->SFO]
model calls: 3
prompt 1 sent to the model:
UserMessage[Find a flight BOS to SFO and book the first one]
prompt 2 sent to the model:
UserMessage[Find a flight BOS to SFO and book the first one]
AssistantMessage[toolCalls=s1:searchFlights{"from":"BOS","to":"SFO"}]
ToolResponseMessage[s1:searchFlights -> "VX205 07:10 USD 240; VX311 18:40 USD 198"]
prompt 3 sent to the model:
UserMessage[Find a flight BOS to SFO and book the first one]
AssistantMessage[toolCalls=b1:bookFlight{"flightNumber":"VX205"}]
ToolResponseMessage[b1:bookFlight -> "Booked VX205, reference BK-5"]
Prompt 2 had the search round; prompt 3 (the resume) does not.