pub struct ContextContents {
pub header: Option<RecordHeader>,
pub messages: Vec<Value>,
pub harness_session: Option<HarnessSessionEntry>,
}Expand description
What one context directory holds, read the way the runtime reads it.
Fields§
§header: Option<RecordHeader>The header line, when conversation.jsonl’s first line is one.
messages: Vec<Value>Every message line of conversation.jsonl, oldest first, as recorded. Empty when there is
no conversation.jsonl, which is the case on inference.transport: process.
harness_session: Option<HarnessSessionEntry>The context’s harness session, None wherever the runtime reads “no session”.
Trait Implementations§
Source§impl Clone for ContextContents
impl Clone for ContextContents
Source§impl Debug for ContextContents
impl Debug for ContextContents
Source§impl PartialEq for ContextContents
impl PartialEq for ContextContents
impl StructuralPartialEq for ContextContents
Auto Trait Implementations§
impl Forget for ContextContents
impl Freeze for ContextContents
impl Move for ContextContents
impl RefUnwindSafe for ContextContents
impl Send for ContextContents
impl Sync for ContextContents
impl Unpin for ContextContents
impl UnsafeUnpin for ContextContents
impl UnwindSafe for ContextContents
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,
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> ⓘ
Converts
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> ⓘ
Converts
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