execute

Executes a given prompt using the specified language model and returns a single response.

This function is a convenience method that processes the prompt with the given model while assuming no tools are available and extracts the first response from the result.

Return

A single Message.Response representing the result generated by the language model.

Parameters

prompt

The Prompt object containing the messages and parameters for execution.

model

The LLModel instance that specifies the language model to be used.