JSON

JSON object implementing the ToolCallDescriber interface. This object is responsible for describing tool calls and results by converting them into a structured JSON-based format.

Functions

Link copied to clipboard
open override fun describeToolCall(message: Message.Tool.Call): Message

Formats a tool call message into a standardized Message.Assistant response.

Link copied to clipboard
open override fun describeToolResult(message: Message.Tool.Result): Message

Creates a user message containing a structured JSON representation of a tool result including its ID, tool name, and result content.