pub struct Planner { /* private fields */ }Expand description
Planner for generating task plans using the plan model.
Implementations§
Source§impl Planner
impl Planner
Sourcepub fn new(provider: Box<dyn Provider>, config: ModelConfig) -> Self
pub fn new(provider: Box<dyn Provider>, config: ModelConfig) -> Self
Create a new planner.
Sourcepub async fn plan(
&self,
request: &str,
available_tools: &[&str],
) -> Result<TaskPlan>
pub async fn plan( &self, request: &str, available_tools: &[&str], ) -> Result<TaskPlan>
Generate a task plan for the given request.
Sourcepub async fn assess_complexity(&self, request: &str) -> Result<TaskComplexity>
pub async fn assess_complexity(&self, request: &str) -> Result<TaskComplexity>
Quick complexity assessment using fast model.
Auto Trait Implementations§
impl Freeze for Planner
impl !RefUnwindSafe for Planner
impl Send for Planner
impl Sync for Planner
impl Unpin for Planner
impl UnsafeUnpin for Planner
impl !UnwindSafe for Planner
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