Format an error tool result.
Error instance, string, or other value.
A ToolResult with isError: true.
ToolResult
isError: true
Format an error tool result.