pub fn create_function_response<T: Serialize>(
tool_call_id: impl Into<String>,
result: &T,
) -> Result<Response, Error>Expand description
Creates a response containing the result of a single function call.
This is a high-level helper that constructs the entire Response object.
It serializes the result to a JSON string for you.