agents/agents-core/src/androidMain/kotlin/ai/koog/agents/core/agent/AIAgentService.kt [1:98]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "MissingKDocForPublicAPI") package ai.koog.agents.core.agent import ai.koog.agents.core.agent.config.AIAgentConfig import ai.koog.agents.core.agent.entity.AIAgentGraphStrategy import ai.koog.agents.core.annotation.InternalAgentsApi import ai.koog.agents.core.tools.ToolRegistry import ai.koog.prompt.executor.model.PromptExecutor import ai.koog.prompt.llm.LLModel import ai.koog.prompt.processor.ResponseProcessor import kotlinx.datetime.Clock public actual abstract class AIAgentService> actual constructor() { public actual abstract val promptExecutor: PromptExecutor public actual abstract val agentConfig: AIAgentConfig public actual abstract val toolRegistry: ToolRegistry public actual abstract suspend fun createAgent( id: String?, additionalToolRegistry: ToolRegistry, agentConfig: AIAgentConfig, clock: Clock ): TAgent public actual abstract suspend fun createAgentAndRun( agentInput: Input, id: String?, additionalToolRegistry: ToolRegistry, agentConfig: AIAgentConfig, clock: Clock ): Output public actual abstract suspend fun removeAgent(agent: TAgent): Boolean public actual abstract suspend fun removeAgentWithId(id: String): Boolean public actual abstract suspend fun agentById(id: String): TAgent? public actual abstract suspend fun listAllAgents(): List public actual abstract suspend fun listActiveAgents(): List public actual abstract suspend fun listInactiveAgents(): List public actual abstract suspend fun listFinishedAgents(): List public actual abstract suspend fun closeAll() @Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT") public actual companion object { public actual fun builder(): AIAgentServiceBuilder = AIAgentServiceBuilder() @OptIn(markerClass = [InternalAgentsApi::class]) public actual inline fun fromAgent( agent: GraphAIAgent ): AIAgentService> = AIAgentServiceHelper.fromAgent(agent) @OptIn(markerClass = [InternalAgentsApi::class]) public actual fun fromAgent( agent: FunctionalAIAgent ): AIAgentService> = AIAgentServiceHelper.fromAgent(agent) @OptIn(markerClass = [InternalAgentsApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgentService = AIAgentServiceHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, installFeatures) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgentService = AIAgentServiceHelper.invoke( promptExecutor, llmModel, responseProcessor, strategy, toolRegistry, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) @OptIn(markerClass = [InternalAgentsApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy, toolRegistry: ToolRegistry, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): FunctionalAIAgentService = AIAgentServiceHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, installFeatures) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - agents/agents-core/src/wasmJsMain/kotlin/ai/koog/agents/core/agent/AIAgentService.kt [1:98]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "MissingKDocForPublicAPI") package ai.koog.agents.core.agent import ai.koog.agents.core.agent.config.AIAgentConfig import ai.koog.agents.core.agent.entity.AIAgentGraphStrategy import ai.koog.agents.core.annotation.InternalAgentsApi import ai.koog.agents.core.tools.ToolRegistry import ai.koog.prompt.executor.model.PromptExecutor import ai.koog.prompt.llm.LLModel import ai.koog.prompt.processor.ResponseProcessor import kotlinx.datetime.Clock public actual abstract class AIAgentService> actual constructor() { public actual abstract val promptExecutor: PromptExecutor public actual abstract val agentConfig: AIAgentConfig public actual abstract val toolRegistry: ToolRegistry public actual abstract suspend fun createAgent( id: String?, additionalToolRegistry: ToolRegistry, agentConfig: AIAgentConfig, clock: Clock ): TAgent public actual abstract suspend fun createAgentAndRun( agentInput: Input, id: String?, additionalToolRegistry: ToolRegistry, agentConfig: AIAgentConfig, clock: Clock ): Output public actual abstract suspend fun removeAgent(agent: TAgent): Boolean public actual abstract suspend fun removeAgentWithId(id: String): Boolean public actual abstract suspend fun agentById(id: String): TAgent? public actual abstract suspend fun listAllAgents(): List public actual abstract suspend fun listActiveAgents(): List public actual abstract suspend fun listInactiveAgents(): List public actual abstract suspend fun listFinishedAgents(): List public actual abstract suspend fun closeAll() @Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT") public actual companion object { public actual fun builder(): AIAgentServiceBuilder = AIAgentServiceBuilder() @OptIn(markerClass = [InternalAgentsApi::class]) public actual inline fun fromAgent( agent: GraphAIAgent ): AIAgentService> = AIAgentServiceHelper.fromAgent(agent) @OptIn(markerClass = [InternalAgentsApi::class]) public actual fun fromAgent( agent: FunctionalAIAgent ): AIAgentService> = AIAgentServiceHelper.fromAgent(agent) @OptIn(markerClass = [InternalAgentsApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgentService = AIAgentServiceHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, installFeatures) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgentService = AIAgentServiceHelper.invoke( promptExecutor, llmModel, responseProcessor, strategy, toolRegistry, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) @OptIn(markerClass = [InternalAgentsApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy, toolRegistry: ToolRegistry, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): FunctionalAIAgentService = AIAgentServiceHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, installFeatures) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -