type: meya.csp.component.session.agent
class: AgentRequestComponent
path: /meya/csp/component/session/agent/request.py
signature: -
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
context | ○ | ○ | dict | {} | Send context data with this component's event |
sensitive | ○ | ○ | bool | false | Mark this component's event as sensitive |
triggers | ○ | ○ | list | [] | Activate these dynamic triggers when the component runs |
say | ○ | ○ | str | null | |
integration | ○ | ◉ | CspIntegrationRef | ||
note | ○ | ○ | str | null | |
timeout | ○ | ○ | int | 60 | |
timeout_flow | ○ | ○ | str | null | |
data | ○ | ○ | dict | null |
Examples
Basic
triggers:
- keyword: meya.csp.component.session.agent
steps:
- type: meya.csp.component.session.agent
integration: integration.generic
Full
triggers:
- keyword: meya.csp.component.session.agent
steps:
- type: meya.csp.component.session.agent
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
context:
STRING: ANY
sensitive: false
triggers:
- type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
say: STRING
integration: integration.generic
note: STRING
timeout: 123
timeout_flow: STRING
data:
foo: bar