pub struct ToolRouter { /* private fields */ }Implementations§
Source§impl ToolRouter
impl ToolRouter
pub fn new(session: Arc<ToolSession>) -> Self
Sourcepub fn with_index_store(
session: Arc<ToolSession>,
store: Option<IndexStore>,
) -> Self
pub fn with_index_store( session: Arc<ToolSession>, store: Option<IndexStore>, ) -> Self
Build with an explicit index store (or None to force the no-index error path).
Sourcepub fn with_semantic(
self,
use_semantic: bool,
embedder: Option<Arc<dyn Embedder>>,
) -> Self
pub fn with_semantic( self, use_semantic: bool, embedder: Option<Arc<dyn Embedder>>, ) -> Self
Enable semantic RRF fusion for search_schema (requires embeddings on disk + embedder).
Sourcepub fn with_profile(self, profile: ToolProfile) -> Self
pub fn with_profile(self, profile: ToolProfile) -> Self
Filter active tools by requested ToolProfile.
Sourcepub fn with_managed_extension(self, enabled: bool) -> Self
pub fn with_managed_extension(self, enabled: bool) -> Self
Exclude setup/profile mutation tools for managed extension hosts.
pub fn specs(&self) -> &[ToolSpec]
pub async fn call(&self, name: &str, args: Value) -> ToolOutcome
Auto Trait Implementations§
impl !RefUnwindSafe for ToolRouter
impl !UnwindSafe for ToolRouter
impl Freeze for ToolRouter
impl Send for ToolRouter
impl Sync for ToolRouter
impl Unpin for ToolRouter
impl UnsafeUnpin for ToolRouter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more