Skip to content

Commit 36ce56f

Browse files
author
balogh.adam@icloud.com
committed
fix
1 parent a917f7f commit 36ce56f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

agent/prompts.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,3 @@ def get_analytics_prompt(
105105
)
106106

107107
return analytics_agent_prompt
108-
109-

server/fastapi_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 (

0 commit comments

Comments
 (0)