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

Migrate CLI to run on MemGPT Client #1386

Open
sarahwooders opened this issue May 15, 2024 · 0 comments
Open

Migrate CLI to run on MemGPT Client #1386

sarahwooders opened this issue May 15, 2024 · 0 comments

Comments

@sarahwooders
Copy link
Collaborator

Currently the CLI has its own implementation of functions such as attaching/loading data and messaging agents. We should migrate the CLI code to run on top of the Python Client (both the LocalClient and RESTClient).

REST API Client

If the following environment variables are set, then the CLI will default to using a REST server:

MEMGPT_BASE_URL 
MEMGPT_API_KEY

Instead of using enviornment variables, we can also add these as CLI options:

memgpt run --base-url ... --api-key ... 

Local Client

The local client calls server functions and does not require a running service, so the CLI code can simply be migrated to run the local client code instead. However we need to make sure that the REST/local clients implement the same set of functions with the same arguments/return types.

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