pub struct ToolComposite {
pub entries: Vec<ToolCompositeEntry>,
}Expand description
A tool composite — one or more tool entries.
Fields§
§entries: Vec<ToolCompositeEntry>The tool entries in this composite.
Implementations§
Source§impl ToolComposite
impl ToolComposite
Sourcepub fn from_function(f: Arc<dyn ToolFunction>) -> Self
pub fn from_function(f: Arc<dyn ToolFunction>) -> Self
Create a composite containing a single runtime tool function.
Sourcepub fn from_built_in(tool: Tool) -> Self
pub fn from_built_in(tool: Tool) -> Self
Create a composite containing a single built-in tool declaration.
Trait Implementations§
Source§impl BitOr for ToolComposite
Compose two tool composites with |.
impl BitOr for ToolComposite
Compose two tool composites with |.
Source§type Output = ToolComposite
type Output = ToolComposite
The resulting type after applying the
| operator.Source§impl Clone for ToolComposite
impl Clone for ToolComposite
Source§fn clone(&self) -> ToolComposite
fn clone(&self) -> ToolComposite
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 moreAuto Trait Implementations§
impl Freeze for ToolComposite
impl !RefUnwindSafe for ToolComposite
impl Send for ToolComposite
impl Sync for ToolComposite
impl Unpin for ToolComposite
impl !UnwindSafe for ToolComposite
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