pub struct ActivationContext {
pub session_id: SessionId,
pub current_tools: Vec<String>,
pub workspace: PathBuf,
}Expand description
Context passed to Tool::should_activate for Deferred tools.
Built once per react-loop iteration; tools inspect it to decide whether they should be exposed to the model this turn.
Fields§
§session_id: SessionIdCurrent session ID.
current_tools: Vec<String>Names of tools already activated (Direct + activated Deferred) this turn.
workspace: PathBufWorkspace / working directory path.
Trait Implementations§
Source§impl Clone for ActivationContext
impl Clone for ActivationContext
Source§fn clone(&self) -> ActivationContext
fn clone(&self) -> ActivationContext
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 moreAuto Trait Implementations§
impl Freeze for ActivationContext
impl RefUnwindSafe for ActivationContext
impl Send for ActivationContext
impl Sync for ActivationContext
impl Unpin for ActivationContext
impl UnsafeUnpin for ActivationContext
impl UnwindSafe for ActivationContext
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