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

多用户并发时如何能记住用户的个性化信息? #434

Open
arzen opened this issue Jan 8, 2025 · 4 comments
Open

多用户并发时如何能记住用户的个性化信息? #434

arzen opened this issue Jan 8, 2025 · 4 comments

Comments

@arzen
Copy link

arzen commented Jan 8, 2025

例如一个自动管理用户日历的tools, A、B用户同时使用时输入了各自的id,对话时agent自动记住这个重要的信息,并在后续的对话中需要时自动提取,如何实现?谢谢

@DAAworld
Copy link

DAAworld commented Jan 8, 2025

agent的记忆来自于messages啊,各个用户肯定要保留各个的对话历史,构造messages,这时候把信息放进去不久妥了

@arzen
Copy link
Author

arzen commented Jan 8, 2025

需要为每个用户开启一个独立的线程管理对话历史吗?类似dashscope.Threads?

@tuhahaha
Copy link
Collaborator

tuhahaha commented Jan 9, 2025

每个session需要单独管理,这个是外部管理的哈,qwen-agent内部不会存储数据。如果你需要agent在对话时自动根据history提取相关信息,你可以继承assistant自己实现一个agent:这个agent先对history做一次rag

@arzen
Copy link
Author

arzen commented Jan 10, 2025

请问,有计划类似dashscope.Threads实现qwen-agent的thread支持吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants