pub struct ProviderTurn {
pub provider: String,
pub model: String,
pub response_id: Option<String>,
pub output_text: String,
pub tool_calls: Vec<ToolCall>,
pub stop_reason: StopReason,
pub usage: TokenUsage,
pub opaque: Value,
}Expand description
Normalized result of one provider turn.
Fields§
§provider: StringAdapter identifier.
model: StringActual model reported by the provider.
response_id: Option<String>Provider response handle.
output_text: StringPublic model text; hidden reasoning is never requested.
tool_calls: Vec<ToolCall>Structured client tool calls.
stop_reason: StopReasonWhy the turn ended.
usage: TokenUsageToken accounting when supplied.
opaque: ValueLossless provider payload for fields outside the canonical model.
Trait Implementations§
Source§impl Clone for ProviderTurn
impl Clone for ProviderTurn
Source§fn clone(&self) -> ProviderTurn
fn clone(&self) -> ProviderTurn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderTurn
impl Debug for ProviderTurn
Source§impl<'de> Deserialize<'de> for ProviderTurn
impl<'de> Deserialize<'de> for ProviderTurn
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 ProviderTurn
impl PartialEq for ProviderTurn
Source§impl Serialize for ProviderTurn
impl Serialize for ProviderTurn
impl StructuralPartialEq for ProviderTurn
Auto Trait Implementations§
impl Freeze for ProviderTurn
impl RefUnwindSafe for ProviderTurn
impl Send for ProviderTurn
impl Sync for ProviderTurn
impl Unpin for ProviderTurn
impl UnsafeUnpin for ProviderTurn
impl UnwindSafe for ProviderTurn
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