feature

open override fun <Feature : Any> feature(key: AIAgentStorageKey<Feature>): Feature?(source)

Retrieves a feature associated with the given key from the current context.

Return

The feature associated with the specified key, or null if no such feature exists.

Parameters

key

The key of the feature to retrieve.