3039 Commits

Author SHA1 Message Date
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
Jack Gerrits
f5f0a51855 create basic package structure, checks, readme 2024-05-15 09:49:44 -04:00
HRUSHIKESH DOKALA
84577570ad
pricing url fixed (#2684) 2024-05-14 16:10:36 +00:00
Kosta Petan
e9a7a07e13 Dapr implementation (#47)
* replace Event to CloudEvent WIP

* switch to CloudEvents

* dapr implementation WIP

* fix namespaces and dapr sdk weirdness

* WIP

* dapr support WIP

* dapr WIP

* dapr WIP

* dapr semi-working implementation

* fix mapping  bug

* dapr reminders in sandbox

* fix prompts

* merge almost done

* switch to Newtnsoft serialization for Marketing

* add event surogate for Orleans serialization

* remove newtnsoft serialization (not needed)

* cleanup appsettings in marketing sample
2024-05-14 14:18:24 +02: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
Jack Gerrits
30e06cee10 Update prototype.py 2024-05-08 23:52:18 -04: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
Jack Gerrits
0c08ca30a1 Create prototype.py 2024-05-07 18:18:58 -04:00
Microsoft Open Source
982b1ba716 README.md committed 2024-05-07 15:12:56 -07:00
Microsoft Open Source
0bf1e7b57a SECURITY.md committed 2024-05-07 15:12:56 -07:00
Microsoft Open Source
3a6683af4f SUPPORT.md committed 2024-05-07 15:12:55 -07:00
Microsoft Open Source
43567233ca LICENSE committed 2024-05-07 15:12:54 -07:00
Microsoft Open Source
02d4448bb1 CODE_OF_CONDUCT.md committed 2024-05-07 15:12:54 -07:00
microsoft-github-operations[bot]
edfb95257f Initial commit 2024-05-07 22:12:52 +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
Carlos Garcia Lalicata
949520bba6 [marketing sample] Several Improvements (#55)
* cleaning marketing sample

* Clean up ignored files

* Clean up ignored files

* adding missing gitignore in the backend

* tons of improvements towards azd

* azd up works
2024-05-06 23:06:50 +02: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