Skip to main content

tool_result_message

Function tool_result_message 

Source
pub fn tool_result_message(
    call_id: &str,
    result_json: &str,
    first_party: bool,
) -> Message
Expand description

Build a wire Message carrying a structured tool result keyed to its originating call_id.

The inverse of the tool-result arm of wire_to_llm; persisted so replay reconstructs a real tool_result.