pub struct ContextPack {Show 15 fields
pub kind: String,
pub repository_revision: String,
pub content: String,
pub entity_ids: Vec<String>,
pub evidence_summary: BTreeMap<String, usize>,
pub warnings: Vec<String>,
pub tokens: usize,
pub budget: usize,
pub original_tokens: usize,
pub dropped_sections: Vec<String>,
pub hard_truncated: bool,
pub exceeded_soft_budget: bool,
pub truncated: bool,
pub compression_policy: Option<Value>,
pub analysis_quality: Option<AnalysisQuality>,
}Fields§
§kind: String§repository_revision: String§content: String§entity_ids: Vec<String>§evidence_summary: BTreeMap<String, usize>§warnings: Vec<String>§tokens: usize§budget: usize§original_tokens: usizeToken count of the full (untruncated) pack, before budget dropping.
dropped_sections: Vec<String>Sections dropped for budget, by title (never critical sections).
hard_truncated: boolContent was cut mid-section (never happens for critical sections).
exceeded_soft_budget: boolThe minimum safe pack exceeds the soft budget: content was NOT silently truncated; the pack is complete and over budget.
truncated: boolTrue when the delivered content differs from the full pack (dropped sections, hard truncation, or budget overshoot).
compression_policy: Option<Value>RTK output-compression policy hints (docs/API_AND_INTEGRATIONS.md §11): what to preserve when compressing shell output for the agent.
analysis_quality: Option<AnalysisQuality>Compact analyzer-health summary (machine-readable). Absent when the index has not persisted gauges yet.
Trait Implementations§
Source§impl Clone for ContextPack
impl Clone for ContextPack
Source§impl Debug for ContextPack
impl Debug for ContextPack
Source§impl<'de> Deserialize<'de> for ContextPack
impl<'de> Deserialize<'de> for ContextPack
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
Source§impl JsonSchema for ContextPack
impl JsonSchema for ContextPack
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ContextPack
impl RefUnwindSafe for ContextPack
impl Send for ContextPack
impl Sync for ContextPack
impl Unpin for ContextPack
impl UnsafeUnpin for ContextPack
impl UnwindSafe for ContextPack
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