event:emit

Publishes an event to the configured topic so other pipeline steps or external systems can react

Options

NameTypeDescription
topicstringThe event topic name
topic_idstringAn identifier scoping the event within the topic
dataanyThe 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 }}"