Interface PromptAssist.Option

All Known Implementing Classes:
PromptAssist.Option.DrillIn, PromptAssist.Option.Insert, PromptAssist.Option.InsertOrDrillIn
Enclosing interface:
PromptAssist

public static sealed interface PromptAssist.Option permits PromptAssist.Option.Insert, PromptAssist.Option.DrillIn, PromptAssist.Option.InsertOrDrillIn
One row in the popup.

The three variants encode the only three combinations of "can be confirmed" and "can be expanded" that make sense for a popup row:

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    A "folder-like" row: selecting it rewrites the trigger span to nextQuery and asks every assist for fresh options.
    static final record 
    A terminal row: selecting it splices @<id>:<path> — built by the framework from the owning assist's PromptAssist.id() and this row's PromptAssist.Option.Insert.path — into the prompt at the trigger span, closes the popup, and registers a ContextReference the framework resolves at submit time.
    static final record 
    A row that is both confirmable and expandable.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
     
     
  • Method Details

    • label

      String label()
      Returns:
      the primary text shown on the row.
    • detail

      @Nullable String detail()
      Returns:
      optional secondary text shown in a muted color beneath or beside the label. Null when the label alone is enough.