pub fn build_tool_result_fields(
is_error: bool,
raw_content: Option<&Value>,
base: Option<&ToolCall>,
raw_result: Option<&Value>,
) -> ToolCallUpdateFieldsExpand description
Mirrors buildToolResultFields(isError, rawContent, base?, rawResult?).
The high-level entry that turns an arbitrary tool_result block into
the structured ToolCallUpdateFields upstream’s TUI consumes.