Class Sessions
java.lang.Object
uno.anahata.ai.nb.tools.Sessions
A tool for managing and inspecting active Anahata AI sessions within NetBeans.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdumpSession(String sessionId) Gets a detailed, forensic-grade dump of another active session's context by its UUID.Lists all active Anahata AI sessions in the IDE with detailed status information.static StringstartSession(String initialMessage, String nickname, List<String> attachmentPaths) Starts a new Anahata AI session with an initial user message and optional file attachments.
-
Constructor Details
-
Sessions
public Sessions()
-
-
Method Details
-
listActiveSessions
-
dumpSession
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.
-
