Commit Graph

19 Commits

Author SHA1 Message Date
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
d7961b68b0 feat: add more tool calling support to LocalClient (#1465) 2024-06-22 13:55:00 -07:00
Sarah Wooders
51e23d5f83 feat: add tools from the Python client (#1463) 2024-06-21 20:58:12 -07:00
Bear Huang
e5fd3fbab6 fix: Append encoding='utf-8' to open (#1423) 2024-05-31 10:47:06 -07:00
Ville H
021cfcd8be fix: creation of invalid tool in tool builder (#1402) 2024-05-21 16:25:49 -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
Charles Packer
a80b7e8fec feat: Add personal assistant demo code from meetup (#1294) 2024-04-24 16:58:15 -07:00
Charles Packer
b35de11d96 chore: run autoflake + isort (#1279) 2024-04-20 11:40:22 -07:00
Charles Packer
a3c19a70f5 fix: misc bugs (#1276)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-04-20 10:24:51 -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
d17719f19b feat: enable adding presets via the CLI (#1131) 2024-03-11 15:01:56 -07:00
Charles Packer
e93d41b57a feat: add archival memory GET, POST, DEL to REST API (#1119) 2024-03-09 14:23:36 -08:00
Charles Packer
deb9b292cb feat: add metadata to GET tools route (#1117) 2024-03-08 14:13:08 -08:00
Tom Bedor
0c0f269453 feat: add_function and remove_function commands
Allows for dynamic editing of user defined functions.

Disallows removing functions that are defined by MemGPT itself.
2024-01-11 00:38:40 +00:00
Charles Packer
27eb05e7e8 Add safeguard on tokens returned by functions (#576)
* swapping out hardcoded str for prefix (forgot to include in #569)

* add extra failout when the summarizer tries to run on a single message

* added function response validation code, currently will truncate responses based on character count

* added return type hints (functions/tools should either return strings or None)

* discuss function output length in custom function section

* made the truncation more informative
2023-12-13 21:57:50 -08:00
Charles Packer
df999de4c1 use a consistent warning prefix across codebase (#569) 2023-12-04 11:38:51 -08:00
Charles Packer
823a3e1694 Add error handling during linking imports (#495)
* Add error handling during linking imports

* correct typo + make error message even more explicit

* deadcode
2023-11-21 15:16:16 -08:00
Charles Packer
b592328a71 bugfix for linking functions from ~/.memgpt/functions (#463) 2023-11-15 15:56:42 -08:00
Charles Packer
e5add4e430 Configurable presets to support easy extension of MemGPT's function set (#420)
* partial

* working schema builder, tested that it matches the hand-written schemas

* correct another schema diff

* refactor

* basic working test

* refactored preset creation to use yaml files

* added docstring-parser

* add code for dynamic function linking in agent loading

* pretty schema diff printer

* support pulling from ~/.memgpt/functions/*.py

* clean

* allow looking for system prompts in ~/.memgpt/system_prompts

* create ~/.memgpt/system_prompts if it doesn't exist

* pull presets from ~/.memgpt/presets in addition to examples folder

* add support for loading agent configs that have additional keys

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-11-13 10:43:28 -08:00