#[non_exhaustive]pub enum ToolCallerDefinition {
Local(LocalBindFn),
Provider(PrepareProviderOptionsFn),
}Expand description
How a caller tool reaches its callees.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Local(LocalBindFn)
The caller runs locally and receives the callees as a ToolSet.
Provider(PrepareProviderOptionsFn)
The provider performs the calls; callees are marked through provider options.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallerDefinition
impl Clone for ToolCallerDefinition
Source§fn clone(&self) -> ToolCallerDefinition
fn clone(&self) -> ToolCallerDefinition
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 !RefUnwindSafe for ToolCallerDefinition
impl !UnwindSafe for ToolCallerDefinition
impl Freeze for ToolCallerDefinition
impl Send for ToolCallerDefinition
impl Sync for ToolCallerDefinition
impl Unpin for ToolCallerDefinition
impl UnsafeUnpin for ToolCallerDefinition
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