pub struct BatchResult {Show 16 fields
pub id: String,
pub ok: bool,
pub text: String,
pub error: Option<String>,
pub turns: u32,
pub usage: Usage,
pub stop_reason: Option<StopReason>,
pub meta: Option<Value>,
pub elapsed_ms: u64,
pub tool_calls: Vec<ToolCallTrace>,
pub malformed_tool_args: u32,
pub stop_cause: Option<StopCause>,
pub taint: Taint,
pub blocked_sends: u32,
pub compactions: u32,
pub usage_complete: bool,
}Fields§
§id: String§ok: bool§text: String§error: Option<String>§turns: u32§usage: Usage§stop_reason: Option<StopReason>§meta: Option<Value>§elapsed_ms: u64§tool_calls: Vec<ToolCallTrace>What the model actually did. Grading tool use needs this, not text.
malformed_tool_args: u32§stop_cause: Option<StopCause>Why the loop stopped, as distinct from why the model stopped talking.
taint: TaintWhat had entered the conversation by the end.
blocked_sends: u32Outbound calls the interlock refused.
compactions: u32How many times the transcript was summarised.
usage_complete: boolFalse when usage is a lower bound — see crate::agent::RunOutcome.
Trait Implementations§
Source§impl Clone for BatchResult
impl Clone for BatchResult
Source§fn clone(&self) -> BatchResult
fn clone(&self) -> BatchResult
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 BatchResult
impl Debug for BatchResult
Source§impl<'de> Deserialize<'de> for BatchResult
impl<'de> Deserialize<'de> for BatchResult
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
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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