TsgcAIOpenAIChatBot › Events
TsgcAIOpenAIChatBot Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
Completion
| Name | Description |
| OnChatCompletion | Fires when the OpenAI ChatCompletion API returns an assistant reply; exposes Role and Content. |
Audio
| Name | Description |
| OnAudioStart | Fires when the AudioRecorder begins capturing microphone audio. |
| OnAudioStop | Fires after microphone capture stops and before transcription is sent to Whisper. |
| OnTranscription | Fires when Whisper returns the speech-to-text result; lets you edit the text or reject it. |
All Events (alphabetical)
| Name | Description |
| OnAudioStart | Fires when the AudioRecorder begins capturing microphone audio. |
| OnAudioStop | Fires after microphone capture stops and before transcription is sent to Whisper. |
| OnChatCompletion | Fires when the OpenAI ChatCompletion API returns an assistant reply; exposes Role and Content. |
| OnTranscription | Fires when Whisper returns the speech-to-text result; lets you edit the text or reject it. |