[GH-ISSUE #433] oss: system message with langchain and langgraph #48

Closed
opened 2026-02-17 17:19:03 -05:00 by yindo · 4 comments
Owner

Originally created by @robertotup on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/433

URL

https://python.langchain.com/docs/concepts/messages/

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

Let's say invoke the llm once with both system message and user message
Next time, do I need to feed the system message again? It's not clear from the documentation.

In particular, I don't understand what happens when using checkpoint memory in langgraph. In that case, can I just feed messages with no system message after the first time I run invoke with a node?

Idea or request for content:

No response

Originally created by @robertotup on GitHub (Jul 29, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/433 ### URL https://python.langchain.com/docs/concepts/messages/ ### Checklist - [x] I added a very descriptive title to this issue. - [x] I included a link to the documentation page I am referring to (if applicable). ### Issue with current documentation: Let's say invoke the llm once with both system message and user message Next time, do I need to feed the system message again? It's not clear from the documentation. In particular, I don't understand what happens when using checkpoint memory in langgraph. In that case, can I just feed messages with no system message after the first time I run invoke with a node? ### Idea or request for content: _No response_
yindo added the langchainlanggraphpython labels 2026-02-17 17:19:03 -05:00
yindo closed this issue 2026-02-17 17:19:03 -05:00
Author
Owner

@keenborder786 commented on GitHub (Jul 29, 2025):

  • If you are using no checkpointer then you will have the feed all the messages again including AI, User and System.
  • However, if you are using a checkpointer (long-term persistence), in that case you do not need to pass any messages again since the entire state is persisted in the checkpointer. But you will have to pass the same thread_id along with your latest message.
  • I am assuming you are using MessageState where in your graph you are only passing a list of Messages.

See this:
Memory

@keenborder786 commented on GitHub (Jul 29, 2025): - If you are using no checkpointer then you will have the feed all the messages again including `AI`, `User` and `System`. - However, if you are using a checkpointer (long-term persistence), in that case you do not need to pass any messages again since the entire state is persisted in the checkpointer. But you will have to pass the same thread_id along with your latest message. - I am assuming you are using `MessageState` where in your graph you are only passing a list of Messages. See this: [Memory](https://langchain-ai.github.io/langgraph/concepts/memory/)
Author
Owner

@robertotup commented on GitHub (Jul 30, 2025):

Thank you. I will try using checkpointer then. Will let you know if any issues.

@robertotup commented on GitHub (Jul 30, 2025): Thank you. I will try using checkpointer then. Will let you know if any issues.
Author
Owner

@robertotup commented on GitHub (Jul 30, 2025):

@keenborder786 just to clarify, if there are multiple LLMs on different nodes, does that mean they all see the entire message history (including all other LLMs responses)?

and one follow up question is this: if one of these nodes is a deterministic functions, will the other LLMs get to see the answer?

Thank you,

@robertotup commented on GitHub (Jul 30, 2025): @keenborder786 just to clarify, if there are multiple LLMs on different nodes, does that mean they all see the entire message history (including all other LLMs responses)? and one follow up question is this: if one of these nodes is a deterministic functions, will the other LLMs get to see the answer? Thank you,
Author
Owner

@keenborder786 commented on GitHub (Jul 31, 2025):

Okay and yes, other nodes will see it as long as you are updating the state in the given node.

@keenborder786 commented on GitHub (Jul 31, 2025): Okay and yes, other nodes will see it as long as you are updating the state in the given node.
yindo changed title from oss: system message with langchain and langgraph to [GH-ISSUE #433] oss: system message with langchain and langgraph 2026-06-05 17:24:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#48