pub enum ToolExposure {
Direct,
Deferred,
Hidden,
}Expand description
Visibility level of a tool to the LLM model.
Controls whether a tool appears in the tool definitions sent to the model
each turn. Defaults to Direct for backward compatibility.
Variants§
Direct
Always visible to the model. This is the default.
Deferred
Conditionally visible — the tool decides via Tool::should_activate.
Hidden
Never visible to the model (internal/framework tools).
Trait Implementations§
Source§impl Clone for ToolExposure
impl Clone for ToolExposure
Source§fn clone(&self) -> ToolExposure
fn clone(&self) -> ToolExposure
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 Debug for ToolExposure
impl Debug for ToolExposure
impl Eq for ToolExposure
Source§impl PartialEq for ToolExposure
impl PartialEq for ToolExposure
impl StructuralPartialEq for ToolExposure
Auto Trait Implementations§
impl Freeze for ToolExposure
impl RefUnwindSafe for ToolExposure
impl Send for ToolExposure
impl Sync for ToolExposure
impl Unpin for ToolExposure
impl UnsafeUnpin for ToolExposure
impl UnwindSafe for ToolExposure
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<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.