From 03ab96cb4985c4ff64f6b6224d12475560ec4006 Mon Sep 17 00:00:00 2001 From: Shannon Suhendra Date: Fri, 6 Feb 2026 13:20:50 -0800 Subject: [PATCH] feat: get conversational output from generated agent graph --- src/uipath_langchain/runtime/runtime.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/uipath_langchain/runtime/runtime.py b/src/uipath_langchain/runtime/runtime.py index 5e9ac903f..0c97930c0 100644 --- a/src/uipath_langchain/runtime/runtime.py +++ b/src/uipath_langchain/runtime/runtime.py @@ -78,6 +78,18 @@ async def execute( interrupt_before=options.breakpoints if options else None, ) + schema = await self.get_schema() + is_conversational = False + + if schema.metadata and isinstance(schema.metadata, dict): + engine = schema.metadata.get("settings").get("engine") + is_conversational = "conversational" in engine + + if is_conversational: + graph_state = await self._get_graph_state(graph_config) + messages = graph_state.values['messages'] + graph_output = {'messages': messages} + # Get final state and create result result = await self._create_runtime_result(graph_config, graph_output)