pub struct CustomTrigger {
pub trigger: String,
pub prompt: Option<String>,
pub skip_dir_select: bool,
pub working_dir: Option<String>,
pub ack_message: Option<String>,
}Fields§
§trigger: StringKeyword that activates the bot. Matched at the start of a group message when it is followed by a word boundary (whitespace, punctuation, or end of text), so a short keyword does not match inside longer words.
prompt: Option<String>Initial prompt used when this trigger creates a new session. Trailing user text after the keyword is appended after the prompt.
skip_dir_select: boolWhen true, a session created by this trigger skips the directory
selection card and uses workingDir (or the bot’s default).
working_dir: Option<String>Working directory used when this trigger creates a session directly.
Takes precedence over the bot’s workingDir.
ack_message: Option<String>Message replied immediately (as a reply to the triggering message) when this trigger creates a session, so users know the task was accepted before the longer-running work produces output.
Trait Implementations§
Source§impl Clone for CustomTrigger
impl Clone for CustomTrigger
Source§fn clone(&self) -> CustomTrigger
fn clone(&self) -> CustomTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more