|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| __init__.py | ||
| binance_utils.py | ||
| blockbeats_utils.py | ||
| coindesk_utils.py | ||
| config.py | ||
| finnhub_utils.py | ||
| googlenews_utils.py | ||
| interface.py | ||
| reddit_utils.py | ||
| stockstats_utils.py | ||
| utils.py | ||
| yfin_utils.py | ||
README.md
Dataflows
To add a new data source
- create a file with filename
[sth]_utils.pyand fetch data in it - go to interface.py and wrap your utility in a function returning a
str - go to __init__.py and expose your function in
interface.py - go to agent_utils.py and wrap your function in class
Toolkitwith the following template:@staticmethod @tool def get_sth(params: Annotated[type, "comments"]): """docs""" return interface.your_func(params) - modify
_create_tool_nodesin trading_graph.py andnews_analyst_nodein each analyst creation file intradingagents/agents/analysts/[sth]_analyst.py - (OPTIONAL) modify prompts to tell models when to use the utility