interceptContextAgentFeature
fun <TFeature : Any> interceptContextAgentFeature(feature: AIAgentFeature<*, TFeature>, handler: AgentContextHandler<TFeature>)(source)
Set feature handler for Context Stage events
Parameters
handler
The handler responsible for processing the feature within the stage context
Example:
pipeline.interceptContextStageFeature(MyFeature) { stageContext: AIAgentStageContext ->
// Inspect stage context
}
Content copied to clipboard