pub struct LlmBackedPlanner { /* private fields */ }
Implementations§
Source§impl LlmBackedPlanner
impl LlmBackedPlanner
pub fn new(model: Arc<dyn LanguageModel>) -> Self
Sourcepub fn model(&self) -> &Arc<dyn LanguageModel>
pub fn model(&self) -> &Arc<dyn LanguageModel>
Get the underlying language model for direct access (e.g., streaming)
Trait Implementations§
Source§impl Clone for LlmBackedPlanner
impl Clone for LlmBackedPlanner
Source§fn clone(&self) -> LlmBackedPlanner
fn clone(&self) -> LlmBackedPlanner
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 PlannerHandle for LlmBackedPlanner
impl PlannerHandle for LlmBackedPlanner
fn plan<'life0, 'async_trait>(
&'life0 self,
context: PlannerContext,
_state: Arc<AgentStateSnapshot>,
) -> Pin<Box<dyn Future<Output = Result<PlannerDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LlmBackedPlanner
impl !RefUnwindSafe for LlmBackedPlanner
impl Send for LlmBackedPlanner
impl Sync for LlmBackedPlanner
impl Unpin for LlmBackedPlanner
impl !UnwindSafe for LlmBackedPlanner
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