All docs
Context·
property
StepContext.entity_id
the owning entity's id, or None for a loose step
Python
entity_id: str | None
Returns str | None — the owning entity's id, or None
Example#
Python
ctx.emit("pipeline/entity/note", entity=ctx.entity_id, msg="reprocessed")
Notes#
Read-only. It is None when the step is wired loosely rather than owned by an entity. Like
step_id, use it only to key events — not to read cached state.
See also#
API: step_id · emit · StepContext
Guides: Parameters vs ports
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown