pub struct ToolRegistry { /* private fields */ }Implementations§
Source§impl ToolRegistry
impl ToolRegistry
pub fn builder() -> ToolRegistryBuilder
Sourcepub fn install(&self, builder: BashBuilder) -> BashBuilder
pub fn install(&self, builder: BashBuilder) -> BashBuilder
Install this registry across shell, embedded Python, and embedded
TypeScript on builder. Runtime surfaces are included when this
crate’s python / typescript features are enabled and share the
registry’s callback and policy Arcs. Python and TypeScript use the
limits of the builder’s current ExecutionProfile,
so set the profile first.
Sourcepub fn trace(&self) -> ToolDefInvocationTrace
pub fn trace(&self) -> ToolDefInvocationTrace
Create a fresh trace sink suitable for one request/tenant.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolRegistry
impl !UnwindSafe for ToolRegistry
impl Freeze for ToolRegistry
impl Send for ToolRegistry
impl Sync for ToolRegistry
impl Unpin for ToolRegistry
impl UnsafeUnpin for ToolRegistry
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