-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes as_chain #167
Removes as_chain #167
Conversation
@@ -464,15 +388,23 @@ def as_graph(self, thread_id: Any | None = None) -> Runnable[dict, dict]: | |||
Returns: | |||
the compiled graph | |||
""" | |||
# DjangoChatMessageHistory must be here because Django may not be loaded yet elsewhere. | |||
# DjangoChatMessageHistory was used in the context of langchain, now that we are using | |||
# langgraph this can be further simplified by just porting the add_messages logic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this tracked? So we don't need the DjangoChatMessageHistory wrapper anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it seems like it could be replaced by one simple method that retrieves the message history and another that adds new ones. I created an issue for this #169
as_chain
methodchain
in docs