pub struct TaskContextArtifact {
pub pack: ContextPack,
pub delta: String,
pub delta_ids: Vec<String>,
pub token_count: usize,
}Expand description
THE one complete task artifact (transport parity): the enriched task pack AND its surface delta derived together, from ONE builder.
Fields§
§pack: ContextPack§delta: StringThe task-personalized Surface delta (only NEW relevant APIs vs the ledger). Empty string when the delta budget is 0.
delta_ids: Vec<String>Entry ids the delta rendered (ledger recording). ALWAYS serialized (empty array, not omitted) — the public JSON contract the SDKs type.
token_count: usizeActual token count of the complete rendered artifact:
estimate_tokens(pack.content) + estimate_tokens(delta) computed
AFTER all enrichment (Beads/Hindsight), never from stale component
estimates — the accounting the SDKs and benchmarking rely on.
Trait Implementations§
Source§impl Clone for TaskContextArtifact
impl Clone for TaskContextArtifact
Source§impl Debug for TaskContextArtifact
impl Debug for TaskContextArtifact
Source§impl<'de> Deserialize<'de> for TaskContextArtifact
impl<'de> Deserialize<'de> for TaskContextArtifact
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 TaskContextArtifact
impl RefUnwindSafe for TaskContextArtifact
impl Send for TaskContextArtifact
impl Sync for TaskContextArtifact
impl Unpin for TaskContextArtifact
impl UnsafeUnpin for TaskContextArtifact
impl UnwindSafe for TaskContextArtifact
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