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

Creating tool with RESTClient fails in release 0.3.24 and later #1730

Open
2 tasks
ashokparmar29 opened this issue Sep 7, 2024 · 0 comments
Open
2 tasks

Comments

@ashokparmar29
Copy link

Describe the bug
I am getting the following error when I try to create a tool with RESTClient :

response = await func(request)
  File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
  File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
  File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/memgpt/server/rest_api/tools/index.py", line 111, in create_tool
    exec(request.source_code, env)
  File "<string>", line 1, in <module>
NameError: name 'Agent' is not defined

I tried this on 0.3.24 and 0.3.25 but getting the same error on both versions. It works fine with 0.3.22.
Please describe your setup

  • How did you install memgpt?
    • pip install pymemgpt
  • Describe your setup
    • What's your OS (Windows/MacOS/Linux)? Linux
    • How are you running memgpt? Terminal

Additional context

Tried the LocalClient on 0.3.24 and 0.3.25 , the tool is created and works fine.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant