Skip to main content

PcxGrpcService

Struct PcxGrpcService 

Source
pub struct PcxGrpcService { /* private fields */ }
Expand description

gRPC service backed by ConversationMemorySystem.

Holds both the raw ConversationMemorySystem (used by handlers that have not yet migrated to the canonical trait) and the canonical MemoryServiceImpl. Newly-migrated handlers — currently update_context / bulk_update_context — translate proto types into post_cortex_core::services requests and delegate to self.service, so validation lives in exactly one place.

Implementations§

Source§

impl PcxGrpcService

Source

pub fn new(memory: Arc<ConversationMemorySystem>) -> Self

Wrap a shared memory system in a new gRPC service handle.

Source

pub fn from_service(service: Arc<MemoryServiceImpl>) -> Self

Build a gRPC service from an existing canonical service so several transports can share the same background pipeline (Phase 11).

Source

pub fn into_server(self) -> PostCortexServer<Self>

Consume self and return a tonic PostCortexServer ready to serve.

Trait Implementations§

Source§

impl PostCortex for PcxGrpcService

Source§

fn health<'life0, 'async_trait>( &'life0 self, _request: Request<HealthRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Health —
Source§

fn create_session<'life0, 'async_trait>( &'life0 self, request: Request<CreateSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Session Management —
Source§

fn list_sessions<'life0, 'async_trait>( &'life0 self, request: Request<ListSessionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListSessionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn load_session<'life0, 'async_trait>( &'life0 self, request: Request<LoadSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoadSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn search_sessions<'life0, 'async_trait>( &'life0 self, request: Request<SearchSessionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SearchSessionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_session_metadata<'life0, 'async_trait>( &'life0 self, request: Request<UpdateSessionMetadataRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateSessionMetadataResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_session<'life0, 'async_trait>( &'life0 self, request: Request<DeleteSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_entity<'life0, 'async_trait>( &'life0 self, request: Request<DeleteEntityRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteEntityResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Graph Maintenance — Delete a single entity and cascade-delete all its incident edges from the 8 relation tables. Atomic against in-memory session cache so the delete sticks even when the daemon has the session loaded.
Source§

fn update_context<'life0, 'async_trait>( &'life0 self, request: Request<UpdateContextRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateContextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Context Operations —
Source§

fn bulk_update_context<'life0, 'async_trait>( &'life0 self, request: Request<BulkUpdateContextRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<BulkUpdateContextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_checkpoint<'life0, 'async_trait>( &'life0 self, request: Request<CreateCheckpointRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateCheckpointResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn query_context<'life0, 'async_trait>( &'life0 self, request: Request<QueryContextRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryContextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Semantic Search —
Source§

fn vectorize_session<'life0, 'async_trait>( &'life0 self, request: Request<VectorizeSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<VectorizeSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_vectorization_stats<'life0, 'async_trait>( &'life0 self, _request: Request<GetVectorizationStatsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_structured_summary<'life0, 'async_trait>( &'life0 self, request: Request<GetStructuredSummaryRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Analysis & Insights —
Source§

fn get_key_decisions<'life0, 'async_trait>( &'life0 self, request: Request<GetKeyDecisionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_key_insights<'life0, 'async_trait>( &'life0 self, request: Request<GetKeyInsightsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_entity_importance<'life0, 'async_trait>( &'life0 self, request: Request<GetEntityImportanceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_entity_network<'life0, 'async_trait>( &'life0 self, request: Request<GetEntityNetworkRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_session_statistics<'life0, 'async_trait>( &'life0 self, request: Request<GetSessionStatisticsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<TextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn assemble_context<'life0, 'async_trait>( &'life0 self, request: Request<AssembleContextRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AssembleContextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Graph-Aware Context Assembly —
Source§

fn create_workspace<'life0, 'async_trait>( &'life0 self, request: Request<CreateWorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateWorkspaceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Workspace Management —
Source§

fn get_workspace<'life0, 'async_trait>( &'life0 self, request: Request<GetWorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetWorkspaceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_workspaces<'life0, 'async_trait>( &'life0 self, _request: Request<ListWorkspacesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListWorkspacesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_workspace<'life0, 'async_trait>( &'life0 self, request: Request<DeleteWorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteWorkspaceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn add_session_to_workspace<'life0, 'async_trait>( &'life0 self, request: Request<AddSessionToWorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AddSessionToWorkspaceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn remove_session_from_workspace<'life0, 'async_trait>( &'life0 self, request: Request<RemoveSessionFromWorkspaceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RemoveSessionFromWorkspaceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn register_source<'life0, 'async_trait>( &'life0 self, request: Request<RegisterSourceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterSourceAck>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Source Tracking —
Source§

fn register_source_batch<'life0, 'async_trait>( &'life0 self, request: Request<RegisterSourceBatchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterSourceBatchAck>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn check_freshness<'life0, 'async_trait>( &'life0 self, request: Request<FreshnessRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FreshnessReport>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn invalidate<'life0, 'async_trait>( &'life0 self, request: Request<InvalidateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InvalidateAck>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn register_symbol_dependency<'life0, 'async_trait>( &'life0 self, request: Request<RegisterSymbolDependencyRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterSymbolDependencyAck>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Symbol Dependencies (Phase 9.2) —
Source§

fn cascade_invalidate<'life0, 'async_trait>( &'life0 self, request: Request<CascadeInvalidateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CascadeInvalidateReport>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_stale_entries_by_source<'life0, 'async_trait>( &'life0 self, request: Request<GetStaleEntriesBySourceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetStaleEntriesBySourceResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

— Stale Entry Query — Returns all source_reference entries for a file that are still marked stale (status=1). Used by Axon after register_source_batch to detect deleted symbols (entries that were marked stale by invalidate_source but never re-registered).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> ErasedDestructor for T
where T: 'static,