Skip to content

Commit

Permalink
remove making files
Browse files Browse the repository at this point in the history
  • Loading branch information
manthanguptaa committed Dec 3, 2024
1 parent 43d388b commit 875f099
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 179 deletions.
14 changes: 0 additions & 14 deletions workflows/investment.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
from typing import Iterator
from pathlib import Path
from shutil import rmtree

from phi.agent import Agent, RunResponse
from phi.workflow import Workflow
from phi.tools.yfinance import YFinanceTools
from phi.utils.log import logger


reports_dir = Path(__file__).parent.joinpath("reports", "investment")
if reports_dir.is_dir():
rmtree(path=reports_dir, ignore_errors=True)
reports_dir.mkdir(parents=True, exist_ok=True)
stock_analyst_report = str(reports_dir.joinpath("stock_analyst_report.md"))
research_analyst_report = str(reports_dir.joinpath("research_analyst_report.md"))
investment_report = str(reports_dir.joinpath("investment_report.md"))


class InvestmentAnalyst(Workflow):
description: str = (
"Produce a research report on a list of companies and then rank them based on investment potential."
Expand All @@ -32,7 +21,6 @@ class InvestmentAnalyst(Workflow):
"Note: This is only for educational purposes.",
],
expected_output="Report in markdown format",
save_response_to_file=stock_analyst_report,
)

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

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

def run(self, companies: str) -> Iterator[RunResponse]:
Expand Down
19 changes: 0 additions & 19 deletions workflows/reports/investment/investment_report.md

This file was deleted.

65 changes: 0 additions & 65 deletions workflows/reports/investment/research_analyst_report.md

This file was deleted.

81 changes: 0 additions & 81 deletions workflows/reports/investment/stock_analyst_report.md

This file was deleted.

0 comments on commit 875f099

Please sign in to comment.