pub struct CallableRegistry { /* private fields */ }Expand description
Thread-safe registry for callables
Allows registering any callable type (LlmCallable, GraphCallable, FnCallable, etc.) and looking them up by name. Used by the unified agent/stream endpoint.
Implementations§
Source§impl CallableRegistry
impl CallableRegistry
Sourcepub fn register(&self, name: String, callable: DynCallable)
pub fn register(&self, name: String, callable: DynCallable)
Sourcepub fn get(&self, name: &str) -> Option<DynCallable>
pub fn get(&self, name: &str) -> Option<DynCallable>
Sourcepub fn list(&self) -> Vec<String>
pub fn list(&self) -> Vec<String>
List all registered callable names
§Returns
A vector of all registered callable names, sorted alphabetically
Trait Implementations§
Source§impl Clone for CallableRegistry
impl Clone for CallableRegistry
Auto Trait Implementations§
impl Freeze for CallableRegistry
impl RefUnwindSafe for CallableRegistry
impl Send for CallableRegistry
impl Sync for CallableRegistry
impl Unpin for CallableRegistry
impl UnsafeUnpin for CallableRegistry
impl UnwindSafe for CallableRegistry
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