pub struct AgentRuntime<H: AgentHandler> { /* private fields */ }Expand description
Agent Runtime - keeps your agent online and responsive
Implementations§
Source§impl<H: AgentHandler + 'static> AgentRuntime<H>
impl<H: AgentHandler + 'static> AgentRuntime<H>
Sourcepub fn new(config: AgentConfig, handler: H) -> Self
pub fn new(config: AgentConfig, handler: H) -> Self
Create a new agent runtime
Sourcepub fn with_poll_interval(self, interval: Duration) -> Self
pub fn with_poll_interval(self, interval: Duration) -> Self
Set the polling interval (default: 5 seconds)
Auto Trait Implementations§
impl<H> Freeze for AgentRuntime<H>
impl<H> !RefUnwindSafe for AgentRuntime<H>
impl<H> Send for AgentRuntime<H>
impl<H> Sync for AgentRuntime<H>
impl<H> Unpin for AgentRuntime<H>
impl<H> UnsafeUnpin for AgentRuntime<H>
impl<H> !UnwindSafe for AgentRuntime<H>
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