pub struct PayloadMeta {
pub payload_hash: String,
pub bytes: u64,
pub tool_kind: String,
pub file_roots: Vec<FileRootSerde>,
pub upstream_keys: Vec<String>,
}Fields§
§payload_hash: Stringblake3 of the raw payload bytes; recorded so reads can detect a torn write or external file corruption rather than silently returning bad bytes.
bytes: u64Length of the payload bytes.
tool_kind: StringTool kind tag, free-form (“read”, “bash”, etc.) — used for telemetry and for tool-specific revalidation logic that the runtime layer applies on green hits.
file_roots: Vec<FileRootSerde>File dependencies of this entry. Each entry pairs a path with the blake3 of that file at the time the cache entry was written; on every green-hit lookup the file is re-blake3’d and the entry is invalidated on mismatch. Stored on disk so a fresh process can restore the cache state without depending on an in-memory registry that does not survive restart.
upstream_keys: Vec<String>Upstream cache-key dependencies. For LlmCall entries this is the
set of tool-call cache keys whose results appeared in the
prompt’s tool_result blocks; when one of those tool entries is
invalidated by a file edit, every LlmCall whose upstream set
contains that key is invalidated too. Tool-call entries
typically leave this empty (their dependencies are encoded in
file_roots); future M3+ extensions may use it for nested
composite nodes.
Trait Implementations§
Source§impl Clone for PayloadMeta
impl Clone for PayloadMeta
Source§fn clone(&self) -> PayloadMeta
fn clone(&self) -> PayloadMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PayloadMeta
impl Debug for PayloadMeta
Source§impl<'de> Deserialize<'de> for PayloadMeta
impl<'de> Deserialize<'de> for PayloadMeta
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>,
Source§impl PartialEq for PayloadMeta
impl PartialEq for PayloadMeta
Source§fn eq(&self, other: &PayloadMeta) -> bool
fn eq(&self, other: &PayloadMeta) -> bool
self and other values to be equal, and is used by ==.