type: meya.button.trigger
class: ButtonTrigger
path: /meya/button/trigger/trigger.py
signature: button_id
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
bot | ○ | ○ | BotRef | null | Bot used to evaluate this trigger |
action | ○ | ◉ | TriggerActionEntry ActionComponentSpec | Action executed if this trigger matches | |
when | ○ | ○ | typing.Any | true | |
confidence | ○ | ○ | Real | null | Custom confidence override value for trigger matches |
button_id | ◉ | ◉ | str | ||
text | ○ | ○ | str | null |
Examples
Basic
triggers:
- button_id: STRING
steps:
- say: STRING
Full
type: meya.button.trigger
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
button_id: STRING
text: STRING