pub struct ReasonItemData {
pub turn_id: TurnId,
pub provider: String,
pub model: Option<String>,
pub item_id: String,
pub encrypted_content: Option<String>,
pub summary: Vec<String>,
pub token_count: Option<u32>,
}Expand description
Data for reason.item event.
Durable record of an opaque assistant reasoning response item (e.g., OpenAI Responses API reasoning items). Carries provider-supplied opaque artifacts and curated summary text only. Plaintext hidden chain-of-thought is never persisted in this event — emitters must strip any plaintext reasoning content before constructing it.
Fields§
§turn_id: TurnIdTurn ID this reasoning item belongs to.
provider: StringProvider that produced the reasoning item (e.g., “openai”).
model: Option<String>Model identifier reported by the provider, if known.
item_id: StringProvider-assigned identifier for the reasoning item.
encrypted_content: Option<String>Provider-encrypted reasoning context, if supplied. Opaque to consumers.
summary: Vec<String>Safe summary text segments curated by the provider. Never includes plaintext reasoning content.
token_count: Option<u32>Per-item reasoning token count, when the provider reports one.
Trait Implementations§
Source§impl Clone for ReasonItemData
impl Clone for ReasonItemData
Source§fn clone(&self) -> ReasonItemData
fn clone(&self) -> ReasonItemData
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 ReasonItemData
impl Debug for ReasonItemData
Source§impl<'de> Deserialize<'de> for ReasonItemData
impl<'de> Deserialize<'de> for ReasonItemData
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>,
Source§impl From<ReasonItemData> for EventData
impl From<ReasonItemData> for EventData
Source§fn from(data: ReasonItemData) -> Self
fn from(data: ReasonItemData) -> Self
Auto Trait Implementations§
impl Freeze for ReasonItemData
impl RefUnwindSafe for ReasonItemData
impl Send for ReasonItemData
impl Sync for ReasonItemData
impl Unpin for ReasonItemData
impl UnsafeUnpin for ReasonItemData
impl UnwindSafe for ReasonItemData
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
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>,
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request