Commit Graph

3376 Commits

Author SHA1 Message Date
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 8f709308f0, reversing
changes made to 8bfcb2bff1.

* 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 a189ad9f42.

* 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
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
Kosta Petan
6199104a59 update packages (#54) 2024-05-06 13:40:53 +02:00
Carlos Garcia Lalicata
cbf42523cc [Ongoing] Adding Marketing sample (#52)
* boilerplate init

* agents work

* agents

* adding frontend

* Now we can call the actor directly, and indireclty

* Orleans packages need to be there in order serialization works. no clue why

* horrible code, making the signlar hub static

* more horrible code, now the frontend can send messages to the backend and receibe the answer

* marketing works. a lot to fix still

* adding a legal assistant

* breaking agents

* adding a signalr client

* adding AlreadyExistentUser

* cleaning up

* renaming solution

* cleaning to prep for push to upstream

* cleaning in prep for upstream

* cleaning and forcing agents to always have a state

* removing legal-assistant for now

* sln should not bethere

* creating the class using new T

* replacing Activator by where T : new

* removing infra from marketing sample

* Add state initialization in AiAgent

* changing namespace name, and creating an agent to interact with signalr

* signalr agent works fine. It just loops forever when connecting. I need to diferentiate if it already happened

* init Readme.md

* Using Semantic Kernel to run Dall-E

* Graphic designer does not ened its own openai client anylonger
2024-05-06 10:27:36 +02: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
Xiaoyun Zhang
e878be55a3 [.Net] refactor over streaming version api (#2461)
* update

* update

* fix comment
2024-05-05 14:51:00 +00:00
Abdur Rahman Nawaz
4711d7bb9c Fix for http client (#2579)
* Fix for http client

* fixed constructor to only ignore the http_client while copying

* fixed comment formating

* removed check for http_client and added error message with docs

* fix formatting

* fix formatting

* added test for http-fix

* changed title and content of docs

* changed test func name
2024-05-04 14:12:36 +00:00
Ian
3a4bb088f7 add faq for autogen and openai assistant compatible version (#2587) 2024-05-04 06:56:50 +00:00
Eric Zhu
093c1a26e3 Add note in the lfs check action to help contributors fix Git LFS check failure. (#2563)
* Add note in the lfs check action.

* Update lfs-check.yml
2024-05-03 15:16:59 +00:00
Ian
bf0c49d96f Add a guide doc for GPTAssistantAgent (#2562)
* add a oai assistant agent guide

* add a oai assistant agent guide

* polish

* address comments

* remove useless type ingnore comments

* fix ci

---------

Co-authored-by: Ian Zhai <ian@IandeMacBook-Pro.local>
2024-05-03 02:36:48 +00:00
Justin Trugman
10bb25ba7d Function Calling with GPTAssistantAgent (#2375)
* Function Calling with GPTAssistantAgent

* Add Link to Notebook in Website

* Add metadata to the notebook

* formatting of H2 and H3 text

* updated to new method of function calling

* Run Pre-commit

* utilize get_function_schema
2024-05-02 16:56:15 +00:00