pub struct KnowledgeBaseCost {
pub type: TypeTrue,
pub model: Value,
pub prompt_tokens: f64,
pub completion_tokens: f64,
pub cost: f64,
}
Fields§
§type: TypeTrue
This is the type of cost, always ‘knowledge-base’ for this class.
model: Value
This is the model that was used for processing the knowledge base.
prompt_tokens: f64
This is the number of prompt tokens used in the knowledge base query.
completion_tokens: f64
This is the number of completion tokens generated in the knowledge base query.
cost: f64
This is the cost of the component in USD.
Implementations§
Trait Implementations§
Source§impl Clone for KnowledgeBaseCost
impl Clone for KnowledgeBaseCost
Source§fn clone(&self) -> KnowledgeBaseCost
fn clone(&self) -> KnowledgeBaseCost
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 KnowledgeBaseCost
impl Debug for KnowledgeBaseCost
Source§impl Default for KnowledgeBaseCost
impl Default for KnowledgeBaseCost
Source§fn default() -> KnowledgeBaseCost
fn default() -> KnowledgeBaseCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgeBaseCost
impl<'de> Deserialize<'de> for KnowledgeBaseCost
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 KnowledgeBaseCost
impl PartialEq for KnowledgeBaseCost
Source§impl Serialize for KnowledgeBaseCost
impl Serialize for KnowledgeBaseCost
impl StructuralPartialEq for KnowledgeBaseCost
Auto Trait Implementations§
impl Freeze for KnowledgeBaseCost
impl RefUnwindSafe for KnowledgeBaseCost
impl Send for KnowledgeBaseCost
impl Sync for KnowledgeBaseCost
impl Unpin for KnowledgeBaseCost
impl UnwindSafe for KnowledgeBaseCost
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