Interface EventStreamAiContext


public interface EventStreamAiContext
The grounding a handler editor needs to power its "Ask AI" assist.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The inert grounding used where there is no stream to ground: an empty event-data shape and no sample tools.
  • Method Summary

    Modifier and Type
    Method
    Description
    A ready-to-embed description of the .data / .metadata shape a handler's batched events carry — the transform-encoded output when a transform is enabled, otherwise the source-encoded value.
    The on-demand sample tool for the late-stage surfaces (handlers and the error handler), added to the editor's assist agent so the model can fetch a real event when it needs one.
  • Field Details

    • NONE

      static final EventStreamAiContext NONE
      The inert grounding used where there is no stream to ground: an empty event-data shape and no sample tools. Callers never need to null-check.
  • Method Details

    • handlerEventDataShape

      String handlerEventDataShape()
      A ready-to-embed description of the .data / .metadata shape a handler's batched events carry — the transform-encoded output when a transform is enabled, otherwise the source-encoded value. Blank when no configured stream is backing the editor.
    • lateStageSampleTool

      ToolBundle lateStageSampleTool()
      The on-demand sample tool for the late-stage surfaces (handlers and the error handler), added to the editor's assist agent so the model can fetch a real event when it needs one. Contributes no tools when the AI assist is unavailable.