pub struct QueryMemoryRequest {
pub agent_id: AgentId,
pub subject: String,
pub predicate: String,
pub as_of_tx_time: Option<DateTime<Utc>>,
pub valid_at: Option<DateTime<Utc>>,
}Expand description
Request to retrieve the current belief for a (subject, predicate) subject-line.
Fields§
§agent_id: AgentIdThe agent whose memory is queried.
subject: StringThe subject of the query.
predicate: StringThe predicate of the query.
as_of_tx_time: Option<DateTime<Utc>>Optional: query as of a specific transaction time (bi-temporal as-of query).
When set, only claims whose transaction time is at or before this instant are considered (the transaction-time axis). Controls assertion visibility as well.
valid_at: Option<DateTime<Utc>>Optional: select the belief valid at this specific valid-time instant (valid-time axis).
When set, after the transaction-time visibility filter is applied, the fold narrows the result to the single claim whose valid-time window contains this instant (D2 independence rule: tx-time filter first, then valid-time selection).
When None, the existing backward-compatible behaviour is preserved: the
as_of_tx_time (or now) is used as the valid-time selection instant.
Trait Implementations§
Source§impl Clone for QueryMemoryRequest
impl Clone for QueryMemoryRequest
Source§fn clone(&self) -> QueryMemoryRequest
fn clone(&self) -> QueryMemoryRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more