pub struct StrategySelector { /* private fields */ }Expand description
Strategy selector for MDAP decomposition
Implementations§
Source§impl StrategySelector
impl StrategySelector
Sourcepub fn new(provider: Arc<dyn Provider>, model_id: impl Into<String>) -> Self
pub fn new(provider: Arc<dyn Provider>, model_id: impl Into<String>) -> Self
Create a new strategy selector
Sourcepub async fn select_strategy(&self, task: &str) -> Option<StrategyResult>
pub async fn select_strategy(&self, task: &str) -> Option<StrategyResult>
Select the optimal decomposition strategy for a task
Sourcepub fn select_heuristic(&self, task: &str) -> StrategyResult
pub fn select_heuristic(&self, task: &str) -> StrategyResult
Heuristic strategy selection (pattern-based fallback)
Auto Trait Implementations§
impl Freeze for StrategySelector
impl !RefUnwindSafe for StrategySelector
impl Send for StrategySelector
impl Sync for StrategySelector
impl Unpin for StrategySelector
impl UnsafeUnpin for StrategySelector
impl !UnwindSafe for StrategySelector
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