interceptContextAgentFeature

Sets a feature handler for agent context events.

Parameters

feature

The feature for which to register the handler

handler

The handler responsible for processing the feature within the agent context

Example:

pipeline.interceptContextAgentFeature(MyFeature) { agentContext ->
// Inspect agent context
}