pub struct ContextPacket {
pub pinned_paths: Vec<PathBuf>,
pub inlined_files: Vec<InlinedFile>,
pub prior_context: String,
pub critique: Option<String>,
}Expand description
The assembled context for one node, shaped per worker family by the context
assembler (CONTEXT.md §12).
For a harness worker the assembler writes a thin packet and pins file paths (the worker reads the repo itself). For an API worker it inlines file contents (the model sees only what is sent). Both forms are carried here; an adapter consumes whichever fits its family.
Fields§
§pinned_paths: Vec<PathBuf>Pinned file paths for harness workers to read themselves.
inlined_files: Vec<InlinedFile>Inlined (path, contents) for API workers.
prior_context: StringPrior node outputs / blackboard digest text relevant to this node.
critique: Option<String>A critique artifact from a failed evaluator, fed back on loop-back
(CONTEXT.md §10, §11).
Trait Implementations§
Source§impl Clone for ContextPacket
impl Clone for ContextPacket
Source§fn clone(&self) -> ContextPacket
fn clone(&self) -> ContextPacket
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 moreSource§impl Debug for ContextPacket
impl Debug for ContextPacket
Source§impl Default for ContextPacket
impl Default for ContextPacket
Source§fn default() -> ContextPacket
fn default() -> ContextPacket
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextPacket
impl<'de> Deserialize<'de> for ContextPacket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextPacket
impl RefUnwindSafe for ContextPacket
impl Send for ContextPacket
impl Sync for ContextPacket
impl Unpin for ContextPacket
impl UnsafeUnpin for ContextPacket
impl UnwindSafe for ContextPacket
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