interceptContextAgentFeature
fun <TFeature : Any> interceptContextAgentFeature(feature: AIAgentFeature<*, TFeature>, handler: AgentContextHandler<TFeature>)(source)
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
}
Content copied to clipboard