pub enum Request {
Hello,
Status,
Search(SearchArgs),
SearchEpisodes(SearchEpisodesArgs),
Query(QueryArgs),
Traverse(TraverseArgs),
AddEntity(AddEntityArgs),
Relate(RelateArgs),
IngestArchive(IngestArchiveArgs),
SyncPipeline(SyncPipelineArgs),
Feedback(FeedbackArgs),
Shutdown,
}Expand description
A client request. Wire form is {"op": "...", "args": {...}}.
Variants§
Hello
Version handshake — returns DaemonInfo.
Status
Graph counts.
Search(SearchArgs)
Semantic entity search.
SearchEpisodes(SearchEpisodesArgs)
Semantic episode search.
Query(QueryArgs)
Hybrid query: semantic + graph expansion + optional episodes.
Traverse(TraverseArgs)
Traverse relationships from a named entity.
AddEntity(AddEntityArgs)
Create an entity.
Relate(RelateArgs)
Create a relationship between two named entities.
IngestArchive(IngestArchiveArgs)
Ingest a conversation archive (episodes only, no LLM extraction).
SyncPipeline(SyncPipelineArgs)
Sync the pipeline documents into the graph (no LLM extraction).
Feedback(FeedbackArgs)
Apply an outcome to the entities a session touched.
Shutdown
Ask the daemon to exit.
Implementations§
Source§impl Request
impl Request
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Whether repeating this request against a fresh daemon is safe.
A connection that drops mid-request cannot tell us whether the daemon applied it before dying, so only read-only or idempotent operations may be retried. Repeating an archive ingest would duplicate its episodes — a silently corrupted memory is worse than a reported failure.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
impl<T> AsyncFriendly for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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 moreSource§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>
T in a tonic::Request