featureOrThrow

Retrieves a feature from the AIAgentContext.pipeline associated with this context 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.