pub struct GetRepoMapParams {
pub path: String,
pub max_tokens: u32,
pub depth: u32,
pub visibility: Visibility,
pub include_imports: IncludeImports,
pub max_tokens_per_file: u32,
pub changed_since: String,
pub include_extensions: Vec<String>,
pub exclude_extensions: Vec<String>,
}Expand description
Parameters for get_repo_map.
Fields§
§path: StringDirectory to map.
max_tokens: u32Total token budget for the entire skeleton output. Default: 16000.
When coverage_percent in the response is low, increase this value
to include more files in the map.
depth: u32Max directory traversal depth (default: 5).
Increase this value when coverage_percent in the response is low
or when your project has deeply-nested source files (e.g. a depth 6+
monorepo). The walker stops early on shallow repos, so over-provisioning
is safe and nearly free.
visibility: VisibilityVisibility filter: public or all.
include_imports: IncludeImportsImport inclusion: none, third_party, or all.
max_tokens_per_file: u32Per-file token cap before a file skeleton is collapsed to a summary stub.
When the rendered skeleton of an individual file exceeds this limit, the
file is replaced with a truncated stub showing only class/struct names and
method counts. Increase this value when files show [TRUNCATED DUE TO SIZE]
in the output. Default: 2000.
changed_since: StringGit ref or duration to show only recently modified files (e.g., HEAD~5, 3h, 2024-01-01).
include_extensions: Vec<String>Only include files with these extensions. Mutually exclusive with exclude_extensions.
exclude_extensions: Vec<String>Exclude files with these extensions. Mutually exclusive with include_extensions.
Trait Implementations§
Source§impl Debug for GetRepoMapParams
impl Debug for GetRepoMapParams
Source§impl Default for GetRepoMapParams
impl Default for GetRepoMapParams
Source§fn default() -> GetRepoMapParams
fn default() -> GetRepoMapParams
Source§impl<'de> Deserialize<'de> for GetRepoMapParams
impl<'de> Deserialize<'de> for GetRepoMapParams
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 GetRepoMapParams
impl JsonSchema for GetRepoMapParams
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 moreAuto Trait Implementations§
impl Freeze for GetRepoMapParams
impl RefUnwindSafe for GetRepoMapParams
impl Send for GetRepoMapParams
impl Sync for GetRepoMapParams
impl Unpin for GetRepoMapParams
impl UnsafeUnpin for GetRepoMapParams
impl UnwindSafe for GetRepoMapParams
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more