pub struct Agent { /* private fields */ }Implementations§
Source§impl Agent
impl Agent
pub fn run( &self, client: &mut dyn ModelClient, options: RunOptions, ) -> Result<RunResult, AgentError>
pub fn run_with_events( &self, client: &mut dyn ModelClient, options: RunOptions, on_event: Option<&mut dyn FnMut(&AgentEvent)>, ) -> Result<RunResult, AgentError>
pub fn continue_run( &self, client: &mut dyn ModelClient, options: ContinueOptions, ) -> Result<RunResult, AgentError>
pub fn continue_with_events( &self, client: &mut dyn ModelClient, options: ContinueOptions, on_event: Option<&mut dyn FnMut(&AgentEvent)>, ) -> Result<RunResult, AgentError>
Auto Trait Implementations§
impl !RefUnwindSafe for Agent
impl !UnwindSafe for Agent
impl Freeze for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
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