Companion

expect object Companion(source)

The companion object for the AIAgent class, providing functionality to instantiate an AI agent with a flexible configuration, input/output types, and execution strategy.

actual object Companion(source)

The companion object for the AIAgent class, providing functionality to instantiate an AI agent with a flexible configuration, input/output types, and execution strategy.

actual object Companion(source)

The companion object for the AIAgent class, providing functionality to instantiate an AI agent with a flexible configuration, input/output types, and execution strategy.

Functions

Link copied to clipboard

Creates and returns a new instance of the AIAgentBuilder class to configure and construct an AI agent.

actual fun builder(): AIAgentBuilder

Creates and returns a new instance of the AIAgentBuilder class to configure and construct an AI agent.

actual fun builder(): AIAgentBuilder

Creates and returns a new instance of the AIAgentBuilder class to configure and construct an AI agent.

Link copied to clipboard
expect operator fun invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<String, String> = singleRunStrategy(), toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {}): GraphAIAgent<String, String>

Operator function to create and invoke an AI agent with the given parameters.

expect operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: Clock = Clock.System, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit = {}): FunctionalAIAgent<Input, Output>

Creates a functional AI agent with the provided configurations and execution strategy.

expect inline operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: Clock = Clock.System, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {}): AIAgent<Input, Output>

Creates an instance of an AI agent based on the provided configuration, input/output types, and execution strategy.

expect operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentPlannerStrategy<Input, Output, *>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: Clock = Clock.System, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit = {}): AIAgent<Input, Output>

Invokes the creation of an AI agent using the provided configuration, strategy, and optional parameters.

expect operator fun invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor? = null, strategy: AIAgentGraphStrategy<String, String> = singleRunStrategy(), toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, systemPrompt: String? = null, temperature: Double? = null, numberOfChoices: Int = 1, maxIterations: Int = 50, installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {}): AIAgent<String, String>

Construction of an AI agent with the specified configurations and parameters.

expect operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor? = null, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, strategy: AIAgentFunctionalStrategy<Input, Output>, id: String? = null, systemPrompt: String? = null, temperature: Double? = null, numberOfChoices: Int = 1, maxIterations: Int = 50, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit = {}): AIAgent<Input, Output>

Creates an FunctionalAIAgent with the specified parameters to execute a strategy with the assistance of a tool registry, configured language model, and associated features.

expect operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor? = null, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, strategy: AIAgentPlannerStrategy<Input, Output, *>, id: String? = null, systemPrompt: String? = null, temperature: Double? = null, numberOfChoices: Int = 1, maxIterations: Int = 50, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit = {}): AIAgent<Input, Output>

Invokes the AI agent with the provided configuration and parameters.

expect inline operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, strategy: AIAgentGraphStrategy<Input, Output>, responseProcessor: ResponseProcessor? = null, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: Clock = Clock.System, systemPrompt: String? = null, temperature: Double? = null, numberOfChoices: Int = 1, maxIterations: Int = 50, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {}): AIAgent<Input, Output>

Creates and configures an AI agent using the provided parameters.

actual operator fun invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<String, String>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, installFeatures: GraphAIAgent.FeatureContext.() -> Unit): GraphAIAgent<String, String>
actual operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy<Input, Output>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, clock: ERROR CLASS: Symbol not found for Clock, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): FunctionalAIAgent<Input, Output>
actual inline operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, clock: ERROR CLASS: Symbol not found for Clock, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>
actual operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentPlannerStrategy<Input, Output, *>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, clock: ERROR CLASS: Symbol not found for Clock, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>
actual operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, llmModel: ERROR CLASS: Symbol not found for LLModel, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, strategy: AIAgentFunctionalStrategy<Input, Output>, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>
actual operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, llmModel: ERROR CLASS: Symbol not found for LLModel, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, strategy: AIAgentPlannerStrategy<Input, Output, *>, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>
actual operator fun invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, llmModel: ERROR CLASS: Symbol not found for LLModel, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??, strategy: AIAgentGraphStrategy<String, String>, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<String, String>
actual inline operator fun <Input, Output> invoke(promptExecutor: ERROR CLASS: Symbol not found for PromptExecutor, llmModel: ERROR CLASS: Symbol not found for LLModel, strategy: AIAgentGraphStrategy<Input, Output>, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor??, toolRegistry: ERROR CLASS: Symbol not found for ToolRegistry, id: String?, clock: ERROR CLASS: Symbol not found for Clock, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>
actual operator fun invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<String, String>, toolRegistry: ToolRegistry, id: String?, installFeatures: GraphAIAgent.FeatureContext.() -> Unit): GraphAIAgent<String, String>

Operator function to create and invoke an AI agent with the given parameters.

actual operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy<Input, Output>, toolRegistry: ToolRegistry, id: String?, clock: Clock, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): FunctionalAIAgent<Input, Output>

Creates a functional AI agent with the provided configurations and execution strategy.

actual inline operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ToolRegistry, id: String?, clock: Clock, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>

Creates an instance of an AI agent based on the provided configuration, input/output types, and execution strategy.

actual operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentPlannerStrategy<Input, Output, *>, toolRegistry: ToolRegistry, id: String?, clock: Clock, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>

Invokes the creation of an AI agent using the provided configuration, strategy, and optional parameters.

actual operator fun invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, strategy: AIAgentGraphStrategy<String, String>, toolRegistry: ToolRegistry, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<String, String>

Construction of an AI agent with the specified configurations and parameters.

actual operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, strategy: AIAgentFunctionalStrategy<Input, Output>, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>

Creates an FunctionalAIAgent with the specified parameters to execute a strategy with the assistance of a tool registry, configured language model, and associated features.

actual operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, strategy: AIAgentPlannerStrategy<Input, Output, *>, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: PlannerAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>

Invokes the AI agent with the provided configuration and parameters.

actual inline operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, llmModel: LLModel, strategy: AIAgentGraphStrategy<Input, Output>, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, id: String?, clock: Clock, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit): AIAgent<Input, Output>

Creates and configures an AI agent using the provided parameters.