pub struct AppServerTurnResponse {
pub assistant_message: String,
pub context_reset: bool,
pub input_tokens: u64,
pub output_tokens: u64,
pub pid: Option<u32>,
pub provider_conversation_id: Option<String>,
}Expand description
Normalized result for one app-server turn.
Fields§
§assistant_message: StringFinal assistant payload returned by the provider runtime.
context_reset: boolWhether the provider reset its native context during the turn.
input_tokens: u64Input token count reported for the completed turn.
output_tokens: u64Output token count reported for the completed turn.
pid: Option<u32>Provider runtime process identifier when retained after the turn. Cleared once a non-retained runtime has shut down.
provider_conversation_id: Option<String>Provider-native thread/session id observed after the turn.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AppServerTurnResponse
impl Freeze for AppServerTurnResponse
impl Move for AppServerTurnResponse
impl RefUnwindSafe for AppServerTurnResponse
impl Send for AppServerTurnResponse
impl Sync for AppServerTurnResponse
impl Unpin for AppServerTurnResponse
impl UnsafeUnpin for AppServerTurnResponse
impl UnwindSafe for AppServerTurnResponse
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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