What problem does it solve?
It helps you run external, observable side effects safely in a durable TypeScript Golem agent so that recovery after a crash re-executes the right operations together rather than leaving you in a partially-completed state.
Core Features & Use Cases
- Atomic side-effect grouping: Use atomically to wrap groups of external calls (HTTP, other agents, file/network I/O) so they replay together from the start after failure.
- Persistence level control: Use withPersistenceLevel to define how oplog entries are interpreted, including advanced authoring scenarios where you implement custom durability and must handle live vs replay explicitly.
- Idempotency and oplog coordination: Use withIdempotenceMode, oplogCommit, and generateIdempotencyKey to control replay behavior, replication guarantees, and exactly-once-style interactions; optionally adjust behavior via withRetryPolicy.
Quick Start
Ask for an atomic, durable TypeScript pattern that retries a failing HTTP call and groups multiple external side effects so they replay together after a crash.