featureOrThrow

Retrieves a feature of the specified type from the context or throws an exception if it is not available.

Return

The instance of the requested feature of type Feature.

Parameters

feature

The AIAgentFeature defining the specific feature to be retrieved. This provides the configuration and unique identification of the feature.

Throws

if the requested feature is not installed in the agent.