MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / FunctionContext

Class FunctionContext

backend/models.py:77–83  ·  view source on GitHub ↗

Context about a single function for metadata generation.

Source from the content-addressed store, hash-verified

75
76# Metadata-only models (for incremental updates)
77class FunctionContext(BaseModel):
78 """Context about a single function for metadata generation."""
79 name: str
80 line: int
81 type: str # llm, trigger, function
82 calls: List[str] # Functions it calls
83 code: Optional[str] = None # Optional function source
84
85class FileStructureContext(BaseModel):
86 """Structure context for a file (from local tree-sitter analysis)."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected