pub struct Executor { /* private fields */ }Implementations§
Source§impl Executor
impl Executor
pub fn new( config: AgentConfig, llm: Arc<dyn LlmProvider>, tools: Option<Arc<ToolExecutor>>, ) -> Self
pub async fn execute( &self, session: &Session, user_input: &str, ) -> Result<AgentResponse>
pub async fn execute_stream( &self, session: &Session, user_input: &str, tx: Sender<AgentEvent>, ) -> Result<AgentResponse>
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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