pub struct TurnExecutor {
pub thread_id: ThreadId,
pub session_id: SessionId,
pub exec_policy: ExecPolicyEngine,
pub max_steps: u32,
}Expand description
Per-turn execution context. The execpolicy engine is the sole authority
for approvals; both TUI and headless construct it from the same
permissions.toml / ConfigStore so the gate never diverges.
Fields§
§thread_id: ThreadId§session_id: SessionId§exec_policy: ExecPolicyEngine§max_steps: u32Implementations§
Source§impl TurnExecutor
impl TurnExecutor
pub fn new( thread_id: ThreadId, session_id: SessionId, exec_policy: ExecPolicyEngine, max_steps: u32, ) -> Self
pub fn can_execute(&self, step: u32) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnExecutor
impl RefUnwindSafe for TurnExecutor
impl Send for TurnExecutor
impl Sync for TurnExecutor
impl Unpin for TurnExecutor
impl UnsafeUnpin for TurnExecutor
impl UnwindSafe for TurnExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more