pub struct AgentRunner { /* private fields */ }Expand description
AgentRunner composes multiple runners into a single unified stream with optional global analyzers applied to the merged stream.
Implementations§
Source§impl AgentRunner
impl AgentRunner
pub fn new() -> AgentRunner
pub fn add_runner(self, runner: Box<dyn Runner>) -> AgentRunner
pub fn add_global_analyzer(self, analyzer: Box<dyn Analyzer>) -> AgentRunner
pub fn runner_count(&self) -> usize
pub fn analyzer_count(&self) -> usize
Trait Implementations§
Source§impl Default for AgentRunner
impl Default for AgentRunner
Source§fn default() -> AgentRunner
fn default() -> AgentRunner
Returns the “default value” for a type. Read more
Source§impl Runner for AgentRunner
impl Runner for AgentRunner
fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Event> + Send>>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
'life0: 'async_trait,
AgentRunner: 'async_trait,
fn add_analyzer(self, analyzer: Box<dyn Analyzer>) -> AgentRunner
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRunner
impl !UnwindSafe for AgentRunner
impl Freeze for AgentRunner
impl Send for AgentRunner
impl Sync for AgentRunner
impl Unpin for AgentRunner
impl UnsafeUnpin for AgentRunner
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