Commit Graph

48 Commits

Author SHA1 Message Date
Charles Packer
ff40f2447e feat: allow updating Messages via the server, remap CLI commands that update messages to use server.py (#1715)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-09-08 15:24:41 -07:00
Charles Packer
35ebaef721 feat: add streaming support (both steps and tokens) to the Python REST client + pytest (#1701) 2024-09-03 16:57:57 -07:00
Sarah Wooders
07d74937cb feat: add jobs routes to REST API (#1699) 2024-08-30 17:07:30 -07:00
Charles Packer
3566878962 fix: hotfix for PR #1693 (#1697) 2024-08-29 16:14:02 -07:00
Charles Packer
df7316cef1 fix: patch core memory edit bug/regression (#1695)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-08-29 13:12:24 -07:00
Sarah Wooders
9c39e3ac7b feat: add endpoint to list agent's attached sources (#1688) 2024-08-27 13:42:41 -07:00
Sarah Wooders
7f16fd9a3e feat: add endpoint to list agent attached sources 2024-08-27 13:32:21 -07:00
cpacker
6f6d1346d9 refactor: change 'string' name to 'compile' 2024-08-26 16:39:47 -07:00
cpacker
8221693890 fix: patch another str 2024-08-26 16:36:49 -07:00
Sarah Wooders
7f589eaf63 refactor: move API to standardized pydantic schemas across CLI, Python client, REST server (#1579)
Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: matthew zhou <matthewzhou@matthews-MacBook-Pro.local>
Co-authored-by: Zack Field <field.zackery@gmail.com>
2024-08-16 19:53:21 -07:00
Charles Packer
e8813e5937 revert: #1659 (#1660) 2024-08-16 19:52:47 -07:00
Sarah Wooders
9601b53010 refactor: move API to standardized pydantic schemas across CLI, Python client, REST server (cleaned up git history) (#1659)
Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: matthew zhou <matthewzhou@matthews-MacBook-Pro.local>
Co-authored-by: Zack Field <field.zackery@gmail.com>
Co-authored-by: robingotz <tug29225@temple.edu>
Co-authored-by: Vandracon <vandracon@yahoo.com>
Co-authored-by: Maximilian-Winter <maximilian.winter.91@gmail.com>
Co-authored-by: Scott <scott@vysona.com>
Co-authored-by: Jonathan Ward <jonathan.ward7892@gmail.com>
Co-authored-by: madgrizzle <john@thehogans.name>
Co-authored-by: Carlo <284474102@qq.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Robin Goetz <35136007+goetzrobin@users.noreply.github.com>
2024-08-16 19:33:47 -07:00
Sarah Wooders
fe0818d34c fix: fix CLI commands by migrating to Python client (#1563) 2024-07-23 19:52:18 -07:00
Sarah Wooders
9b15cbef39 feat: refactor CoreMemory to support generalized memory fields and memory editing functions (#1479)
Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: Maximilian-Winter <maximilian.winter.91@gmail.com>
2024-07-01 11:50:57 -07:00
Sarah Wooders
b1fbece818 fix: debug logs in server (#1452) (#1457)
Co-authored-by: Ethan Knox <ethan.m.knox@gmail.com>
2024-06-16 19:21:53 -07:00
Sarah Wooders
51f06fdae2 fix: various fixes to python client and add tutorial notebooks (#1377) 2024-06-09 15:32:20 -07:00
Sarah Wooders
f56179050c feat: split up endpoint tests (#1432)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-06-04 19:03:38 -07:00
Sarah Wooders
5d7fb14530 feat: add more tool functionality for python client (#1361)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-05-13 12:05:32 -07:00
Sarah Wooders
943f59a331 fix: allow passing full postgres URI and only override config URI is env variables provided (#1327)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-05-03 10:39:33 -07:00
Charles Packer
17eb4d9279 fix: patch embedding_model null issue in tests (#1305)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-04-27 21:33:00 -07:00
Sarah Wooders
416ed3fad9 feat: add workflow to build + test docker container (#1278) 2024-04-21 17:58:09 -07:00
Charles Packer
b35de11d96 chore: run autoflake + isort (#1279) 2024-04-20 11:40:22 -07:00
Sarah Wooders
922fd5b513 feat: use background tasks for processing uploaded files to REST API (#1263) 2024-04-19 18:15:30 -07:00
Sarah Wooders
f3b5f5e7db fix: Clean up and simplify docker entrypoint (#1235) (#1259)
Co-authored-by: Ethan Knox <norton120@gmail.com>
2024-04-18 22:39:11 -07:00
Sarah Wooders
be50e44301 fix: remove message UTC validation temporarily to fix dev portal + add -d flag to docker compose up for tests (#1268) 2024-04-17 19:18:13 -07:00
Sarah Wooders
edcc143365 fix: remove tools tests (#1236) 2024-04-10 18:34:38 -07:00
Sarah Wooders
806a982b39 feat: REST API support for tool creation (#1219)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-04-08 22:11:18 -07:00
Sarah Wooders
ef913a743b feat: move quickstart to use inference.memgpt.ai (#1190) 2024-03-27 17:09:11 -07:00
Sarah Wooders
c0bd66c957 feat: client tests for docker compose server (#1189) 2024-03-26 18:58:00 -07:00
Sarah Wooders
c8297f53e4 feat: create memgpt server with postgres DB with docker compose up (#1183) 2024-03-25 22:32:26 -07:00
Sarah Wooders
12d075d9b9 feat: return num_passages in Source.metadata_ from REST list sources endpoint (#1178) 2024-03-21 15:41:31 -07:00
Charles Packer
6ee95c31e8 feat: move source_id to path variable (#1171) 2024-03-20 21:37:52 -07:00
Charles Packer
d0dfa7c34e feat: add Preset routes to API + patch for tool_call_id max length OpenAI error (#1165) 2024-03-20 17:05:06 -07:00
Sarah Wooders
e58ca5baed feat: add remaining Python client support for REST API routes + tests (#1160) 2024-03-17 17:34:37 -07:00
Sarah Wooders
70a9e9b81c feat: implement remaining Admin routes in client and add tests (#1157) 2024-03-16 20:03:19 -07:00
Sarah Wooders
47a14b5917 fix: fix bugs for retrieving archival memory via REST API + tests (#1122) 2024-03-10 16:40:54 -07:00
Sarah Wooders
dc958bcd9e feat: Add data sources to REST API (#1118) 2024-03-10 14:34:35 -07:00
tombedor
b665e67b01 feat: isolate test config from main config (#1063)
Co-authored-by: Charles Packer <packercharles@gmail.com>
2024-03-05 16:21:37 -08:00
Sarah Wooders
3b99151711 feat: Create RESTClient and Admin client for interacting with server from python (#1033) 2024-02-22 11:16:01 -08:00
Sarah Wooders
10aa6097ad refactor: store presets in database via metadata store (#1013) 2024-02-15 18:49:16 -08:00
Sarah Wooders
1d065d3849 fix: Automatically create User from MemGPTConfig.anon_clientid from client if does not exist (#981) 2024-02-09 14:54:52 -08:00
Charles Packer
c07746b097 refactor: Use Message types inside Agent state (agent.messages), enabling immediate tracking of Message objects (#836)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-01-17 17:02:56 -08:00
Sarah Wooders
9da53d1e1a fix: Remove usage of config.anon_clientid (#837) 2024-01-16 20:37:58 -08:00
cpacker
41f9640364 fix: fixed the type hints in server to use uuid, patched tests that used strings as dummy users 2024-01-15 14:01:06 -08:00
Sarah Wooders
d118774bb7 fix: tests should only use "openai" quickstart if `OPENAI_API_KEY is set (#801) 2024-01-09 19:13:16 -08:00
Sarah Wooders
54fa07da7a refactor!: Migrate users + agent information into storage connectors (#785)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-08 15:59:49 -08:00
Sarah Wooders
45e6d5793d Modify tests to use openai quickstart 2024-01-03 19:01:27 -08:00
BabellDev
b2e9a24671 feat: Add MemGPT "Python Client" (#713)
* First commit of memgpt client and some messy test code

* rolled back unnecessary changes to abstract interface; switched client to always use Queueing Interface

* Added missing interface clear() in run_command;  added convenience method for checking if an agent exists, used that in create_agent

* Formatting fixes

* Fixed incorrect naming of get_agent_memory in rest server

* Removed erroneous clear from client save method;  Replaced print statements with appropriate logger calls in server

* Updated readme with client usage instructions

* added tests for Client

* make printing to terminal togglable on queininginterface (should probably refactor this to a logger)

* turn off printing to stdout via interface by default

* allow importing the python client in a similar fashion to openai-python (see https://github.com/openai/openai-python)

* Allowed quickstart on init of client;  updated readme and test_client accordingly

* oops, fixed name of openai_api_key config key

* Fixed small typo

* Fixed broken test by adding memgpt hosted model details to agent config

* silence llamaindex 'LLM is explicitly disabled. Using MockLLM.' on server

* default to openai if user's memgpt directory is empty (first time)

* correct type hint

* updated section on client in readme

* added comment about how MemGPT config != Agent config

* patch unrelated test

* update wording on readme

* patch another unrelated test

* added python client to readme docs

* Changed 'user' to 'human' in example;  Defaulted AgentConfig.model to 'None';  Fixed issue in create_agent (accounting for dict config);  matched test code to example

* Fixed advanced example

* patch test

* patch

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-12-30 12:43:46 -08:00