Commit 7fff2f9
fix(tutorials): handle unknown tool name in at130-langgraph tools_node
Return an error ToolMessage for tool calls whose name isn't registered,
mirroring LangGraph's ToolNode, so a hallucinated tool name keeps the graph
running instead of raising an unhandled KeyError and crashing the workflow node.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cc024b3 commit 7fff2f9
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| |||
0 commit comments