pub struct AgentRuntime { /* private fields */ }Expand description
Cloneable provider-neutral subagent runtime.
Implementations§
Source§impl AgentRuntime
impl AgentRuntime
Sourcepub fn new(intelligence: Intelligence) -> Self
pub fn new(intelligence: Intelligence) -> Self
Constructs a runtime over the sole direct-model boundary.
Sourcepub async fn resolve_model(&self, requested: &str) -> Result<ResolvedAgentModel>
pub async fn resolve_model(&self, requested: &str) -> Result<ResolvedAgentModel>
Resolves a model without running an agent.
Sourcepub async fn run_session<H: SessionHost>(
&self,
request: SessionRunRequest,
host: &mut H,
) -> Result<Option<String>>
pub async fn run_session<H: SessionHost>( &self, request: SessionRunRequest, host: &mut H, ) -> Result<Option<String>>
Runs one primary logical turn across fresh provider rounds until the host completes it.
Trait Implementations§
Source§impl Clone for AgentRuntime
impl Clone for AgentRuntime
Source§fn clone(&self) -> AgentRuntime
fn clone(&self) -> AgentRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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