AICourseAssist

aiplacement_courseassist/placement~ AICourseAssist

new AICourseAssist(userId, contextId)

Description:
  • Constructor.

Source:
Parameters:
Name Type Description
userId Integer

The user ID.

contextId Integer

The context ID.

Members

contextId :Integer

Description:
  • The context ID.

Source:

The context ID.

Type:
  • Integer

userId :Integer

Description:
  • The user ID.

Source:

The user ID.

Type:
  • Integer

Methods

acceptPolicy() → {Promise.<Object>}

Description:
  • Accept the policy.

Source:
Returns:
Type
Promise.<Object>

addPadding()

Description:
  • Add padding to the page to make space for the AI drawer.

Source:

closeAIDrawer()

Description:
  • Close the AI drawer.

Source:

disableSummaryButton()

Description:
  • Disable the summary button.

Source:

displayError()

Description:
  • Display the error.

Source:

displayLoading()

Description:
  • Display the loading spinner.

Source:

displayPolicy()

Description:
  • Display the policy.

Source:

displayResponse(content)

Description:
  • Display the response.

Source:
Parameters:
Name Type Description
content String

The content to display.

(async) displaySummary()

Description:
  • Display the summary.

Source:

enableSummaryButton()

Description:
  • Enable the summary button and focus on it.

Source:

getTextContent() → {String}

Description:
  • Get the text content of the main region.

Source:
Returns:

The text content.

Type
String

hasGeneratedContent() → {boolean}

Description:
  • Check if the AI drawer has generated content or not.

Source:
Returns:

True if the AI drawer has generated content, false otherwise.

Type
boolean

isAIDrawerOpen() → {boolean}

Description:
  • Check if the AI drawer is open.

Source:
Returns:

True if the AI drawer is open, false otherwise.

Type
boolean

(async) isPolicyAccepted() → {bool}

Description:
  • Check if the policy is accepted.

Source:
Returns:

True if the policy is accepted, false otherwise.

Type
bool

isRequestCancelled() → {boolean}

Description:
  • Check if the request is cancelled.

Source:
Returns:

True if the request is cancelled, false otherwise.

Type
boolean

openAIDrawer()

Description:
  • Open the AI drawer.

Source:

registerErrorEventListeners()

Description:
  • Register event listeners for the error.

Source:

registerEventListeners()

Description:
  • Register event listeners.

Source:

registerPolicyEventListeners()

Description:
  • Register event listeners for the policy.

Source:

registerResponseEventListeners()

Description:
  • Register event listeners for the response.

Source:

removePadding()

Description:
  • Remove padding from the page.

Source:

toggleAIDrawer()

Description:
  • Toggle the AI drawer.

Source: