pub struct ResponseRecord {
pub id: String,
pub owner: Option<String>,
pub model: String,
pub session: u64,
pub end_event: u64,
pub turn_closed: bool,
pub previous_response_id: Option<String>,
pub head: String,
pub root_system: Option<String>,
pub created_at: u64,
pub deleted: bool,
}Expand description
What a response id names. Small, so a scan of every record stays cheap.
Fields§
§id: String§owner: Option<String>§model: String§session: u64§end_event: u64The event a continuation forks at: one past the response’s last.
turn_closed: boolThe response’s turn ended in end-of-turn, so a turn appended after it renders as a new turn rather than inside this one.
previous_response_id: Option<String>§head: StringDigest of what the session renders first (system text, tools, template arguments). A continuation with another head is rebuilt, not forked.
root_system: Option<String>The text-only system message that opens the conversation’s first input, which leads the rebuilt conversation when no instructions do.
created_at: u64§deleted: boolDeleted, but kept because a later response’s history includes it.
Trait Implementations§
Source§impl Clone for ResponseRecord
impl Clone for ResponseRecord
Source§impl Debug for ResponseRecord
impl Debug for ResponseRecord
Source§impl<'de> Deserialize<'de> for ResponseRecord
impl<'de> Deserialize<'de> for ResponseRecord
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 ResponseRecord
impl PartialEq for ResponseRecord
Source§impl Serialize for ResponseRecord
impl Serialize for ResponseRecord
impl StructuralPartialEq for ResponseRecord
Auto Trait Implementations§
impl Freeze for ResponseRecord
impl RefUnwindSafe for ResponseRecord
impl Send for ResponseRecord
impl Sync for ResponseRecord
impl Unpin for ResponseRecord
impl UnsafeUnpin for ResponseRecord
impl UnwindSafe for ResponseRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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