ReceivedToolResult
data class ReceivedToolResult(val id: String?, val tool: String, val toolArgs: JsonObject, val toolDescription: String?, val content: String, val resultKind: ToolResultKind, val result: JsonElement?)(source)
Represents the result or response received from a tool operation.
Constructors
Link copied to clipboard
constructor(id: String?, tool: String, toolArgs: JsonObject, toolDescription: String?, content: String, resultKind: ToolResultKind, result: JsonElement?)
Properties
Link copied to clipboard
The detailed result produced by the tool, implementing the ToolResult interface.
Link copied to clipboard
The kind of result produced by the tool, indicating success, failure, or validation error.
Link copied to clipboard
The arguments provided to the tool during execution.
Link copied to clipboard
An optional description of the tool's functionality.
Functions
Link copied to clipboard
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.