AIAgentServiceBuilderAPI

Functions

Link copied to clipboard

Configures the AI agent service builder using the specified agent configuration.

Link copied to clipboard

Convenience build for GraphAIAgentService using singleRunStrategy.

Link copied to clipboard

Configure a functional strategy and continue with a functional service builder.

Link copied to clipboard

Configure a graph strategy and continue with a graph service builder.

Link copied to clipboard

Sets the Large Language Model (LLM) instance to be used by the service builder.

Link copied to clipboard
abstract fun maxIterations(maxIterations: Int): AIAgentServiceBuilderAPI

Sets the maximum number of iterations for the AI agent's process.

Link copied to clipboard
abstract fun numberOfChoices(numberOfChoices: Int): AIAgentServiceBuilderAPI

Sets the number of choices to be used in the AI agent service.

Link copied to clipboard
abstract fun prompt(prompt: Prompt): AIAgentServiceBuilderAPI

Sets the prompt to be used for the AI Agent service and returns the builder instance.

Link copied to clipboard

Sets the prompt executor for the AIAgentServiceBuilder.

Link copied to clipboard
abstract fun systemPrompt(systemPrompt: String): AIAgentServiceBuilderAPI

Sets a system-level instruction or context for the AI agent. The provided string serves as the system prompt, defining the role or behavior of the AI within the generated service.

Link copied to clipboard
abstract fun temperature(temperature: Double): AIAgentServiceBuilderAPI

Sets the temperature parameter, which adjusts the randomness of the model's outputs. A higher temperature value results in more varied and creative responses, whereas a lower temperature value yields more focused and deterministic responses.

Link copied to clipboard

Configures the ToolRegistry for the AIAgentServiceBuilder.