pub struct ScheduleEntry {
pub cron: String,
pub message: String,
pub sends_to: Option<String>,
pub not_after: Option<String>,
pub reply_to: Option<String>,
}Fields§
§cron: String§message: String§sends_to: Option<String>§not_after: Option<String>Retire the entry once its next firing would fall after this instant (RFC3339 with offset). How a one-shot reminder is expressed: cron has no year field, so “tomorrow at 10:00” can only be written as an annual recurrence, and unbounded it turns a request for one morning into a perpetual commitment (#1119).
A bound rather than a fired-yet flag, because the scheduler runs inside
the agent’s own sandbox where profile.yaml is denied
(SELF_PROTECTED_AGENT_FILES, #712) — it cannot record that an entry has
fired. Comparing the next firing against a stored instant needs no write
at all, so the bound works where a flag structurally could not.
reply_to: Option<String>The conversation the reminder was asked for in (#2464). A fired turn’s reply goes there as well as to the schedule channel: the schedule channel is the record, but the person who said “check again in half an hour” is looking at the conversation they said it in.