pub struct QuerySubjectRequest {
pub agent_id: AgentId,
pub subject: String,
pub valid_at: Option<DateTime<Utc>>,
pub as_of_tx_time: Option<DateTime<Utc>>,
}Expand description
Request to retrieve the resolved belief for every predicate stored under a subject.
Returns one SubjectFactEntry per distinct predicate that has at least one claim
satisfying the as_of_tx_time cutoff. Each entry is the same fold result that
query_memory would produce for that (subject, predicate) pair under the same
valid_at / as_of_tx_time — the existing fold/disposition logic is reused, not
reimplemented.
Fields§
§agent_id: AgentIdThe agent whose memory is queried.
subject: StringThe subject for which all predicate beliefs are returned.
valid_at: Option<DateTime<Utc>>Optional: query as of a specific valid-time instant (valid-time axis).
When set, the fold selects the claim whose valid-time window contains this instant.
When None, the backward-compatible behaviour is used (as_of / now drives both axes).
as_of_tx_time: Option<DateTime<Utc>>Optional: query as of a specific transaction time (bi-temporal tx-time axis).
When set, only claims whose tx_time <= as_of_tx_time are visible.
When None, the full current view is used.
Trait Implementations§
Source§impl Clone for QuerySubjectRequest
impl Clone for QuerySubjectRequest
Source§fn clone(&self) -> QuerySubjectRequest
fn clone(&self) -> QuerySubjectRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more