Commit Graph

43 Commits

Author SHA1 Message Date
Sarah Wooders
c7fbc03e68
refactor: store presets in database via metadata store (#1013) 2024-02-15 18:49:16 -08:00
Charles Packer
6f5da1a5c9
fix: resolve fatal attribute errors in pyright (#917) 2024-01-23 20:33:58 -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
Sarah Wooders
7195635665 cleanup source loading code 2024-01-09 19:19:18 -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
Sarah Wooders
83c930e9ce Deprecate list_loaded_data for listing sources, and use metadata DB instead 2023-12-26 18:47:16 +04:00
Sarah Wooders
d258f03899 Define refactored storage table types (archival, recall, documents,
users, agents)
2023-12-26 17:04:11 +04:00
Javier Sastre
ccf7bf6383
fix: memgpt agent ignores user messages (#679)
* Fixed bug making MemGPT ignore some user messages

* Fixed bug making MemGPTAgent ignore some user messages

* Added pre-commit fixes
2023-12-24 12:41:47 -08:00
Charles Packer
2b59559818
fix: AutoGen error when using python <3.10 (#691) 2023-12-23 12:29:58 -08:00
Charles Packer
f76c352ca4
AutoGen misc fixes (#603)
* don't add anything except for assistant messages to the global autogen message historoy

* properly format autogen messages when using local llms (allow naming to get passed through to the prompt formatter)

* add extra handling of autogen's name field in step()

* comments
2023-12-10 20:52:21 -08:00
Charles Packer
aa75fa1cf5
allow passing skip_verify to autogen constructors (#581)
* allow passing skip_verify to autogen constructors

* added flag to examples with a NOTE, also added to docs
2023-12-05 13:28:33 -08:00
Charles Packer
b1dbf19d64
Update autogen.md to include Azure config example + patch for pyautogen>=0.2.0 (#555)
* Update autogen.md

* in groupchat example add an azure elif

* fixed missing azure mappings + corrected the gpt-4-turbo one

* Updated MemGPT AutoGen agent to take credentials and store them in the config (allows users to use memgpt+autogen without running memgpt configure), also patched api_base kwarg for autogen >=v0.2

* add note about 0.2 testing

* added overview to autogen integration page

* default examples to openai, sync config header between the two main examples, change speaker mode to round-robin in 2-way chat to supress warning

* sync config header on last example (not used in docs)

* refactor to make sure we use existing config when writing out extra credentials

* fixed bug in local LLM where we need to comment out api_type (for pyautogen>=0.2.0)
2023-12-04 12:49:08 -08:00
Charles Packer
ec7fa25c07
Update AutoGen documentation and notebook example (#540)
* Update AutoGen documentation

* Update webui.md

* Update webui.md

* Update lmstudio.md

* Update lmstudio.md

* Update mkdocs.yml

* Update README.md

* Update README.md

* Update README.md

* Update autogen.md

* Update local_llm.md

* Update local_llm.md

* Update autogen.md

* Update autogen.md

* Update autogen.md

* refreshed the autogen examples + notebook (notebook is untested)

* unrelated patch of typo I noticed

* poetry remove pyautogen, then manually removed autogen extra in .toml

* add pdf dependency

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-11-30 17:45:04 -08:00
Charles Packer
e65b5400c7
Fixes bugs with AutoGen implementation and exampes (#498)
* patched bugs in autogen agent example, updated autogen agent creation to follow agentconfig paradigm

* more fixes

* black

* fix bug in autoreply

* black

* pass default autoreply through to the memgpt autogen conversibleagent subclass so that it doesn't leave empty messages which can trigger errors in local llm backends like lmstudio
2023-11-21 19:15:28 -08:00
Wes
6418be2b8f
Add load and load_and_attach functions to memgpt autogen agent. (#430)
* Add load and load_and_attach functions to memgpt autogen agent.

* Only recompute files if dataset does not exist.
2023-11-14 22:51:21 -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
Vivian Fang
0c88e02894
Add autogen example that lets you chat with docs (#342)
* Relax verify_first_message_correctness to accept any function call

* Also allow missing internal monologue if request_heartbeat

* Cleanup

* get instead of raw dict access

* Support attach in memgpt autogen agent

* Add docs example

* Add documentation, cleanup
2023-11-06 21:06:13 -08:00
cpacker
2fa1dedcb6 cleanup 2023-11-02 22:37:17 -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
Vivian Fang
8a12e3d6d0
initialize memgpt agent config with same name passed in (#211) 2023-10-30 21:33:27 -07:00
Vivian Fang
fa506449f8
Refactor autogen agent to use sync memgpt, add notebook example (#157)
* Refactor autogen agent to use sync memgpt, add notebook example

* Add colab badge to notebook

* Update colab badge to point to main

* Add imports lost in the merge

* Changes to make autogenagent work with cli refactor
2023-10-30 18:09:51 -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
Charles Packer
e621b4c1ca
black patch on outstanding files that were causing workflow fails on PRs (#193) 2023-10-29 20:53:46 -07:00
Charles Packer
47fa5b39bb
Merge pull request #126 from QZGao/main
Integration with AutoGen workflow
2023-10-27 12:33:34 -07:00
Qingzheng Gao
7e555efc81 Merge newest fix 2023-10-27 13:56:08 +08:00
Qingzheng Gao
80532e7c94 add examples 2023-10-27 13:52:50 +08:00
Sarah Wooders
4498af9631
Merge pull request #144 from sarahwooders/black-reformat
Update to consistent formatting
2023-10-26 16:05:30 -07:00
Vivian Fang
b1f7abd01f return default_auto_reply instead of None 2023-10-26 15:34:04 -07:00
Sarah Wooders
01be032f7f add black to poetry and reformat 2023-10-26 15:33:50 -07:00
cpacker
99a67fe23b fix runtime error 2023-10-26 15:23:31 -07:00
Qingzheng Gao
193b270c72 add support to auto-running mode 2023-10-26 15:47:36 +08:00
Qingzheng Gao
e06ca7092f draft: integration with autogen workflow 2023-10-26 15:28:34 +08:00
Vivian Fang
49b16e659d formatting 2023-10-25 23:48:22 -07:00
Vivian Fang
a55ec191c2 add note about how to turn on inner thoughts 2023-10-25 23:46:21 -07:00
Vivian Fang
163e4d963a remove stray comments 2023-10-25 23:40:30 -07:00
Vivian Fang
98a1e3dafe simplify find_new_messages 2023-10-25 23:32:09 -07:00
Charles Packer
13498742d7 updated example and patched messages bug 2023-10-25 23:12:57 -07:00
Charles Packer
0d93f2f4a6 cleanup 2023-10-25 22:21:28 -07:00
cpacker
2998b97299 added user/PM/coder groupchat example to repo + refactored the creation of memgpt autogen actions to a constructor function 2023-10-25 18:06:35 -07:00
Surav Shrestha
2c85f9f043 fix: typo in memgpt/autogen/memgpt_agent.py 2023-10-23 11:12:09 +05:45
Vivian Fang
8bdce98643 Add Autogen MemGPT agent
Co-authored-By: Charles Packer <contact@charlespacker.com>
2023-10-20 20:00:36 -07:00