hasError property

bool get hasError

Whether the tool encountered an error

Implementation

bool get hasError => state == ToolCallState.output_error;