pub struct LoopContext {
pub llm: Arc<dyn Llm>,
pub tools: Arc<dyn ToolSet>,
pub memory: Arc<dyn MemoryPolicy>,
pub critics: Option<Arc<CompositeCritic>>,
pub critic_trigger: CriticTrigger,
pub events: ScopedEmitter,
pub budget: Arc<dyn BudgetHandle>,
pub cancellation: Cancellation,
pub approval: Arc<dyn ApprovalChannel>,
pub workspace: Option<Arc<Workspace>>,
pub revision_depth_cap: u32,
pub max_turns: u32,
}Fields§
§llm: Arc<dyn Llm>§tools: Arc<dyn ToolSet>§memory: Arc<dyn MemoryPolicy>§critics: Option<Arc<CompositeCritic>>Optional critic (usually a CompositeCritic for multi-critic
setups). None disables all critic invocations regardless of
trigger setting.
critic_trigger: CriticTrigger§events: ScopedEmitter§budget: Arc<dyn BudgetHandle>§cancellation: Cancellation§approval: Arc<dyn ApprovalChannel>§workspace: Option<Arc<Workspace>>Optional per-run workspace. Propagated into
ToolContext.workspace for every tool call so the shipped
fs / bash tools (which already consult
ToolContext.workspace_path()) scope filesystem access to
this directory. None leaves tools unscoped (they fall back
to cwd).
revision_depth_cap: u32§max_turns: u32Auto Trait Implementations§
impl Freeze for LoopContext
impl !RefUnwindSafe for LoopContext
impl Send for LoopContext
impl Sync for LoopContext
impl Unpin for LoopContext
impl UnsafeUnpin for LoopContext
impl !UnwindSafe for LoopContext
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