pub struct Extensions { /* private fields */ }Expand description
Typed application values a tool can read from its ToolContext,
keyed by type: at most one value per type. The application sets them on
the agent with crate::AgentBuilder::tool_extensions; every call’s
context carries them. Cloning is cheap (values are shared).
Implementations§
Trait Implementations§
Source§impl Clone for Extensions
impl Clone for Extensions
Source§impl Debug for Extensions
impl Debug for Extensions
Auto Trait Implementations§
impl !RefUnwindSafe for Extensions
impl !UnwindSafe for Extensions
impl Forget for Extensions
impl Freeze for Extensions
impl Move for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnsafeUnpin for Extensionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(TypeId, Arc<dyn Any + Sync + Send>)>: UnsafeUnpin,
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