Class Sessions

java.lang.Object
uno.anahata.ai.nb.tools.Sessions

public class Sessions extends Object
A tool for managing and inspecting active Anahata AI sessions within NetBeans.
  • Constructor Details

    • Sessions

      public Sessions()
  • Method Details

    • listActiveSessions

      public static List<String> listActiveSessions()
      Lists all active Anahata AI sessions in the IDE with detailed status information.
      Returns:
      A list of session status strings.
    • dumpSession

      public static String dumpSession(String sessionId)
      Gets a detailed, forensic-grade dump of another active session's context by its UUID.
      Parameters:
      sessionId - The UUID of the session to dump.
      Returns:
      The detailed Markdown dump of the session.
      Throws:
      IllegalArgumentException - if the session is not found.
    • startSession

      public static String startSession(String initialMessage, String nickname, List<String> attachmentPaths) throws IOException
      Starts a new Anahata AI session with an initial user message and optional file attachments.
      Parameters:
      initialMessage - The first message to send to the new session.
      nickname - An optional nickname for the new session.
      attachmentPaths - A list of absolute file paths to attach to the first message.
      Returns:
      The UUID of the newly created session.
      Throws:
      IOException - if an attachment cannot be processed.