McpFileSummary

Struct McpFileSummary 

Source
struct McpFileSummary<'a> {
Show 24 fields file_path: &'a str, language: &'a str, line_count: usize, source_status: Option<&'a str>, source_error: Option<&'a str>, parser_kind: &'a str, summary_status: &'a str, file_purpose: Option<&'a str>, file_purpose_status: Option<&'a str>, file_purpose_source: Option<&'a str>, file_purpose_agent_reviewed: bool, content_summary: &'a str, package: Option<&'a str>, docstring: Option<&'a str>, truncated: bool, functions: Option<Vec<McpFileSymbolSummary<'a>>>, methods: Option<Vec<McpFileSymbolSummary<'a>>>, classes: Option<Vec<McpFileSymbolSummary<'a>>>, types: Option<Vec<McpFileSymbolSummary<'a>>>, imports: Option<&'a [String]>, dependencies: Option<&'a [String]>, exports: Option<&'a [String]>, calls: Option<&'a [FileCallSummary]>, coverage: Option<McpCompactCoverageDigest<'a>>,
}
Expand description

Compact projection used when an agent follows a default startup recommendation.

Fields§

§file_path: &'a str

Repository-relative file path.

§language: &'a str

Detected language or file family.

§line_count: usize

Source line count.

§source_status: Option<&'a str>

Non-default source state when live source was unavailable.

§source_error: Option<&'a str>

Source read diagnostic when one exists.

§parser_kind: &'a str

Parser family that produced the summary.

§summary_status: &'a str

Summary quality state agents must inspect before trusting generated prose.

§file_purpose: Option<&'a str>

Durable file responsibility when present.

§file_purpose_status: Option<&'a str>

Purpose status for suggestions or other unreviewed rows.

§file_purpose_source: Option<&'a str>

Purpose source for suggestions or other unreviewed rows.

§file_purpose_agent_reviewed: bool

Whether an agent approved the retained responsibility.

§content_summary: &'a str

Current deterministic content summary.

§package: Option<&'a str>

Package or module name when present.

§docstring: Option<&'a str>

File documentation when present.

§truncated: bool

Whether the default bounded repeated sections omitted rows.

§functions: Option<Vec<McpFileSymbolSummary<'a>>>

Indexed functions when present.

§methods: Option<Vec<McpFileSymbolSummary<'a>>>

Indexed methods when present.

§classes: Option<Vec<McpFileSymbolSummary<'a>>>

Indexed classes when present.

§types: Option<Vec<McpFileSymbolSummary<'a>>>

Indexed type declarations when present.

§imports: Option<&'a [String]>

Imports when present.

§dependencies: Option<&'a [String]>

Manifest dependencies when present.

§exports: Option<&'a [String]>

Exported declarations when present.

§calls: Option<&'a [FileCallSummary]>

Call rows when present.

§coverage: Option<McpCompactCoverageDigest<'a>>

Coverage details only when they require agent attention.

Trait Implementations§

Source§

impl<'a> Debug for McpFileSummary<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a FileSummaryReport> for McpFileSummary<'a>

Source§

fn from(report: &'a FileSummaryReport) -> Self

Converts to this type from the input type.
Source§

impl<'a> Serialize for McpFileSummary<'a>

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§

§

impl<'a> Freeze for McpFileSummary<'a>

§

impl<'a> RefUnwindSafe for McpFileSummary<'a>

§

impl<'a> Send for McpFileSummary<'a>

§

impl<'a> Sync for McpFileSummary<'a>

§

impl<'a> Unpin for McpFileSummary<'a>

§

impl<'a> UnwindSafe for McpFileSummary<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,