Skip to content

latent.context.models

Data models for context analysis reports.

Classes

ContextReport

ContextReport(findings: list[Finding] = list(), budget: BudgetBreakdown | None = None, has_critical: bool = False, has_warnings: bool = False)

Aggregated report from one or more context scanners.

Finding

Finding(scanner_name: str, severity: Literal['info', 'warning', 'critical'], message: str, suggestion: str = '', metadata: dict[str, Any] = dict())

A single finding from a context scanner.

Methods

ContextReport.render_markdown

render_markdown() -> str

Render the report as a markdown string.