1646 Commits

Author SHA1 Message Date
pk673
3e11b07d1d
logger fix (#2659)
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 20:04:50 +00:00
Nikolaytv
8b15d44083
added Gemini safety setting and Gemini generation config (#2429)
* added Gemini safety setting and Gemini generation config

* define params_mapping as a constant as a class variable

* fixed formatting issues

---------

Co-authored-by: nikolay tolstov <datatraxer@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 19:58:43 +00:00
Wael Karkoub
2bad145738
Update Deprecation Warning for CompressibleAgent and TransformChatHistory (#2685)
* improved deprecation warnings

* compressible_agent test fix

* fix retrieve chat history test

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 19:58:35 +00:00
Mark Sze
3d8fd5cc91
Added ability to ignore the addition of the select speaker prompt for a group chat (#2726)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 19:55:26 +00:00
jtoy
4b5f5996a2
add warning if duplicate function is registered (#2159)
* add warning if duplicate function is registereed

* check _function_map and llm_config

* check function_map and llm_config

* use register_function and  llm_config

* cleanups

* cleanups

* warning test

* warning test

* more test coverage

* use a fake config

* formatting

* formatting

---------

Co-authored-by: Jason <jtoy@grids.local>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 19:53:39 +00:00
Ian
b698a98eb0
fix openai compatible changes (#2718)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 19:53:09 +00:00
Rob
fb74624376
Add silent option in nested chats and group chat (#2712)
* feat: respect silent request in nested chats and group chat

* fix: address plugin test

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 17:39:37 +00:00
Krishna Shedbalkar
918244e98e
[Add] Fix invoking Assistant API (#2751)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 17:38:23 +00:00
Beibin Li
732450d38a
Debug: Gemini client was not logged and causing runtime error (#2749)
* Debug: gemini client was not logged

* Resolve docker issue in LMM test

* Resolve comments

---------

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-05-22 17:35:19 +00:00
Eric Zhu
eedd94707b
Avoid requests 2.32.0 to fix build (#2761)
* Avoid requests 2.32.0 to fix build

* comment

* quote
2024-05-22 17:17:17 +00:00
Rajan
9f337248e2
[CAP] Refactor: Better Names for classes and methods (#2734)
* Bug fix

* Refactor: Better class names, method names

* pypi version

* pre-commit fixes
2024-05-21 19:46:10 +00:00
Michael
e208f7c20a
Update human-in-the-loop.ipynb (#2724) 2024-05-21 17:44:12 +00:00
Xiaoyun Zhang
b134506dfa
Update README.md (#2736) 2024-05-21 17:27:24 +00:00
Xiaoyun Zhang
90ca2ca64b
[.Net] Mark Message as obsolete and add ToolCallAggregateMessage type (#2716)
* make Message obsolete

* add ToolCallAggregateMessage

* update message.md

* address comment

* fix tests

* set round to 1 temporarily

* revert change

* fix test

* fix test
2024-05-21 05:48:19 +00:00
Xiaoyun Zhang
3e6f073373
[.Net] fix #2722 (#2723)
* fix bug and add tests

* update
2024-05-21 03:19:07 +00:00
Rajan
31d2d37d88
[CAP] Improved AutoGen Agents support & Pip Install (#2711)
* 1) Removed most framework sleeps 2) refactored connection code

* pre-commit fixes

* pre-commit

* ignore protobuf files in pre-commit checks

* Fix duplicate actor registration

* refactor change

* Nicer printing of Actors

* 1) Report recv_multipart errors 4) Always send 4 parts

* AutoGen generate_reply expects to wait indefinitely for an answer.  CAP can wait a certain amount and give up.   In order to reconcile the two, AutoGenConnector is set to wait indefinitely.

* pre-commit formatting fixes

* pre-commit format changes

* don't check autogenerated proto py files

* Iterating on CAP interface for AutoGen

* User proxy must initiate chat

* autogencap pypi package

* added dependencies

* serialize/deserialize dictionary elements to json when dealing with ReceiveReq

* 1) Removed most framework sleeps 2) refactored connection code

* Nicer printing of Actors

* AutoGen generate_reply expects to wait indefinitely for an answer.  CAP can wait a certain amount and give up.   In order to reconcile the two, AutoGenConnector is set to wait indefinitely.

* pre-commit formatting fixes

* pre-commit format changes

* Iterating on CAP interface for AutoGen

* User proxy must initiate chat

* autogencap pypi package

* added dependencies

* serialize/deserialize dictionary elements to json when dealing with ReceiveReq

* pre-commit check fixes

* fix pre-commit issues

* Better encapsulation of logging

* pre-commit fix

* pip package update
2024-05-19 13:34:39 +00:00
HRUSHIKESH DOKALA
11d9336e3d
gpt40 tokens update (#2717) 2024-05-19 13:32:58 +00:00
Rick
19de99e3f6
Update groupchat.py to remove Optional type hint when they are not checked for None (#2703) 2024-05-17 22:38:17 +00:00
HRUSHIKESH DOKALA
d461100bfa
Custom Runtime Logger <> FileLogger (#2596)
* added logger param for custom logger support

* added FileLogger

* bump: spell check

* bump: import error

* added more log functionalites

* bump: builtin logger for FileLogger

* type check and instance level logger

* tests added for the fileLogger

* formatting bump

* updated tests and removed time formatting

* separate module for the filelogger

* update file logger test

* added the FileLogger into the notebook

* bump json decode error

* updated requested changes

* Updated tests with AutoGen agents

* bump file

* bump: logger accessed before intializedsolved

* Updated notebook to guide with a filename

* added thread_id to the FileLogger

* bump type check in tests

* Updated thread_id for each log event

* Updated thread_id for each log event

* Updated with tempfile

* bump: str cleanup

* skipping-windows tests

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-05-16 05:54:05 +00:00
Xiaoyun Zhang
cd44932347
[.Net] Set up Name field in OpenAIMessageConnector (#2662)
* create OpenAI tests project

* update

* update

* add tests

* add mroe tests:

* update comment

* Update dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs

Co-authored-by: David Luong <davidluong98@gmail.com>

* Update AutoGen.OpenAI.Tests.csproj

* fix build

---------

Co-authored-by: David Luong <davidluong98@gmail.com>
2024-05-16 02:27:47 +00:00
Chi Wang
2749e4386f
update news (#2694)
* update news

* cleanup
2024-05-15 18:14:18 +00:00
Xiaoyun Zhang
e1afff20f6
[.Net] Fix #2687 by adding global:: keyword in generated code (#2689)
* add tests

* remove approved file

* update

* update approve file
2024-05-15 16:58:51 +00:00
Israel de la Cruz
1c3ae92d39
[.Net] feature: Ollama integration (#2693)
* [.Net] feature: Ollama integration with

* [.Net] ollama agent improvements and reorganization

* added ollama fact logic

* [.Net] added ollama embeddings service

* [.Net] Ollama embeddings integration

* cleaned the agent and connector code

* [.Net] cleaned ollama agent tests

* [.Net] standardize api key fact ollama host variable

* [.Net] fixed solution issue

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-05-15 16:54:08 +00:00
HRUSHIKESH DOKALA
84577570ad
pricing url fixed (#2684) 2024-05-14 16:10:36 +00:00
r48Bit
b846b3dc60
Adding gpt-4o to pricing (#2674)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-05-14 09:39:09 +00:00
msamylea
99fc77ab3b
AutoGen Virtual Focus Group (#2598)
* Update gallery.json

* Update gallery.json

* Update gallery.json

* Update gallery.json

---------

Co-authored-by: Shaokun Zhang <shaokun.zhang@psu.edu>
2024-05-14 09:19:43 +00:00
James Woffinden-Luey
dad9c66104
Agenteval integration (#2672)
* first pass at offline agent eval integration

* Integrating AgentEval for offline scenarios

* removing old changes

* fixing notebook, updating docs

* fixing subcriteria bug

* updating class comment

* cleaning up agent constructors

* moving AgentEval agents to separate folder and adding a brief README

* fixing build breaks

* fixing formatting break

* fixing comments

* consolidating files in the agenteval folder under contrib and cleaning up imports

* fixing import ordering

* adding basic agenteval tests and fixing criteria parsing bug

* first try at adding openai agenteval tests to build process

* adding non-openai agenteval tests to build process

* updating test settings

* updating openai test

* Update test/agentchat/contrib/agent_eval/test_agent_eval.py

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>

* Update .github/workflows/contrib-openai.yml

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>

* test commit

* updating typing and converting to pydantic objects

* fixing test file

---------

Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>
2024-05-14 07:14:37 +00:00
MarianoMolina
4b747d731a
Add role to reflection with llm (#2527)
* Added 'role' as a summary_args and to the reflection_with_llm flow to be able to pass the role for the summarizing prompt

* Added 'role' as a summary_args and to the reflection_with_llm flow to be able to pass the role for the summarizing prompt, minor docstring adjustments

* Added test for summary prompt role assignment

* Fixed docstrings and mocked llm-config in the test

* Update autogen/agentchat/conversable_agent.py

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

* ran pre-commit

* ran pre-commit2

* fixed old arg name

* Delete dasdaasd

No idea what this file was about

* Fixed incorrect merge update on test_groupchat

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-14 06:46:01 +00:00
Xiaoyun Zhang
ba82c1d566
[.Net] Fix #2660 and add tests for AutoGen.DotnetInteractive (#2676)
* update

* fix 2660

* remove unnecessary feed
2024-05-14 03:40:26 +00:00
Xiaoyun Zhang
5f7c34ac72
[.Net] Remove Workflow class && bump version to 0.0.14 (#2675)
* remove workflow class

* bump version to 0.0.14
2024-05-13 21:58:50 +00:00
Victor Dibia
d50f654748
Rewrite AutoGen Studio Database Layer to Use SQLModel ORM (#2425)
* update orm branch + accesibility tweaks

* general file location refactor

* add support for LocalCommandLineCodeExecutor and DockerCommandLineCodeExecutor

* update code execution config laoding

* version update

* bump version rc1

* add model type selection (openai , gemini, azure)

* add ability to test workflow

* psycopg3 support

* add close logic to build tab pop ups, enable testing of workflows in build view

* updates to dbmanager, version bump

* add max_tokens default value

* ensure sessions are used correctly in dbmanager

* initial support for migrations

* update sessions/workflow api routing for clarity.

* general refactor, + add support for initial sample workflows

* orm branch updates

* Removed incorrect Git LFS files

* update git lfs tracking

---------

Co-authored-by: Audel Rouhi <knucklessg1@gmail.com>
2024-05-11 14:31:21 +00:00
R. Singh
60c665871a
Feature: Add ability to use a separate python environment in local executor (#2615)
* Add ability to use virtual environments in local executor

* Copy environment variables from parent environment

* Fix mypy errors and formatting

* Account for venv on Windows

* Use a virtual environment context object instead of path

* Add utility method to create a virtual environment

* Remove assertion using `_venv_path`

* Add tests for `create_virtual_env`

* Modify test code and add output assertion

* Modify test code and assertion

* Execute activation script before actual command on windows

* Add docs for using a virtual env
2024-05-11 06:25:20 +00:00
Adam Hultman
8276ad3db6
fix agent optimizer nb typo (#2642) 2024-05-10 23:06:27 +00:00
Mark Sze
a86c474339
Resuming a GroupChat (#2627)
* Initial resume

* Cleaned up resume function

* Further updating resuming group chat

* Added async resume_chat and documentation

* Added test cases, refined group chat function parameters

* compiled documentation

* Added tests to main

* Removed mdx file.

* Revert "Merge remote-tracking branch 'origin/main' into groupchatresume"

This reverts commit 8f709308f049d6f07f32a93db6900ef05a130751, reversing
changes made to 8bfcb2bff13384877ec6734f6d5ddcb1a028246d.

* Refactored resume to remove initiate_chat

* fix git history

* fix history

* Added clean-up of objects, _groupchat references, and messages_to_string updated

* Added termination-based resumption in notebook, added test cases and improved robustness on resuming messages parameter

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-10 22:56:25 +00:00
Xiaoyun Zhang
e509549a01
update (#2655) 2024-05-10 22:41:56 +00:00
Simon Podhajsky
b5d856dd36
Add instructions for Docker issue with hash mismatch to FAQ (#2639)
* Add instructions for Docker issue with hash mismatch to FAQ

* Make pre-commit happy
2024-05-10 07:02:31 +00:00
Mohamed A. Fouad
6dd2b59da4
Update graph_utils.py (#2601)
* Update graph_utils.py

Adds save_speaker_transitions_dict

* Update graph_utils.py

Adds export_path:str which defaults to None into visualize_speaker_transitions_dict. In there, run plt.savefig(path) if export_path is not None

* Update graph_utils.py

* Update graph_utils.py

Adds export_path functionality to visualize_speaker_transitions_dict()

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-05-10 00:29:35 +00:00
Xiaoyun Zhang
ca8bf89673
update release note (#2641) 2024-05-09 23:03:07 +00:00
Xiaoyun Zhang
374270f9c7
[.Net] Add KernelPluginMiddleware in AutoGen.SemanticKernel (#2595)
* add kernel function middleware

* update

* fix format

* fix build error
2024-05-09 22:36:20 +00:00
Thong Q. Nguyen
648dad5c40
Fix chess example (#2631) 2024-05-09 17:35:00 +00:00
David Luong
b529fe21a3
[.Net]: Introduce ChatCompletionAgent to AutoGen.SemanticKernel package (#2584)
* WIP add SKAgent to proj

* Fix Unit test

* Remove accidental coommit

* Add version props

* Revert Kludge test changes

* PR comments : executionSettings and use / upgrade SemanticKernelExperimentalVersion

* Add back deleted api and constructor, mark as Obsolete

* PR feedback : Introduce SemanticKernelChatCompletionAgent. Add unit tests and refactor semanticKernelChatMessageContentConnector to be SkSequentialChatMessageContentConnector.cs

* Revert SkSequentialChatMessageContentConnector

* PR comments, remove systemMessage in SemanticKernelChatCompletionAgent

* Fix formatting

* Fix bad merge

* Revert "Fix bad merge"

This reverts commit a189ad9f42b443d78c0371e0725bc877309a93ac.

* Remove accidental commit

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
2024-05-09 03:50:36 +00:00
Xiaoyun Zhang
5be103ab6b
[.Net] Add an example to show how to connect to third party OpenAI API endpoint + upgrade Azure.AI.OpenAI package (#2619)
* update

* update

* add blog
2024-05-08 23:56:16 +00:00
Xiaoyun Zhang
f75103f254
[.Net] fix #2609 (#2618)
* add lmstudio agent to assistant agent

* fix #2609

* update updatelog

* Update Directory.Build.props
2024-05-07 21:37:46 +00:00
Rob
ecc4113a7e
fix: event logging with nested chats (#2600)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-05-06 18:51:45 +00:00
Ikko Eltociear Ashimine
da52c0246c
docs: update tutorial.ipynb (#2606)
Creat -> Create
2024-05-06 16:26:49 +00:00
r48Bit
9418b179c2
Update to correct pip install for litellm (#2602)
The doc mentions `pip install litellm[proxy]` which won't work. The correct command is  `pip install 'litellm[proxy]'`.
2024-05-06 16:18:01 +00:00
zbram101
498aa7f367
notebook showing assistant agents connecting azure ai search and azur… (#2594)
* notebook showing assistant agents connecting azure ai search and azure identity

* formatting fix for notebook azr_ai_search

---------

Co-authored-by: Bharadwaj Ramachandran <bharadwajramachandran@Bharadwajs-MacBook-Pro.local>
2024-05-06 16:12:00 +00:00
Wael Karkoub
372ac1e794
Text Compression Transform (#2225)
* adds implementation

* handles optional import

* cleanup

* updates github workflows

* skip test if dependencies not installed

* skip test if dependencies not installed

* use cpu

* skip openai

* unskip openai

* adds protocol

* better docstr

* minor fixes

* updates optional dependencies docs

* wip

* update docstrings

* wip

* adds back llmlingua requirement

* finalized protocol

* improve docstr

* guide complete

* improve docstr

* fix FAQ

* added cache support

* improve cache key

* cache key fix + faq fix

* improve docs

* improve guide

* args -> params

* spelling
2024-05-06 14:16:49 +00:00
Erez A. Korn
5a3a8a5541
Correct link to Jupyter Code Executor in code-executors.ipynb (#2589)
* Correct link to Jupyter Code Executor in code-executors.ipynb

The link to the code executor was referencing the wrong folder.

* Update website/docs/tutorial/code-executors.ipynb

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

* Update website/docs/tutorial/code-executors.ipynb

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-06 03:19:33 +00:00
Shaokun Zhang
e3a7e8a37e
Update AgentOptimizer BibTeX (#2578)
* update paper

* update

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
2024-05-06 00:58:49 +00:00