pub struct ScheduleContext {
pub schedule_store: Arc<ScheduleStore>,
pub agent: Arc<Agent>,
pub persistence: Arc<LockedSessionStore>,
pub tools: Arc<dyn ToolExecutor>,
pub sessions_cache: SessionCache,
pub agent_runners: Arc<RwLock<HashMap<String, AgentRunner>>>,
pub session_event_senders: Arc<RwLock<HashMap<String, Sender<AgentEvent>>>>,
pub account_feed_inbox: Option<AccountFeedInbox>,
pub app_data_dir: Option<PathBuf>,
pub trigger_engine: DynTriggerEngine,
pub notification_relay: NotificationRelayDeps,
pub resolve_run_config: Arc<dyn Fn(&ScheduleRunJob) -> ResolvedRunConfig + Send + Sync>,
}Fields§
§schedule_store: Arc<ScheduleStore>§agent: Arc<Agent>§persistence: Arc<LockedSessionStore>§tools: Arc<dyn ToolExecutor>§sessions_cache: SessionCache§agent_runners: Arc<RwLock<HashMap<String, AgentRunner>>>§session_event_senders: Arc<RwLock<HashMap<String, Sender<AgentEvent>>>>§account_feed_inbox: Option<AccountFeedInbox>Optional inbox to the account-wide change feed (durable multi-client sync).
app_data_dir: Option<PathBuf>§trigger_engine: DynTriggerEngine§notification_relay: NotificationRelayDepsDependencies to start the always-on notification relay (see
crate::app_state::session_events::ensure_notification_relay).
Scheduled runs previously never classified events into notifications
at all — nothing spawned a relay for a session no SSE/WS client had
ever subscribed to, which is the common case for a headless run.
resolve_run_config: Arc<dyn Fn(&ScheduleRunJob) -> ResolvedRunConfig + Send + Sync>Adapter-provided callback that resolves model, system prompt, workspace path and reasoning effort for a schedule run job.
Trait Implementations§
Source§impl Clone for ScheduleContext
impl Clone for ScheduleContext
Source§fn clone(&self) -> ScheduleContext
fn clone(&self) -> ScheduleContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ScheduleContext
impl !UnwindSafe for ScheduleContext
impl Freeze for ScheduleContext
impl Send for ScheduleContext
impl Sync for ScheduleContext
impl Unpin for ScheduleContext
impl UnsafeUnpin for ScheduleContext
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