pub struct CortexSearchTool {
pub pool: Arc<Mutex<Pool>>,
}Expand description
MCP handler for cortex_search.
Schema (ADR 0045 §4):
cortex_search(
query: string, // required, non-empty
semantic: bool, // default false — accepted, FTS-only for now
limit: int, // default 10, capped at 50
session_id?: string // optional, accepted and ignored
) → [{ id, content, score, domains }]rusqlite::Connection is not Sync; the pool is wrapped in a Mutex
to satisfy the Send + Sync bound on ToolHandler.
Fields§
§pool: Arc<Mutex<Pool>>SQLite connection pool, mutex-wrapped because rusqlite::Connection
is not Sync.
Trait Implementations§
Source§impl Debug for CortexSearchTool
impl Debug for CortexSearchTool
Source§impl ToolHandler for CortexSearchTool
impl ToolHandler for CortexSearchTool
Auto Trait Implementations§
impl Freeze for CortexSearchTool
impl RefUnwindSafe for CortexSearchTool
impl Send for CortexSearchTool
impl Sync for CortexSearchTool
impl Unpin for CortexSearchTool
impl UnsafeUnpin for CortexSearchTool
impl UnwindSafe for CortexSearchTool
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