- 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