install
fun <TConfig : FeatureConfig> install(feature: AIAgentGraphFeature<TConfig, *>, configure: ConfigureAction<TConfig>): GraphAgentBuilder<Input, Output>(source)
Installs a specified feature into the current context and applies its configuration.
Return
The current GraphAgentBuilder instance, enabling further configurations.
Parameters
feature
The feature to install, represented by an implementation of AIAgentGraphFeature.
configure
A lambda used to customize the configuration of the feature.
Type Parameters
TConfig
The type of configuration required by the feature, extending FeatureConfig.
fun install(featureInstaller: GraphAIAgent.FeatureContext.() -> Unit): GraphAgentBuilder<Input, Output>(source)
Installs a new feature into the GraphAgentBuilder.
Return
The updated instance of GraphAgentBuilder with the newly added feature.
Parameters
featureInstaller
A lambda function that utilizes the FeatureContext to define the feature to be installed.