pub struct NewWork {
pub messages: Vec<Message>,
pub tasks: Vec<Task>,
pub lapsing: Vec<Claim>,
pub agent: Option<String>,
}Expand description
13a (13.1b): what’s new for an agent since it was last shown
(Mnemo::new_work), for the per-turn hook.
Fields§
§messages: Vec<Message>Unread messages to it, its role or everyone, not yet seen.
tasks: Vec<Task>Tasks ready for its role, not yet seen.
lapsing: Vec<Claim>Its own task claims lapsing within
crate::memory::TASK_CLAIM_WARN_SECS, not yet warned about at this
expiry.
agent: Option<String>The agent it was read for: Mnemo::mark_shown records this agent
as having seen the broadcasts and the role’s tasks.
Implementations§
Trait Implementations§
impl StructuralPartialEq for NewWork
Auto Trait Implementations§
impl Forget for NewWork
impl Freeze for NewWork
impl Move for NewWork
impl RefUnwindSafe for NewWork
impl Send for NewWork
impl Sync for NewWork
impl Unpin for NewWork
impl UnsafeUnpin for NewWork
impl UnwindSafe for NewWork
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