execute
fun execute(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor> = emptyList(), executorService: ExecutorService? = null): List<Message.Response>(source)
Executes a prompt and returns a list of response messages.
Return
List of response messages
Parameters
prompt
The prompt to execute
model
The LLM model to use
tools
Optional list of tools that can be used by the LLM
executorService
An optional ExecutorService that can be provided to control the execution context.