pub struct TranscriptRecord {
pub session_id: String,
pub turns: Vec<TurnRecord>,
pub usage: TokenUsage,
pub cost_usd: Option<f64>,
pub mode: Option<HarnessMode>,
pub compaction_events: u32,
pub goals: Vec<GoalSlotRecord>,
pub memory_durability: MemoryDurabilityStatus,
}Expand description
The full stored run record for one session, as session.get_transcript
returns it.
Why: see module docs — this is the read-only DTO wrapping whatever
SessionRegistry::set_run_outcome last stored (or the all-empty default
for a session that has never run a task).
What: field-for-field passthrough of SessionEntry’s transcript/usage/
cost, plus the session_id for a self-describing response (the wire
method already takes session_id as a param, but echoing it back keeps
the result self-contained for a caller inspecting the JSON alone).
mode (#2059) mirrors Session.mode — the same field, read at
get_transcript time. compaction_events (#2349) mirrors
agent_loop::Transcript::compaction_events() on the session’s
pm_transcript — 0 when that transcript has never fired the #2308
threshold compactor, or the session has never run. (#2350) goals mirrors
session.get_goals — empty when the session has no pm_transcript yet
(never run a task) or simply has no goal set.
Test: session::registry_tests::get_transcript_returns_stored_record,
session::registry_tests::get_transcript_on_never_run_session_is_empty,
session::registry_tests::get_transcript_reports_compaction_events,
session::registry_tests::get_transcript_round_trips_goal_state.
Fields§
§session_id: String§turns: Vec<TurnRecord>§usage: TokenUsage§cost_usd: Option<f64>§mode: Option<HarnessMode>§compaction_events: u32§goals: Vec<GoalSlotRecord>§memory_durability: MemoryDurabilityStatus(#2425) Durable-memory degradation status for this session.
Trait Implementations§
Source§impl Clone for TranscriptRecord
impl Clone for TranscriptRecord
Source§fn clone(&self) -> TranscriptRecord
fn clone(&self) -> TranscriptRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TranscriptRecord
impl Debug for TranscriptRecord
Source§impl<'de> Deserialize<'de> for TranscriptRecord
impl<'de> Deserialize<'de> for TranscriptRecord
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>,
Auto Trait Implementations§
impl Freeze for TranscriptRecord
impl RefUnwindSafe for TranscriptRecord
impl Send for TranscriptRecord
impl Sync for TranscriptRecord
impl Unpin for TranscriptRecord
impl UnsafeUnpin for TranscriptRecord
impl UnwindSafe for TranscriptRecord
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more