AIAgentConfigBuilder

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

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
val model: ERROR CLASS: Symbol not found for LLModel
Link copied to clipboard
var prompt: ERROR CLASS: Symbol not found for Prompt??
Link copied to clipboard
var responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??

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

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
fun prompt(prompt: ERROR CLASS: Symbol not found for Prompt): AIAgentConfig.Companion.AIAgentConfigBuilder

Sets the prompt configuration for the AI agent.

Link copied to clipboard
fun responseProcessor(processor: ERROR CLASS: Symbol not found for ResponseProcessor??): AIAgentConfig.Companion.AIAgentConfigBuilder

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
fun serializer(serializer: ERROR CLASS: Symbol not found for JSONSerializer): AIAgentConfig.Companion.AIAgentConfigBuilder

Sets serializer for underlying tool calls and LLM requests

Link copied to clipboard

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