pub struct BeforeInferenceContext<'s, 'a> { /* private fields */ }Implementations§
Source§impl<'s, 'a> BeforeInferenceContext<'s, 'a>
impl<'s, 'a> BeforeInferenceContext<'s, 'a>
pub fn new(step: &'s mut StepContext<'a>) -> Self
Source§impl<'s, 'a> BeforeInferenceContext<'s, 'a>
impl<'s, 'a> BeforeInferenceContext<'s, 'a>
Sourcepub fn add_system_context(&mut self, text: impl Into<String>)
pub fn add_system_context(&mut self, text: impl Into<String>)
Append a system context line.
Sourcepub fn add_session_message(&mut self, text: impl Into<String>)
pub fn add_session_message(&mut self, text: impl Into<String>)
Append a session message.
Sourcepub fn exclude_tool(&mut self, tool_id: &str)
pub fn exclude_tool(&mut self, tool_id: &str)
Exclude tool by id.
Sourcepub fn include_only(&mut self, tool_ids: &[&str])
pub fn include_only(&mut self, tool_ids: &[&str])
Keep only listed tools.
Sourcepub fn terminate_behavior_requested(&mut self)
pub fn terminate_behavior_requested(&mut self)
Terminate current run as behavior-requested before inference.
Sourcepub fn request_termination(&mut self, reason: TerminationReason)
pub fn request_termination(&mut self, reason: TerminationReason)
Request run termination with a specific reason.
Trait Implementations§
Source§impl<'s, 'a> PhaseContext for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> PhaseContext for BeforeInferenceContext<'s, 'a>
Auto Trait Implementations§
impl<'s, 'a> Freeze for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> !RefUnwindSafe for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> Send for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> !Sync for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> Unpin for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> UnsafeUnpin for BeforeInferenceContext<'s, 'a>
impl<'s, 'a> !UnwindSafe for BeforeInferenceContext<'s, 'a>
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