Functions

Link copied to clipboard

Configures the current builder instance using the provided AIAgentConfig.

Link copied to clipboard
fun clock(clock: Clock): Self

Sets the clock for the agent.

Link copied to clipboard
fun id(id: String?): Self

Sets the identifier for the builder configuration.

Link copied to clipboard
fun llmModel(model: LLModel): Self

Sets the LLModel instance to be used by the builder.

Link copied to clipboard
fun maxIterations(maxIterations: Int): Self

Sets the maximum number of iterations for the builder.

Link copied to clipboard
fun numberOfChoices(numberOfChoices: Int): Self

Sets the number of choices to be utilized by the builder instance.

Link copied to clipboard
fun prompt(prompt: Prompt): Self

Sets the prompt to be used by the builder.

Link copied to clipboard
fun promptExecutor(promptExecutor: PromptExecutor): Self

Sets the PromptExecutor to be used by the builder instance.

Link copied to clipboard
fun responseProcessor(responseProcessor: ResponseProcessor): Self

Sets the response processor for the agent.

Link copied to clipboard
fun systemPrompt(systemPrompt: String): Self

Sets the system prompt to be used by the builder.

Link copied to clipboard
fun temperature(temperature: Double): Self

Sets the temperature value for the builder.

Link copied to clipboard
fun toolRegistry(toolRegistry: ToolRegistry): Self

Sets the given ToolRegistry instance to the builder configuration.