install

fun <Config : FeatureConfig, Feature : Any> install(feature: AIAgentFeature<Config, Feature>, configure: Config.() -> Unit = {})(source)

Installs and configures a feature into the current AI agent context.

Parameters

feature

the feature to be added, defined by an implementation of AIAgentFeature, which provides specific functionality

configure

an optional lambda to customize the configuration of the feature, where the provided Config can be modified