Class AiSelectionOverride

java.lang.Object
org.freeplane.api.ai.AiSelectionOverride

public class AiSelectionOverride extends Object
Overrides the selection structure injected into the first AI prompt message.

This affects only prompt composition. It does not change the Freeplane UI selection and does not replace later tool results; tools still observe their own current input and permissions.

Since:
1.13.3
  • Constructor Details

    • AiSelectionOverride

      public AiSelectionOverride(MindMap mindMap, List<String> selectedNodeIds)
      Creates a prompt-time selection override.

      The node IDs are trimmed, kept in the supplied order, and must be unique. They should identify nodes in mindMap.

      Parameters:
      mindMap - map used for the injected selection
      selectedNodeIds - ordered selected node IDs; must not contain null, blank, or duplicate values
  • Method Details

    • getMindMap

      public MindMap getMindMap()
      Returns the map used for the injected selection.
      Returns:
      mind map
    • getSelectedNodeIds

      public List<String> getSelectedNodeIds()
      Returns ordered selected node IDs.
      Returns:
      immutable ordered node-ID list
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object