Skip to main content

Module triggers

Module triggers 

Source

Functionsยง

custom_trigger_rest
Text that follows the trigger keyword, with leading separators removed. Returns None when the message is exactly the keyword.
resolve_custom_trigger
Returns the first configured trigger whose keyword starts the trimmed text, respecting a word boundary after the keyword.
resolve_trigger_message
The effective initial message for a session created by a trigger: the configured prompt plus any trailing user text, or the raw text when the trigger has no prompt.