Commit Graph

3376 Commits

Author SHA1 Message Date
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
Kosta Petan
f6865d8acd add Huber agent 2024-02-21 11:38:17 +01:00
dkirsche
a34e4cc515 Refactor transform_messages (#1631)
* refactored code to simplify

* optimize function. Instead of iterating over each character, guess at size and then iterate by token.

* adding tests

* Add missing tests

* minor test fix

* simplified token truncation by using tiktoken to encode and decode

* updated truncated notification message

* Fix llm_config spec to use os.environ

* Add test case and fix bug in loop

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-02-20 22:53:05 +00:00
Jack Gerrits
d8a204a9a3 fix some docstring issues affecting rendering (#1739)
* fix some docstring issues affecting rendering

* Update pydoc-markdown.yml

* undo double backtick

* Update compressible_agent.py
2024-02-20 22:29:39 +00:00
Kosta Petan
0a67732e56 streaming rewrite WIP 2024-02-20 21:29:13 +01:00
Kosta Petan
5cb2e3d51b streams WIP 2024-02-20 18:51:28 +00:00
Kosta Petan
688e21b5fa rewrite eventing WIP 2024-02-20 14:42:32 +00:00
Kosta Petan
2158e8cc84 streaming working 2024-02-20 13:18:57 +01:00
Kosta Petan
a3a3fcab40 eventhubs streaming 2024-02-19 21:22:13 +00:00
Kosta Petan
ad368977e9 add pubsubstore storage 2024-02-19 21:06:21 +01:00
Abhay Mathur
2750391f84 Updated code_utils.py & local_commandline_code_executor.py (powershell to pwsh) (#1710)
* 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>

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-02-19 17:32:13 +00:00
Shaokun Zhang
c7d9fefec9 fix web formats (#1728)
* fix doc

* clean up

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
2024-02-19 15:35:45 +00:00
Kosta Petan
d55c2fa4b9 streaming WIP 2024-02-19 14:48:17 +00:00
Kosta Petan
6fd1929498 Understanding experiments (#9)
* first draft workflow for understandings

* breaking change WIP

* breaking SK upgrade

* update compiles

* add error handling/logging

* change network timeout

* mermory refactor

* simple dev understanding

* error handling for building understanding
2024-02-19 11:38:51 +01:00