3039 Commits

Author SHA1 Message Date
Jack Gerrits
799a24e04f
Create topics dir and move llm config (#1853)
* create topics dir and move llm config

* fix redirect

* fix link
2024-03-04 18:02:26 +00:00
Jack Gerrits
de757707bc
Upgrade quarto and include mitigation for title issue, fix links (#1851)
* Upgrade quarto and include mitigation for title issue, fix links

* repo_root

* dont run quarto independently

* test paths

* test

* resolve intermediate parents

* remove print
2024-03-04 14:44:41 +00:00
Chi Wang
cd3b5c6bbd
add doc about effects for capabilities (#1842)
* add doc about effects for capabilities

* remove unnecessary imports

* improve doc

* test

* test location

* polish

* improve import of colored

* termcolor

* termcolor

* use pull request for openai test
2024-03-03 23:15:52 +00:00
Chi Wang
f749deeda9
adjust the order of message processing (#1841) 2024-03-03 02:10:35 +00:00
Jack Gerrits
2912f554a3
revert quarto upgrade (#1840)
* revert quarto upgrade

* fix ruff
2024-03-02 19:45:28 +00:00
Grigorij Dudnik
f2e42326e1
Fix for bugs appeared when using function calls with clear history functionality (#1531)
* resolved errors happening when using function calling and clear history

* checking in nr_of_messages_to_preserve were provided

* code formatting

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* test added, dict signature improved

* Test updated

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* test improved

* test improved

* comment about preserving additional message added

* commentary about clear history called in tool response improved

* created test for clear hisotry called from tool response

* code formatting

* added 'USER INTERRUPTED' as internal content of tool response

* added separate vatiable 'nr_messages_to_preserve_internal'

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-02 18:03:52 +00:00
Jack Gerrits
d60464374d
Upgrade Quarto and use notebook metadata for frontmatter (#1836)
* Update process_notebook to use metadata instead of a yaml comment

* upgrade quarto and version check in tool

* formatting

* address comments
2024-03-02 14:27:11 +00:00
Jack Gerrits
97923eeed8
Split apart ecosystem page, update sidebar, other website tweaks (#1812)
* Split apart ecosystem page, update sidebar

* fix docs 404

* fix redirect and link

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-02 06:24:56 +00:00
Eric Zhu
fcf14ee9e9
Remove default trigger value for register_nested_chats (#1833)
* remove default trigger value for register_nested_chats

* update notebook and test
2024-03-01 21:50:58 +00:00
Chi Wang
0a49f2a256
bug fix and cleanup for 0.2.16 (#1827) v0.2.16 2024-03-01 04:31:49 +00:00
Victor Dibia
2b8b55b30e
Update bug_report.yml (#1811)
## What
This modification asks the user to explicitly mention the model used in their experiments. 


## Why
Frequently, many issues can be better understood by reviewing the model used. For example, small models have limitations in their ability to generate code in code blocks or follow complex instructions leading to errors.
2024-03-01 00:42:31 +00:00
Jack Gerrits
f6c9b13ac4
Extend process_notebooks for testing (#1789)
* Extend process_notebooks for testing

* add command

* spelling and lint

* update docs

* Update contributing.md

* add shebang

* Update contributing.md

* lint
2024-02-29 20:47:30 +00:00
Abhay Mathur
4d0d486115
Add function generator and validator to gallery (#1807) 2024-02-29 15:48:10 +00:00
Jack Gerrits
76ef0789c0
Implement docker based jupyter executor (#1794)
* Implement docker based jupyter client

* formatting

* skip docker tests when asked

* feedback

* add log

* update build

* formatting

* structural changes

* update setup.py

* update tests

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-29 14:54:11 +00:00
Gunnar Kudrjavets
b8ceb866e6
Add shebang functionality to tests (#1784)
Tests that contain `if __name__ == "__main__":` now have a shebang line
and execute permission.
2024-02-29 01:11:08 +00:00
Beibin Li
5b0c919d7d
Debug: Resolve the DALLE Agent's self.client error. (#1798)
* Change defualt model for `lmm`

* Try to use PIL image for LMM's _oai_messages

* Update test cases and llava

* Remove redundant files

* Update the imports for lmm tests

* Test case fix

* Docstring update

* LMM notebook lint

* Typo correction for img_utils and its test

* Fix self.client bug for Dalle Agent
The self.client member variable is reserved for OpenAI's LLM-compatible
client, which requires usage summary support.
So, we rename self.client to self._dalle_client to resolve this issue
2024-02-29 00:58:19 +00:00
Kosta Petan
36951aa216 Merge branch 'understanding' 2024-02-28 21:44:42 +01:00
Kosta Petan
42aa7430f0 rewrite done 2024-02-28 21:13:43 +01:00
Kosta Petan
f074bbe37d Simplify subscription 2024-02-28 15:44:13 +01:00
Rohit Singh Rathaur
d35754ddd6
make default model of a constant class variable (#1780)
* make default model of  a constant class variable

* make default model of  a constant class variable

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-28 07:24:05 +00:00
Rohit Singh Rathaur
dc89147310
hook-list are updated to accept a sender argument (#1799)
* hook-list are updated to accept a sender argument

* Update the hook function Signature & add assertions for Sender
2024-02-28 06:34:21 +00:00
Jack Gerrits
2cf9ea4700
Update .pre-commit-config.yaml (#1803) 2024-02-27 23:00:29 +00:00
Kosta Petan
125608e372 streaming rewrite WIP 2024-02-27 22:05:22 +01:00
Kosta Petan
b72442a58f streaming rewrite WIP 2024-02-27 21:25:43 +01:00
Shaokun Zhang
b8727893f7
Support functions removing in ConversableAgent (#1786)
* fix

* update

* reformat

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
2024-02-27 18:42:56 +00:00
Qingyun Wu
c6f6707f4d
Adding register_nested_chats to make nested chat easier (#1753)
* add util

* add notebook

* SoM notebook

* doc

* update notebook

* SoM

* optiguide

* rename

* add implementation

* update notebook

* update notebook

* update notebook

* summary method

* initiate_chats enhancements

* callable summary_method

* summary method

* summary method default

* docstr

* add timeout to slient pip install test

* consolidate_chat_info

* a_initiate_chat

* AssertionError tests

* AssertionError test

* update tests

* update test

* remove redudant file

* kwargs

* update notebook

* update notebook

* nested

* update SoM

* update notebook

* max_turns

* add notebook

* updatenotebook

* add notebooks

* update notebook and test

* add links to the example page

* annotations

* documentation

* default values

* Expanded details about the purpose of each cell

* update default value

* default value for reply_func_from_nested_chats

* default reply func name

* update notebook

* update optiGuide

* upload fig

* optiGuide notebook

* doc

* update notebook

* update notebook

* notebook format

* update optiguide notebook

* raise value error

* update notebook

* Improve language

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: signalprime <15487280+signalprime@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-02-27 04:36:18 +00:00
Kosta Petan
d4ce75b8d9 add orleans dashboard 2024-02-26 21:44:08 +01:00
Kosta Petan
9c2da17ee7 streaming rewrite WIP 2024-02-26 21:09:58 +01:00
Joshua Kim
d797d267e4
Blog regarding finite-state machine (#1622)
* Initialization of fsm blog

* Pre-commit pass

* Pinyin name correction

* Updated title

* Updated title

* Added summary of notebook and note about DAG

* Update index.mdx

* Update website/blog/2024-02-11-FSM-GroupChat/index.mdx

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update website/blog/2024-02-11-FSM-GroupChat/index.mdx

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Removed outdated filename and followed SoM notebook format

* Pre-commit pass

* Update notebook link

* Corrected link to rendered notebook

* Removed agentchat_hierarchy_flow_using_select_speaker and modified agentchat_groupchat_finite_state_machine

* Add notebook/agentchat_groupchat_finite_state_machine.ipynb to paths

---------

Co-authored-by: freedeaths <register917@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-26 18:10:00 +00:00
Shreyas Kulkarni
25f3d12f18
Update agentchat_custom_model.ipynb (#1768)
Wrong Google Colab URL

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-02-26 17:42:00 +00:00
Kosta Petan
35325c0d51 streaming rewrite WIP 2024-02-25 20:26:34 +01:00
Chi Wang
8ec1c3e0b3
process message before send (#1783)
* process message before send

* rename
v0.2.15
2024-02-25 15:57:27 +00:00
afourney
085bf6cf3d
Version 0.0.2 of Autogenbench (#1548)
* Prints the version of AutoGenBench from the command line, closing i1458

* Added autogenbench version to timestamp.txt

* Attempting to fix formatting.

* Add a gitignore for autogenbench

* Generalize to read all template dirs from Templates

* AutoGenBench logs telemetry when available.

* Remove spaces if present from template names.

* Bump version.

* Fixed formatting.

* Allow native warning to be skipped. Mount autogen repo in Docker if it can be found (experimental).

* Native execution now occurs in a venv.

* Bump version.

* Fixed a prompt escaping bug evident in GAIA task '6f37996b-2ac7-44b0-8e68-6d28256631b4'

* Updated all scenarios to use template discovery.

* Update with main version of runtime_logging.

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-02-24 18:12:57 +00:00
afourney
477598afff
Groupchat send introductions (#961)
* Allow the GroupChatManager to send introductions.

* Fixed function name.

* Added test cases for sending introductions.

* Trying to sort out why remote pytest is failing.

* Fixed broken plugin behavior.

* Update autogen/agentchat/groupchat.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Updated as per Chi's suggestions.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-02-24 16:50:46 +00:00
Ian
fb2b412c4a
Handle azure_deployment Parameter Issue in GPTAssistantAgent to Maintain Compatibility with OpenAIWrapper (#1721)
* support getting model from both llm config and config list

* address comments

* address commentsd

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-24 03:56:39 +00:00
Jack Gerrits
fbc2f6e911
Use jupyer-kernel-gateway for ipython executor (#1748)
* checkpoint async based

* Implement jupyter client and use jupyer gateway

* update deps

* address comments

* add missing parenthesis

* Update build.yml

* CI fixes

* change requirement name

* debug

* print stderr

* dont seek

* show token

* mitigaton for windows bug

* use hex token to avoid - in token

* formatting

* put back in place original while the windows bug exists

* lint

* Update autogen/coding/jupyter_code_executor.py

* Update jupyter_code_executor.py

* Update test_embedded_ipython_code_executor.py

* Update setup.py

* Update build.yml

* fix nameerror

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-02-23 19:09:59 +00:00
Kosta Petan
7dd7aa6fe2 cleanup 2024-02-23 15:49:46 +01:00
Kosta Petan
246639912d cleanup 2024-02-23 15:12:39 +01:00
Jack Gerrits
ac15996f5a
Add sidebar for notebooks page (#1766) 2024-02-23 04:01:17 +00:00
Abhay Mathur
a646df2d02
Updating code_utils.py to solve issue #1747 (#1758)
* Update code_utils.py

Updated the powershell command to pwsh

* Update code_utils.py

added a split to handle powershell in the first condition as well

* Update local_commandline_code_executor.py

added "pwsh" as a command option in lang variable

* Update autogen/coding/local_commandline_code_executor.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update code_utils.py

* Update code_utils.py

fixed formatting

* Update code_utils.py

defined a function to detect whether 'powershell' or 'pwsh' works and accordingly use the one that works

* Update code_utils.py

fixed formatting

* Update and rename test_code.py to test_code_utils.py

added a unit test for get_powershell_command function in code_utils.py

* Update test_code_utils.py

fixed formatting

* Update test_code_utils.py

fixed formatting

* Update autogen/code_utils.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* solved issue #1747

* updated unit test

* fixed formatting

* fixed formatting

* fixed formatting

* fixed a bug

* removed extra return None and removed redundant comments

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-23 03:41:33 +00:00
Kosta Petan
0e84879496 event flow added 2024-02-22 16:53:12 +01:00
Kosta Petan
25cd816a86 simplify actors/agents 2024-02-22 16:30:56 +01:00
Kosta Petan
5cbe96df30 Hubber wireup 2024-02-22 15:33:18 +01:00
Kosta Petan
f45df2ae36 events scaffolded 2024-02-22 15:10:27 +01:00
Kosta Petan
4877bd8b4b streaming rewrite WIP 2024-02-22 13:09:48 +01:00
Kosta Petan
c76c35e669 rewrite WIP 2024-02-22 11:17:31 +01:00
Kosta Petan
b0e642e383 refactor (not building) WIP 2024-02-22 10:32:46 +01:00
Linxin Song
07520aa354
[AutoBuild] fix test error (#1750)
* try to fix blog

* modify blog

* fix test error in #717; fix blog typo in installation; update blogs with output examples.

* pre-commit

* pre-commit

* Update website/blog/2023-11-26-Agent-AutoBuild/index.mdx

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>

* add future work

* fix grammar

* update agent_builder

* solve #941; add detailed debug info; support json string config

* pre-commit

* solve #954

* pre-commit

* [new feature] build group chat agents from library.

* pre-commit

* add authors' info in notebook; add a new notebook for build_from_library; reduce prompt effort

* update test and example for build_from_library

* pre-commit

* add notebook; update docs

* change notebook name

* change description for notebook and doc

* remove default value for default_llm_config

* add embedding similarity agent selection

* pre-commit

* update test

* add dependency installation in github workflow

* update test

* pre-commit

* update notebook

* support directly json as library; support customize embedding model

* update test

* pre-commit

* update github test workflow

* Update autobuild_agent_library.ipynb

* add agent description

* refine prompt; update notebook

* pre-commit

* update test example

* update test

* update test

* update test

* change `config_path` to `config_path_or_env`; update test

* pre-commit

* update test

* update test

* update test: add config_file_location

* change `config_path_or_env` to `config_file_or_env`

* update test

* solve noqa

* fix import error for conftest

* fix test error

* pre-commit

* * update error message in `_create_agent`.
* replace `gpt-4-1106-preview` to `gpt-4` in test file.

* add comment on local server creation; modify notebook; update contrib-openai.yml for test; add autobuild option in setup.py; add autotest model name statement

* move import huggingface_hub to _create_agent

* pre-commit

* add uncover comment in the endpoint creation code block

* recover contrib-openai.yml for merge

* remove TERMINATE assertion for sys msg

* remove TERMINATE assertion

---------

Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2024-02-21 22:01:30 +00:00
Rohit Singh Rathaur
3c2c251f3f
Allow None for sender field in CoversableAgent.generate_reply (#1725)
* Allow None for sender field

* Apply formatting fixes

* Add test for ConversableAgent generate_reply with message is provided and sender is None

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-21 19:42:18 +00:00
Aristo
a4ab4cc9ae
Async version of multiple sequential chat (#1724)
* async_initiate_chats init commit

* Fix a_get_human_input bug

* Add agentchat_multi_task_async_chats.ipynb with concurrent exampls.

* Addess the comments, Update unit test

* Add agentchat_multi_task_async_chats.ipynb to Examples.md

* Fix type for Python 3.8

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-02-21 19:33:33 +00:00