pub struct RuntimeBuilder { /* private fields */ }Expand description
Trait-first runtime builder used by composition roots.
This keeps wiring explicit while avoiding a monolithic main.rs.
Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
pub fn new() -> Self
pub fn with_llm(self, llm: Arc<dyn LlmPort>) -> Self
pub fn with_tools(self, tools: Arc<dyn ToolPort>) -> Self
pub fn with_store(self, store: Arc<dyn SessionStore>) -> Self
pub fn with_events(self, events: Arc<dyn EventSink>) -> Self
pub fn with_default_model(self, default_model: impl Into<String>) -> Self
pub fn with_policy(self, policy: TurnPolicy) -> Self
pub fn with_tool_policy(self, tool_policy: Arc<dyn ToolPolicyPort>) -> Self
pub fn with_approval(self, approval: Arc<dyn ApprovalPort>) -> Self
pub fn with_dispatch_mode(self, dispatch_mode: DispatchMode) -> Self
pub fn with_checkpoint_store( self, checkpoint_store: Arc<dyn TurnCheckpointStorePort>, ) -> Self
pub fn with_artifact_store( self, artifact_store: Arc<dyn ArtifactStorePort>, ) -> Self
pub fn with_cost_meter(self, cost_meter: Arc<dyn CostMeterPort>) -> Self
pub fn add_tool_layer(self, layer: Arc<dyn ToolLayer>) -> Self
Trait Implementations§
Source§impl AgentBootstrap for RuntimeBuilder
impl AgentBootstrap for RuntimeBuilder
Source§fn build(self) -> Result<Arc<dyn AgentRuntime>, AgentError>where
Self: Sized,
fn build(self) -> Result<Arc<dyn AgentRuntime>, AgentError>where
Self: Sized,
Consume the builder and produce a ready-to-use runtime.
Source§impl Debug for RuntimeBuilder
impl Debug for RuntimeBuilder
Source§impl Default for RuntimeBuilder
impl Default for RuntimeBuilder
Source§fn default() -> RuntimeBuilder
fn default() -> RuntimeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeBuilder
impl !RefUnwindSafe for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
impl !UnwindSafe for RuntimeBuilder
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