Skip to content

Commit 3c48d8d

Browse files
mjnoviceclaude
andcommitted
debug: add verbose state diagnostics to memory recall node
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2c172d4 commit 3c48d8d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/uipath_langchain/agent/react/memory_node.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,22 @@ def create_memory_recall_node(
3939
"""
4040

4141
async def memory_recall_node(state: AgentGraphState) -> dict[str, Any]:
42+
# Debug: log state type and keys to diagnose empty inputs
43+
if isinstance(state, dict):
44+
logger.warning("Memory recall: state is dict, keys=%s", list(state.keys()))
45+
else:
46+
logger.warning(
47+
"Memory recall: state type=%s, fields=%s",
48+
type(state).__name__,
49+
list(state.model_fields.keys()) if hasattr(state, "model_fields") else "N/A",
50+
)
51+
logger.warning(
52+
"Memory recall: state dump keys=%s",
53+
list(state.model_dump().keys()) if hasattr(state, "model_dump") else "N/A",
54+
)
55+
4256
input_arguments = _extract_user_inputs(state)
57+
logger.warning("Memory recall: extracted inputs=%s", input_arguments)
4358
if not input_arguments:
4459
logger.warning("Memory recall: no user inputs found in state")
4560
return {}

0 commit comments

Comments
 (0)