Combined Analysis Crew#
The Combined Analysis crew is similar to the Market Data crew, but it also includes agents that can analyze news articles and the selected SEC filing. The main goal of this crew is to provide a final stock recommendation based on the analysis of all the data sources. The crew is restricted to 5 agents, and token usage on this crew can be quite high as it combines multiple data sources. So it it's suggested to test this crew using a free alternative for LLM model before using a paid LLM.
Illustration of the Combined Analysis crew:
---
config:
layout: elk
look: classic
theme: neutral
---
flowchart LR
AV["Alpha Vantage"] --> F
TA["Yahoo Finance"] --> T
B["Benzinga News"] --> N
E["EDGAR SEC Filings"] --> MDA
N["fa:fa-newspaper News Analyst"] --> A["fa:fa-user Stock Advisor"]
T["fa:fa-chart-line Technical Analyst"] --> A
F["fa:fa-chart-simple Fundamental Analyst"] --> A
MDA["fa:fa-comment-dots SEC Analyst - MD&A"] --> A
classDef lightBlue fill:#ADD8E6,stroke:black
class A lightBlue
classDef beige fill:#F5F5DC,stroke:black
class AV,TA,B,E beige
Traceback (most recent call last):
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/.venv/lib/python3.11/site-packages/markdown_exec/formatters/python.py", line 71, in _run_python
exec_python(code, code_block_id, exec_globals)
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/.venv/lib/python3.11/site-packages/markdown_exec/formatters/_exec_python.py", line 8, in exec_python
exec(compiled, exec_globals) # noqa: S102
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<code block: n1>", line 2, in <module>
from finmas.crews.utils import get_yaml_config_as_markdown
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/finmas/crews/__init__.py", line 1, in <module>
from finmas.crews.market_data.crew import MarketDataCrew
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/finmas/crews/market_data/crew.py", line 9, in <module>
from finmas.data.market import StockFundamentalsTool, TechnicalAnalysisTool
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/finmas/data/__init__.py", line 1, in <module>
from finmas.data.market.alpha_vantage import get_income_statement_df
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/finmas/data/market/__init__.py", line 1, in <module>
from finmas.data.market.fundamentals import StockFundamentalsTool, get_ticker_essentials
File "/home/ivar/repos_ivar/agentic-llm-for-better-results/finmas/data/market/fundamentals.py", line 4, in <module>
from crewai_tools import BaseTool
ImportError: cannot import name 'BaseTool' from 'crewai_tools' (/home/ivar/repos_ivar/agentic-llm-for-better-results/.venv/lib/python3.11/site-packages/crewai_tools/__init__.py)