Commit Graph

84 Commits

Author SHA1 Message Date
Charles Packer
86899756a5
feat: allow editing the system prompt of an agent post-creation (#1585) 2024-07-28 20:14:34 -07:00
Charles Packer
477867f3ec
feat: patch missing inner thoughts on new openai models (#1562) 2024-07-23 19:51:25 -07:00
Charles Packer
0681e89c01
chore: .gitattributes (#1511) 2024-07-04 14:45:35 -07:00
Charles Packer
0edc9c606b
fix: patch /pop, /retry, and /rethink (#1471) 2024-06-22 13:57:27 -07:00
Charles Packer
a86374b464
ci: update workflows (add autoflake and isort) (#1300) 2024-04-27 11:54:34 -07:00
Charles Packer
eaed123af8
chore: run autoflake + isort (#1279) 2024-04-20 11:40:22 -07:00
Charles Packer
aeb4a94e0b
feat: add streaming support for OpenAI-compatible endpoints (#1262) 2024-04-17 23:40:52 -07:00
Charles Packer
bdf7aeb247
feat: add Google AI Gemini Pro support (#1209) 2024-04-10 19:43:44 -07:00
Charles Packer
c8758a0bf7
fix: patched pop (#1232) 2024-04-08 22:40:11 -07:00
Charles Packer
a321b86344
fix: patch /rethink (#1227) 2024-04-06 13:34:26 -07:00
Charles Packer
2ca92d6955
feat: pass message UUIDs during message streaming (POST SSE send_message) (#1120) 2024-03-10 15:34:37 -07:00
Sarah Wooders
928056815d
fix: bug with storing embedding info in metadata store (#1101) 2024-03-05 22:11:12 -08:00
Charles Packer
e6c55ec4c4
fix: patch /rewrite (#1034) 2024-02-21 23:52:53 -08:00
Sarah Wooders
38c184caf8
feat: refactor loading and attaching data sources, and upgrade to llama-index==0.10.6 (#1016) 2024-02-18 16:57:01 -08:00
tombedor
1dca90588a
fix: set json loads strict to false (#946) 2024-01-31 15:50:08 -08:00
Charles Packer
f107369baa
refactor: refactor MemGPT + AutoGen integration to work with MemGPT 0.2.12+ (DB release) (#905) 2024-01-22 17:49:48 -08:00
starsnatched
aff152061b
feat: Benchmark Command: memgpt benchmark (#816)
Co-authored-by: Starlette <starlette@Starlettes-MacBook-Pro.local>
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-21 00:57:01 -08:00
Hamza Kyamanywa
c4f8837d81
fix: Correct misspelled 'occurred' in printed error messages (#868) 2024-01-20 17:28:26 -08:00
Sarah Wooders
cca9b38294
feat: Store embeddings padded to size 4096 to allow DB storage of varying size embeddings (#852)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-19 16:03:13 -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
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
Max Blackmer
6710f18c07 Merge branch 'main' into feature/global-logging
# Conflicts:
#	memgpt/config.py
2024-01-11 11:12:03 -05:00
Tom Bedor
e79d78ed32 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
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
Max Blackmer
2343851cae Merge branch 'feature/global-logging' of github.com:agiletechnologist/MemGPT into feature/global-logging
Removed Logging from configurations and migrated to constants.py
Modified log.py to configure using constants to configure logging

 Conflicts:
      memgpt/config.py resolved
2024-01-05 18:11:17 -05:00
cpacker
366add62c5 added commands back 2024-01-02 13:00:59 -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
d6aa519202 Update memgpt configure to reflect current storage connector options 2023-12-26 19:28:13 +04:00
Sarah Wooders
83c930e9ce Deprecate list_loaded_data for listing sources, and use metadata DB instead 2023-12-26 18:47:16 +04:00
Max Blackmer
42c73137c9 [cpacker#319] Refactor memgptlog.py to log.py and move a function to log.py 2023-12-26 08:52:24 -05:00
Sarah Wooders
1c018cc14e Add more compehensive tests, make row ids be strings (not integers) 2023-12-26 17:05:58 +04:00
Sarah Wooders
d258f03899 Define refactored storage table types (archival, recall, documents,
users, agents)
2023-12-26 17:04:11 +04:00
Max Blackmer, CSM
e67c521da8
Merge branch 'main' into feature/global-logging 2023-12-25 14:53:19 -05:00
Charles Packer
a027794fe1
feat: added /summarize command (#667)
* added /summarize command

* patch and test
2023-12-21 01:04:05 -08:00
Charles Packer
77584a9df5
feat: Add memgpt quickstart command (#641)
* Revert "Revert "nonfunctional 404 quickstart command w/ some other typo corrections""

This reverts commit 5dbdf31f1c.

* Revert "Revert "added example config file""

This reverts commit 72a58f6de3.

* tested and working

* added and tested openai quickstart, added fallback if internet 404's to pull from local copy

* typo

* updated openai key input message to include html link

* renamed --type to --backend, added --latest flag which fetches from online default is to pull from local file

* fixed links
2023-12-20 00:00:40 -08:00
Max Blackmer
f79147b5a6 Merge branch 'feature/global-logging' of github.com:agiletechnologist/MemGPT into feature/global-logging 2023-12-18 16:55:23 -05:00
Max Blackmer
119b1afccd [#319] Global Logging Configuration with directory fixes at config load. 2023-12-18 16:51:23 -05:00
cpacker
5dbdf31f1c Revert "nonfunctional 404 quickstart command w/ some other typo corrections"
This reverts commit 22119cfb03.
2023-12-18 00:48:47 -08:00
cpacker
22119cfb03 nonfunctional 404 quickstart command w/ some other typo corrections 2023-12-18 00:45:02 -08: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
0ca014948b
added memgpt server command (#611)
* added memgpt server command

* added the option to specify a port (rest default 8283, ws default 8282)

* fixed import in test

* added agent saving on shutdown

* added basic locking mechanism (assumes only one server.py is running at the same time)

* remove 'STOP' from buffer when converting to list for the non-streaming POST resposne

* removed duplicate on_event (redundant to lifespan)

* added GET agents/memory route

* added GET agent config

* added GET server config

* added PUT route for modifying agent core memory

* refactored to put server loop in separate function called via main
2023-12-13 00:41:40 -08:00
Charles Packer
d8af092f3e
Add safety check to pop (#575)
* Add safety check to pop

* typo
2023-12-04 14:18:36 -08:00
Sarah Wooders
dd5a110be4
Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Charles Packer
bc0c1e4a37
Remove openai package and migrate to requests (#534) 2023-11-30 13:00:13 -08:00
Sarah Wooders
da081667d6
Add warning if no data sources loaded on /attach command (#513)
* minor fix

* add warn instead of error for no data sources
2023-11-27 13:00:23 -08:00
Sarah Wooders
28514da5df
Refactor config + determine LLM via config.model_endpoint_type (#422)
* mark depricated API section

* CLI bug fixes for azure

* check azure before running

* Update README.md

* Update README.md

* bug fix with persona loading

* remove print

* make errors for cli flags more clear

* format

* fix imports

* fix imports

* add prints

* update lock

* update config fields

* cleanup config loading

* commit

* remove asserts

* refactor configure

* put into different functions

* add embedding default

* pass in config

* fixes

* allow overriding openai embedding endpoint

* black

* trying to patch tests (some circular import errors)

* update flags and docs

* patched support for local llms using endpoint and endpoint type passed via configs, not env vars

* missing files

* fix naming

* fix import

* fix two runtime errors

* patch ollama typo, move ollama model question pre-wrapper, modify question phrasing to include link to readthedocs, also have a default ollama model that has a tag included

* disable debug messages

* made error message for failed load more informative

* don't print dynamic linking function warning unless --debug

* updated tests to work with new cli workflow (disabled openai config test for now)

* added skips for tests when vars are missing

* update bad arg

* revise test to soft pass on empty string too

* don't run configure twice

* extend timeout (try to pass against nltk download)

* update defaults

* typo with endpoint type default

* patch runtime errors for when model is None

* catching another case of 'x in model' when model is None (preemptively)

* allow overrides to local llm related config params

* made model wrapper selection from a list vs raw input

* update test for select instead of input

* Fixed bug in endpoint when using local->openai selection, also added validation loop to manual endpoint entry

* updated error messages to be more informative with links to readthedocs

* add back gpt3.5-turbo

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-14 15:58:19 -08:00
Charles Packer
7a2fe850ed
WebSocket interface and basic server.py process (#399) 2023-11-13 17:30:24 -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