Companion

expect object Companion(source)

Companion object that provides factory methods for creating instances of GraphAIAgentService with various configurations.

actual object Companion(source)

Companion object that provides factory methods for creating instances of GraphAIAgentService with various configurations.

actual object Companion(source)

Companion object that provides factory methods for creating instances of GraphAIAgentService with various configurations.

Functions

Link copied to clipboard

Provides a builder for constructing an instance of the AIAgentService.

Provides a builder for constructing an instance of the AIAgentService.

Provides a builder for constructing an instance of the AIAgentService.

Link copied to clipboard

Creates a new instance of AIAgentService by transforming a given FunctionalAIAgent.

Converts a given GraphAIAgent instance into an AIAgentService instance.

Creates a new instance of AIAgentService by transforming a given FunctionalAIAgent.

Converts a given GraphAIAgent instance into an AIAgentService instance.

Creates a new instance of AIAgentService by transforming a given FunctionalAIAgent.

Converts a given GraphAIAgent instance into an AIAgentService instance.

Link copied to clipboard
expect operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit = {}): FunctionalAIAgentService<Input, Output>

Invokes the creation of a FunctionalAIAgentService instance with the provided parameters.

expect inline operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {}): GraphAIAgentService<Input, Output>

Invokes the creation of a GraphAIAgentService instance with the provided configuration, strategy, tool registry, and optional feature installation logic.

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

Invokes the creation of a GraphAIAgentService with the provided dependencies, configuration, and optional parameters for customization.

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, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): FunctionalAIAgentService<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, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit): GraphAIAgentService<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, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit): GraphAIAgentService<String, String>
actual operator fun <Input, Output> invoke(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy<Input, Output>, toolRegistry: ToolRegistry, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit): FunctionalAIAgentService<Input, Output>

Invokes the creation of a FunctionalAIAgentService instance with the provided parameters.

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

Invokes the creation of a GraphAIAgentService instance with the provided configuration, strategy, tool registry, and optional feature installation logic.

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

Invokes the creation of a GraphAIAgentService with the provided dependencies, configuration, and optional parameters for customization.

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

Invokes the process to create and return an instance of GraphAIAgentService.