sendMultipleToolResults
expect open suspend override fun sendMultipleToolResults(results: List<ReceivedToolResult>): List<Message.Response>(source)
Adds multiple tool results to the prompt and gets multiple LLM responses.
Return
A list of LLM responses.
Parameters
results
The list of tool results to add to the prompt.
fun sendMultipleToolResults(results: List<ReceivedToolResult>, executorService: ERROR CLASS: Symbol not found for ExecutorService?? = null): List<Message.Response>(source)
Sends multiple tool results for processing and returns the corresponding responses.
Return
A list of Message.Response objects representing the responses after processing the tool results.
Parameters
results
A list of ReceivedToolResult representing the tool results to be processed.
executorService
An optional ExecutorService to run the dispatch operation. If null, a default executor is used.