(no commit message)

This commit is contained in:
2026-01-19 16:49:01 -08:00
parent ce649593f2
commit 82395e5ec3
2 changed files with 76 additions and 2 deletions

View File

@@ -37,8 +37,9 @@ class DocWriterProgram(PrecompiledProgram):
verbose=True,
)
def forward(self, source_root: str, source_tree: dict[str, Any]) -> dspy.Prediction:
def forward(self, source_root: str) -> dspy.Prediction:
source_tree = load_source_tree(source_root)
print(f"Loaded source tree with {len(source_tree)} entries")
return self.doc_writer(source_tree=source_tree)
@@ -62,7 +63,7 @@ SOURCE_ROOT = "."
def main():
"""
print("Starting documentation generation...")
result = doc_writer(source_root=SOURCE_ROOT, source_tree=None)
result = doc_writer(source_root=SOURCE_ROOT)
with open("generated_documentation.md", "w", encoding="utf-8") as f:
print("Writing documentation to file...")