Companion

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

Functions

Link copied to clipboard

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

Converts a given GraphAIAgent instance into an AIAgentService instance.

Link copied to clipboard
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.

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.

operator fun invoke(promptExecutor: PromptExecutor, llmModel: LLModel, strategy: AIAgentGraphStrategy<String, String> = singleRunStrategy(), toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, systemPrompt: String = "", temperature: Double = 1.0, 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.

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.