pub struct DriverContextView<'a, M = UnitModeProtocol>where
M: ModeProtocol,{ /* private fields */ }Implementations§
Source§impl<'a, M> DriverContextView<'a, M>where
M: ModeProtocol,
impl<'a, M> DriverContextView<'a, M>where
M: ModeProtocol,
pub fn project_llm_request(&self, use_tools: bool) -> Arc<LlmRequest> ⓘ
pub fn mode_iteration(&self) -> usize
pub fn mode_run_offset(&self) -> usize
pub fn max_turns(&self) -> Option<usize>
pub fn termination(&self) -> &<M as ModeProtocol>::Termination
pub fn autonomous(&self) -> bool
pub fn should_force_exit_after_grace_turn(&self) -> bool
pub fn messages(&self) -> &MessageSequence
pub fn events(&self) -> &[SessionEventRecord<<M as ModeProtocol>::Event>]
Auto Trait Implementations§
impl<'a, M> Freeze for DriverContextView<'a, M>
impl<'a, M = UnitModeProtocol> !RefUnwindSafe for DriverContextView<'a, M>
impl<'a, M> Send for DriverContextView<'a, M>
impl<'a, M> Sync for DriverContextView<'a, M>
impl<'a, M> Unpin for DriverContextView<'a, M>
impl<'a, M> UnsafeUnpin for DriverContextView<'a, M>
impl<'a, M = UnitModeProtocol> !UnwindSafe for DriverContextView<'a, M>
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