TriggerFlow
Suggested reading order:
- Overview: boundaries, mental model, and a minimal flow.
- Lifecycle: open / sealed / closed, and start / close entrypoints.
- State and Resources: choosing state, flow_data, and runtime_resources.
- Events and Streams:
emit/whenand runtime stream. - Patterns: branching, match, batch, for_each, event-driven loops.
- Sub-Flow: parent-child flow composition.
- Persistence and Blueprint: save/load and definition export.
- Pause and Resume: human intervention and external resume.
- Distributed Pause and Resume Boundaries: host-managed recovery, resource ownership, and production boundaries.
- Runtime Intervention: adding supplemental context without pausing or mutating the graph.
- Model Integration: calling agents / requests inside chunks.
- Execution Result: reading snapshots, state, compatibility results, interventions, and metadata.
- Compatibility: migrating old
.end(),set_result(), andruntime_data.
Dynamic Task is documented separately as an application-level facade: Dynamic Task. It uses TriggerFlow as the execution substrate, but ordinary users should start from Agently.create_dynamic_task(...).