executeTool

open suspend override fun executeTool(toolCall: Message.Tool.Call): ReceivedToolResult(source)

Executes a tool call and returns its result.

Return

A result corresponding to the executed tool call. The result includes details such as the tool name, identifier, response content, and associated metadata.

Parameters

toolCall

A tool call messages to be executed. A message contains details about the tool, its identifier, the request content, and associated metadata.