pub struct RlmResult {
pub processed: String,
pub stats: RlmStats,
pub success: bool,
pub error: Option<String>,
pub trace: Option<ContextTrace>,
pub trace_id: Option<Uuid>,
}Expand description
RLM processing result.
trace is populated when the caller supplied a session bus so
downstream consumers can reconstruct iteration-by-iteration
behaviour. trace_id is always generated and echoed on the
matching RlmComplete session event
event for correlation.
§Examples
use codetether_rlm::{RlmResult, RlmStats};
let r = RlmResult {
processed: "summary".into(),
stats: RlmStats::default(),
success: true,
error: None,
trace: None,
trace_id: None,
};
assert!(r.success);
assert!(r.trace.is_none());Fields§
§processed: StringThe final text produced by the loop (summary or answer).
stats: RlmStatsAggregate statistics for the run.
success: booltrue when the loop converged within its iteration budget.
error: Option<String>Populated when success is false — a short diagnostic.
trace: Option<ContextTrace>Optional per-iteration event trace.
trace_id: Option<Uuid>Identifier echoed on the matching RlmComplete bus event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RlmResult
impl<'de> Deserialize<'de> for RlmResult
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
Auto Trait Implementations§
impl Freeze for RlmResult
impl RefUnwindSafe for RlmResult
impl Send for RlmResult
impl Sync for RlmResult
impl Unpin for RlmResult
impl UnsafeUnpin for RlmResult
impl UnwindSafe for RlmResult
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