pub struct ReadWithDeepContextMetadata {Show 14 fields
pub start_line: usize,
pub end_line: usize,
pub language: String,
pub dependencies: Vec<DeepContextDependency>,
pub degraded: bool,
pub degraded_reason: Option<DegradedReason>,
pub actionable_guidance: Option<ActionableGuidance>,
pub lsp_readiness: Option<String>,
pub warm_start_in_progress: Option<bool>,
pub dependencies_truncated: bool,
pub resolution_strategy: Option<String>,
pub duration_ms: Option<u64>,
pub imports: Vec<String>,
pub content: Option<String>,
}Expand description
The metadata embedded in structured_content for read_with_deep_context.
Fields§
§start_line: usizeStart line of the symbol (1-indexed).
end_line: usizeEnd line of the symbol (1-indexed).
language: StringDetected language.
dependencies: Vec<DeepContextDependency>Signatures of all symbols called by this one.
degraded: booltrue when LSP dependency resolution was unavailable (Tree-sitter only).
degraded_reason: Option<DegradedReason>Reason for degradation (e.g., "no_lsp").
actionable_guidance: Option<ActionableGuidance>Machine-readable guidance when degraded is true.
lsp_readiness: Option<String>IW-2: LSP readiness signal at the time of the call.
"ready": LSP is fully operational — results are authoritative."warming_up": LSP is still indexing — results may be partial."unavailable": No LSP; Tree-sitter fallback used.
warm_start_in_progress: Option<bool>Whether the LSP warm-start is still in progress at the time of the call.
dependencies_truncated: booltrue when the max_dependencies limit was reached and results were truncated.
resolution_strategy: Option<String>Spec 5.2: How the deep context was resolved.
One of: lsp_call_hierarchy, treesitter_direct, treesitter_fallback, grep_fallback.
Note: grep_fallback corresponds to GrepFallbackDependencies reason — the finer-grained
locate/trace values (grep_file_scoped, grep_impl_scoped, etc.) are NOT emitted here.
duration_ms: Option<u64>Spec 5.1: Wall-clock duration of the tool call in milliseconds.
imports: Vec<String>File-level import/using statements (populated when include_imports=true).
Contains the raw import lines from the file. Useful for Java, C#, Kotlin, and other OOP languages where imports clarify what types are in scope.
content: Option<String>Source code of the symbol. Populated so agents parsing structured_content
have access to source alongside dependencies without parsing the text channel.
Trait Implementations§
Source§impl Debug for ReadWithDeepContextMetadata
impl Debug for ReadWithDeepContextMetadata
Source§impl<'de> Deserialize<'de> for ReadWithDeepContextMetadata
impl<'de> Deserialize<'de> for ReadWithDeepContextMetadata
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 JsonSchema for ReadWithDeepContextMetadata
impl JsonSchema for ReadWithDeepContextMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more