file-linesFunctions

talk

Send a message to the concierge and receive a context-aware voice response.

exports.mad_goon:talk(source, message, isNetworked, location)
  • source: number

    • The player's server ID

  • message: string

    • The message to send

  • isNetworked?: boolean

    • Whether to play speech for nearby players

  • location?: LocationInput

    • The location to play the speech from

  • returns: boolean

    • Whether the voice was triggered successfully


isModelReady

Check if the NLP model has been trained and is ready.

  • returns: boolean

    • Whether the model is trained and ready


classifyInput

Classify text input without triggering a voice response.

  • input: string

    • The text to classify

  • returns: ClassificationResult | nil

    • The classification result, or nil if classification failed

Last updated