Skip to content

output

code_context_agent.models.output

Structured output models for agent analysis results.

These models define the shape of the agent's final structured response. File generation (CONTEXT.md, bundles, etc.) still happens via tools. The structured output captures the analysis summary and metadata.

GraphStats

Bases: FrozenModel

Code graph statistics from analysis.

BusinessLogicItem

Bases: FrozenModel

A ranked business logic item discovered during analysis.

ArchitecturalRisk

Bases: FrozenModel

An identified architectural risk.

GeneratedFile

Bases: FrozenModel

Record of a file generated during analysis.

RefactoringCandidate

Bases: FrozenModel

A suggested refactoring opportunity.

CodeHealthMetrics

Bases: FrozenModel

Aggregate code health metrics.

PhaseTimingItem

Bases: FrozenModel

Timing data for a single analysis phase.

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.