mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
Adding more guards to agent: * Max depth or 1 (i.e. a sub-agent can't spawn another one) * Max 12 sub-agents in total
13 lines
405 B
Rust
13 lines
405 B
Rust
pub(crate) mod control;
|
|
mod guards;
|
|
pub(crate) mod role;
|
|
pub(crate) mod status;
|
|
|
|
pub(crate) use codex_protocol::protocol::AgentStatus;
|
|
pub(crate) use control::AgentControl;
|
|
pub(crate) use guards::MAX_THREAD_SPAWN_DEPTH;
|
|
pub(crate) use guards::exceeds_thread_spawn_depth_limit;
|
|
pub(crate) use guards::next_thread_spawn_depth;
|
|
pub(crate) use role::AgentRole;
|
|
pub(crate) use status::agent_status_from_event;
|