pub struct ResponseEvidence {
pub usage: Option<Value>,
pub provider_model: Option<String>,
pub finish_reason: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Provider completion evidence and client stream timing for one response.
Every field is optional. A gateway fills what its provider reports and
leaves the rest unknown: usage is never estimated from text length or a
tokenizer, and provider_model is never copied from the configured model.
Fields§
§usage: Option<Value>Token usage in the provider’s own shape, unchanged.
provider_model: Option<String>Model name the provider reported, which can differ from the requested model.
finish_reason: Option<String>Provider finish reason (OpenAI finish_reason, Ollama done_reason).
metadata: HashMap<String, Value>Other response facts: provider ids/durations and client stream timing fields.
Trait Implementations§
Source§impl Clone for ResponseEvidence
impl Clone for ResponseEvidence
Source§fn clone(&self) -> ResponseEvidence
fn clone(&self) -> ResponseEvidence
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 ResponseEvidence
impl Debug for ResponseEvidence
Source§impl Default for ResponseEvidence
impl Default for ResponseEvidence
Source§fn default() -> ResponseEvidence
fn default() -> ResponseEvidence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseEvidencewhere
ResponseEvidence: Default,
impl<'de> Deserialize<'de> for ResponseEvidencewhere
ResponseEvidence: Default,
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 ResponseEvidence
impl PartialEq for ResponseEvidence
Source§impl Serialize for ResponseEvidence
impl Serialize for ResponseEvidence
impl StructuralPartialEq for ResponseEvidence
Auto Trait Implementations§
impl Freeze for ResponseEvidence
impl RefUnwindSafe for ResponseEvidence
impl Send for ResponseEvidence
impl Sync for ResponseEvidence
impl Unpin for ResponseEvidence
impl UnsafeUnpin for ResponseEvidence
impl UnwindSafe for ResponseEvidence
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