createAiAssistantForInstant

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.

instantServerUrl

The URL of the Instant Server.

documentLayerJwts

List of JWT tokens for each document layer to be analyzed.

aiAssistantServerUrl

Full server URL where your instance of the Nutrient AI Assistant can be reached (e.g., "https://example.com:8080" or "http://localhost:4000").

sessionId

A unique identifier for the chat session, which can be used to recall a session in the future.

jwtToken

Function that generates a JSON Web Token for AI Assistant authentication. It receives the list of Instant document IDs and returns the JWT token.