Commit Graph

28 Commits

Author SHA1 Message Date
Matthew Zhou
8de65e1fcd fix: Refactor listing messages to be much more performant (#963) 2025-02-12 10:32:38 -08:00
Charles Packer
952471c578 fix: new versions of send_message_to_agent that are async (#725)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-01-27 17:11:44 -08:00
Caren Thomas
461ad00ca6 run black, add isort config to pyproject.toml 2024-12-26 19:43:11 -08:00
Shubham Naik
c79eeacd20 fix: add tests to cypress 2024-12-23 14:44:08 -08:00
Matthew Zhou
151ce6f655
chore: Migrate FileMetadata to ORM (#2028) 2024-11-13 10:59:46 -08:00
Matthew Zhou
9b347690d8
feat: Enable adding files (#1864)
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
2024-10-14 10:22:45 -07:00
Sarah Wooders
d631cec3d6
feat: require LLMConfig and EmbeddingConfig to be specified for agent creation + allow multiple simultaneous provider configs for server (#1814)
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-10-04 19:35:00 -07:00
Sarah Wooders
85faf5f474
chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-09-23 09:15:18 -07:00
Sarah Wooders
f2dfa79432
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
55a36a6e3d
revert: #1659 (#1660) 2024-08-16 19:52:47 -07:00
Sarah Wooders
b39ad16a9d
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
Anush
19480ec5fa
feat: Qdrant storage connector (#1023) 2024-06-04 23:24:25 -07:00
Charles Packer
eaed123af8
chore: run autoflake + isort (#1279) 2024-04-20 11:40:22 -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
tombedor
503e812204
feat: isolate test config from main config (#1063)
Co-authored-by: Charles Packer <packercharles@gmail.com>
2024-03-05 16:21:37 -08:00
tombedor
9681a60bc9
fix: configure black (#1072) 2024-02-29 15:19:08 -08:00
Sarah Wooders
ce1ce9d06f
feat: Add data loading and attaching to server (#1051) 2024-02-24 19:34:32 -08:00
Sarah Wooders
9ada3ef529
feat: Create RESTClient and Admin client for interacting with server from python (#1033) 2024-02-22 11:16:01 -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
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
bb3da6e768 use --all-extras in poetry install for tests 2024-01-02 22:18:17 -08:00
BabellDev
8736d46526
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
Sarah Wooders
febc7344c7
Add support for HuggingFace Text Embedding Inference endpoint for embeddings (#524) 2023-11-27 16:28:49 -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
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
4d1cb31b97
Fix config tests (#343)
Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-06 18:43:23 -08:00
Sarah Wooders
2492db6b59
VectorDB support (pgvector) for archival memory (#226) 2023-11-03 16:19:15 -07:00