How to access data from a past thread inside a node when using langgraph cloud ? #234

Closed
opened 2026-02-15 17:17:41 -05:00 by yindo · 1 comment
Owner

Originally created by @dyingg on GitHub (Apr 16, 2025).

The langgraph platform deployment and IDE are great for my purposes.

I was thinking of a situation where I would like to fetch the state of a past graph run inside a node, I could store this value in the store as well infact that's what Im going to do to keep list of thread_ids opened by the user, but I think it would be wasteful from a memory utilisation perspective as the data I need is the final state of the past thread run which is already stored.

Since I am not passing my own checkpointer while compiling the graph, Im not sure how I should access this when running the IDE locally and in a production deployment via langgraph platform?

Originally created by @dyingg on GitHub (Apr 16, 2025). The langgraph platform deployment and IDE are great for my purposes. I was thinking of a situation where I would like to fetch the state of a past graph run inside a node, I could store this value in the store as well infact that's what Im going to do to keep list of `thread_id`s opened by the user, but I think it would be wasteful from a memory utilisation perspective as the data I need is the final state of the past thread run which is already stored. Since I am not passing my own checkpointer while compiling the graph, Im not sure how I should access this when running the IDE locally and in a production deployment via langgraph platform?
yindo closed this issue 2026-02-15 17:17:41 -05:00
Author
Owner

@dqbd commented on GitHub (Apr 16, 2025):

Hello @dyingg!
With @langchain/langgraph-sdk 0.2.64 you should be able to create a new Client() that connects directly to the LG API (without the need to specify apiUrl) and use that to access the past thread state using client.threads.getState(...)

@dqbd commented on GitHub (Apr 16, 2025): Hello @dyingg! With `@langchain/langgraph-sdk` 0.2.64 you should be able to create a new `Client()` that connects directly to the LG API (without the need to specify `apiUrl`) and use that to access the past thread state using `client.threads.getState(...)`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#234