pub struct OxiosKernelBridge { /* private fields */ }Expand description
Bridges all oxios kernel tools into the oxi-sdk agent builder.
Implementations§
Source§impl OxiosKernelBridge
impl OxiosKernelBridge
Sourcepub fn new(kernel_handle: Arc<KernelHandle>) -> Self
pub fn new(kernel_handle: Arc<KernelHandle>) -> Self
Create a new bridge with the given kernel handle.
Sourcepub fn with_cache(
kernel_handle: Arc<KernelHandle>,
search_cache: Arc<SearchCache>,
) -> Self
pub fn with_cache( kernel_handle: Arc<KernelHandle>, search_cache: Arc<SearchCache>, ) -> Self
Create a new bridge with a pre-built search cache.
Trait Implementations§
Source§impl KernelToolProvider for OxiosKernelBridge
impl KernelToolProvider for OxiosKernelBridge
Source§fn tool_names(&self) -> Vec<&str>
fn tool_names(&self) -> Vec<&str>
Return the names of tools this provider will register.
Source§fn register_tools(
&self,
registry: &ToolRegistry,
context: &SdkKernelToolContext,
)
fn register_tools( &self, registry: &ToolRegistry, context: &SdkKernelToolContext, )
Register tools into the given registry. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OxiosKernelBridge
impl !UnwindSafe for OxiosKernelBridge
impl Freeze for OxiosKernelBridge
impl Send for OxiosKernelBridge
impl Sync for OxiosKernelBridge
impl Unpin for OxiosKernelBridge
impl UnsafeUnpin for OxiosKernelBridge
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