pub struct ChatWithDocsResponse {
pub message: String,
pub documents_used: Option<Vec<String>>,
pub confidence: Option<f64>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Response from chat with documents
Fields§
§message: StringThe response message
documents_used: Option<Vec<String>>Document references used
confidence: Option<f64>Confidence score
metadata: Option<HashMap<String, Value>>Additional metadata
Trait Implementations§
Source§impl Clone for ChatWithDocsResponse
impl Clone for ChatWithDocsResponse
Source§fn clone(&self) -> ChatWithDocsResponse
fn clone(&self) -> ChatWithDocsResponse
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 ChatWithDocsResponse
impl Debug for ChatWithDocsResponse
Source§impl<'de> Deserialize<'de> for ChatWithDocsResponse
impl<'de> Deserialize<'de> for ChatWithDocsResponse
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 ChatWithDocsResponse
impl RefUnwindSafe for ChatWithDocsResponse
impl Send for ChatWithDocsResponse
impl Sync for ChatWithDocsResponse
impl Unpin for ChatWithDocsResponse
impl UnwindSafe for ChatWithDocsResponse
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