pub struct UnderstandingEngine { /* private fields */ }Expand description
Understanding engine for analyzing tasks
Implementations§
Source§impl UnderstandingEngine
impl UnderstandingEngine
pub fn new(model: Arc<dyn LanguageModel>) -> Self
Sourcepub async fn understand(&self, request: &str) -> Result<TaskPlan, AgentError>
pub async fn understand(&self, request: &str) -> Result<TaskPlan, AgentError>
Understand and analyze a task
Auto Trait Implementations§
impl Freeze for UnderstandingEngine
impl !RefUnwindSafe for UnderstandingEngine
impl Send for UnderstandingEngine
impl Sync for UnderstandingEngine
impl Unpin for UnderstandingEngine
impl !UnwindSafe for UnderstandingEngine
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