Behavior: The flow waits for the agent to finish processing before moving to the next step or returning a response.
Use when:
- Building API endpoints that need to return agent results
- Creating real-time chat experiences
- Form submissions that show agent responses
- Any synchronous interaction where users wait for results
Pros:
- ✅ Users get immediate responses
- ✅ Easier to handle errors and retries
- ✅ Simpler flow logic
- ✅ Can pass agent output to subsequent steps
Cons:
- ⚠️ User waits for agent to complete (may be 5-30 seconds)
- ⚠️ Request times out if agent takes too long
- ⚠️ Not suitable for very long-running tasks