pub struct AgentMemoryIngestRequest {
pub scope: String,
pub content: String,
pub embedding_id: Option<u64>,
pub candidates: Vec<AgentIngestCandidate>,
pub provenance_steps: Vec<u64>,
pub dedup_threshold: f32,
pub supersede_threshold: f32,
pub fence: u64,
pub author_agent_id: String,
pub confidence: f32,
pub run_id: String,
pub lease_key: Vec<u8>,
}Fields§
§scope: String§content: String§embedding_id: Option<u64>§candidates: Vec<AgentIngestCandidate>(existing_fact_id, cosine_sim)
provenance_steps: Vec<u64>DerivedFrom episode steps
dedup_threshold: f32§supersede_threshold: f32§fence: u64Phase 3 (#784) fencing token; 0 = ungated
Optional typed attribution recorded on a newly-created fact body.
confidence: f32§run_id: String§lease_key: Vec<u8>Phase 3 (#784): the claim-key bytes the lease was taken on (exactly what was passed to AgentClaim/AgentLease). Required when fence != 0 — the handler adds (coord_cf, lease_key, observed=fence) to the txn read-set so the commit aborts if the lease moved. Ignored when fence == 0.
Implementations§
Source§impl AgentMemoryIngestRequest
impl AgentMemoryIngestRequest
Sourcepub fn embedding_id(&self) -> u64
pub fn embedding_id(&self) -> u64
Returns the value of embedding_id, or the default value if embedding_id is unset.
Trait Implementations§
Source§impl Clone for AgentMemoryIngestRequest
impl Clone for AgentMemoryIngestRequest
Source§fn clone(&self) -> AgentMemoryIngestRequest
fn clone(&self) -> AgentMemoryIngestRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentMemoryIngestRequest
impl Debug for AgentMemoryIngestRequest
Source§impl Default for AgentMemoryIngestRequest
impl Default for AgentMemoryIngestRequest
Source§impl Message for AgentMemoryIngestRequest
impl Message for AgentMemoryIngestRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AgentMemoryIngestRequest
impl PartialEq for AgentMemoryIngestRequest
impl StructuralPartialEq for AgentMemoryIngestRequest
Auto Trait Implementations§
impl Freeze for AgentMemoryIngestRequest
impl RefUnwindSafe for AgentMemoryIngestRequest
impl Send for AgentMemoryIngestRequest
impl Sync for AgentMemoryIngestRequest
impl Unpin for AgentMemoryIngestRequest
impl UnsafeUnpin for AgentMemoryIngestRequest
impl UnwindSafe for AgentMemoryIngestRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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