Breadcrumbs

AiModule

The AiModule class is responsible for sending text to an AI system and managing the session state.

Methods

public void SendText(string text, string language)

  • Description: Sends a text string to the AI for processing.

  • Parameters:

    • string text: The text to send.

    • string language: The language of the text.

public void GetSessionId()

  • Description: Requests the current session ID from the AI module.

public void SetSessionId(string userId)

  • Description: Sets the session ID for the AI module.

  • Parameters:

    • string userId: The new session ID.

public void SetUserId(string userId)

  • Description: Sets the user ID for the AI module, which can change the AI character within a project.

  • Parameters:

    • string userId: The new user ID.