Update research_manager.py
Browse files- research_manager.py +8 -11
research_manager.py
CHANGED
@@ -101,14 +101,11 @@ class ResearchManagerAgent:
|
|
101 |
print("Finished writing report")
|
102 |
return result.final_output_as(ReportData)
|
103 |
|
104 |
-
async def send_email(self, report: ReportData
|
105 |
-
"
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
print(f"Sending email to: {recipient_email}")
|
113 |
-
await Runner.run(email_agent, input=email_prompt)
|
114 |
-
print("✅ Email sent")
|
|
|
101 |
print("Finished writing report")
|
102 |
return result.final_output_as(ReportData)
|
103 |
|
104 |
+
async def send_email(self, report: ReportData) -> None:
|
105 |
+
print("Writing email...")
|
106 |
+
result = await Runner.run(
|
107 |
+
email_agent,
|
108 |
+
report.markdown_report,
|
109 |
+
)
|
110 |
+
print("Email sent")
|
111 |
+
return report
|
|
|
|
|
|