WorkflowStem.Adapters.ConversationHandler behaviour
(workflow_stem v0.2.0)
Copy Markdown
View Source
Behaviour for conversation action handling.
Host applications implement this to connect STEM's :conversation
action type to their conversation system (e.g., ConvEngine.Turn for Atrapos,
or a PubSub pipeline for MOBuS).
Callback arguments
event— the current pipeline event map (%{spec, runtime, event, payload, ...})runtime— the workflow runtime statetrigger—:enter | :chat_message | other atompayload— the event payload mapaction_config— the step's action config from the workflow spec
Return
Must return the (possibly updated) event map. The runtime inside the event will be passed to subsequent pipeline stages.