isError property

  1. @TagNumber.new(5)
bool get isError

True when the tool failed, so commons tells the model the call errored instead of feeding result_json back as data and the model can self-correct. The proto3 zero value (false) is the correct default: a ToolResult nobody touched reads as a good result, not a failed one. Industry: Anthropic is_error, MCP isError.

Implementation

@$pb.TagNumber(5)
$core.bool get isError => $_getBF(4);
  1. @TagNumber.new(5)
set isError (bool value)

Implementation

@$pb.TagNumber(5)
set isError($core.bool value) => $_setBool(4, value);