ToolResult.failure constructor
Creates a failure result.
Implementation
factory ToolResult.failure(String toolName, String error) => ToolResult(
toolName: toolName,
success: false,
error: error,
executedAt: DateTime.now(),
);