Interface EventStreamAiHandler
- All Known Implementing Classes:
ScriptHandlerEditor
Implemented by a handler editor that wants an "Ask AI" assist on its editing surface.
Handler editors are created lazily from the registry — possibly by another module — so the AI
grounding cannot be handed to their constructor. Instead the host recognizes editors that
implement this interface and calls initialize(EventStreamContext, EventStreamAiContext) once, right after creating the editor and
loading its configuration. Editors with no prompt-driven surface simply do not implement it and
are never handed a grounding.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(EventStreamContext context, EventStreamAiContext aiContext) Mount this editor's AI assist againstaiContext, the grounding for the stage the editor sits at: the shape of the events it observes, and on-demand sample tools that fetch a real one.
-
Method Details
-
initialize
Mount this editor's AI assist against
aiContext, the grounding for the stage the editor sits at: the shape of the events it observes, and on-demand sample tools that fetch a real one.Called once per editor instance, after the editor's configuration has been loaded.
- Parameters:
context- the Designer-side context the editor was built foraiContext- the grounding for this editor's stage,EventStreamAiContext.NONEwhere there is no configured stream to ground
-