Expand description
Shared approvals and sandboxing traits used by tool runtimes (from Codex)
Consolidates the approval flow primitives (ApprovalDecision, ApprovalStore,
ApprovalCtx, Approvable) together with the sandbox orchestration traits
and helpers (Sandboxable, ToolRuntime, SandboxAttempt, etc.).
Re-exports§
pub use crate::exec_policy::AskForApproval;pub use crate::exec_policy::ExecApprovalRequirement;pub use crate::exec_policy::ExecPolicyAmendment;pub use crate::exec_policy::RejectConfig;
Structs§
- Approval
Ctx - Context for approval decisions (from Codex)
- Approval
Store - Store for cached approval decisions (from Codex)
- Command
Spec - Command specification for execution
- ExecEnv
- Execution environment after sandbox transformation
- Exec
Tool Call Output - Output from command execution (from Codex)
- Sandbox
Attempt - Sandbox attempt context (from Codex)
- Sandbox
Manager - Sandbox manager for creating sandbox attempts (from Codex)
- Sandbox
Policy - Sandbox policy configuration (from Codex protocol)
- ToolCtx
- Tool execution context for runtimes (from Codex)
Enums§
- Network
Access - Network access policy
- Review
Decision - User’s decision on an approval request (from Codex)
- Sandbox
Mode - Sandbox mode (from Codex)
- Sandbox
Override - Sandbox override for first attempt (from Codex)
- Sandbox
Transform Error - Error during sandbox transformation
- Sandbox
Type - Sandbox type for execution (from Codex)
- Sandboxable
Preference - Sandbox preference for a tool (from Codex)
- Tool
Error - Error from tool runtime execution (from Codex)
Traits§
- Approvable
- Trait for tools that require approval (from Codex)
- Sandboxable
- Trait for tools that can be sandboxed (from Codex)
- Tool
Runtime - Trait for tool runtimes (from Codex)
Functions§
- canonical_
sandbox_ policy - default_
exec_ approval_ requirement - Compute default exec approval requirement (from Codex)
- execute_
env - Execute command with environment (from Codex)
- with_
cached_ approval - Helper function to cache approval decisions (from Codex)
Type Aliases§
- BoxFuture
- Type alias for boxed future (from Codex)