csp.agent.command

Match the agent command against a regex pattern.

Meya uses the Python regular expression syntax.

Element details

type: meya.csp.trigger.agent.command
class: AgentCommandTrigger
path: /meya/csp/trigger/agent/command.py
signature: agent_command

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.○○nullSpec
botBot used to evaluate this trigger.○○nullBotRef
actionAction executed if this trigger matches. Check the trigger action guide for more info.◉○TriggerActionEntry
ActionComponentSpec
whenCustom condition for when to evaluate this trigger. Check the trigger when guide for more info.◉○Any
confidenceOverride the default confidence with a custom value for trigger matches.○○nullReal
agent_commandThe regex (regular expression) pattern to match the agent input against.◉◉str
ignorecaseIgnore the case of the agent command.○○nullbool

Usage reference

Basic

triggers:
  - when: ANY
    agent_command: STRING
steps:
  - say: STRING

Full

type: meya.csp.trigger.agent.command
spec:
  type: STRING
  data:
    STRING: ANY
  timeout: 123
  trigger_when: ANY
bot: element.name
action: COMPONENT
when: ANY
confidence: 123
agent_command: STRING
ignorecase: false