Skip to main content

SearchFilesInput

Struct SearchFilesInput 

Source
pub struct SearchFilesInput {
    pub query: String,
    pub limit: Option<u32>,
    pub current_file: Option<String>,
    pub changed_with: Option<String>,
    pub resolve: Option<bool>,
    pub estimate: Option<bool>,
    pub max_tokens: Option<u64>,
    pub debug_ranking: Option<bool>,
    pub rank_by: Option<String>,
    pub anchor_path: Option<String>,
    pub include_vendor: Option<bool>,
    pub include_personal_tooling: Option<bool>,
}
Expand description

Input for search_files.

Fields§

§query: String

Filename, folder name, or partial path. Required for search and resolve modes. Optional when changed_with is provided.

§limit: Option<u32>

Optional maximum number of matches to return (default 20, capped at 50).

§current_file: Option<String>

Optional current file path to boost local results.

§changed_with: Option<String>

Deprecated since v7.x: prefer rank_by="path+cochange" with anchor_path=<path>. This compatibility path still finds files that frequently co-change with this file via git temporal coupling, but is scheduled for removal in v8.x.

§resolve: Option<bool>

Set to true for exact path resolution mode: resolves an ambiguous filename or partial path to one exact project path.

§estimate: Option<bool>

When true, return an approximate token cost estimate instead of actual content.

§max_tokens: Option<u64>

Optional maximum token budget for the response.

§debug_ranking: Option<bool>

When true, append a compact ranking explanation unless ranking diagnostics are disabled by policy. Missing values default off; SYMFORGE_DEBUG_RANKING=1 may still default diagnostics on operationally.

§rank_by: Option<String>

Optional ranking mode. "frecency" requests call-time frecency resolution: available session or persistent history is fused with path ranking, otherwise the response includes explicit fallback, unavailable, or disabled-by-policy evidence. "path+cochange" fuses path match with the coupling store when anchor_path is set and ready coupling data exists; otherwise the response reports call-time preparation, fallback, unavailable, stale, or disabled-by-policy evidence. Any other value (including None) preserves the default tier-based ordering exactly.

The separate changed_with= branch is preserved for compatibility.

§anchor_path: Option<String>

Anchor file used as the co-change pivot when rank_by="path+cochange".

§include_vendor: Option<bool>

When true, include vendored/third-party paths (vendor/, node_modules/, third_party/). Default false – vendor noise dominates path lookup in repos with embedded grammars.

§include_personal_tooling: Option<bool>

When true, include personal tooling paths (.claude/gsd-*). Default false – personal sidecars rarely answer codebase path questions.

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for SearchFilesInput

Source§

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 SearchFilesInput

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl Serialize for SearchFilesInput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more