pub struct InvokeResponse {
pub provider_id: String,
pub output: String,
pub exit_code: i32,
pub duration_ms: u64,
pub stderr_tail: Option<String>,
pub tokens: Option<u64>,
pub tokens_estimated: bool,
pub cost_usd: Option<f64>,
}Fields§
§provider_id: String§output: String§exit_code: i32§duration_ms: u64§stderr_tail: Option<String>§tokens: Option<u64>Tokens consumed. Exact when the provider reports them and a
usage_regex extracts them; otherwise estimated.
tokens_estimated: boolTrue when tokens came from a character-count estimate rather than
from the provider. Recorded so a budget report can say which it is.
cost_usd: Option<f64>Trait Implementations§
Source§impl Clone for InvokeResponse
impl Clone for InvokeResponse
Source§fn clone(&self) -> InvokeResponse
fn clone(&self) -> InvokeResponse
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 InvokeResponse
impl Debug for InvokeResponse
Source§impl<'de> Deserialize<'de> for InvokeResponse
impl<'de> Deserialize<'de> for InvokeResponse
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 InvokeResponse
impl RefUnwindSafe for InvokeResponse
impl Send for InvokeResponse
impl Sync for InvokeResponse
impl Unpin for InvokeResponse
impl UnsafeUnpin for InvokeResponse
impl UnwindSafe for InvokeResponse
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