Number

value class Number(val result: Number) : ToolResult(source)

Represents a numeric value as a tool result.

This value class wraps a kotlin.Number instance and implements the ToolResult interface, allowing seamless representation of numerical results in a standardized format.

Constructors

Link copied to clipboard
constructor(result: Number)

Properties

Link copied to clipboard

The underlying numeric value.

Functions

Link copied to clipboard
open override fun toStringDefault(): String

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