pub struct CortexClient { /* private fields */ }Expand description
One connection to a CortexDB sidecar, exposing all service clients.
Implementations§
Source§impl CortexClient
impl CortexClient
Sourcepub async fn connect(
endpoint: impl Into<String>,
) -> Result<Self, Box<dyn Error + Send + Sync>>
pub async fn connect( endpoint: impl Into<String>, ) -> Result<Self, Box<dyn Error + Send + Sync>>
Connect without authentication.
Sourcepub fn builder(endpoint: impl Into<String>) -> CortexClientBuilder
pub fn builder(endpoint: impl Into<String>) -> CortexClientBuilder
Start building a connection (set a token, then connect).
Sourcepub fn admin(
&self,
) -> AdminServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn admin( &self, ) -> AdminServiceClient<InterceptedService<Channel, AuthInterceptor>>
AdminService: health + server info.
Sourcepub fn knowledge(
&self,
) -> KnowledgeServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn knowledge( &self, ) -> KnowledgeServiceClient<InterceptedService<Channel, AuthInterceptor>>
KnowledgeService: durable RAG knowledge save/search.
Sourcepub fn memory(
&self,
) -> MemoryServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn memory( &self, ) -> MemoryServiceClient<InterceptedService<Channel, AuthInterceptor>>
MemoryService: scoped agent memory.
Sourcepub fn graph(
&self,
) -> KnowledgeGraphServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn graph( &self, ) -> KnowledgeGraphServiceClient<InterceptedService<Channel, AuthInterceptor>>
KnowledgeGraphService: RDF triples, SPARQL, SHACL, inference, ontology.
Sourcepub fn graphrag(
&self,
) -> GraphRagServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn graphrag( &self, ) -> GraphRagServiceClient<InterceptedService<Channel, AuthInterceptor>>
GraphRagService: GraphRAG ingest/search + text search.
Sourcepub fn tools(
&self,
) -> ToolsServiceClient<InterceptedService<Channel, AuthInterceptor>>
pub fn tools( &self, ) -> ToolsServiceClient<InterceptedService<Channel, AuthInterceptor>>
ToolsService: generic tool dispatch (same surface as MCP).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CortexClient
impl !RefUnwindSafe for CortexClient
impl !UnwindSafe for CortexClient
impl Send for CortexClient
impl Sync for CortexClient
impl Unpin for CortexClient
impl UnsafeUnpin for CortexClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request