pub struct AdapterOutcome {
pub model: Option<String>,
pub usage_json: Option<Value>,
pub status: AdapterStatus,
pub degrade_reason: Option<String>,
}Expand description
The final outcome of an adapter run, reported when its tailer thread exits.
Fields§
§model: Option<String>Model name extracted from the structured stream, if any (last-seen wins).
usage_json: Option<Value>Token-usage JSON, verbatim from the last assistant record that carried it
(rich fields preserved; not cumulative). Written to sessions.usage_json.
status: AdapterStatusFinal adapter status: AdapterStatus::Active if a transcript was
tailed, AdapterStatus::Degraded if it could not be located.
degrade_reason: Option<String>When status is AdapterStatus::Degraded, a single actionable line the
recorder prints to stderr after the child exits (once the terminal is
restored), instead of from the tailer thread mid-session — so the warning
is not buried under the agent’s alternate-screen TUI (FR-1.5).
Trait Implementations§
Source§impl Clone for AdapterOutcome
impl Clone for AdapterOutcome
Source§fn clone(&self) -> AdapterOutcome
fn clone(&self) -> AdapterOutcome
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 AdapterOutcome
impl Debug for AdapterOutcome
Source§impl Default for AdapterOutcome
impl Default for AdapterOutcome
Source§fn default() -> AdapterOutcome
fn default() -> AdapterOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AdapterOutcome
impl RefUnwindSafe for AdapterOutcome
impl Send for AdapterOutcome
impl Sync for AdapterOutcome
impl Unpin for AdapterOutcome
impl UnsafeUnpin for AdapterOutcome
impl UnwindSafe for AdapterOutcome
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