featureOrThrow

Retrieves a specific agent feature of type Feature from the AI agent's storage. If the requested feature is not found, throws an IllegalStateException.

Return

The feature of type Feature if it exists in the agent's storage.

Parameters

feature

The AIAgentFeature instance representing the feature to be retrieved, including its associated key.

Throws

if the feature is not installed in the agent.