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

Is this check still necessary agent.py line 373 "">1 tool call not supported"" #989

Closed
5 tasks
louria opened this issue Feb 11, 2024 · 0 comments · Fixed by #992
Closed
5 tasks

Is this check still necessary agent.py line 373 "">1 tool call not supported"" #989

louria opened this issue Feb 11, 2024 · 0 comments · Fixed by #992
Assignees
Labels
bug Something isn't working

Comments

@louria
Copy link

louria commented Feb 11, 2024

Describe the bug
Response includes two tool_calls, one is core_memory_append and one is "send_message".

response.json = {'id': 'chatcmpl-8qw3dGg1CuJv4zuzj3F8YC4apyYax', 'object': 'chat.completion',
'created': 1707626921, 'model': 'gpt-4-1106-preview', 'choices': [{'index': 0, 'message': {'role':
'assistant', 'content': "Hiking! It's a wonderful activity with so many benefits. Chad has just
provided a new interest to engage with. I'll make sure to update his profile and ask him about his
hiking experiences. Maybe we can discuss some favorite trails or memorable sights he's encountered.",
'tool_calls': [{'id': 'call_DPi3Q1wAYPN7oKZYCTrMT6A7', 'type': 'function', 'function': {'name':
'core_memory_append', 'arguments': '{"name": "human", "content": " Interests: Hiking",
"request_heartbeat": false}'}}, {'id': 'call_1Xng5JGJewTc7B0TivilHTHX', 'type': 'function',
'function': {'name': 'send_message', 'arguments': '{"message": "Hiking is quite the adventure! Do you
have any favorite trails or parks you love to explore? Nature always has a way of surprising us with
unforgettable moments."}'}}]
}, 'logprobs': None, 'finish_reason': 'tool_calls'}], 'usage':
{'prompt_tokens': 2774, 'completion_tokens': 144, 'total_tokens': 2918}, 'system_fingerprint':
'fp_c3e45ce344'}

and then ran into this error:
agent.py line 373
raise NotImplementedError(f">1 tool call not supported")
NotImplementedError: >1 tool call not supported

Please describe your setup

  • How did you install memgpt?
    • git clone
  • Describe your setup
    • Windows
    • Terminal

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I told the bot my hobby is hiking and it tries to update my profile in core memory. This is a legit scenario?

MemGPT Config
[defaults]
preset = memgpt_chat
persona = sam_pov
human = basic

[model]
model = gpt-4-1106-preview
model_endpoint = https://api.openai.com/v1
model_endpoint_type = openai
context_window = 128000

[embedding]
embedding_endpoint_type = openai
embedding_endpoint = https://api.openai.com/v1
embedding_model = text-embedding-ada-002
embedding_dim = 1536
embedding_chunk_size = 300

[archival_storage]
type = chroma
path = C:\Users\xxx.memgpt\chroma

[recall_storage]
type = sqlite
path = C:\Users\xxx.memgpt

[metadata_storage]
type = sqlite
path = C:\xxx\xxx.memgpt

[version]
memgpt_version = 0.3.0

[client]
anon_clientid = 00000000000000000000401c838ce307


If you're not using OpenAI, please provide additional information on your local LLM setup:

Local LLM details

If you are trying to run MemGPT with local LLMs, please provide the following information:

  • The exact model you're trying to use (e.g. dolphin-2.1-mistral-7b.Q6_K.gguf)
  • The local LLM backend you are using (web UI? LM Studio?)
  • Your hardware for the local LLM backend (local computer? operating system? remote RunPod?)
@cpacker cpacker added the bug Something isn't working label Feb 11, 2024
@cpacker cpacker moved this from To triage to Ready in 🐛 MemGPT issue tracker Feb 11, 2024
@cpacker cpacker self-assigned this Feb 11, 2024
@cpacker cpacker moved this from Ready to In progress in 🐛 MemGPT issue tracker Feb 11, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in 🐛 MemGPT issue tracker Feb 12, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants