event:emit
Publishes an event to the configured topic so other pipeline steps or external systems can react
Options
| Name | Type | Description |
|---|---|---|
topic | string | The event topic name |
topic_id | string | An identifier scoping the event within the topic |
data | any | The payload to include with the event |
Example
name: Announce a completed summary
actions:
- name: summary
component: inference
vars:
provider: openai
model: gpt-5
prompt: "{{ var.prompt }}"
- name: notify
component: event:emit
vars:
topic: run.progress
topic_id: "{{ var.run_id }}"
data:
stage: summarized
chars: "{{ summary.content | length }}"