pub struct Interaction {Show 14 fields
pub id: String,
pub query: String,
pub response: String,
pub sources: Option<AnyObject>,
pub loading: bool,
pub error: bool,
pub error_message: Option<String>,
pub aborted: bool,
pub related: Option<String>,
pub current_step: Option<String>,
pub current_step_verbose: Option<String>,
pub selected_llm: Option<LlmConfig>,
pub optimized_query: Option<SearchParams>,
pub advanced_autoquery: Option<Value>,
}Expand description
Interaction state for conversations
Fields§
§id: String§query: String§response: String§sources: Option<AnyObject>§loading: bool§error: bool§error_message: Option<String>§aborted: bool§current_step: Option<String>§current_step_verbose: Option<String>§selected_llm: Option<LlmConfig>§optimized_query: Option<SearchParams>§advanced_autoquery: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
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 moreAuto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interaction
impl UnwindSafe for Interaction
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