pub struct FocusAnalysisResult {
pub relevance: f32,
pub is_focus_update: bool,
pub new_topic: Option<String>,
pub new_question: Option<String>,
pub context_to_add: Option<String>,
pub reason: String,
}Expand description
Result of AI focus analysis on a message.
Fields§
§relevance: f32Relevance score to current focus (0.0 to 1.0).
is_focus_update: boolWhether the focus needs to be updated.
new_topic: Option<String>New topic if focus needs update.
new_question: Option<String>New question if focus needs update.
context_to_add: Option<String>Context to add for better understanding.
reason: StringReason for the judgment.
Trait Implementations§
Source§impl Clone for FocusAnalysisResult
impl Clone for FocusAnalysisResult
Source§fn clone(&self) -> FocusAnalysisResult
fn clone(&self) -> FocusAnalysisResult
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 moreSource§impl Debug for FocusAnalysisResult
impl Debug for FocusAnalysisResult
Source§impl Default for FocusAnalysisResult
impl Default for FocusAnalysisResult
Source§impl<'de> Deserialize<'de> for FocusAnalysisResult
impl<'de> Deserialize<'de> for FocusAnalysisResult
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 FocusAnalysisResult
impl RefUnwindSafe for FocusAnalysisResult
impl Send for FocusAnalysisResult
impl Sync for FocusAnalysisResult
impl Unpin for FocusAnalysisResult
impl UnsafeUnpin for FocusAnalysisResult
impl UnwindSafe for FocusAnalysisResult
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