Comments (8)
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.
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.
@sarahwooders blocked on same issue...wanted to try memgpt with autogen. any idea on when we can expect fix?
from memgpt.
@sarahwooders even for single ConversableAgents - I'd love examples, and even happy to recommend/contribute fixes if you need assistance
from memgpt.
Reproduce this issue by using 'azure' in https://github.com/cpacker/MemGPT/blob/main/memgpt/autogen/examples/agent_groupchat.py
from memgpt.
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.
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.
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 pulladd_default_presets
frommemgpt.presets.presets
memgpt/presets/presets.py
no longer exists, it was removed in the latest tag however- between tag
0.3.18
and0.3.19
theadd_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)
- feat: add route that allows to add multiple tools at the same time
- feat: add route to remove tool from agent
- feat: augment /agents/{agentId}/archival/all route to support pagination/sort
- feat: add endpoint to delete agent HOT 1
- feat: adjust agent response to include persona/human text and not just names
- Are there any examples on how to integrate and use LangChain with memgpt
- in get_agent assert agent_name is not None and user_id is not None, AssertionError: Must provide either agent_id or agent_name HOT 2
- 0.3.24 --> 500 Server Error: Internal Server Error for url: https://inference.memgpt.ai/chat/completions
- `/auth` endpoint broken HOT 3
- `AgentState.memory` has subproperty `memory`
- `Tool.id` should be a required type in Tool struct in return types
- The /api/tools/name/{tool_name} endpoint in the MemGPT server is returning HTML content instead of JSON
- OpenRouter API support
- Error calling function core_memory_append: 'dict' object has no attribute 'get_block' HOT 1
- cli tools not found. HOT 2
- rag with MemGpt
- Azure Configuration: AttributeError: 'dict' object has no attribute 'to_openai_dict' HOT 3
- 0.3.25 assert agent_name is not None and user_id is not None, "Must provide either agent_id or agent_name" HOT 1
- Agent Page - Unexpected Application Error! Cannot read properties of undefined (reading 'length')
- With recent Deployment - open ai chat completion throws error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memgpt.