Skip to main content

inline_tool_is_error

Function inline_tool_is_error 

Source
pub fn inline_tool_is_error(lines: &[Value]) -> Option<bool>
Expand description

Derive the event-level tool-error flag from inline transcript records. OpenCode tool events carry no tool_use_id, so extract_is_error_from_transcript can’t run; instead the plugin forwards a toolResult record whose isError signals the outcome. Returns Some(true|false) for the first toolResult record found, or None when there is none (non-tool events).