AIAgentConfigBuilder

class AIAgentConfigBuilder(val model: LLModel, var prompt: Prompt? = null, var maxAgentIterations: Int? = null, var missingToolsConversionStrategy: MissingToolsConversionStrategy? = null, var responseProcessor: ResponseProcessor? = null, strategyExecutorService: ERROR CLASS: Symbol not found for ExecutorService?? = null, llmRequestExecutorService: ERROR CLASS: Symbol not found for ExecutorService?? = null, serializer: JSONSerializer = JacksonSerializer())(source)

A builder class for constructing an instance of AIAgentConfig with customizable configuration options.

Constructors

Link copied to clipboard
constructor(model: LLModel, prompt: Prompt? = null, maxAgentIterations: Int? = null, missingToolsConversionStrategy: MissingToolsConversionStrategy? = null, responseProcessor: ResponseProcessor? = null, strategyExecutorService: ERROR CLASS: Symbol not found for ExecutorService?? = null, llmRequestExecutorService: ERROR CLASS: Symbol not found for ExecutorService?? = null, serializer: JSONSerializer = JacksonSerializer())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Constructs and returns an instance of AIAgentConfig using the values configured in the builder. The method validates that all required fields are provided and assigns default values to optional fields if they are not explicitly set.

Link copied to clipboard
fun llmRequestExecutorService(executor: ERROR CLASS: Symbol not found for ExecutorService??): AIAgentConfig.Companion.AIAgentConfigBuilder

Sets the executor service for handling LLM (Language Learning Model) requests.

Link copied to clipboard

Sets the maximum number of iterations allowed for the AI agent during its execution.

Link copied to clipboard

Configures the strategy to handle missing tool definitions in prompts.

Link copied to clipboard

Sets the prompt configuration for the AI agent.

Link copied to clipboard

Assigns a custom response processor to the configuration builder. The response processor is responsible for processing and transforming the responses generated by the language model.

Link copied to clipboard

Sets serializr for underlying tool calls and LLM requests

Link copied to clipboard
fun strategyExecutorService(executor: ERROR CLASS: Symbol not found for ExecutorService??): AIAgentConfig.Companion.AIAgentConfigBuilder

Sets the executor service to be used for executing strategies within the agent configuration.