DOC: Passing State in Tools is no longer supported #169

Closed
opened 2026-02-20 17:30:10 -05:00 by yindo · 2 comments
Owner

Originally created by @streamnsight on GitHub (Aug 6, 2024).

Issue with current documentation:

https://langchain-ai.github.io/langgraph/how-tos/pass-run-time-values-to-tools/

this no longer works.

I wanted to point it out but also I'd like to know what is the alternative.

Right now I have been passing config to tools, but this is not ideal.
Is there a new way of passing state to tools? Thanks

Idea or request for content:

No response

Originally created by @streamnsight on GitHub (Aug 6, 2024). ### Issue with current documentation: https://langchain-ai.github.io/langgraph/how-tos/pass-run-time-values-to-tools/ this no longer works. I wanted to point it out but also I'd like to know what is the alternative. Right now I have been passing config to tools, but this is not ideal. Is there a new way of passing state to tools? Thanks ### Idea or request for content: _No response_
yindo closed this issue 2026-02-20 17:30:10 -05:00
Author
Owner

@isahers1 commented on GitHub (Aug 6, 2024):

@streamnsight What error are you getting, and what version of LangGraph are you using?

@isahers1 commented on GitHub (Aug 6, 2024): @streamnsight What error are you getting, and what version of LangGraph are you using?
Author
Owner

@streamnsight commented on GitHub (Aug 7, 2024):

just running the code, can't import InjectedState

image

Now I just upgraded and with 0.2.0 it works.
So, I guess the docs were published way before the code was released, because it was there a little while ago with 0.1.8, when it was the latest release, which is when I tried and it didn't work.

@streamnsight commented on GitHub (Aug 7, 2024): just running the code, can't import InjectedState <img width="829" alt="image" src="https://github.com/user-attachments/assets/b73fac73-bcb4-4dc4-b98e-598ef73ccecd"> Now I just upgraded and with 0.2.0 it works. So, I guess the docs were published way before the code was released, because it was there a little while ago with 0.1.8, when it was the latest release, which is when I tried and it didn't work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#169