-
Notifications
You must be signed in to change notification settings - Fork 70
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
langchain Agents #20
Comments
I tried to use an Agent. Initially I got an error due to |
Thx for the feedback @zlapp ! I just added and tested an example agent https://github.com/msoedov/langcorn/blob/main/examples/ex7_agent.py. It works |
This comment was marked as resolved.
This comment was marked as resolved.
how did you handle memory ? |
You can store memory on the client side and pass it every time with the request. The updated memory state will be returned from the response. |
Just as an FYI, it is possible to add chat history memory in the chain that will store in a DB itself, without passing the burden to client You need to pass the session id to the message_history = RedisChatMessageHistory(
url="redis://localhost:6379/0", ttl=600, session_id="my-session"
)
memory = ConversationBufferMemory(
memory_key="chat_history", chat_memory=message_history
) |
Thanks for the great repository.
Does langcorn support langchain agents?
The text was updated successfully, but these errors were encountered: