ToolResult.failure constructor

ToolResult.failure(
  1. String toolName,
  2. String error
)

Creates a failure result.

Implementation

factory ToolResult.failure(String toolName, String error) => ToolResult(
      toolName: toolName,
      success: false,
      error: error,
      executedAt: DateTime.now(),
    );