pub struct Run<'a> {
pub agent: &'a AgentName,
pub instructions: &'a str,
pub memory: Option<&'a str>,
pub brief: &'a str,
pub handover: Option<&'a str>,
pub body: &'a str,
}Expand description
Everything one run is told.
Borrowed rather than owned: every part of this already exists somewhere the Tower holds, and copying a 34 KB prompt to build a struct that immediately concatenates it is wasted work.
Fields§
§agent: &'a AgentNameWhich agent this is. Comes from the Tower’s own record, never from the agent.
instructions: &'a strThe agent’s composed instructions, with @include already resolved.
memory: Option<&'a str>What the agent wrote down for itself, if anything.
brief: &'a strLearnings and the help instructions, from crate::brief::brief.
handover: Option<&'a str>Why this run follows another, from crate::handover::Handover::brief. Empty for an
ordinary dispatch.
body: &'a strThe message that woke this agent.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Run<'a>
impl<'a> RefUnwindSafe for Run<'a>
impl<'a> Send for Run<'a>
impl<'a> Sync for Run<'a>
impl<'a> Unpin for Run<'a>
impl<'a> UnsafeUnpin for Run<'a>
impl<'a> UnwindSafe for Run<'a>
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