Text

@Serializable
value class Text(val text: String) : ToolResult.JSONSerializable<ToolResult.Text> (source)

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

Constructors

Link copied to clipboard
constructor(e: Exception)

Constructs a Text instance with a message generated from the given exception.

constructor(text: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getSerializer(): KSerializer<ToolResult.Text>

Retrieves the serializer instance for the implementing class.

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

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