TsgcAIOpenAIChatBot › Events

TsgcAIOpenAIChatBot Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Completion

NameDescription
OnChatCompletionFires when the OpenAI ChatCompletion API returns an assistant reply; exposes Role and Content.

Audio

NameDescription
OnAudioStartFires when the AudioRecorder begins capturing microphone audio.
OnAudioStopFires after microphone capture stops and before transcription is sent to Whisper.
OnTranscriptionFires when Whisper returns the speech-to-text result; lets you edit the text or reject it.

All Events (alphabetical)

NameDescription
OnAudioStartFires when the AudioRecorder begins capturing microphone audio.
OnAudioStopFires after microphone capture stops and before transcription is sent to Whisper.
OnChatCompletionFires when the OpenAI ChatCompletion API returns an assistant reply; exposes Role and Content.
OnTranscriptionFires when Whisper returns the speech-to-text result; lets you edit the text or reject it.