pub enum MemoryAppend {
Acknowledged,
Failed {
report: ErrorReport,
},
}Expand description
Outcome of the memory append, independent of the accepted run answer. Acknowledgement provides only the backend’s durability guarantee; failure does not prove no write occurred. Dropping an in-flight append yields no response, and this outcome does not guarantee exactly-once persistence.
Variants§
Acknowledged
The backend acknowledged the append of PromptResponse::messages.
Failed
The append dispatch failed or was refused, as reported after outcome hooks. Persistence may still have occurred. The effect log retains the handler’s original answer rather than any hook replacement.
Fields
§
report: ErrorReportWhy the append failed.
Implementations§
Source§impl MemoryAppend
impl MemoryAppend
Sourcepub fn is_acknowledged(&self) -> bool
pub fn is_acknowledged(&self) -> bool
Whether the backend acknowledged the append.
Sourcepub fn failure(&self) -> Option<&ErrorReport>
pub fn failure(&self) -> Option<&ErrorReport>
The failure report, when the append failed.
Trait Implementations§
Source§impl Clone for MemoryAppend
impl Clone for MemoryAppend
Source§impl Debug for MemoryAppend
impl Debug for MemoryAppend
Source§impl<'de> Deserialize<'de> for MemoryAppend
impl<'de> Deserialize<'de> for MemoryAppend
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryAppend
impl PartialEq for MemoryAppend
Source§impl Serialize for MemoryAppend
impl Serialize for MemoryAppend
impl StructuralPartialEq for MemoryAppend
Auto Trait Implementations§
impl Freeze for MemoryAppend
impl RefUnwindSafe for MemoryAppend
impl Send for MemoryAppend
impl Sync for MemoryAppend
impl Unpin for MemoryAppend
impl UnsafeUnpin for MemoryAppend
impl UnwindSafe for MemoryAppend
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
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> 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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.