agents/agents-core/src/jvmMain/kotlin/ai/koog/agents/core/agent/AIAgentBuilder.kt [1:108]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "MissingKDocForPublicAPI")
package ai.koog.agents.core.agent
import ai.koog.agents.annotations.JavaAPI
import ai.koog.agents.core.agent.config.AIAgentConfig
import ai.koog.agents.core.agent.config.MissingToolsConversionStrategy
import ai.koog.agents.core.agent.context.AIAgentFunctionalContext
import ai.koog.agents.core.agent.entity.AIAgentGraphStrategy
import ai.koog.agents.core.agent.invoke
import ai.koog.agents.core.feature.AIAgentGraphFeature
import ai.koog.agents.core.feature.config.FeatureConfig
import ai.koog.agents.core.tools.ToolRegistry
import ai.koog.agents.core.utils.ConfigureAction
import ai.koog.prompt.dsl.Prompt
import ai.koog.prompt.executor.model.PromptExecutor
import ai.koog.prompt.llm.LLModel
import kotlinx.datetime.Clock
import java.util.function.BiFunction
public actual class AIAgentBuilder internal actual constructor() : AIAgentBuilderAPI {
private val delegate: AIAgentBuilderImpl = AIAgentBuilderImpl()
@property:PublishedApi
internal actual var promptExecutor: PromptExecutor?
get() = delegate.promptExecutor
set(value) {
delegate.promptExecutor = value
}
@property:PublishedApi
internal actual var toolRegistry: ToolRegistry
get() = delegate.toolRegistry
set(value) {
delegate.toolRegistry = value
}
@property:PublishedApi
internal actual var id: String?
get() = delegate.id
set(value) {
delegate.id = value
}
@property:PublishedApi
internal actual var prompt: Prompt
get() = delegate.prompt
set(value) {
delegate.prompt = value
}
@property:PublishedApi
internal actual var llmModel: LLModel?
get() = delegate.llmModel
set(value) {
delegate.llmModel = value
}
@property:PublishedApi
internal actual var temperature: Double
get() = delegate.temperature
set(value) {
delegate.temperature = value
}
@property:PublishedApi
internal actual var numberOfChoices: Int
get() = delegate.numberOfChoices
set(value) {
delegate.numberOfChoices = value
}
@property:PublishedApi
internal actual var missingToolsConversionStrategy: MissingToolsConversionStrategy
get() = delegate.missingToolsConversionStrategy
set(value) {
delegate.missingToolsConversionStrategy = value
}
@property:PublishedApi
internal actual var maxIterations: Int
get() = delegate.maxIterations
set(value) {
delegate.maxIterations = value
}
@property:PublishedApi
internal actual var clock: Clock
get() = delegate.clock
set(value) {
delegate.clock = value
}
public actual override fun promptExecutor(promptExecutor: PromptExecutor): AIAgentBuilder =
apply { delegate.promptExecutor(promptExecutor) }
public actual override fun llmModel(model: LLModel): AIAgentBuilder = apply { delegate.llmModel(model) }
public actual override fun toolRegistry(toolRegistry: ToolRegistry): AIAgentBuilder =
apply { delegate.toolRegistry(toolRegistry) }
public actual override fun graphStrategy(
strategy: AIAgentGraphStrategy
): GraphAgentBuilder = delegate.graphStrategy(strategy)
public actual override fun functionalStrategy(
strategy: AIAgentFunctionalStrategy
): FunctionalAgentBuilder = delegate.functionalStrategy(strategy)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
agents/agents-core/src/wasmJsMain/kotlin/ai/koog/agents/core/agent/AIAgentBuilder.kt [1:104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@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.config.MissingToolsConversionStrategy
import ai.koog.agents.core.agent.entity.AIAgentGraphStrategy
import ai.koog.agents.core.feature.AIAgentGraphFeature
import ai.koog.agents.core.feature.config.FeatureConfig
import ai.koog.agents.core.tools.ToolRegistry
import ai.koog.agents.core.utils.ConfigureAction
import ai.koog.prompt.dsl.Prompt
import ai.koog.prompt.executor.model.PromptExecutor
import ai.koog.prompt.llm.LLModel
import kotlinx.datetime.Clock
public actual class AIAgentBuilder internal actual constructor() : AIAgentBuilderAPI {
private val delegate: AIAgentBuilderImpl = AIAgentBuilderImpl()
@property:PublishedApi
internal actual var promptExecutor: PromptExecutor?
get() = delegate.promptExecutor
set(value) {
delegate.promptExecutor = value
}
@property:PublishedApi
internal actual var toolRegistry: ToolRegistry
get() = delegate.toolRegistry
set(value) {
delegate.toolRegistry = value
}
@property:PublishedApi
internal actual var id: String?
get() = delegate.id
set(value) {
delegate.id = value
}
@property:PublishedApi
internal actual var prompt: Prompt
get() = delegate.prompt
set(value) {
delegate.prompt = value
}
@property:PublishedApi
internal actual var llmModel: LLModel?
get() = delegate.llmModel
set(value) {
delegate.llmModel = value
}
@property:PublishedApi
internal actual var temperature: Double
get() = delegate.temperature
set(value) {
delegate.temperature = value
}
@property:PublishedApi
internal actual var numberOfChoices: Int
get() = delegate.numberOfChoices
set(value) {
delegate.numberOfChoices = value
}
@property:PublishedApi
internal actual var missingToolsConversionStrategy: MissingToolsConversionStrategy
get() = delegate.missingToolsConversionStrategy
set(value) {
delegate.missingToolsConversionStrategy = value
}
@property:PublishedApi
internal actual var maxIterations: Int
get() = delegate.maxIterations
set(value) {
delegate.maxIterations = value
}
@property:PublishedApi
internal actual var clock: Clock
get() = delegate.clock
set(value) {
delegate.clock = value
}
public actual override fun promptExecutor(promptExecutor: PromptExecutor): AIAgentBuilder =
apply { delegate.promptExecutor(promptExecutor) }
public actual override fun llmModel(model: LLModel): AIAgentBuilder = apply { delegate.llmModel(model) }
public actual override fun toolRegistry(toolRegistry: ToolRegistry): AIAgentBuilder =
apply { delegate.toolRegistry(toolRegistry) }
public actual override fun graphStrategy(
strategy: AIAgentGraphStrategy
): GraphAgentBuilder = delegate.graphStrategy(strategy)
public actual override fun functionalStrategy(
strategy: AIAgentFunctionalStrategy
): FunctionalAgentBuilder = delegate.functionalStrategy(strategy)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -