Represents a failed result encapsulating an error message.
The type of the tool result.
Content of the result
A descriptive error message explaining the reason for the failure.
Casts the current object to a Failure type.
Failure
Casts the current instance of Result to a Success type if it is a successful result.
Result
Success
Determines whether the current instance represents a failure state.
Determines if the current result represents a successful operation.