pub struct LastChatTurn {
pub user_text: String,
pub assistant_text: String,
pub trace_id: String,
pub model_id: String,
}Expand description
The last assistant turn a chat session produced, remembered so the next
user turn can be classified against it (the conversation-outcome signal).
The trace_id/model_id are carried straight from the InferenceResult
that produced the turn — never reconstructed from message order — so credit
always lands on the exact model/trace that generated the judged turn.
Fields§
§user_text: StringThe user request this assistant turn answered (for restatement similarity).
assistant_text: String§trace_id: String§model_id: StringTrait Implementations§
Source§impl Clone for LastChatTurn
impl Clone for LastChatTurn
Auto Trait Implementations§
impl Freeze for LastChatTurn
impl RefUnwindSafe for LastChatTurn
impl Send for LastChatTurn
impl Sync for LastChatTurn
impl Unpin for LastChatTurn
impl UnsafeUnpin for LastChatTurn
impl UnwindSafe for LastChatTurn
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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