pub struct AgentLoop { /* private fields */ }Expand description
The core agent loop.
Implementations§
Source§impl AgentLoop
impl AgentLoop
Sourcepub fn new(
provider: Box<dyn StreamingProvider>,
config: AgentConfig,
tools: ToolRegistry,
event_tx: EventSender,
) -> Self
pub fn new( provider: Box<dyn StreamingProvider>, config: AgentConfig, tools: ToolRegistry, event_tx: EventSender, ) -> Self
Create a new agent loop.
Auto Trait Implementations§
impl Freeze for AgentLoop
impl !RefUnwindSafe for AgentLoop
impl Send for AgentLoop
impl Sync for AgentLoop
impl Unpin for AgentLoop
impl !UnwindSafe for AgentLoop
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