Commit Graph

73 Commits

Author SHA1 Message Date
Bear Huang
6f77e66c98
fix: Append encoding='utf-8' to open (#1423) 2024-05-31 10:47:06 -07:00
lenaxia
787498181f
feat(JSON Response): Enable JSON Response format for all Openai Calls… (#1401)
Signed-off-by: Lenaxia <github@47north.lat>
Co-authored-by: Lenaxia <github@47north.lat>
2024-05-22 19:05:34 -07:00
Charles Packer
eaed123af8
chore: run autoflake + isort (#1279) 2024-04-20 11:40:22 -07:00
Charles Packer
bdf7aeb247
feat: add Google AI Gemini Pro support (#1209) 2024-04-10 19:43:44 -07:00
Charles Packer
15a149233c
fix: patch out-of-sync / missing tzinfo timestamps coming back from API server (#1182) 2024-03-26 20:37:44 -07:00
Charles Packer
0ac67d2733
fix: additions to utc patch (#1176) (#1177) 2024-03-21 13:02:19 -07:00
Charles Packer
03abc4fce0
feat: migrate all calls to datetime.now() to datetime.now(UTC) (#1176) 2024-03-21 12:36:56 -07:00
Charles Packer
89cc4b98ed
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
c7fbc03e68
refactor: store presets in database via metadata store (#1013) 2024-02-15 18:49:16 -08:00
Charles Packer
de5b084df4
fix: patch bug in verify first message + add ChatCompletionRequest models to the models dir (#985) 2024-02-09 17:00:33 -08:00
Charles Packer
3546f9df36
fix: various patches for Azure support + strip Box (#982) 2024-02-09 15:01:57 -08:00
Sarah Wooders
1f1007bcd3
fix: Remove document truncation and replace DB inserts with upserts (#973) 2024-02-08 20:46:21 -08:00
tombedor
1dca90588a
fix: set json loads strict to false (#946) 2024-01-31 15:50:08 -08:00
Charles Packer
330b199616
fix: misc updates to the migration code to improve migration UX (#941) 2024-01-29 17:42:41 -08:00
Charles Packer
6f5da1a5c9
fix: resolve fatal attribute errors in pyright (#917) 2024-01-23 20:33:58 -08:00
Charles Packer
7ec216d1f8
refactor: fix typing errors (pyright) (#855) 2024-01-23 17:21:44 -08:00
Charles Packer
d1b1548ba0
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
Charles Packer
0292eef062
fix: remove hyphens from name generator (#829) 2024-01-16 11:38:32 -08:00
cpacker
0c468e9ca4 fix: patch bug in validation decorator 2024-01-15 13:40:29 -08:00
cpacker
c268cd533d fix: patch bug in type checker 2024-01-15 13:27:25 -08:00
cpacker
ce3430498a fix: Fixed type hints in metadata.py, added basic type-checking decorator 2024-01-15 12:55:21 -08:00
ifsheldon
f88f930354
fix: Turn off all ensure_ascii of json.dumps (#800) 2024-01-11 23:54:35 -08:00
Charles Packer
75467c2fb8
feat: Migration command for importing old agents into new DB backend (#802)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-01-11 14:57:21 -08:00
Sarah Wooders
8c06cc4bf7
refactor!: Migrate users + agent information into storage connectors (#785)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-08 15:59:49 -08:00
cpacker
d9ed2df772 clean up the error messages stemming from a badly configured endpoint (bad url, url is none, etc) 2024-01-02 13:28:06 -08:00
Sarah Wooders
36c1e340e6
Merge branch 'main' into cherry-pick-storage-refactor 2023-12-27 13:47:27 +04:00
Charles Packer
bccd990ab6
fix: increase the func return char limit (#714)
* increase the funct return limit

* disable truncation for base search functions

* added stdout suppression to remove MockLLM warning
2023-12-27 01:33:30 -08:00
Sarah Wooders
48f1fd490e Bugfixes for get_all function and code cleanup to match main 2023-12-26 17:50:49 +04:00
Sarah Wooders
de88c9d50d Refactor chroma integration 2023-12-26 17:05:41 +04:00
Sarah Wooders
9b3d59e016 Support recall and archival memory for postgres
working test
2023-12-26 17:05:24 +04:00
Sarah Wooders
9f3806dfcb Add in memory storage connector implementation for refactored storage 2023-12-26 17:05:24 +04:00
Charles Packer
10840fc5f4
Added length checking to the persona/human loader functions, also updated the CLI error dump to look prettier (eg on over length errors) (#695) 2023-12-24 23:05:13 -08:00
Charles Packer
19c48912ac
feat: improve CLI appearance (#687)
* prettified standard cli output

* also suppress stdout for agent loading

* better spacing

* added emoji to existing agent load
2023-12-23 11:39:51 -08:00
Charles Packer
0e69058331
feat: Add new wrapper defaults (#656) 2023-12-21 17:05:38 +04:00
Charles Packer
6a964123a0
feat: added memgpt folder command (#632)
* added memgpt folder command

* comments
2023-12-17 10:54:17 -08:00
Charles Packer
071043c91a
Patch bug with loading of old agents (#629)
* initial patch that seems to work with example old agent save

* cleanup

* remove unneeded import
2023-12-16 10:04:23 -08:00
Charles Packer
8f178e18ca
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
9580dd5174
sort agents by directory-last-modified time (#574)
* sort agents by directory-last-modified time

* only save agent config when agent is saved

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-12-04 14:16:03 -08:00
Sarah Wooders
dd5a110be4
Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Charles Packer
437f2ea9a1
Remove .DS_Store from agents list (#485) 2023-11-19 14:35:51 -08:00
Charles Packer
b789549d02
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
Vivian Fang
e5c0e1276b
Remove AsyncAgent and async from cli (#400)
* Remove AsyncAgent and async from cli

Refactor agent.py memory.py

Refactor interface.py

Refactor main.py

Refactor openai_tools.py

Refactor cli/cli.py

stray asyncs

save

make legacy embeddings not use async

Refactor presets

Remove deleted function from import

* remove stray prints

* typo

* another stray print

* patch test

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-09 14:51:12 -08:00
Sarah Wooders
b1c5566168
Dependency management (#337)
* Divides dependencies into `pip install pymemgpt[legacy,local,postgres,dev]`. 
* Update docs
2023-11-06 19:45:44 -08:00
Charles Packer
ed0c935af9
make timezone local by default (#298)
Co-authored-by: orderwat <github@oderwat.de>
2023-11-03 21:15:15 -07:00
Sarah Wooders
2492db6b59
VectorDB support (pgvector) for archival memory (#226) 2023-11-03 16:19:15 -07:00
Charles Packer
4c80222e0c
strip '/' and use osp.join (Windows support) (#283)
* strip '/' and use osp.join

* grepped for MEMGPT_DIR, found more places to replace '/'

* typo

* grep pass over filesep

---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-03 13:54:29 -07:00
Vivian Fang
a5d297ab97
Support for MemGPT + Autogen + Local LLM (#231)
* various fixes to get autogen working again

* MemGPT+Autogen+Local LLM example working

Co-Authored-By: nmx0 <nmx0@users.noreply.github.com>

* propagate model to other memgpt_agent constructor

* fix agent_groupchat

* tested on lm studio

---------

Co-authored-by: nmx0 <nmx0@users.noreply.github.com>
Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-01 00:14:40 -07:00
Sarah Wooders
de6f6e857f
Cli bug fixes (loading human/persona text, azure setup, local setup) (#222)
* mark depricated API section

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* CLI bug fixes for azure

* check azure before running

* Update README.md

* Update README.md

* bug fix with persona loading

* revert readme

* remove print
2023-10-31 13:51:20 -07:00
sk
e66b6bdee7
Added db load ability (#106)
* Added db load ability, updated README

* Fixed spacing on multiplication

* Fixed double quotes

* Added double quotes to .db

* After reading the code, realized we can return here for .db extension, and let main handle loading the .db into archival memory.
Issue is that the final else was treating the db as a file and reading it in raw, causing issues.

* Removed .csv reference, not currently working.
2023-10-31 12:18:12 -07:00
Sarah Wooders
b7f9560bef
Refactoring CLI to use config file, connect to Llama Index data sources, and allow for multiple agents (#154)
* Migrate to `memgpt run` and `memgpt configure` 
* Add Llama index data sources via `memgpt load` 
* Save config files for defaults and agents
2023-10-30 16:47:54 -07:00