pub struct AnalysisCostBreakdown {
pub summary: Option<f64>,
pub summary_prompt_tokens: Option<f64>,
pub summary_completion_tokens: Option<f64>,
pub structured_data: Option<f64>,
pub structured_data_prompt_tokens: Option<f64>,
pub structured_data_completion_tokens: Option<f64>,
pub success_evaluation: Option<f64>,
pub success_evaluation_prompt_tokens: Option<f64>,
pub success_evaluation_completion_tokens: Option<f64>,
}
Fields§
§summary: Option<f64>
This is the cost to summarize the call.
summary_prompt_tokens: Option<f64>
This is the number of prompt tokens used to summarize the call.
summary_completion_tokens: Option<f64>
This is the number of completion tokens used to summarize the call.
structured_data: Option<f64>
This is the cost to extract structured data from the call.
structured_data_prompt_tokens: Option<f64>
This is the number of prompt tokens used to extract structured data from the call.
structured_data_completion_tokens: Option<f64>
This is the number of completion tokens used to extract structured data from the call.
success_evaluation: Option<f64>
This is the cost to evaluate if the call was successful.
success_evaluation_prompt_tokens: Option<f64>
This is the number of prompt tokens used to evaluate if the call was successful.
success_evaluation_completion_tokens: Option<f64>
This is the number of completion tokens used to evaluate if the call was successful.
Implementations§
Source§impl AnalysisCostBreakdown
impl AnalysisCostBreakdown
pub fn new() -> AnalysisCostBreakdown
Trait Implementations§
Source§impl Clone for AnalysisCostBreakdown
impl Clone for AnalysisCostBreakdown
Source§fn clone(&self) -> AnalysisCostBreakdown
fn clone(&self) -> AnalysisCostBreakdown
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnalysisCostBreakdown
impl Debug for AnalysisCostBreakdown
Source§impl Default for AnalysisCostBreakdown
impl Default for AnalysisCostBreakdown
Source§fn default() -> AnalysisCostBreakdown
fn default() -> AnalysisCostBreakdown
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnalysisCostBreakdown
impl<'de> Deserialize<'de> for AnalysisCostBreakdown
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 AnalysisCostBreakdown
impl PartialEq for AnalysisCostBreakdown
Source§impl Serialize for AnalysisCostBreakdown
impl Serialize for AnalysisCostBreakdown
impl StructuralPartialEq for AnalysisCostBreakdown
Auto Trait Implementations§
impl Freeze for AnalysisCostBreakdown
impl RefUnwindSafe for AnalysisCostBreakdown
impl Send for AnalysisCostBreakdown
impl Sync for AnalysisCostBreakdown
impl Unpin for AnalysisCostBreakdown
impl UnwindSafe for AnalysisCostBreakdown
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