ToolResult

interface ToolResult(source)

Represents a result produced by a tool operation. This is a marker interface implemented by various result types.

Inheritors

Types

Link copied to clipboard
value class Boolean(val result: Boolean) : ToolResult

A custom inline value class that wraps a kotlin.Boolean to provide additional functionality or semantics.

Link copied to clipboard

Represents an interface that provides functionality for serializing implementing classes into JSON format using kotlinx.serialization library.

Link copied to clipboard
value class Number(val result: Number) : ToolResult

Represents a numeric value as a tool result.

Link copied to clipboard
@Serializable
value class Text(val text: String) : ToolResult.JSONSerializable<ToolResult.Text>

Result implementation representing a simple tool result, just a string.

Functions

Link copied to clipboard
abstract fun toStringDefault(): String

Provides a string representation of the implementing instance with default formatting.