Skip to content
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

Add support for memoryPrompts in StructuredChatAgent #1347

Merged
merged 7 commits into from
May 30, 2023

Conversation

andrewlei
Copy link
Contributor

@andrewlei andrewlei commented May 21, 2023

@vercel
Copy link

vercel bot commented May 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 29, 2023 5:09pm

@andrewlei andrewlei changed the title Fix inputVariables input arg in StructuredChat Add support for memoryPrompts in StructuredChat May 21, 2023
@andrewlei andrewlei changed the title Add support for memoryPrompts in StructuredChat Add support for memoryPrompts in StructuredChatAgent May 21, 2023
@jacoblee93
Copy link
Collaborator

We'd love to support memory in this agent, but the ideal implementation would probably look more like this:

https://github.com/hwchase17/langchainjs/blob/main/langchain/src/agents/chat_convo/index.ts

For this use-case, I'd suggest just passing a custom LLMChain with a custom prompt into the constructor directly - happy to give an example if helpful!

@jacoblee93 jacoblee93 closed this May 22, 2023
@jacoblee93
Copy link
Collaborator

jacoblee93 commented May 25, 2023

Seems like I was presumptive in closing this as it's what Python's implemented - reopening! Apologies for the confusion.

@jacoblee93 jacoblee93 reopened this May 25, 2023
@emilsedgh
Copy link
Contributor

GH-1414 is another attempt at providing memory support for this agent that is closer in spirit to the rest of ts codebase.

@jacoblee93 jacoblee93 self-assigned this May 29, 2023
@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label May 29, 2023
@jacoblee93 jacoblee93 merged commit 277a3f0 into langchain-ai:main May 30, 2023
10 checks passed
@andrewlei andrewlei deleted the patch-1 branch May 30, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants