Success
data class Success<TResult : ToolResult>(val result: TResult, val content: String) : SafeTool.Result<TResult> (source)
Represents a successful result of an operation, wrapping a specific tool result and its corresponding content.
The Success
class is a concrete implementation of the Result
sealed interface, specifically used to indicate successful outcomes. It stores both the result of type TResult
and its associated content as a string.
Parameters
TResult
The type of the tool result, which must implement the ToolResult
interface.