Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions build/oss/javascript/langgraph/INVALID_CHAT_HISTORY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ To resolve this, you can do one of the following:
**NOTE**: this will append the messages to the history and run the graph from the START node.
* manually update the state and resume the graph from the interrupt:
1. get the list of most recent messages from the graph state with `graph.getState(config)`
2. modify the list of messages to either remove unanswered tool calls from AIMessages

or add ToolMessages with `toolCallId`s that match unanswered tool calls 3. call `graph.updateState(config, {messages: ...})` with the modified list of messages 4. resume the graph, e.g. call `graph.invoke(null, config)`
2. modify the list of messages to either remove unanswered tool calls from AIMessages
or add ToolMessages with `toolCallId`s that match unanswered tool calls
3. call `graph.updateState(config, {messages: ...})` with the modified list of messages
4. resume the graph, e.g. call `graph.invoke(null, config)`