pub struct CortexContextTool {
pub pool: Arc<Mutex<Pool>>,
}Expand description
MCP handler for cortex_context.
Schema (ADR 0045 §4):
cortex_context(
domains: [string], // default []
include_doctrine: bool, // default false — accepted, ignored for now
session_id?: string // optional, accepted and ignored
) → { pack_id, entries, token_count, redacted_count }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 CortexContextTool
impl Debug for CortexContextTool
Source§impl ToolHandler for CortexContextTool
impl ToolHandler for CortexContextTool
Auto Trait Implementations§
impl Freeze for CortexContextTool
impl RefUnwindSafe for CortexContextTool
impl Send for CortexContextTool
impl Sync for CortexContextTool
impl Unpin for CortexContextTool
impl UnsafeUnpin for CortexContextTool
impl UnwindSafe for CortexContextTool
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