pub struct ToolAvailabilityView { /* private fields */ }Expand description
Read-only view of the final tool surface after policy filtering.
This is the single source of truth for “what is actually callable right now” and should be consumed by planner / prompt / hint resolution code instead of re-deriving availability from static tables.
Implementations§
Source§impl ToolAvailabilityView
impl ToolAvailabilityView
pub fn has_tool(&self, name: &str) -> bool
pub fn has_any_tool(&self, names: &[&str]) -> bool
pub fn has_skill_hint(&self, hint: &str) -> bool
pub fn has_any_skills(&self) -> bool
pub fn filter_callable_skills<'a>( &self, skills: &'a [LoadedSkill], ) -> Vec<&'a LoadedSkill>
Trait Implementations§
Source§impl Clone for ToolAvailabilityView
impl Clone for ToolAvailabilityView
Source§fn clone(&self) -> ToolAvailabilityView
fn clone(&self) -> ToolAvailabilityView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolAvailabilityView
impl Debug for ToolAvailabilityView
Source§impl Default for ToolAvailabilityView
impl Default for ToolAvailabilityView
Source§fn default() -> ToolAvailabilityView
fn default() -> ToolAvailabilityView
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolAvailabilityView
impl RefUnwindSafe for ToolAvailabilityView
impl Send for ToolAvailabilityView
impl Sync for ToolAvailabilityView
impl Unpin for ToolAvailabilityView
impl UnsafeUnpin for ToolAvailabilityView
impl UnwindSafe for ToolAvailabilityView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more