create Ai Assistant For Instant
fun createAiAssistantForInstant(context: Context, instantServerUrl: String, documentLayerJwts: List<String>, aiAssistantServerUrl: String, sessionId: String, jwtToken: (List<String>) -> String): ERROR CLASS: Symbol not found for AiAssistant
Factory method to create an instance of the AiAssistant for Instant documents.
Return
An instance of the AiAssistant class.
Parameters
context
Context The context of the application.
instant Server Url
The URL of the Instant Server.
document Layer Jwts
List of JWT tokens for each document layer to be analyzed.
ai Assistant Server Url
Full server URL where your instance of the Nutrient AI Assistant can be reached (e.g., "https://example.com:8080" or "http://localhost:4000").
session Id
A unique identifier for the chat session, which can be used to recall a session in the future.
jwt Token
Function that generates a JSON Web Token for AI Assistant authentication. It receives the list of Instant document IDs and returns the JWT token.