AIAgentServiceBuilder

Builder for creating AIAgentService instances.

Mirrors AIAgentBuilder but returns service-level objects:

  • GraphAIAgentService

  • FunctionalAIAgentService

Builder for creating AIAgentService instances.

Mirrors AIAgentBuilder but returns service-level objects:

  • GraphAIAgentService

  • FunctionalAIAgentService

Builder for creating AIAgentService instances.

Mirrors AIAgentBuilder but returns service-level objects:

  • GraphAIAgentService

  • FunctionalAIAgentService

Functions

Link copied to clipboard

Configures the current builder instance using the provided AIAgentConfig.

Configures the current builder instance using the provided AIAgentConfig.

Configures the current builder instance using the provided AIAgentConfig.

Link copied to clipboard

Convenience build for GraphAIAgentService using singleRunStrategy.

Convenience build for GraphAIAgentService using singleRunStrategy.

Convenience build for GraphAIAgentService using singleRunStrategy.

Link copied to clipboard

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

Creates a functional agent service builder using the provided strategy.

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

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.

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

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

Link copied to clipboard

Sets the LLModel instance to be used by the builder.

fun llmModel(model: ai/koog/prompt/llm/LLModel): AIAgentServiceBuilder

Sets the LLModel instance to be used by the builder.

Sets the LLModel instance to be used by the builder.

Link copied to clipboard
expect fun maxIterations(maxIterations: Int): AIAgentServiceBuilder

Sets the maximum number of iterations for the builder.

Sets the maximum number of iterations for the builder.

Sets the maximum number of iterations for the builder.

Link copied to clipboard
expect fun numberOfChoices(numberOfChoices: Int): AIAgentServiceBuilder

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

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

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

Link copied to clipboard
expect fun prompt(prompt: Prompt): AIAgentServiceBuilder

Sets the prompt to be used by the builder.

fun prompt(prompt: ai/koog/prompt/Prompt): AIAgentServiceBuilder

Sets the prompt to be used by the builder.

Sets the prompt to be used by the builder.

Link copied to clipboard

Sets the PromptExecutor to be used by the builder instance.

fun promptExecutor(promptExecutor: ai/koog/prompt/executor/model/PromptExecutor): AIAgentServiceBuilder

Sets the PromptExecutor to be used by the builder instance.

Sets the PromptExecutor to be used by the builder instance.

Link copied to clipboard

Sets the response processor for the agent.

fun responseProcessor(responseProcessor: ai/koog/prompt/processor/ResponseProcessor): AIAgentServiceBuilder

Sets the response processor for the agent.

Sets the response processor for the agent.

Link copied to clipboard
expect fun systemPrompt(systemPrompt: String): AIAgentServiceBuilder

Sets the system prompt to be used by the builder.

Sets the system prompt to be used by the builder.

Sets the system prompt to be used by the builder.

Link copied to clipboard
expect fun temperature(temperature: Double): AIAgentServiceBuilder

Sets the temperature value for the builder.

Sets the temperature value for the builder.

Sets the temperature value for the builder.

Link copied to clipboard

Sets the given ToolRegistry instance to the builder configuration.

fun toolRegistry(toolRegistry: ai/koog/agents/core/tools/ToolRegistry): AIAgentServiceBuilder

Sets the given ToolRegistry instance to the builder configuration.

Sets the given ToolRegistry instance to the builder configuration.