Represents a sealed interface for results, which can either be a success or a failure.
The type of the result
Represents a failed result encapsulating an error message.
Represents a successful result of an operation, wrapping a specific tool result and its corresponding content.
Content of the result
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.