Commit Graph

3426 Commits

Author SHA1 Message Date
Charles Packer
d366e91c70 feat: added /summarize command (#667)
* added /summarize command

* patch and test
2023-12-21 01:04:05 -08:00
Charles Packer
a283d97d17 added logging of raw response on debug (#666) 2023-12-21 00:25:45 -08:00
Charles Packer
46f686dfde fix: Patch openai error message + openai quickstart (#665)
* removed risky prints

* cleanup

* fix bug with openai quickstart, add extra visual indicators that quickstart worked

* changed message
2023-12-21 00:17:37 -08:00
Charles Packer
3bc9ed01f7 patch bug with raw mode (#663) 2023-12-20 17:25:52 -08:00
Charles Packer
f532ffc41f feat: Add memgpt quickstart command (#641)
* Revert "Revert "nonfunctional 404 quickstart command w/ some other typo corrections""

This reverts commit 5dbdf31f1ce939843ff97e649554d8bc0556a834.

* Revert "Revert "added example config file""

This reverts commit 72a58f6de31f3ff71847bbaf083a91182469f9af.

* 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
Charles Packer
dd500e19c3 updated assets (#654) 2023-12-19 14:51:20 -08:00
Max Blackmer, CSM
cb4915c64f fix: [446] better gitignore for IDEs and OS. (#651)
* [446] better gitignore for IDEs and OS.

* [446] better gitignore for IDEs and OS.
2023-12-19 14:34:55 -08:00
Charles Packer
0fc4ae46f1 feat: Updated contributing docs (#653)
* reorganized + revised landing

* more docs

* added pic

* updated contributing

* diff

* move asset links

* hard links
2023-12-19 14:28:07 -08:00
Max Blackmer
f7df7d6d78 [cpacker#319] run Black Reformat on files. 2023-12-19 15:09:08 -05:00
Charles Packer
f8b99b562f feat: Migrate docs (#646)
* updated docs for readme

* Update index.md

* Update index.md

* added header

* broken link

* sync heading sizes

* fix various broken rel links

* Update index.md

* added webp

* Update index.md

* strip mkdocs/rtk files

* replaced readthedocs references with readme
2023-12-18 20:29:24 -08:00
Max Blackmer
f054832a48 Merge branch 'feature/global-logging' of github.com:agiletechnologist/MemGPT into feature/global-logging 2023-12-18 16:55:23 -05:00
Max Blackmer
6cafa9ae97 [#319] Global Logging Configuration with directory fixes at config load. 2023-12-18 16:51:23 -05:00
Charles Packer
a9feec245f feat: Add common + custom settings files for completion endpoints (#631) 2023-12-18 15:22:24 +04:00
cpacker
7f2edd8dd7 Revert "nonfunctional 404 quickstart command w/ some other typo corrections"
This reverts commit 22119cfb037c7d9379653006eafa03042eafcbe8.
2023-12-18 00:48:47 -08:00
cpacker
fbde2b47d1 Revert "added example config file"
This reverts commit f8e0783b611f89ab62cd15fa4ec80bf9aa28b1f8.
2023-12-18 00:48:33 -08:00
cpacker
2bb34fb02d added example config file 2023-12-18 00:45:47 -08:00
cpacker
9c8ed92ad7 nonfunctional 404 quickstart command w/ some other typo corrections 2023-12-18 00:45:02 -08: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
10a59ed4b6 added semantic pr github action https://github.com/amannn/action-semantic-pull-request (#634) 2023-12-16 13:44:12 -08:00
Charles Packer
f839e0a2ea poetry add [html2text/docx2text] (#633) 2023-12-16 13:21:19 -08:00
cpacker
b8d3aed051 missing file 2023-12-16 11:44:45 -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
070c0123c6 migrate to using completions endpoint by default (#628)
* migrate to using completions endpoint by default

* added note about version to docs
2023-12-15 12:29:52 -08:00
Charles Packer
d51c61e91c allow passing custom host to uvicorn (#618) 2023-12-14 13:01:33 -08:00
Charles Packer
490c0ccd4a patch bug where None.copy() throws runtime error (#617) 2023-12-14 12:52:53 -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
2ed31fa2ad Update LICENSE 2023-12-13 21:53:03 -08:00
Charles Packer
e70a59dcd4 added autogen as an extra (#616)
* added autogen as an extra

* updated docs

Co-authored-by: hemanthsavasere <hemanth.savasere@gmail.com>
2023-12-13 21:36:03 -08:00
Charles Packer
8cc1ed0f59 updated local APIs to return usage info (#585)
* updated APIs to return usage info

* tested all endpoints
2023-12-13 21:11:20 -08:00
Charles Packer
2048ba179b 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
b3f1f50a6c Update LICENSE 2023-12-12 17:21:54 -08:00
Charles Packer
b7427e2de7 API server refactor + REST API (#593)
* init server refactor

* refactored websockets server/client code to use internal server API

* added intentional fail on test

* update workflow to try and get test to pass remotely

* refactor to put websocket code in a separate subdirectory

* added fastapi rest server

* add error handling

* modified interface return style

* disabled certain tests on remote

* added SSE response option for user_message

* fix ws interface test

* fallback for oai key

* add soft fail for test when localhost is borked

* add step_yield for all server related interfaces

* extra catch

* update toml + lock with server add-ons (add uvicorn+fastapi, move websockets to server extra)

* regen lock file

* added pytest-asyncio as an extra in dev

* add pydantic to deps

* renamed CreateConfig to CreateAgentConfig

* fixed POST request for creating agent + tested it
2023-12-11 15:08:42 -08:00
Sarah Wooders
033d9d61f4 Bump version 0.2.7 (#607) 2023-12-10 22:36:19 -08:00
Sarah Wooders
aecc4c1deb Add lancedb and chroma into default package dependencies (#605)
* add lancedb and chroma info default dependencies

* Update tests.yml

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2023-12-10 21:20:33 -08:00
Charles Packer
0d8b95e2a7 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
b2e88da277 Patch azure embeddings + handle azure deployments properly (#594)
* Fix bug where embeddings endpoint was getting set to deployment, upgraded pinned llama-index to use new version that has azure endpoint

* updated documentation

* added memgpt example for openai

* change wording to match configure
2023-12-08 16:31:43 -08:00
Charles Packer
52d4befdba fix runtime error (#586) 2023-12-05 23:01:37 -08:00
Sarah Wooders
dcceb8671f Remove broken tests from chroma merge (#584) 2023-12-05 22:09:44 -08:00
Sarah Wooders
ff54e2f04a Fix pyproject.toml chroma version (#582)
* 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

* remove print

* make errors for cli flags more clear

* format

* add initial postgres implementation

* working chroma loading

* add postgres tests

* working initial load into postgres and chroma

* add load index command

* semi working load index

* disgusting import code thanks to llama index's nasty APIs

* add postgres connector

* working postgres integration

* working local storage (changed saving)

* implement /attach

* remove old code

* split up storage conenctors into multiple files

* remove unused code

* cleanup

* implement vector db loading

* cleanup state savign

* add chroma

* minor fix

* fix up chroma integration

* fix list error

* update dependencies

* update docs

* format

* cleanup

* forgot to add embedding file

* upgrade llama index

* fix data source naming bug

* remove legacy

* os import

* upgrade chroma version

* fix chroma package
2023-12-05 18:40:20 -08:00
Sarah Wooders
6a155dfc90 Chroma storage integration (#285) 2023-12-05 17:49:00 -08:00
Charles Packer
1d915cce86 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
2fd5a14d4a Update cli_faq.md 2023-12-05 12:46:34 -08:00
Charles Packer
05df435550 Update cli_faq.md 2023-12-05 12:40:59 -08:00
Charles Packer
9e947aaf28 Update cli_faq.md 2023-12-05 12:33:50 -08:00
Sarah Wooders
03dee5bf0c Bump version to 0.2.6 (#573) 2023-12-04 23:04:33 -08:00
Charles Packer
b65980e2b3 add back dotdict for backcompat (#572) 2023-12-04 23:02:22 -08:00
Charles Packer
dc18fd530a Add pyyaml package to pyproject.toml (#557) 2023-12-04 18:48:12 -08:00
Charles Packer
3fb8e62135 Add safety check to pop (#575)
* Add safety check to pop

* typo
2023-12-04 14:18:36 -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
Claudio Cambra
14fbfa1406 Fix crash from bad key access into response_message without function_call (#437)
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-12-04 13:58:36 -08:00