pub struct AgentRuntime { /* private fields */ }Implementations§
Source§impl AgentRuntime
impl AgentRuntime
pub fn new( provider: Arc<dyn Provider>, tools: Arc<ToolRegistry>, context: Arc<dyn ContextPolicy>, config: AgentConfig, workspace: PathBuf, ) -> Self
pub fn model(&self) -> &str
pub async fn run_turn( &self, history: &mut Vec<Message>, prompt: String, sink: Arc<dyn EventSink>, approvals: Arc<dyn ApprovalGate>, cancellation: CancellationToken, ) -> Result<TurnOutcome, AgentError>
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRuntime
impl !UnwindSafe for AgentRuntime
impl Freeze for AgentRuntime
impl Send for AgentRuntime
impl Sync for AgentRuntime
impl Unpin for AgentRuntime
impl UnsafeUnpin for AgentRuntime
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