Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/uipath_langchain/agent/react/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def create_agent(
target_node_names,
)

if config.is_conversational:
target_node_names.append(AgentGraphNode.AGENT)

for tool_name in tool_node_names:
builder.add_conditional_edges(tool_name, route_agent, target_node_names)
builder.add_edge(AgentGraphNode.TERMINATE, END)
Expand Down
9 changes: 5 additions & 4 deletions src/uipath_langchain/runtime/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,17 @@ async def _create_runtime_instance(
Returns:
Configured runtime instance
"""
memory = await self._get_memory()
storage = SqliteResumableStorage(memory)
trigger_manager = UiPathResumeTriggerHandler()

base_runtime = UiPathLangGraphRuntime(
graph=compiled_graph,
runtime_id=runtime_id,
entrypoint=entrypoint,
storage=storage,
)

memory = await self._get_memory()
storage = SqliteResumableStorage(memory)
trigger_manager = UiPathResumeTriggerHandler()

return UiPathResumableRuntime(
delegate=base_runtime,
storage=storage,
Expand Down
Loading