pub struct TurnJob {
pub ctx: String,
pub event: Option<String>,
pub principal: Option<String>,
pub message: Option<Msg>,
pub skills: Vec<String>,
pub text: String,
pub preflight_done: bool,
pub knowledge_done: bool,
pub knowledge: Option<String>,
}Expand description
A queued root/conversation turn (RFC 0026 §3.2), waiting for a slot and for its context to be free.
Fields§
§ctx: String§event: Option<String>The triggering inbox event (marked done when the turn completes).
principal: Option<String>§message: Option<Msg>The message appended to the context before the turn (already appended
when None).
skills: Vec<String>Skill references to preload.
text: StringThe user text (for preflight / knowledge retrieval).
preflight_done: boolPreflight ran (or was not needed).
knowledge_done: boolKnowledge auto-context ran (or was not needed).
knowledge: Option<String>The retrieved knowledge block (system message) for this turn.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnJob
impl RefUnwindSafe for TurnJob
impl Send for TurnJob
impl Sync for TurnJob
impl Unpin for TurnJob
impl UnsafeUnpin for TurnJob
impl UnwindSafe for TurnJob
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