pub struct BuiltInPlanner { /* private fields */ }Expand description
Built-in planner that leverages the model’s native planning capabilities.
This is a lightweight planner that adds a simple planning instruction to encourage the model to think step-by-step before acting.
Implementations§
Trait Implementations§
Source§impl Clone for BuiltInPlanner
impl Clone for BuiltInPlanner
Source§fn clone(&self) -> BuiltInPlanner
fn clone(&self) -> BuiltInPlanner
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 moreSource§impl Debug for BuiltInPlanner
impl Debug for BuiltInPlanner
Source§impl Default for BuiltInPlanner
impl Default for BuiltInPlanner
Source§fn default() -> BuiltInPlanner
fn default() -> BuiltInPlanner
Returns the “default value” for a type. Read more
Source§impl Planner for BuiltInPlanner
impl Planner for BuiltInPlanner
Source§fn build_planning_instruction(
&self,
_request: &LlmRequest,
) -> Result<Option<String>, PlannerError>
fn build_planning_instruction( &self, _request: &LlmRequest, ) -> Result<Option<String>, PlannerError>
Build planning instructions to inject into the LLM request. Read more
Source§fn process_planning_response(
&self,
_response_text: &str,
) -> Result<Option<String>, PlannerError>
fn process_planning_response( &self, _response_text: &str, ) -> Result<Option<String>, PlannerError>
Process the LLM response from a planning-augmented request. Read more
Auto Trait Implementations§
impl Freeze for BuiltInPlanner
impl RefUnwindSafe for BuiltInPlanner
impl Send for BuiltInPlanner
impl Sync for BuiltInPlanner
impl Unpin for BuiltInPlanner
impl UnwindSafe for BuiltInPlanner
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