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