Skip to main content

Module answer

Expand description

Turning a client’s answer to a suspended tool call into the output that resumes the turn.

Structs§

AnsweredClientToolCall 🔒
What a client’s answer to a suspended call amounts to once it is applied.

Functions§

apply_client_tool_answer 🔒
The tool output a client’s answer to tool_call amounts to.
client_tool_output_for_answer 🔒
Turns a client’s answer to a suspended call into the tool output that resumes the turn.
missing_tool_call_error 🔒
Why a call the client wants to answer is not among the conversation’s unanswered ones: it already has an output, or the conversation never had it.
rejected_tool_answer_error 🔒
An answer the conversation has no room for is the client’s mistake and has to reach it as a client error instead of as a failed turn. Everything else stays a server fault.