pub struct DefaultAgentRuntime {
pub llm: Arc<dyn LlmPort>,
pub tools: Arc<dyn ToolPort>,
pub store: Arc<dyn SessionStore>,
pub events: Arc<dyn EventSink>,
pub default_model: String,
pub policy: TurnPolicy,
pub tool_policy: Arc<dyn ToolPolicyPort>,
pub approval: Arc<dyn ApprovalPort>,
pub dispatch_mode: DispatchMode,
pub checkpoint_store: Arc<dyn TurnCheckpointStorePort>,
pub artifact_store: Arc<dyn ArtifactStorePort>,
pub cost_meter: Arc<dyn CostMeterPort>,
}Expand description
Default runtime that composes the 4 port traits via Arc<dyn ...>.
Fields§
§llm: Arc<dyn LlmPort>§tools: Arc<dyn ToolPort>§store: Arc<dyn SessionStore>§events: Arc<dyn EventSink>§default_model: String§policy: TurnPolicy§tool_policy: Arc<dyn ToolPolicyPort>§approval: Arc<dyn ApprovalPort>§dispatch_mode: DispatchMode§checkpoint_store: Arc<dyn TurnCheckpointStorePort>§artifact_store: Arc<dyn ArtifactStorePort>§cost_meter: Arc<dyn CostMeterPort>Trait Implementations§
Source§impl AgentRuntime for DefaultAgentRuntime
impl AgentRuntime for DefaultAgentRuntime
Source§fn run<'life0, 'async_trait>(
&'life0 self,
req: AgentRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentRunResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
req: AgentRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentRunResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a single agent turn (blocking until complete).
Source§fn run_stream<'life0, 'async_trait>(
&'life0 self,
req: AgentRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentEventStream, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_stream<'life0, 'async_trait>(
&'life0 self,
req: AgentRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentEventStream, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a single agent turn with streaming events.
Auto Trait Implementations§
impl Freeze for DefaultAgentRuntime
impl !RefUnwindSafe for DefaultAgentRuntime
impl Send for DefaultAgentRuntime
impl Sync for DefaultAgentRuntime
impl Unpin for DefaultAgentRuntime
impl UnsafeUnpin for DefaultAgentRuntime
impl !UnwindSafe for DefaultAgentRuntime
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