ReceivedToolResult

data class ReceivedToolResult(val id: String?, val tool: String, val content: String, val result: ToolResult?)(source)

Represents the result or response received from a tool operation.

Constructors

Link copied to clipboard
constructor(id: String?, tool: String, content: String, result: ToolResult?)

Properties

Link copied to clipboard

The main content or message associated with the tool result.

Link copied to clipboard
val id: String?

An optional identifier for the tool result.

Link copied to clipboard

The detailed result produced by the tool, implementing the ToolResult interface.

Link copied to clipboard

The name or type of the tool that generated the result.

Functions

Link copied to clipboard
fun toMessage(clock: Clock = Clock.System): Message.Tool.Result

Converts the current ReceivedToolResult instance into a Message.Tool.Result object.

Link copied to clipboard

Converts a ReceivedToolResult instance into a SafeTool.Result for safer result handling.