Expand description
Execution boundary constants (inspired by OpenAI Codex agent loop patterns) Reference: https://openai.com/index/unrolling-the-codex-agent-loop/
Constants§
- DEFAULT_
TIMEOUT_ SECS - Default timeout for agent loop execution (10 minutes) Used when no timeout is specified or when 0 is passed
- MAX_
TIMEOUT_ SECS - Maximum allowed timeout (1 hour) Any user-specified timeout above this is capped
- MIN_
TIMEOUT_ SECS - Minimum timeout (10 seconds) Prevents unreasonably short timeouts that would cause failures
Functions§
- resolve_
timeout - Resolve timeout with deterministic bounds (never returns 0 or unbounded) This pattern ensures execution always has a bounded duration.