onTrigger

abstract fun onTrigger(trigger: ChatTrigger)

Handle a system-initiated chat trigger. The trigger prompt is sent to the LLM but not stored in the conversation. Only the chatbot's response is stored and sent to the output channel.

Parameters

trigger

the chat trigger to process