Giter VIP home page Giter VIP logo

Comments (8)

sarahwooders avatar sarahwooders commented on September 28, 2024 2

Sorry the autogen integration is broken right now. If you are trying to do multi-agent, we recommend just passing messages between agents (examples coming soon).

from memgpt.

mctouch avatar mctouch commented on September 28, 2024

Please describe your setup

How did you install memgpt?
pip install pymemgpt? pip install pymemgpt-nightly? git clone?
pip install pymemgpt
Describe your setup
What's your OS (Windows/MacOS/Linux)?
MacOS
How are you running memgpt?
Python 3.12.4

same issue

ll /Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py
-rw-r--r--@ 1 mctouch staff 3.4K 29 Jul 20:27 /Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py
❯ /Users/mctouch/micromamba/envs/autogen/bin/python /Users/mctouch/code/MemGPT/memgpt/autogen/examples/agent_groupchat.py
Traceback (most recent call last):
File "/Users/mctouch/code/MemGPT/memgpt/autogen/examples/agent_groupchat.py", line 168, in
coder = create_memgpt_autogen_agent_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/autogen/memgpt_agent.py", line 465, in create_memgpt_autogen_agent_from_config
autogen_memgpt_agent = create_autogen_memgpt_agent(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/autogen/memgpt_agent.py", line 348, in create_autogen_memgpt_agent
from memgpt.presets.presets import add_default_presets
ImportError: cannot import name 'add_default_presets' from 'memgpt.presets.presets' (/Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py). Did you mean: 'add_default_tools'?

❯ ll /Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py
-rw-r--r--@ 1 mctouch staff 3.4K 29 Jul 20:27 /Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py

cat /Users/mctouch/micromamba/envs/autogen/lib/python3.12/site-packages/memgpt/presets/presets.py | grep add_default_presets

No references found in the repo.

Mac osx

from memgpt.

raolak avatar raolak commented on September 28, 2024

@sarahwooders blocked on same issue...wanted to try memgpt with autogen. any idea on when we can expect fix?

from memgpt.

ibabbar avatar ibabbar commented on September 28, 2024

@sarahwooders even for single ConversableAgents - I'd love examples, and even happy to recommend/contribute fixes if you need assistance

from memgpt.

CellCS avatar CellCS commented on September 28, 2024

Reproduce this issue by using 'azure' in https://github.com/cpacker/MemGPT/blob/main/memgpt/autogen/examples/agent_groupchat.py

image

image

from memgpt.

Harinisri29 avatar Harinisri29 commented on September 28, 2024

Hi I am also facing the same issue. Did anyone found the solution?

ImportError: cannot import name 'add_default_presets' from 'memgpt.presets.presets'

from memgpt.

mustangproject avatar mustangproject commented on September 28, 2024

See the same issue. Any fix yet?
ImportError: cannot import name 'add_default_presets' from 'memgpt.presets.presets' (/home/vor/Documents/VOR_PROJECTS/VOR_PYTHON/env-vor/lib/python3.11/site-packages/memgpt/presets/presets.py)

from memgpt.

milorddev avatar milorddev commented on September 28, 2024

same issue on ubuntu 22.04 using ollama local setup, doing some digging myself, will edit here as I find stuff:

Findings:

  • The file with the bug is in /memgpt/autogen/memgpt_agent.py on line 348, its trying to import and pull add_default_presets from memgpt.presets.presets
  • memgpt/presets/presets.py no longer exists, it was removed in the latest tag however
  • between tag 0.3.18 and 0.3.19 the add_default_presets function was removed.

Since the code for the bugged section within the memgpt_agent.py is

preset_obj = ms.get_preset(name=agent_config["preset"] if "preset" in agent_config else config.preset, user_id=user.id)
        if preset_obj is None:
            # create preset records in metadata store
            from memgpt.presets.presets import add_default_presets

            add_default_presets(user.id, ms)
            # try again
            preset_obj = ms.get_preset(name=agent_config["preset"] if "preset" in agent_config else config.preset, user_id=user.id)
            if preset_obj is None:
                print("Couldn't find presets in database, please run `memgpt configure`")
                sys.exit(1)

we can potentially get around this by just adding a preset to the config instead of relying on the defaults

from memgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.