pub struct DaemonHook {
pub memory: InMemory,
pub skills: SkillHandler,
pub mcp: McpHandler,
pub cron: CronHandler,
}Expand description
Stateful Hook implementation for the daemon.
Composes memory, skill, MCP, and cron sub-hooks. Each sub-hook
self-registers its tools via on_register_tools.
Fields§
§memory: InMemory§skills: SkillHandler§mcp: McpHandler§cron: CronHandlerImplementations§
Source§impl DaemonHook
impl DaemonHook
Sourcepub fn new(
memory: InMemory,
skills: SkillHandler,
mcp: McpHandler,
cron: CronHandler,
) -> Self
pub fn new( memory: InMemory, skills: SkillHandler, mcp: McpHandler, cron: CronHandler, ) -> Self
Create a new DaemonHook with the given backends.
Trait Implementations§
Source§impl Hook for DaemonHook
impl Hook for DaemonHook
Source§fn on_build_agent(&self, config: AgentConfig) -> AgentConfig
fn on_build_agent(&self, config: AgentConfig) -> AgentConfig
Source§fn on_event(&self, agent: &str, event: &AgentEvent)
fn on_event(&self, agent: &str, event: &AgentEvent)
Called by Runtime after each agent step during execution. Read more
Source§fn on_register_tools(
&self,
tools: &mut ToolRegistry,
) -> impl Future<Output = ()> + Send
fn on_register_tools( &self, tools: &mut ToolRegistry, ) -> impl Future<Output = ()> + Send
Called by
Runtime::new() to register tools into the shared registry. Read moreAuto Trait Implementations§
impl !Freeze for DaemonHook
impl !RefUnwindSafe for DaemonHook
impl Send for DaemonHook
impl Sync for DaemonHook
impl Unpin for DaemonHook
impl UnsafeUnpin for DaemonHook
impl !UnwindSafe for DaemonHook
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