modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.
https://doc.agentscope.io/
Apache License 2.0
4.81k stars 294 forks source link

[Bug]: Quickstart fails to run! #430

Closed GuillaumeWRLD closed 6 days ago

GuillaumeWRLD commented 1 week ago

AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.

Describe the bug A clear and concise description of what the bug is.

Quickstart fails to run

To Reproduce Steps to reproduce the behavior:

Code:

import agentscope

azure_cfg_dict = { "config_name": "lite_llm_azure", "model_type": "litellm_chat", "model_name": "gpt-4", "api_key": "xxx", "api_base": "xxx", "api_version": "xxx", },

agentscope.init(model_configs=[openai_cfg_dict])

dialogAgent = DialogAgent(name="assistant", model_config_name="gpt-4", sys_prompt="You are a helpful ai assistant")

from agentscope.message import Msg

message_from_alice = Msg("Alice", "Hi!")

print(dialogAgent(message_from_alice))

Expected behavior Correct output

Error messages

Traceback (most recent call last):
  File "/Users/mikelueck/GitHub/agentscope_playground/main.py", line 1, in <module>
    import agentscope
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/__init__.py", line 5, in <module>
    from . import agents
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/agents/__init__.py", line 3, in <module>
    from .agent import AgentBase, DistConf
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/agents/agent.py", line 17, in <module>
    from agentscope.memory import TemporaryMemory
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/memory/__init__.py", line 8, in <module>
    from .temporary_memory import TemporaryMemory
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/memory/temporary_memory.py", line 17, in <module>
    from ..service.retrieval.retrieval_from_list import retrieve_from_list
  File "/Users/mikelueck/Library/Caches/pypoetry/virtualenvs/muser-scene-agent-BPyGuuEz-py3.11/lib/python3.11/site-packages/agentscope/service/__init__.py", line 29, in <module>
    from .multi_modality.dashscope_services import (
ModuleNotFoundError: No module named 'agentscope.service.multi_modality'

Environment (please complete the following information):

 [tool.poetry.dependencies]
 python = "^3.11"
 agentscope = "^0.0.5"

Additional context Add any other context about the problem here.

pan-x-c commented 1 week ago

Version 0.0.5 is stale. Please clone the repository and install it with pip install -e .

GuillaumeWRLD commented 1 week ago

Can't we have a stable version? If you expect ppl to use AgentScope in production?

DavdGao commented 1 week ago

@GuillaumeWRLD Thanks for your suggestion. A new stable version will be available in a few days

DavdGao commented 6 days ago

A new vision v0.1.0 is updated in Pypi and GitHub. Feel free to open a new issue if neededd, closing this for now.