Ethan Knox
0491a8bbe3
refactor: Remove JSON constant for common method ( #1680 )
2024-08-26 13:47:41 -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
Charles Packer
8b13d195ce
chore: .gitattributes ( #1511 )
2024-07-04 14:45:35 -07:00
Bear Huang
e5fd3fbab6
fix: Append encoding='utf-8' to open ( #1423 )
2024-05-31 10:47:06 -07:00
lenaxia
f370670db1
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
b35de11d96
chore: run autoflake + isort ( #1279 )
2024-04-20 11:40:22 -07:00
Charles Packer
703ea47d72
feat: add Google AI Gemini Pro support ( #1209 )
2024-04-10 19:43:44 -07:00
Charles Packer
4b5666ac64
fix: patch out-of-sync / missing tzinfo timestamps coming back from API server ( #1182 )
2024-03-26 20:37:44 -07:00
Charles Packer
542d78c102
fix: additions to utc patch ( #1176 ) ( #1177 )
2024-03-21 13:02:19 -07:00
Charles Packer
6d62141384
feat: migrate all calls to datetime.now() to datetime.now(UTC) ( #1176 )
2024-03-21 12:36:56 -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
10aa6097ad
refactor: store presets in database via metadata store ( #1013 )
2024-02-15 18:49:16 -08:00
Charles Packer
0727c802f0
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
2aa2e12502
fix: various patches for Azure support + strip Box ( #982 )
2024-02-09 15:01:57 -08:00
Sarah Wooders
da7ecbf103
fix: Remove document truncation and replace DB inserts with upserts ( #973 )
2024-02-08 20:46:21 -08:00
tombedor
c8e8557c27
fix: set json loads strict to false ( #946 )
2024-01-31 15:50:08 -08:00
Charles Packer
d9c87a266f
fix: misc updates to the migration code to improve migration UX ( #941 )
2024-01-29 17:42:41 -08:00
Charles Packer
82f339718c
fix: resolve fatal attribute errors in pyright ( #917 )
2024-01-23 20:33:58 -08:00
Charles Packer
037cc16e32
refactor: fix typing errors (pyright) ( #855 )
2024-01-23 17:21:44 -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
Charles Packer
c441bf15b7
fix: remove hyphens from name generator ( #829 )
2024-01-16 11:38:32 -08:00
cpacker
e7e27fed17
fix: patch bug in validation decorator
2024-01-15 13:40:29 -08:00
cpacker
95782da8a3
fix: patch bug in type checker
2024-01-15 13:27:25 -08:00
cpacker
434a4b2f99
fix: Fixed type hints in metadata.py, added basic type-checking decorator
2024-01-15 12:55:21 -08:00
ifsheldon
dd2f4fc873
fix: Turn off all ensure_ascii of json.dumps ( #800 )
2024-01-11 23:54:35 -08:00
Charles Packer
f118e01ad1
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
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
cpacker
e02a75d40c
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
77e72d18da
Merge branch 'main' into cherry-pick-storage-refactor
2023-12-27 13:47:27 +04:00
Charles Packer
42e2a301eb
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
0c2bf05406
Bugfixes for get_all function and code cleanup to match main
2023-12-26 17:50:49 +04:00
Sarah Wooders
453a7c0c3e
Refactor chroma integration
2023-12-26 17:05:41 +04:00
Sarah Wooders
223e196da8
Support recall and archival memory for postgres
...
working test
2023-12-26 17:05:24 +04:00
Sarah Wooders
408df89c9c
Add in memory storage connector implementation for refactored storage
2023-12-26 17:05:24 +04:00
Charles Packer
6394ca73ef
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
3482a196d6
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
4f23934e04
feat: Add new wrapper defaults ( #656 )
2023-12-21 17:05:38 +04:00
Charles Packer
569bc7da31
feat: added memgpt folder command ( #632 )
...
* added memgpt folder command
* comments
2023-12-17 10:54:17 -08:00
Charles Packer
e012802da1
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
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
f2a2942c66
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
2d23370930
Removing dead code + legacy commands ( #536 )
2023-11-30 13:37:11 -08:00
Charles Packer
4ba4c02fa1
Remove .DS_Store from agents list ( #485 )
2023-11-19 14:35:51 -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
Vivian Fang
11326ec24e
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
fb29290dd4
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
2d57564c35
make timezone local by default ( #298 )
...
Co-authored-by: orderwat <github@oderwat.de >
2023-11-03 21:15:15 -07:00
Sarah Wooders
b9ce763fda
VectorDB support (pgvector) for archival memory ( #226 )
2023-11-03 16:19:15 -07:00