execute

abstract suspend fun execute(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor> = emptyList()): List<Message.Response>(source)

Executes a given prompt using the specified LLM and tools, returning a list of responses from the model.

Return

A list of Message.Response objects representing the responses generated by the LLM.

Parameters

prompt

The Prompt object containing the messages to be used in the execution.

model

The instance of LLModel that specifies the LLM to be used.

tools

An optional list of ToolDescriptor objects that define the tools available for the execution.