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

[Bug] [examples] agents example export errors: Type List cannot be instantiated; use list() instead #2114

Open
4 of 15 tasks
maco6096 opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working Waiting for reply

Comments

@maco6096
Copy link

maco6096 commented Nov 1, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Windows

Python version information

3.10

DB-GPT version

latest release

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

cpu

Models information

LLM: qwen1.5 embedding: nomic

What happened

agents examples errors:

Traceback (most recent call last):
File "D:\git_idea\DB-GPT\examples\agents\plugin_agent_dialogue_example.py", line 64, in
asyncio.run(main())
File "C:\ProgramData\miniconda3\envs\dbgpt_env\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ProgramData\miniconda3\envs\dbgpt_env\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "D:\git_idea\DB-GPT\examples\agents\plugin_agent_dialogue_example.py", line 53, in main
await user_proxy.initiate_chat(
File "D:\git_idea\DB-GPT\dbgpt\agent\core\base_agent.py", line 651, in initiate_chat
await self.send(
File "D:\git_idea\DB-GPT\dbgpt\agent\core\base_agent.py", line 226, in send
await recipient.receive(
File "D:\git_idea\DB-GPT\dbgpt\agent\core\base_agent.py", line 263, in receive
await self._a_process_received_message(message, sender)
File "D:\git_idea\DB-GPT\dbgpt\agent\core\base_agent.py", line 770, in _a_process_received_message
valid = await self._a_append_message(message, None, sender)
File "D:\git_idea\DB-GPT\dbgpt\agent\core\base_agent.py", line 724, in _a_append_message
await self.memory.gpts_memory.append_message(
File "D:\git_idea\DB-GPT\dbgpt\agent\core\memory\gpts\gpts_memory.py", line 122, in append_message
self.messages_cache[conv_id].append(message)
File "C:\ProgramData\miniconda3\envs\dbgpt_env\lib\typing.py", line 955, in call
raise TypeError(f"Type {self._name} cannot be instantiated; "
TypeError: Type List cannot be instantiated; use list() instead

What you expected to happen

正常执行

How to reproduce

执行 agents/下的examples

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@maco6096 maco6096 added bug Something isn't working Waiting for reply labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant