Success

data class Success(val toolName: String, val value: Any, val serializer: KSerializer<out Any>) : ToolResult

Represents the successful execution result of a tool.

This class is a concrete implementation of the ToolResult interface, encapsulating the tool's successful output and its associated metadata.

Constructors

Link copied to clipboard
constructor(toolName: String, value: Any, serializer: KSerializer<out Any>)

Properties

Link copied to clipboard
val serializer: KSerializer<out Any>

The KSerializer used to serialize or deserialize the result data.

Link copied to clipboard
open override val toolName: String

The name of the tool that produced this result.

Link copied to clipboard
val value: Any

The actual result data generated by the tool.

Functions

Link copied to clipboard