pub struct ToolInvocationContext {
pub event_tx: Option<UnboundedSender<AgentEvent>>,
pub sudo_password_resolver: Option<SudoPasswordResolver>,
pub cancel_token: Option<CancelToken>,
}Fields§
§event_tx: Option<UnboundedSender<AgentEvent>>§sudo_password_resolver: Option<SudoPasswordResolver>When set, bash can request a sudo password without exposing it to the model.
cancel_token: Option<CancelToken>Trait Implementations§
Source§impl Clone for ToolInvocationContext
impl Clone for ToolInvocationContext
Source§fn clone(&self) -> ToolInvocationContext
fn clone(&self) -> ToolInvocationContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ToolInvocationContext
impl Default for ToolInvocationContext
Source§fn default() -> ToolInvocationContext
fn default() -> ToolInvocationContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolInvocationContext
impl RefUnwindSafe for ToolInvocationContext
impl Send for ToolInvocationContext
impl Sync for ToolInvocationContext
impl Unpin for ToolInvocationContext
impl UnsafeUnpin for ToolInvocationContext
impl UnwindSafe for ToolInvocationContext
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