-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
38 lines (25 loc) · 825 Bytes
/
Copy pathmain.py
File metadata and controls
38 lines (25 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Main entry point for the multi-agent research report generator.
"""
from dotenv import load_dotenv
from multi_agent_report.config import config
from multi_agent_report.utils import save_report
from multi_agent_report.workflow import build_workflow
def main() -> None:
"""
Runs the full workflow.
"""
load_dotenv()
topic = input("Enter a research topic: ").strip()
if not topic:
print("Please enter a valid topic.")
return
app = build_workflow()
result = app.invoke({"topic": topic})
final_report = result["final_report"]
saved_path = save_report(final_report, config.output_file)
print("\n================ FINAL REPORT ================\n")
print(final_report)
print(f"\nReport saved to: {saved_path}")
if __name__ == "__main__":
main()