pub enum ScopeLevel {
Global = 0,
Agent = 1,
Run = 2,
Turn = 3,
}Expand description
Well-known scope levels for documentation and ordering.
These are advisory labels — the actual ordering is determined by push/pop sequence, not by the enum value. Use these as convention when building runtime integrations.
Variants§
Global = 0
Global tools available to all agents (e.g., shell, file system).
Agent = 1
Agent-level tools registered when an agent definition is loaded.
Run = 2
Run-level tools for the lifetime of a single run() invocation.
Turn = 3
Turn-level tools for a single iteration within a run.
Trait Implementations§
Source§impl Clone for ScopeLevel
impl Clone for ScopeLevel
Source§fn clone(&self) -> ScopeLevel
fn clone(&self) -> ScopeLevel
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 moreimpl Copy for ScopeLevel
Source§impl Debug for ScopeLevel
impl Debug for ScopeLevel
impl Eq for ScopeLevel
Source§impl Hash for ScopeLevel
impl Hash for ScopeLevel
Source§impl PartialEq for ScopeLevel
impl PartialEq for ScopeLevel
Source§fn eq(&self, other: &ScopeLevel) -> bool
fn eq(&self, other: &ScopeLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScopeLevel
Auto Trait Implementations§
impl Freeze for ScopeLevel
impl RefUnwindSafe for ScopeLevel
impl Send for ScopeLevel
impl Sync for ScopeLevel
impl Unpin for ScopeLevel
impl UnsafeUnpin for ScopeLevel
impl UnwindSafe for ScopeLevel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.