AIAgentBuilderCommon

Common chained implementation for AIAgentBuilder actual classes.

Inheritors

Functions

Link copied to clipboard

Configures the current builder instance using the provided AIAgentConfig.

Link copied to clipboard

Builds and returns an instance of AIAgent configured according to the builder's settings.

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

Sets the clock for the agent.

Link copied to clipboard

Sets the functional strategy to be used by the agent builder.

Link copied to clipboard

Configures and returns a GraphAgentBuilder instance using the specified AIAgentGraphStrategy.

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

Sets the identifier for the builder configuration.

Link copied to clipboard

Installs a graph-specific AI agent feature into the builder with its provided 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

Configures the planner strategy to be used by an AI agent planner.

Defines a planner strategy for the planner using a specified builder chain action.

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.