Extracts the error message from a tool call result. Supports both ToolCallContent with ToolCallErrorResult items and legacy simple error format.
Extracts the error message from a tool call result. Supports both ToolCallContent with ToolCallErrorResult items and legacy simple error format.