prompt

fun prompt(name: String = "agent", llmParams: LLMParams = LLMParams(), clock: Clock = Clock.System, build: PromptBuilder.() -> Unit)(source)

Configures and sets the prompt for the agent using the provided parameters and a prompt-building function.

Parameters

llmParams

The parameters that define the behavior of the language model, such as temperature and tool selection. Defaults to an instance of LLMParams.

buildPrompt

A lambda function that is used to construct the prompt using a PromptBuilder.