executeMultiple
fun executeMultiple(prompt: ERROR CLASS: Symbol not found for Prompt, tools: List<ERROR CLASS: Symbol not found for ToolDescriptor>, executorService: ExecutorService? = null): List<ERROR CLASS: Symbol not found for Message.Response>(source)
Executes multiple tasks or requests associated with the given Prompt and ToolDescriptor list.
This method allows parallel execution of provided tools based on the given prompt, utilizing an optional ExecutorService for concurrency management.
Return
a list of Message.Response objects representing the results of the executed tasks
Parameters
prompt
the prompt to be used for the task execution
tools
the list of tools to be executed in conjunction with the prompt
executorService
an optional executor service for managing parallel execution; if null, the default dispatcher is used