Ai Assistant
Interface defining the contract for an AI Assistant. This interface declares the methods that any AI Assistant implementation must provide.
Properties
Functions
Checks if a document is already ingested by verifying its ID and file hash.
Emits a context specific message to the server with contentText It is used in text content selection
Emits a message to the server.
Emits selected text to Ai Assistant
Enables or disables text selection in the AI Assistant chat interface. When disabled, users cannot long-press to select and copy text from chat messages.
Retrieves the session history for a given session ID.
Ingests a document by uploading it to the server.
Initializes the assistant.
Initializes a socket connection.
Ingests a document with optional layer. Requires Document Engine.
Returns whether text selection is currently enabled in the AI Assistant chat interface.
Updates the assistant with the latest data.