Designing Reliable LLM Agents With Deterministic Control Flow hackernoon.com