ToolResult

interface ToolResult(source)

Deprecated

Extending ToolResult is no longer required. Tool results are entirely handled by KotlinX Serialization.

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
object Companion

Companion object for the enclosing class.

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

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.