Skip to content

Commit 0662678

Browse files
committed
Initialize agent in get_agent function to ensure proper setup before processing requests.
1 parent a3b530d commit 0662678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/endpoints/streaming_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ async def get_agent(
7373
enable_session_persistence=True,
7474
)
7575

76+
await agent.initialize()
77+
7678
if existing_agent_id and conversation_id:
7779
orphan_agent_id = agent.agent_id
7880
agent._agent_id = conversation_id # type: ignore[assignment] # pylint: disable=protected-access

0 commit comments

Comments
 (0)