feature

open override fun <Feature : Any> feature(feature: AIAgentFeature<*, Feature>): Feature?(source)

Retrieves an instance of the specified feature from the current context.

Return

The feature implementation of the specified type if available, or null if it is not present.

Parameters

feature

The feature representation, including its key and configuration details, for identifying and accessing the associated implementation.