agents/agents-core/src/appleMain/kotlin/ai/koog/agents/core/agent/AIAgent.kt [1:150]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:Suppress("MissingKDocForPublicAPI", "EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") 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.tools.ToolRegistry import ai.koog.prompt.executor.model.PromptExecutor import ai.koog.prompt.llm.LLModel import ai.koog.prompt.processor.ResponseProcessor import ai.koog.utils.io.Closeable import kotlinx.datetime.Clock import kotlin.uuid.ExperimentalUuidApi @Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT") public actual abstract class AIAgent : Closeable { public actual abstract val id: String public actual abstract val agentConfig: AIAgentConfig public actual abstract suspend fun getState(): AIAgentState public actual open suspend fun result(): Output = AIAgentHelper.result(this) public actual abstract suspend fun run(agentInput: Input): Output public actual companion object { @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, clock: Clock, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, id, clock, installFeatures) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgent = AIAgentHelper.invoke( promptExecutor, agentConfig, strategy, toolRegistry, id, installFeatures = installFeatures ) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy, toolRegistry: ToolRegistry, id: String?, clock: Clock, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): FunctionalAIAgent = AIAgentHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, id, clock, installFeatures) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, responseProcessor, strategy, toolRegistry, id, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, strategy: AIAgentGraphStrategy, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, id: String?, clock: Clock, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, strategy, responseProcessor, toolRegistry, id, clock, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, strategy: AIAgentFunctionalStrategy, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, responseProcessor, toolRegistry, strategy, id, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) public actual fun builder(): AIAgentBuilder = AIAgentBuilder() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - agents/agents-core/src/wasmJsMain/kotlin/ai/koog/agents/core/agent/AIAgent.kt [1:150]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @file:Suppress("MissingKDocForPublicAPI", "EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") 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.tools.ToolRegistry import ai.koog.prompt.executor.model.PromptExecutor import ai.koog.prompt.llm.LLModel import ai.koog.prompt.processor.ResponseProcessor import ai.koog.utils.io.Closeable import kotlinx.datetime.Clock import kotlin.uuid.ExperimentalUuidApi @Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT") public actual abstract class AIAgent : Closeable { public actual abstract val id: String public actual abstract val agentConfig: AIAgentConfig public actual abstract suspend fun getState(): AIAgentState public actual open suspend fun result(): Output = AIAgentHelper.result(this) public actual abstract suspend fun run(agentInput: Input): Output public actual companion object { @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, clock: Clock, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, id, clock, installFeatures) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): GraphAIAgent = AIAgentHelper.invoke( promptExecutor, agentConfig, strategy, toolRegistry, id, installFeatures = installFeatures ) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentFunctionalStrategy, toolRegistry: ToolRegistry, id: String?, clock: Clock, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): FunctionalAIAgent = AIAgentHelper.invoke(promptExecutor, agentConfig, strategy, toolRegistry, id, clock, installFeatures) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, strategy: AIAgentGraphStrategy, toolRegistry: ToolRegistry, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, responseProcessor, strategy, toolRegistry, id, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) @OptIn(markerClass = [ExperimentalUuidApi::class]) public actual inline operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, strategy: AIAgentGraphStrategy, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, id: String?, clock: Clock, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, noinline installFeatures: GraphAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, strategy, responseProcessor, toolRegistry, id, clock, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) public actual operator fun invoke( promptExecutor: PromptExecutor, llmModel: LLModel, responseProcessor: ResponseProcessor?, toolRegistry: ToolRegistry, strategy: AIAgentFunctionalStrategy, id: String?, systemPrompt: String?, temperature: Double?, numberOfChoices: Int, maxIterations: Int, installFeatures: FunctionalAIAgent.FeatureContext.() -> Unit ): AIAgent = AIAgentHelper.invoke( promptExecutor, llmModel, responseProcessor, toolRegistry, strategy, id, systemPrompt, temperature, numberOfChoices, maxIterations, installFeatures ) public actual fun builder(): AIAgentBuilder = AIAgentBuilder() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -