feature

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

Retrieves a feature associated with the given key from the AI agent storage.

Return

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

Parameters

key

The key of the feature to retrieve.


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

Retrieves an instance of the specified feature from the AI agent's storage.

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.