Skip to main content

ContextQuery

Enum ContextQuery 

Source
pub enum ContextQuery {
Show 22 variants GetRecentChanges { since: DateTime<Utc>, }, FindCodeReferences { file_path: String, }, GetStructuredSummary, SearchUpdates { query: String, }, GetDecisions { since: Option<DateTime<Utc>>, }, GetOpenQuestions, GetChangeHistory { file_path: Option<String>, }, FindRelatedEntities { entity_name: String, }, GetEntityContext { entity_name: String, }, GetAllEntities { entity_type: Option<EntityType>, }, TraceRelationships { from_entity: String, max_depth: usize, }, GetEntityNetwork { center_entity: String, max_depth: usize, }, FindConnectionPath { from_entity: String, to_entity: String, max_depth: usize, }, GetMostImportantEntities { limit: usize, }, GetRecentlyMentionedEntities { limit: usize, }, AnalyzeEntityImportance, FindEntitiesByType { entity_type: EntityType, }, GetEntityHierarchy { root_entity: String, max_depth: usize, }, FindEntityClusters { min_cluster_size: usize, }, GetEntityTimeline { entity_name: String, start_time: Option<DateTime<Utc>>, end_time: Option<DateTime<Utc>>, }, AnalyzeEntityTrends { time_window_days: i64, }, AssembleContext { query: String, token_budget: usize, },
}
Expand description

Typed query descriptors dispatched by query::query_context.

Variants§

§

GetRecentChanges

Retrieve context updates created after a given timestamp.

Fields

§since: DateTime<Utc>

Earliest timestamp to include.

§

FindCodeReferences

Look up code references for a specific file path.

Fields

§file_path: String

File path to search references for.

§

GetStructuredSummary

Return the current structured summary of the session.

§

SearchUpdates

Keyword search over stored context updates.

Fields

§query: String

Search query string.

§

GetDecisions

Retrieve decision-type updates, optionally after a timestamp.

Fields

§since: Option<DateTime<Utc>>

Optional lower-bound timestamp filter.

§

GetOpenQuestions

Return open questions tracked in the session.

§

GetChangeHistory

Return change history, optionally filtered by file path.

Fields

§file_path: Option<String>

Optional file path to narrow results.

§

FindRelatedEntities

Find entity names related to a given entity.

Fields

§entity_name: String

Name of the entity to search relations for.

§

GetEntityContext

Return full context string for a named entity.

Fields

§entity_name: String

Name of the entity.

§

GetAllEntities

List all known entities, optionally filtered by type.

Fields

§entity_type: Option<EntityType>

Optional entity-type filter.

§

TraceRelationships

Traverse relationship edges starting from an entity.

Fields

§from_entity: String

Entity name to start traversal from.

§max_depth: usize

Maximum graph traversal depth.

§

GetEntityNetwork

Build a sub-graph network centered on an entity.

Fields

§center_entity: String

Entity to place at the center of the network.

§max_depth: usize

Maximum traversal depth.

§

FindConnectionPath

Find the shortest relationship path between two entities.

Fields

§from_entity: String

Starting entity.

§to_entity: String

Target entity.

§max_depth: usize

Maximum path length to explore.

§

GetMostImportantEntities

Return the top-N entities ranked by importance score.

Fields

§limit: usize

Maximum number of entities to return.

§

GetRecentlyMentionedEntities

Return the most recently mentioned entities.

Fields

§limit: usize

Maximum number of entities to return.

§

AnalyzeEntityImportance

Perform a full importance analysis across all entities.

§

FindEntitiesByType

List entities matching a specific type.

Fields

§entity_type: EntityType

Entity type to filter by.

§

GetEntityHierarchy

Return a hierarchical tree rooted at an entity.

Fields

§root_entity: String

Root entity for the hierarchy.

§max_depth: usize

Maximum depth of the hierarchy.

§

FindEntityClusters

Detect clusters of closely related entities.

Fields

§min_cluster_size: usize

Minimum number of entities to form a cluster.

§

GetEntityTimeline

Return a timeline of mentions for a specific entity.

Fields

§entity_name: String

Entity name to track.

§start_time: Option<DateTime<Utc>>

Optional start of the time window.

§end_time: Option<DateTime<Utc>>

Optional end of the time window.

§

AnalyzeEntityTrends

Analyse how entity activity trends over a time window.

Fields

§time_window_days: i64

Width of the rolling time window in days.

§

AssembleContext

Graph-aware retrieval combining semantic search and traversal.

Fields

§query: String

Natural-language query for relevance scoring.

§token_budget: usize

Maximum approximate token count for the returned context.

Trait Implementations§

Source§

impl Debug for ContextQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ContextQuery

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ContextQuery

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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<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> 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, 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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