tool

fun tool(content: String, toolCallId: String)

Appends a ToolMessage carrying the result of executing a prior ToolCall.

Parameters

content

Tool execution result (typically JSON-encoded)

toolCallId

Identifier of the ToolCall this message responds to