Question: Suspend/Resume with Modifications
Building a workflow where generated content needs user approval. User should be able to request changes and have the step regenerate until satisfied.
Flow:
Example:
Context:
Actual playground behavior: Only "Approve" button → no way to provide feedback or reject
Is there an example of this pattern anywhere? How should modification feedback be passed back to regenerate content?
Or we can resolve inside the step the modification without being needed to use
Thanks!
Flow:
- Step generates content → suspends
- User reviews → provides feedback via agent chat
- If changes needed → step regenerates → suspends again
- Repeat until user approves → proceed to next step of the workflow.
.dountil() loop?Example:
Context:
- Agent-driven (conversational, not UI buttons)
- User says "make it shorter" → agent calls resume({ approved: false, feedback: "make it shorter" })
- Step regenerates and suspends again for review
.dountil() loop?- Generate → suspend → regenerate → suspend again → repeat until confirmed?
Actual playground behavior: Only "Approve" button → no way to provide feedback or reject
Is there an example of this pattern anywhere? How should modification feedback be passed back to regenerate content?
Or we can resolve inside the step the modification without being needed to use
.dountil() at workflow on step level?Thanks!