pub fn tool_outcome_from_status(status: &ToolCallStatus) -> ToolOutcomeExpand description
Map a terminal ToolCallStatus to its corresponding ToolOutcome.
ยงPanics
Panics if status is ToolCallStatus::InProgress, which is a non-terminal
state and must never be passed to a completion-event emitter.