ToolNode doesn't support custom state classes #181

Closed
opened 2026-02-20 17:30:37 -05:00 by yindo · 1 comment
Owner

Originally created by @nfcampos on GitHub (Aug 11, 2024).

Privileged issue

  • I am a LangChain maintainer, or was asked directly by a LangChain maintainer to create an issue here.

Issue Content

I also realized I added a get method to the state class because ToolNode assumes your state is a TypedDict. This may also be another issue, but I haven't looked into it yet. In any case, I left the logging to show when it's accessing messages.

First reported in https://github.com/langchain-ai/langgraph-studio/issues/66

Originally created by @nfcampos on GitHub (Aug 11, 2024). ### Privileged issue - [X] I am a LangChain maintainer, or was asked directly by a LangChain maintainer to create an issue here. ### Issue Content >I also realized I added a get method to the state class because ToolNode assumes your state is a TypedDict. This may also be another issue, but I haven't looked into it yet. In any case, I left the logging to show when it's accessing messages. First reported in https://github.com/langchain-ai/langgraph-studio/issues/66
yindo closed this issue 2026-02-20 17:30:39 -05:00
Author
Owner

@hinthornw commented on GitHub (Sep 6, 2024):

Mostly resolved in https://github.com/langchain-ai/langgraph/pull/1625

(though assumes your custom state can coerce from dict)

@hinthornw commented on GitHub (Sep 6, 2024): Mostly resolved in https://github.com/langchain-ai/langgraph/pull/1625 (though assumes your custom state can coerce from dict)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#181