execute
open suspend override fun execute(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): List<Message.Response>(source)
Executes a given prompt using the specified tools and model, and returns a list of response messages.
Return
A list of Message.Response objects containing the responses generated based on the prompt.
Parameters
prompt
The Prompt to be executed, containing the input messages and parameters.
tools
A list of ToolDescriptor objects representing external tools available for use during execution.
model
The LLM model to use for execution.
Throws
If no client is found for the model's provider and no fallback settings are configured.