pub struct GuardCtx {
pub session_id: SessionId,
pub turn_count: u32,
pub user_input: String,
pub model_response: String,
pub finish_reason: FinishReason,
pub available_tools: Vec<String>,
pub reasoning_only_strikes: usize,
pub empty_response_strikes: usize,
pub run_has_tool_calls: bool,
}Expand description
Guard context information
Fields§
§session_id: SessionId§turn_count: u32§user_input: String§model_response: String§finish_reason: FinishReason§available_tools: Vec<String>§reasoning_only_strikes: usize§empty_response_strikes: usize§run_has_tool_calls: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for GuardCtx
impl RefUnwindSafe for GuardCtx
impl Send for GuardCtx
impl Sync for GuardCtx
impl Unpin for GuardCtx
impl UnsafeUnpin for GuardCtx
impl UnwindSafe for GuardCtx
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