File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ def run_suggestions():
231231
232232 portfolio = portfolio_fetcher .get_portfolio (agent_request .context .address )
233233 suggestions = handle_suggestions_request (
234+ token_metadata_repo = token_metadata_repo ,
234235 request = agent_request ,
235236 portfolio = portfolio ,
236237 suggestions_model = suggestions_model ,
@@ -443,10 +444,11 @@ def handle_investor_chat_request(
443444def handle_suggestions_request (
444445 request : AgentChatRequest ,
445446 portfolio : Portfolio ,
447+ token_metadata_repo : TokenMetadataRepo ,
446448 suggestions_model : ChatOpenAI ,
447449) -> List [str ]:
448450 # Get tools from agent config and format them
449- tools = create_investor_agent_toolkit () + create_analytics_agent_toolkit ()
451+ tools = create_investor_agent_toolkit () + create_analytics_agent_toolkit (token_metadata_repo )
450452 tools_list = "\n " .join ([f"- { tool .name } : { tool .description } " for tool in tools ])
451453
452454 # Build suggestions system prompt
You can’t perform that action at this time.
0 commit comments