pub struct ContextResponse {
pub query: String,
pub documents: Option<Vec<DocumentReference>>,
pub total_documents: usize,
pub total_tokens: usize,
pub coherence_score: f64,
pub smt_metrics: Option<Value>,
pub timings: Option<Value>,
pub cache_hit: bool,
pub cache_key_fingerprint: Option<String>,
}
Expand description
Assembled context response
Fields§
§query: String
The search query used
documents: Option<Vec<DocumentReference>>
Documents that were included in the context
total_documents: usize
Total number of documents included
total_tokens: usize
Total token count
coherence_score: f64
Coherence score of the assembled context
smt_metrics: Option<Value>
SMT solver metrics
timings: Option<Value>
Timing information
cache_hit: bool
Whether this was a cache hit
cache_key_fingerprint: Option<String>
Cache key fingerprint
Trait Implementations§
Source§impl Clone for ContextResponse
impl Clone for ContextResponse
Source§fn clone(&self) -> ContextResponse
fn clone(&self) -> ContextResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextResponse
impl Debug for ContextResponse
Source§impl<'de> Deserialize<'de> for ContextResponse
impl<'de> Deserialize<'de> for ContextResponse
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 ContextResponse
impl RefUnwindSafe for ContextResponse
impl Send for ContextResponse
impl Sync for ContextResponse
impl Unpin for ContextResponse
impl UnwindSafe for ContextResponse
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