featureOrThrow

Retrieves a feature from the StatefulSingleUseAIAgent.pipeline associated with this agent using the specified key or throws an exception if it is not available.

Return

The feature associated with the provided key

Parameters

feature

A feature to fetch.

Throws

if the TFeature feature does not correspond to a registered feature.

if the feature is not found.