pub struct StrategyResult {
pub strategy: RecommendedStrategy,
pub task_type: TaskType,
pub confidence: f32,
pub used_local_llm: bool,
pub reasoning: Option<String>,
}Expand description
Result of strategy selection
Fields§
§strategy: RecommendedStrategyRecommended strategy
task_type: TaskTypeTask type classification
confidence: f32Confidence score
used_local_llm: boolWhether LLM was used
reasoning: Option<String>Reasoning for the selection
Implementations§
Source§impl StrategyResult
impl StrategyResult
Sourcepub fn from_local(
strategy: RecommendedStrategy,
task_type: TaskType,
confidence: f32,
reasoning: Option<String>,
) -> Self
pub fn from_local( strategy: RecommendedStrategy, task_type: TaskType, confidence: f32, reasoning: Option<String>, ) -> Self
Create from LLM selection
Sourcepub fn from_heuristic(
strategy: RecommendedStrategy,
task_type: TaskType,
) -> Self
pub fn from_heuristic( strategy: RecommendedStrategy, task_type: TaskType, ) -> Self
Create from heuristic selection
Trait Implementations§
Source§impl Clone for StrategyResult
impl Clone for StrategyResult
Source§fn clone(&self) -> StrategyResult
fn clone(&self) -> StrategyResult
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 moreAuto Trait Implementations§
impl Freeze for StrategyResult
impl RefUnwindSafe for StrategyResult
impl Send for StrategyResult
impl Sync for StrategyResult
impl Unpin for StrategyResult
impl UnsafeUnpin for StrategyResult
impl UnwindSafe for StrategyResult
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