Skip to content

Index

code_context_agent.models

Data models for code-context-agent.

FrozenModel

Bases: BaseModel

Immutable model (like frozen dataclass).

This model: - Prevents mutation (frozen=True) - Validates assignments - Forbids extra fields

Use for result objects and immutable data structures.

StrictModel

Bases: BaseModel

Base model with strict validation.

This model: - Allows mutation (frozen=False) - Validates assignments - Forbids extra fields - Strips whitespace from strings

AnalysisResult

Bases: FrozenModel

Structured output for the complete analysis.

This model captures the analysis summary returned by the agent. The actual files (CONTEXT.md, bundles, etc.) are created by tools.

ArchitecturalRisk

Bases: FrozenModel

An identified architectural risk.

BusinessLogicItem

Bases: FrozenModel

A ranked business logic item discovered during analysis.

GeneratedFile

Bases: FrozenModel

Record of a file generated during analysis.

GraphStats

Bases: FrozenModel

Code graph statistics from analysis.