pub struct RuntimeAgentBuilder { /* private fields */ }Expand description
Builder for Agent.
Delegates to AgentRuntimeBuilder internally.
Implementations§
Source§impl AgentBuilder
impl AgentBuilder
pub fn new() -> AgentBuilder
pub fn storage(self, v: Arc<dyn Storage>) -> AgentBuilder
pub fn persistence(self, v: Arc<dyn RuntimeSessionPersistence>) -> AgentBuilder
pub fn session_inbox(self, v: Arc<dyn SessionInboxPort>) -> AgentBuilder
pub fn activation_router(self, v: Arc<SessionActivationRouter>) -> AgentBuilder
pub fn session_messenger(self, v: Arc<SessionMessenger>) -> AgentBuilder
pub fn attachment_reader(self, v: Arc<dyn AttachmentReader>) -> AgentBuilder
pub fn skill_manager(self, v: Arc<SkillManager>) -> AgentBuilder
pub fn project_context_resolver( self, v: Arc<ProjectContextResolver>, ) -> AgentBuilder
pub fn metrics_collector(self, v: MetricsCollector) -> AgentBuilder
pub fn config(self, v: Arc<RwLock<Config>>) -> AgentBuilder
pub fn permission_config(self, v: Arc<PermissionConfig>) -> AgentBuilder
pub fn permission_mode(self, v: PermissionMode) -> AgentBuilder
pub fn provider(self, v: Arc<dyn LLMProvider>) -> AgentBuilder
pub fn default_tools(self, v: Arc<dyn ToolExecutor>) -> AgentBuilder
Sourcepub fn hook_runner(self, v: Arc<HookRunner>) -> AgentBuilder
pub fn hook_runner(self, v: Arc<HookRunner>) -> AgentBuilder
Install an immutable lifecycle-hook registry for this agent runtime.
pub fn build(self) -> Result<Agent, &'static str>
Trait Implementations§
Source§impl Default for AgentBuilder
impl Default for AgentBuilder
Source§fn default() -> AgentBuilder
fn default() -> AgentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AgentBuilder
impl !UnwindSafe for AgentBuilder
impl Freeze for AgentBuilder
impl Send for AgentBuilder
impl Sync for AgentBuilder
impl Unpin for AgentBuilder
impl UnsafeUnpin for AgentBuilder
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