mentra 0.6.0

An agent runtime for tool-using LLM applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use crate::agent::AgentEvent;

use super::BackgroundTaskSummary;

pub(crate) trait BackgroundObserverSink: Send + Sync {
    fn publish_snapshot(&self, tasks: &[BackgroundTaskSummary]);
    fn publish_event(&self, event: AgentEvent);
}

#[derive(Clone)]
pub(crate) struct BackgroundRegistration {
    pub(crate) agent_id: String,
    pub(crate) observer: Arc<dyn BackgroundObserverSink>,
}