pub struct GetRepoMapMetadata {Show 19 fields
pub tech_stack: Vec<String>,
pub mode: Option<String>,
pub dirs_scanned: Option<usize>,
pub files_scanned: usize,
pub files_truncated: usize,
pub truncated_paths: Vec<String>,
pub files_in_scope: usize,
pub coverage_percent: u8,
pub version_hashes: HashMap<String, String>,
pub visibility_degraded: Option<bool>,
pub degraded: bool,
pub degraded_reason: Option<DegradedReason>,
pub actionable_guidance: Option<ActionableGuidance>,
pub capabilities: RepoCapabilities,
pub max_tokens_used: u32,
pub lsp_status: Option<HashMap<String, String>>,
pub duration_ms: Option<u64>,
pub hint: Option<String>,
pub suggested_max_tokens: Option<u32>,
}Expand description
The metadata embedded in structured_content for get_repo_map.
Fields§
§tech_stack: Vec<String>Technology stack of the repository.
mode: Option<String>The detail mode used for this response: "structure", "files", or "symbols".
dirs_scanned: Option<usize>Number of directories scanned during repository mapping (structure mode only).
files_scanned: usizeNumber of files scanned.
files_truncated: usizeNumber of files truncated.
truncated_paths: Vec<String>File paths that were truncated due to token budget.
files_in_scope: usizeNumber of files within the configured scope.
coverage_percent: u8Percentage of files covered by the search.
version_hashes: HashMap<String, String>Map of file paths to their version hashes.
visibility_degraded: Option<bool>Absent when visibility filtering is working correctly.
Present as true if the visibility filter could not be applied
(agents should then treat all symbols as public).
degraded: booltrue when filtering by changed_since fails (e.g., git is unavailable).
degraded_reason: Option<DegradedReason>Reason for degradation.
actionable_guidance: Option<ActionableGuidance>Machine-readable guidance when degraded is true.
capabilities: RepoCapabilitiesSystem capabilities available for this repository.
max_tokens_used: u32Actual max_tokens used (may differ from requested due to auto-scaling).
lsp_status: Option<HashMap<String, String>>Flat map of language ID to status string ("ready", "warming_up", "unavailable").
duration_ms: Option<u64>Wall-clock time in milliseconds that this tool call took to complete.
hint: Option<String>Optional hint for the agent (e.g. suggesting to increase max_tokens if coverage < 100).
suggested_max_tokens: Option<u32>Structured recommendation for max_tokens to achieve full coverage.
Trait Implementations§
Source§impl Debug for GetRepoMapMetadata
impl Debug for GetRepoMapMetadata
Source§impl<'de> Deserialize<'de> for GetRepoMapMetadata
impl<'de> Deserialize<'de> for GetRepoMapMetadata
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 GetRepoMapMetadata
impl JsonSchema for GetRepoMapMetadata
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