sendToolResult

expect open suspend override fun sendToolResult(toolResult: ReceivedToolResult): Message.Response(source)

Adds a tool result to the prompt and requests an LLM response.

Return

The LLM response.

Parameters

toolResult

The tool result to add to the prompt.

fun sendToolResult(toolResult: ReceivedToolResult, executorService: ERROR CLASS: Symbol not found for ExecutorService?? = null): Message.Response(source)

Sends the provided tool result for processing.

Return

A response message object after processing the tool result.

Parameters

toolResult

The result from a tool that is to be sent for further processing.

executorService

An optional executor service to manage thread execution. If null, a default dispatcher will be used.