set_response
set_response
Set or replace the response after construction. The response is a prompt
injected into the model’s context, not text spoken verbatim, so write it as an
instruction in the second person. To separate a factual outcome from the
speaking instruction, use set_tool_response() instead.
Parameters
response
Instruction for the model, such as "Tell the caller their order shipped yesterday."
Returns
FunctionResult — self, for chaining.