-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow MemGPT to read/write text files + make HTTP requests #174
Conversation
@vivi do we have to do anything special to support toggling the preset in the CLI? Or can we simply add another arg here (and up the stack): https://github.com/cpacker/MemGPT/blob/main/memgpt/main.py#L165 |
e153311
to
6820765
Compare
@@ -445,15 +445,15 @@ async def run_agent_loop(memgpt_agent, first, no_verify=False, cfg=None, legacy= | |||
continue | |||
|
|||
elif user_input.lower() == "/dump": | |||
await print_messages(memgpt_agent.messages) | |||
await memgpt.interface.print_messages(memgpt_agent.messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patches a bug
Still need to add preset selection, put it separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😈 LGTM
* added file read/write * added HTTP requests * black on utils.py
Addresses #26
TODO
Example with MemGPT launching HTTP requests
Example with MemGPT reading / writing from a shared .txt file
Modify the file, then check if MemGPT can read the updated file:
MemGPT can successfully read from the updated file (after some prodding to read more lines):