MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / CodeAnalysisState

Class CodeAnalysisState

scrapegraphai/utils/code_error_analysis.py:41–54  ·  view source on GitHub ↗

Base model for code analysis state validation.

Source from the content-addressed store, hash-verified

39
40
41class CodeAnalysisState(BaseModel):
42 """Base model for code analysis state validation."""
43
44 generated_code: str = Field(..., description="The generated code to analyze")
45 errors: Dict[str, Any] = Field(
46 ..., description="Dictionary containing error information"
47 )
48
49 @validator("errors")
50 def validate_errors(cls, v):
51 """Ensure errors dictionary has expected structure."""
52 if not isinstance(v, dict):
53 raise ValueError("errors must be a dictionary")
54 return v
55
56
57class ExecutionAnalysisState(CodeAnalysisState):

Callers 2

syntax_focused_analysisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected