* First pass together.ai client class
* Config handling, models and cost
* Added tests, moved param management to create function
* Tests, parameter, validation, logging updates
* Added use of client_utils PR 2949
* Updated to return OAI response
* Notebook example
* Improved function calling, updated tests, updated notebook with Chess example
* Tidied up together client class, better parameter handling, simpler exception capture, warning for no cost, reuse in tests, cleaner tests
* Update of documentation notebook, replacement of old version
* Fix of messages parameter for hide_tools function call
* Update autogen/oai/together.py
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
* Update together.py to fix text
---------
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Yiran Wu <32823396+yiranwu0@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* add claude 3.5 sonnet to pricing
* Fix import error for client_utils
* fix import order for ruff formatter
* name key is not supported in anthropic message so let's remove it
* Improved tool use message conversion, changed create to return standard response
* Converted tools to messages for speaker selection, moved message conversion to function, corrected bugs
* Minor bracket typo.
* Renaming function
* add groupchat and run notebook
---------
Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
* Initial commit of Mistral client class
* Updated to manage final system message for reflection_with_llm
* Add Mistral support to client class
* Add Mistral support across the board (based on Gemini changes)
* Test file for Mistral client
* Updated handling of config, added notebook for documentation
* Added support for additional API parameters
* Remove unneeded code, updated exception raising
* Updated handling of keywords, including type checks, defaults, warnings. Updated notebook example to remove logging warnings.
* Added class description.
* Updated tests to support new config handling.
* Moved parameter parsing to create function, minimised init, added parameter tests
* Refined parameter validation
* Correct spacing
* Fixed string concat in parameter validation
* Corrected upper/lower bound warning
* Use client_tools, tidy up Mistral create, better handle tool call response, tidy tests
* Update of documentation notebook, replacement of old version
* Update to handle multiple tool_call recommendations in a message
* Updated tests to accommodate multiple tool_calls as well as content in message
* Update autogen/oai/mistral.py comment
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
* cleanup, rewrite mock
* update
---------
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
* Used absolute path of virtual environment bin path in local command executors
* Checked if the expected venv is used or not
* Added code comments for documentation
* fix: format issue - shutil lib
---------
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
* intial setup for the anthropic client with cost config
* update: other methods added
* fix: formatting
* fix: config unused
* update: changes made in the client
* update: test added to the workflow
* update: added tests to the anthropic client
* fix: errors in workflows and client
* fix
* fix: anthropic tools type
* update: notebook anthropic
* Nonetype fixed
* fix-tests config
* update: tests and client issues
* logger support
* remove sys path
* updated the functioning of the client
* update: type hints and stream
* skip tests- importerror
* fix: anthropic client and tests
* none fix
* Alternating roles, parameter keywords, cost on response,
* update: anthropic notebook
* update: notebook with more details
* devcontainer
* update: added validate_params from the client_utils
* fix: formatting
* fix: minor comment
---------
Co-authored-by: Mark Sze <mark@sze.family>
* Addition of client utilities, initially for parameter validation
* Corrected test
* update: type checks and few tests
* fix: docs, tests
---------
Co-authored-by: Hk669 <hrushi669@gmail.com>
* fix missing message in history
* fix message handling
* add list of Parts to Content object
* add test for gemini message conversion function
* add test for gemini message conversion
* add message to asserts
* add safety setting support for vertexai
* remove vertexai safety settings
* identify model with tags instead of model name
* models
* model to tag
* add more model name
* format
* Update test/agentchat/test_function_call.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* Update test/agentchat/test_function_call.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* Update test/agentchat/test_tool_calls.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* Update test/agentchat/test_tool_calls.py
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* remove uncessary tags
* use gpt-4 as tag
* model to tag
* add tag for teachable agent test
---------
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: AutoGen-Hub <flaml20201204@gmail.com>
* Update Autobuild.
* merge main into autobuild
* update test for new autobuild
* update author info
* fix pre-commit
* Update autobuild notebook
* Update autobuild_agent_library.ipynb
* Update autobuild_agent_library.ipynb
* Fix pre-commit failures.
---------
Co-authored-by: Linxin Song <rm.social.song1@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
* Calculate the dimension size based off model chosen.
* Added example docstring.
* Validated working notebook with sentence models of different dimensions.
* Validated removal of model_name working.
* Second example uses conn object.
* embedding_function no longer directly references .encode
* Fixed pre-commit issue.
* Use try/except to raise error when shape is not found in embedding function.
* Re-ran notebook.
* Update autogen/agentchat/contrib/vectordb/pgvectordb.py
Co-authored-by: Li Jiang <bnujli@gmail.com>
* Update autogen/agentchat/contrib/vectordb/pgvectordb.py
Co-authored-by: Li Jiang <bnujli@gmail.com>
* Added .encode
* Removed example comment.
* Fix overwrite doesn't work with existing collection when custom embedding function has different dimension from default one
---------
Co-authored-by: Li Jiang <bnujli@gmail.com>
* allow function to remove termination string in groupchat
* improve docstring
Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
* improve docstring
Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
* improve test case description
Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
---------
Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
* Refactor hook registration and processing methods
- Refactored the `hook_lists` dictionary to use type hints for better readability.
- Updated the `register_hook` method signature to include type hints for the `hook` parameter.
- Added type hints to the `process_last_received_message` method parameters and return value.
This commit refactors the code related to hook registration and processing in the `conversable_agent.py` file. The changes improve code readability and maintainability by using type hints and updating method signatures.
* Refactor hook_lists initialization and add type hints
- Refactored the initialization of `hook_lists` to use a colon instead of an equal sign.
- Added type hints for the parameters and return types of `process_last_received_message` method.
* Refactor hook registration and processing in conversable_agent.py
- Refactored the `hook_lists` dictionary to use a more generic type for the list of hooks.
- Updated the signature check for `process_message_before_send`, `process_all_messages_before_reply`, and `process_last_received_message` hooks to ensure they are callable with the correct signatures.
- Added error handling to raise a ValueError or TypeError if any hook does not have the expected signature.
* Refactor hook processing in conversable_agent.py
- Simplify the code by removing unnecessary type checks and error handling.
- Consolidate the logic for processing hooks in `_process_message_before_send`, `process_all_messages_before_reply`, and `process_last_received_message` methods.
* Refactor register_hook method signature for flexibility
The commit changes the signature of the `register_hook` method in `conversable_agent.py`. The second argument, `hook`, is now of type `Callable` instead of `Callable[[List[Dict]], List[Dict]]`. This change allows for more flexibility when registering hooks.
* google default auth and svc keyfile for Gemini
* [.Net] Release note for 0.0.14 (#2815)
* update release note
* update trigger
* [.Net] Update website for AutoGen.SemanticKernel and AutoGen.Ollama (#2814)
support vertex ai compute region
* [CAP] User supplied threads for agents (#2812)
* First pass: message loop in main thread
* pypi version bump
* Fix readme
* Better example
* Fixed docs
* pre-commit fixes
* refactoring, minor fixes, update gemini demo ipynb
* add new deps again and reset line endings
* Docstring for the init function. Use private methods
* improve docstring
---------
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
Co-authored-by: Rajan <rajan.chari@yahoo.com>
Co-authored-by: Zoltan Lux <z.lux@campus.tu-berlin.de>