Skip to content

Commit 1a5a9a0

Browse files
fix: conv agent tool calling
1 parent 9aca4b9 commit 1a5a9a0

7 files changed

Lines changed: 1217 additions & 143 deletions

File tree

src/uipath_langchain/agent/react/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def create_agent(
157157
target_node_names,
158158
)
159159

160+
if config.is_conversational:
161+
target_node_names.append(AgentGraphNode.AGENT)
162+
160163
for tool_name in tool_node_names:
161164
builder.add_conditional_edges(tool_name, route_agent, target_node_names)
162165
builder.add_edge(AgentGraphNode.TERMINATE, END)

src/uipath_langchain/runtime/factory.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,16 +264,17 @@ async def _create_runtime_instance(
264264
Returns:
265265
Configured runtime instance
266266
"""
267+
memory = await self._get_memory()
268+
storage = SqliteResumableStorage(memory)
269+
trigger_manager = UiPathResumeTriggerHandler()
270+
267271
base_runtime = UiPathLangGraphRuntime(
268272
graph=compiled_graph,
269273
runtime_id=runtime_id,
270274
entrypoint=entrypoint,
275+
storage=storage,
271276
)
272277

273-
memory = await self._get_memory()
274-
storage = SqliteResumableStorage(memory)
275-
trigger_manager = UiPathResumeTriggerHandler()
276-
277278
return UiPathResumableRuntime(
278279
delegate=base_runtime,
279280
storage=storage,

0 commit comments

Comments
 (0)