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: MessagePart.Tool.Call): String

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

Link copied to clipboard

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