eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.7k stars 1.84k forks source link

[Agent开发案例文档错误] [Agent模块] #1993

Open Viserion-nlper opened 2 months ago

Viserion-nlper commented 2 months ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

Installation Information

Device information

none

Models information

none

What happened

image 在按照语雀文档进行Agent开发的时候,报了两个错误: 1、使用类型提示时,不能直接实例化类型本身(如 List),而应该使用类型提示的工厂函数 image image 2、queue为none,错误调用put方法。 image

What you expected to happen

none

How to reproduce

none

Additional context

No response

Are you willing to submit PR?

FenGDJIAO commented 1 month ago

在agent bind之前加一步操作 agent_memory.gpts_memory.init(conv_id="test1234") demo就可以跑通,不过在agent对话中,发现agent没有记忆住上下文。