pub struct AgentRuntimeBuilder { /* private fields */ }Expand description
Builder for AgentRuntime.
// In real code all fields are provided by the server assembly.
let rt = AgentRuntimeBuilder::new()
// .storage(...)
// .provider(...)
.build();Implementations§
Source§impl AgentRuntimeBuilder
impl AgentRuntimeBuilder
pub fn new() -> Self
pub fn storage(self, v: Arc<dyn Storage>) -> Self
pub fn persistence(self, v: Arc<dyn RuntimeSessionPersistence>) -> Self
pub fn attachment_reader(self, v: Arc<dyn AttachmentReader>) -> Self
pub fn skill_manager(self, v: Arc<SkillManager>) -> Self
pub fn metrics_collector(self, v: MetricsCollector) -> Self
pub fn config(self, v: Arc<RwLock<Config>>) -> Self
pub fn provider(self, v: Arc<dyn LLMProvider>) -> Self
pub fn default_tools(self, v: Arc<dyn ToolExecutor>) -> Self
pub fn build(self) -> Result<AgentRuntime, &'static str>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRuntimeBuilder
impl !UnwindSafe for AgentRuntimeBuilder
impl Freeze for AgentRuntimeBuilder
impl Send for AgentRuntimeBuilder
impl Sync for AgentRuntimeBuilder
impl Unpin for AgentRuntimeBuilder
impl UnsafeUnpin for AgentRuntimeBuilder
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