feature
expect open override fun <TFeature : Any> feature(featureClass: KClass<TFeature>, feature: AIAgentFeature<*, TFeature>): TFeature?(source)
Retrieves a feature implementation from the current pipeline using the specified feature, if it is registered.
Return
The feature associated with the provided key, or null if no matching feature is found.
Parameters
feature
A feature to fetch.
featureClass
The KClass of the feature to be retrieved.
Type Parameters
TFeature
A feature implementation type.
Throws
if the specified featureClass does not correspond to a registered feature.