Skip to content

Commit 875f099

Browse files
committed
remove making files
1 parent 43d388b commit 875f099

File tree

4 files changed

+0
-179
lines changed

4 files changed

+0
-179
lines changed

workflows/investment.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
from typing import Iterator
2-
from pathlib import Path
3-
from shutil import rmtree
42

53
from phi.agent import Agent, RunResponse
64
from phi.workflow import Workflow
75
from phi.tools.yfinance import YFinanceTools
86
from phi.utils.log import logger
97

108

11-
reports_dir = Path(__file__).parent.joinpath("reports", "investment")
12-
if reports_dir.is_dir():
13-
rmtree(path=reports_dir, ignore_errors=True)
14-
reports_dir.mkdir(parents=True, exist_ok=True)
15-
stock_analyst_report = str(reports_dir.joinpath("stock_analyst_report.md"))
16-
research_analyst_report = str(reports_dir.joinpath("research_analyst_report.md"))
17-
investment_report = str(reports_dir.joinpath("investment_report.md"))
18-
19-
209
class InvestmentAnalyst(Workflow):
2110
description: str = (
2211
"Produce a research report on a list of companies and then rank them based on investment potential."
@@ -32,7 +21,6 @@ class InvestmentAnalyst(Workflow):
3221
"Note: This is only for educational purposes.",
3322
],
3423
expected_output="Report in markdown format",
35-
save_response_to_file=stock_analyst_report,
3624
)
3725

3826
research_analyst: Agent = Agent(
@@ -46,7 +34,6 @@ class InvestmentAnalyst(Workflow):
4634
"Prepare a markdown report with your findings with as much detail as possible.",
4735
],
4836
expected_output="Report in markdown format",
49-
save_response_to_file=research_analyst_report,
5037
)
5138

5239
investment_lead: Agent = Agent(
@@ -58,7 +45,6 @@ class InvestmentAnalyst(Workflow):
5845
"Review the report provided by the research analyst and produce a investment proposal for the client.",
5946
"Provide the amount you'll exist in each company and a report on why.",
6047
],
61-
save_response_to_file=investment_report,
6248
)
6349

6450
def run(self, companies: str) -> Iterator[RunResponse]:

workflows/reports/investment/investment_report.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

workflows/reports/investment/research_analyst_report.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

workflows/reports/investment/stock_analyst_report.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)