2822 Commits

Author SHA1 Message Date
Li Jiang
80b2dba6ab
Add packaging explicitly (#2780) 2024-05-24 14:52:56 +00:00
Aretai-Leah
e87a6a424d
Create JSON_mode_example.ipynb (#2554)
* Create JSON_mode_example.ipynb

* updated json example

* added metadata to JSON notebook

* fixed details in wrong metadata

* Update JSON_mode_example.ipynb

removed colab cell

* fixed error

* removed cell output

* whitespace fixed

I think its fixed?

* finally fixed whitespace
2024-05-24 13:12:36 +00:00
Xiaoyun Zhang
702c010d77
[.Net] add ollama-sample and adds more tests (#2776)
* add ollama-sample and adds more tests

* Update AutoGen.Ollama.Sample.csproj
2024-05-24 04:14:29 +00:00
Carlos Garcia Lalicata
c226391a29 [Marketing] Carlos trying pipelines 1: Adding Environment name (#67) 2024-05-24 05:49:41 +02:00
Xiaoyun Zhang
8d55334e4d
[.Net] add AutoGen.SemanticKernel.Sample project (#2774)
* add AutoGen.SemanticKernel.Sample

* revert change
2024-05-24 01:53:22 +00:00
Eric Zhu
d941a0a733 fix some bugs (#14) 2024-05-23 17:17:07 -07:00
Jack Gerrits
52f6f79591 Add types agnostic to role (#11) 2024-05-23 20:49:01 +00:00
Jack Gerrits
8d1f4aedc0 Add require response and remove generic types (#13) 2024-05-23 13:00:05 -07:00
Xiaoyun Zhang
edb2f92b0d
[.Net] rename Autogen.Ollama to AutoGen.Ollama and add more test cases to AutoGen.Ollama (#2772)
* update test

* add llava test

* add more tests

* rm Autogen.Ollama

* add AutoGen.ollama

* update

* rename to temp

* remove ollama

* rename

* update

* rename

* rename

* update
2024-05-23 19:15:25 +00:00
Alessandro Avila
3fe0bbf994 Fixes to parent number safe access (#66) 2024-05-23 17:38:34 +02:00
Eric Zhu
d77390dc07 First draft for chat layer. (#10) 2024-05-23 08:23:24 -07:00
Wael Karkoub
4ebfb82186
Ignore Some Messages When Transforming (#2661)
* works

* spelling

* returned old docstring

* add cache fix

* spelling?

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-22 20:22:17 +00:00
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
Jack Gerrits
1a9dddbcda Update README.md (#9) 2024-05-22 13:25:51 -04: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
Carlos Garcia Lalicata
71ed485d5b [Marketing] Github pipelines to build and deploy the project (#65)
* initial pipeline

* setting branches

* renaming workflow to workflows

* no needed permissions for building

* testing pipeline

* testing pipeline

* testing pipeline

* tweak marketing workflow

* tweak paths

* change to pwsh

* updating run-names

* trying if I can pass --no-state as a param

* setting --no-state second try

* renaming

* powershell

* add PR number to the run-name

* run-name

* run name test # 2000

* Confident that this will be the last try

---------

Co-authored-by: Kosta Petan <kostapetan@gmail.com>
2024-05-22 14:47:34 +02: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
Jack Gerrits
77c8cca9ae Implement intervention (#8) 2024-05-20 16:30:45 -07:00
Jack Gerrits
5afbadbe43 Add support for task cancellation (#7)
* Add support for task cancellation

* add tests to CI

* matrix for python testing
2024-05-20 15:32:08 -04:00
Jack Gerrits
f80c42e668 fix spelling error (#6) 2024-05-20 09:49:47 -04:00
Jack Gerrits
b4b1fd5bdd Make responses flow through the message queue (#5) 2024-05-19 17:12:49 -06: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
Eric Zhu
b67d096a95 Add example for round robin chat (#4) 2024-05-17 16:36:46 -07: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
Eric Zhu
5f7ef086e2 Renaming things (#3)
* Rename event to message
* rename SendMessage etc to SendMessageEnvelope etc
2024-05-17 14:59:00 -07:00
Jack Gerrits
ebee8b856f add model client component (#2) 2024-05-17 09:09:59 -06:00
Jack Gerrits
02675126be Rename message router to agent runtime (#1) 2024-05-16 08:51:41 -04:00
Alessandro Avila
49758d82cd GithubWebHookProcessor optimization (#61)
* Created file via AI

* Added some sections to the 'DevTeam' sample's Readme.

* Added null checks to GithubWebHookProcessor.
Removed unused injected services in GithubWebHookProcessor.
Minor optimizations.

* Removed Readme generated from devteam sample run.

---------

Co-authored-by: project-oagent-gh-app[bot] <169608828+project-oagent-gh-app[bot]@users.noreply.github.com>
Co-authored-by: Alessandro Avila <alavil@microsoft.com>
2024-05-16 12:53:27 +02: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
Jack Gerrits
f32f9eea02 migrate prototype to initial impl 2024-05-15 12:31:13 -04:00
Jack Gerrits
813a9e1ddb split into example 2024-05-15 09:59:23 -04:00
Jack Gerrits
17eb9f8ecd fix ruff command 2024-05-15 09:53:35 -04:00
Jack Gerrits
f208b582e4 fix yml 2024-05-15 09:50:59 -04:00