pub struct ToolSearch { /* private fields */ }Expand description
Model-adaptive deferred tool-loading configuration.
Implementations§
Source§impl ToolSearch
impl ToolSearch
Sourcepub fn automatic() -> ToolSearch
pub fn automatic() -> ToolSearch
Select hosted tool search when the model supports it and the generic client-side implementation otherwise.
Sourcepub fn threshold(self, threshold: usize) -> ToolSearch
pub fn threshold(self, threshold: usize) -> ToolSearch
Override the minimum total tool count at which schemas are deferred.
Sourcepub fn never_defer<I, S>(self, names: I) -> ToolSearch
pub fn never_defer<I, S>(self, names: I) -> ToolSearch
Keep these tools’ full schemas visible under the generic fallback.
Trait Implementations§
Source§impl Clone for ToolSearch
impl Clone for ToolSearch
Source§fn clone(&self) -> ToolSearch
fn clone(&self) -> ToolSearch
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 ToolSearch
impl Debug for ToolSearch
Source§impl Default for ToolSearch
impl Default for ToolSearch
Source§fn default() -> ToolSearch
fn default() -> ToolSearch
Returns the “default value” for a type. Read more
impl Eq for ToolSearch
Source§impl IntoCapability for ToolSearch
impl IntoCapability for ToolSearch
Source§fn into_capability(self) -> CapabilitySpec
fn into_capability(self) -> CapabilitySpec
Consume the value and return its normalized specification.
Source§impl PartialEq for ToolSearch
impl PartialEq for ToolSearch
impl StructuralPartialEq for ToolSearch
Auto Trait Implementations§
impl Freeze for ToolSearch
impl RefUnwindSafe for ToolSearch
impl Send for ToolSearch
impl Sync for ToolSearch
impl Unpin for ToolSearch
impl UnsafeUnpin for ToolSearch
impl UnwindSafe for ToolSearch
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.