pub struct CompressedAttentionSelectionReceipt {Show 20 fields
pub schema_version: String,
pub pool_digest: Digest,
pub layer: u32,
pub head: u32,
pub candidate_count: u32,
pub selected_count: u32,
pub pool_candidate_count: u32,
pub shell_candidate_count: u32,
pub selected_pool_count: u32,
pub selected_shell_count: u32,
pub compressed_key_scores: u64,
pub decoded_value_vectors: u64,
pub full_layer_decoded: bool,
pub exact_fallback_required: bool,
pub scoring_path: String,
pub codec_id: String,
pub agent_id: Option<String>,
pub shell_digest: Option<Digest>,
pub claim_boundary: String,
pub selected_at_unix: i64,
}Expand description
Receipt produced when selecting attention candidates from compressed KV artifacts.
Fields§
§schema_version: StringStable schema marker.
pool_digest: DigestPool digest used for candidate selection.
layer: u32Layer index.
head: u32KV head index.
candidate_count: u32Number of candidate tokens scored in compressed form.
selected_count: u32Number of selected hits returned.
pool_candidate_count: u32Number of cold-pool candidates scored.
shell_candidate_count: u32Number of hot-shell candidates scored.
selected_pool_count: u32Number of selected hits from the cold pool.
selected_shell_count: u32Number of selected hits from the hot shell.
compressed_key_scores: u64Number of compressed key codes scored.
decoded_value_vectors: u64Number of value vectors decoded after top-k selection.
full_layer_decoded: boolTrue only when the full layer was decoded before scoring.
exact_fallback_required: boolWhether downstream model-quality claims require exact/logit/PPL fallback.
scoring_path: StringHuman-readable scoring path / claim boundary.
codec_id: StringCodec used by the cold shared pool.
agent_id: Option<String>Optional agent id when the selection includes a hot shell.
shell_digest: Option<Digest>Optional hot-shell digest when the selection includes a hot shell.
claim_boundary: StringExplicit claim boundary for this selection receipt.
selected_at_unix: i64Unix timestamp when selected.
Implementations§
Source§impl CompressedAttentionSelectionReceipt
impl CompressedAttentionSelectionReceipt
pub fn new( pool_digest: Digest, layer: u32, head: u32, candidate_count: u32, selected_count: u32, compressed_key_scores: u64, decoded_value_vectors: u64, full_layer_decoded: bool, scoring_path: impl Into<String>, codec_id: impl Into<String>, selected_at_unix: i64, ) -> Self
pub fn with_shell_source_counts( self, agent_id: impl Into<String>, shell_digest: Digest, pool_candidate_count: u32, shell_candidate_count: u32, selected_pool_count: u32, selected_shell_count: u32, ) -> Self
pub fn validate(&self) -> Result<()>
pub fn digest(&self) -> Result<Digest>
Trait Implementations§
Source§impl Clone for CompressedAttentionSelectionReceipt
impl Clone for CompressedAttentionSelectionReceipt
Source§fn clone(&self) -> CompressedAttentionSelectionReceipt
fn clone(&self) -> CompressedAttentionSelectionReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for CompressedAttentionSelectionReceipt
impl<'de> Deserialize<'de> for CompressedAttentionSelectionReceipt
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>,
impl StructuralPartialEq for CompressedAttentionSelectionReceipt
Auto Trait Implementations§
impl Freeze for CompressedAttentionSelectionReceipt
impl RefUnwindSafe for CompressedAttentionSelectionReceipt
impl Send for CompressedAttentionSelectionReceipt
impl Sync for CompressedAttentionSelectionReceipt
impl Unpin for CompressedAttentionSelectionReceipt
impl UnsafeUnpin for CompressedAttentionSelectionReceipt
impl UnwindSafe for CompressedAttentionSelectionReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.