pub struct ProviderColumn { /* private fields */ }Expand description
Provider-backed column — wraps any ContextProvider as a cortical column.
Implementations§
Source§impl ProviderColumn
impl ProviderColumn
pub fn new(provider: Arc<dyn ContextProvider>) -> Self
Trait Implementations§
Source§impl ContextColumn for ProviderColumn
impl ContextColumn for ProviderColumn
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Unique column identifier (matches provider ID for external columns).
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable name for discovery/logging.
Source§fn ingest(
&self,
query: &str,
_ctx: &ColumnContext,
) -> Result<ColumnInput, String>
fn ingest( &self, query: &str, _ctx: &ColumnContext, ) -> Result<ColumnInput, String>
L4 (Input Layer): Ingest raw data and produce ContentChunks. Read more
Source§fn compress(
&self,
input: &ColumnInput,
ctx: &ColumnContext,
) -> Result<ColumnCompressed, String>
fn compress( &self, input: &ColumnInput, ctx: &ColumnContext, ) -> Result<ColumnCompressed, String>
L2/3 (Predictive Compression): Compress chunks based on task context. Read more
Source§fn verify(
&self,
compressed: &ColumnCompressed,
ctx: &ColumnContext,
) -> Result<ColumnOutput, String>
fn verify( &self, compressed: &ColumnCompressed, ctx: &ColumnContext, ) -> Result<ColumnOutput, String>
L5 (Output + Verification): Validate output, check budget, discover hints. Read more
Source§fn process(
&self,
query: &str,
ctx: &ColumnContext,
) -> Result<ColumnOutput, String>
fn process( &self, query: &str, ctx: &ColumnContext, ) -> Result<ColumnOutput, String>
Full pipeline: L4 → L2/3 → L5, with L6 context flowing top-down. Read more
Auto Trait Implementations§
impl Freeze for ProviderColumn
impl !RefUnwindSafe for ProviderColumn
impl Send for ProviderColumn
impl Sync for ProviderColumn
impl Unpin for ProviderColumn
impl UnsafeUnpin for ProviderColumn
impl !UnwindSafe for ProviderColumn
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