pub struct ToolContribution { /* private fields */ }Expand description
One explicitly sourced tool instance ready for product composition.
Implementations§
Source§impl ToolContribution
impl ToolContribution
Sourcepub fn new(source: ToolContributionSource, tool: Arc<dyn AgentTool>) -> Self
pub fn new(source: ToolContributionSource, tool: Arc<dyn AgentTool>) -> Self
Creates a sourced tool contribution.
Sourcepub fn source(&self) -> &ToolContributionSource
pub fn source(&self) -> &ToolContributionSource
Returns the stable source identity.
Trait Implementations§
Source§impl Clone for ToolContribution
impl Clone for ToolContribution
Source§fn clone(&self) -> ToolContribution
fn clone(&self) -> ToolContribution
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 ToolContribution
impl !UnwindSafe for ToolContribution
impl Freeze for ToolContribution
impl Send for ToolContribution
impl Sync for ToolContribution
impl Unpin for ToolContribution
impl UnsafeUnpin for ToolContribution
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