File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,5 +105,3 @@ def get_analytics_prompt(
105105 )
106106
107107 return analytics_agent_prompt
108-
109-
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ async def startup_event():
161161 app .state .analytics_agent = create_analytics_executor (
162162 token_metadata_repo , extra_tools = okx_tools
163163 )
164- logging .info (f"Analytics agent created with { len (okx_tools )} OKX market data tools" )
164+ logging .info (
165+ f"Analytics agent created with { len (okx_tools )} OKX market data tools"
166+ )
165167
166168 # Exception handlers
167169 @app .exception_handler (ValidationError )
@@ -322,7 +324,7 @@ async def run_agent(
322324 request = agent_request ,
323325 portfolio = portfolio ,
324326 investor_agent = investor_agent ,
325- analytics_agent = analytics_agent ,
327+ analytics_agent = app . state . analytics_agent ,
326328 )
327329
328330 return (
You can’t perform that action at this time.
0 commit comments