pub struct MarkdownFormatter;Expand description
Utilities for formatting job processor output as markdown
Implementations§
Source§impl MarkdownFormatter
impl MarkdownFormatter
Sourcepub fn format_as_markdown(
config: &JobConfig,
files_summary: &str,
file_groups: &HashMap<String, Vec<&FileChunkResult>>,
final_summary: &str,
) -> String
pub fn format_as_markdown( config: &JobConfig, files_summary: &str, file_groups: &HashMap<String, Vec<&FileChunkResult>>, final_summary: &str, ) -> String
Formats the analysis results as well-structured Markdown using the builder
Sourcepub fn add_file_analyses(
builder: &mut MarkdownBuilder,
file_groups: &HashMap<String, Vec<&FileChunkResult>>,
)
pub fn add_file_analyses( builder: &mut MarkdownBuilder, file_groups: &HashMap<String, Vec<&FileChunkResult>>, )
Formats file analyses section in markdown
Sourcepub fn clean_ai_output(output: &str) -> String
pub fn clean_ai_output(output: &str) -> String
Cleans up AI output for better markdown formatting
Sourcepub fn clean_processing_summary(files_summary: &str) -> String
pub fn clean_processing_summary(files_summary: &str) -> String
Cleans the processing summary text
Auto Trait Implementations§
impl Freeze for MarkdownFormatter
impl RefUnwindSafe for MarkdownFormatter
impl Send for MarkdownFormatter
impl Sync for MarkdownFormatter
impl Unpin for MarkdownFormatter
impl UnwindSafe for MarkdownFormatter
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
Mutably borrows from an owned value. Read more
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>
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 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>
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 moreCreates a shared type from an unshared type.