Skip to content

Commit d8f7293

Browse files
authored
Merge pull request #351 from maorfr/init-agent-query
LCORE-470: initalize agent in query
2 parents f843245 + 9b89aac commit d8f7293

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/endpoints/query.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def get_agent( # pylint: disable=too-many-arguments,too-many-positional-argumen
9696
tool_parser=None if no_tools else GraniteToolParser.get_parser(model_id),
9797
enable_session_persistence=True,
9898
)
99+
100+
agent.initialize()
101+
99102
if existing_agent_id and conversation_id:
100103
orphan_agent_id = agent.agent_id
101104
agent.agent_id = conversation_id

0 commit comments

Comments
 (0)