3039 Commits

Author SHA1 Message Date
Jack Gerrits
38b64b6ade
Fix type issues in openai_utils.py (#2062)
* Fix type issues in openai_utils.py

* fix incorrect impl

* address comment

* add to CI
2024-03-19 19:35:19 +00:00
Eduardo Salinas
e23bdfb38e
refactor: [conversable_agent] remove list of func pointers (#2005)
* refactor: [conversable_agent] remove list of func pointers

Ideally register_reply creates less state in multiple places and avoid having two copies of the same 'func pointer'.

* Update conversable_agent.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-19 18:38:08 +00:00
Jack Gerrits
e35db7ef5f
Encapsulate colored into a module (#2057)
* Encapsulate colored into a module

* lint fix

* add missing file

* undo change

* conform with original colored func

* change import strategy

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-19 18:09:43 +00:00
Eric Zhu
6745731612
Add LM Studio Example in Topics (#2044)
* add lm studio example

* format

* newline

* Update lm-studio.ipynb

* Update lm-studio.ipynb

* update

* update
2024-03-19 17:56:25 +00:00
Jack Gerrits
9d33dc6f9a
Resolve types issues in coding (#2055)
* Improve conversable agent interface, fix some typing

* formatting

* import

* rearrange to fix circular import

* type fixes

* undo system message change

* add coding to check, lint

* Update conversable_agent.py

* Apply suggestions from code review

Co-authored-by: Davor Runje <davor@airt.ai>

* put back # type: ignore

* formatting

* revert conversable agent

* ci fix

* Update type-check.yml

* fix double install, and redudant args, address type ignores

---------

Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-19 16:49:37 +00:00
Chi Wang
6b47a966dd
fix test_human_input (#2063)
* fix test_human_input

* shorten tests

* terminate chat early

* limit max turns

* limit max_rounds

* check skip_openai
2024-03-19 06:44:39 +00:00
Dan
501f8d2272
Fix typo in conversation-patterns.ipynb (#2066) 2024-03-19 03:27:00 +00:00
Davor Runje
b1839c3845
Update pre-commit (#2067)
* update pre-commit

* update pre-commit.ci

* lint fix
2024-03-19 02:55:37 +00:00
Jack Gerrits
ca506ba752
Use nested exceptions in get_powershell_command (#2058) 2024-03-18 18:08:57 +00:00
Jack Gerrits
e342cfcdb7
Add docs about how to use docker for when autogen itself is run in docker (#2052) 2024-03-18 17:13:28 +00:00
Abhay Mathur
3a3d4cc2ee
code_utils.py powershell command bugfix in MacOS (#1963)
* macos bugfix

* logs permissionerror warning only if lang is powershell command

* condensed the if statements down

* Update code_utils.py

* fixed formatting

* handled powershell_command = None case

* bugfix

* raising exceptions instead of logging warnings

* code formatting fixed

* removed return sh statement

* fixed code formatting

* update get_powershell_command

* Update code_utils.py

fixed code format

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-18 13:05:19 +00:00
Chi Wang
cc836de13d
adjust order of side bars (#2040)
* adjust order of side bars

* doc improvement

* limit max turns

* improve tests

* improve doc

* improve docstr
2024-03-17 22:57:54 +00:00
Aristo
96cbaf72d3
Fix a initiate chats (#1938)
* Fix async a_initiate_chats

* Fix type compatibility for python 3.8

* Use partial func to fix context error

* website/docs/tutorial/assets/conversable-agent.jpg: convert to Git LFS

* Update notebook examples

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Davor Runje <davor@airt.ai>
2024-03-17 22:51:37 +00:00
Eric Zhu
2cefff9206
Request for longer response to make cache test more robust. (#2043)
* Request for longer response to make cache test more robust.

* 1000 words --> 100 words
2024-03-17 22:49:40 +00:00
gagb
448736e2ad
Improve doc formatting of initiate_chats (#2041) 2024-03-17 18:02:17 +00:00
cheng-tan
00972a6013
bug fix: fix agent_logging test (#2036)
* fix test

* Update test/agentchat/test_agent_logging.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-17 01:27:00 +00:00
dependabot[bot]
b4fb3c7999
Bump follow-redirects from 1.15.4 to 1.15.6 in /website (#2035)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-16 20:37:32 +00:00
Ian
36c4d6aa3e
Separate openai assistant related config items from llm_config (#2037)
* add assistant config

* add test

* change notebook to use assistant config

* use assistant config in testing

* code refinement

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-16 17:21:59 +00:00
Victor Dibia
4429d4d19f
Autogenstudio Updates [Upload/Dowload of Skills/Workflows, Streaming Agent Replies, Agent Message Summarization] (#1801)
* update default agent system message

* session friendly name functionality

* minor formatting

* fix issues with groupchat and version bump

* fix issues with groupchat and version bump. address #1580

* update groupchat system message

* add support for copying message in chatbox

* rewrite how agent history is maintained in workflow manager. Directly extend GroupChat and Conversable agent and override process_message method. Allow passing a message processor.
Fixes bug where the last message from a groupchat manager does not get called via register_reply.

* general qol updates

* add support for downloading + copying skills, models and agents from UI

* add regex check to agent name, address #1507

* add support for uploading workflow files

* refactor, add support for streaming intermediate agent response to ui

* improve streaming ux

* add support for uploading  skills, models, agents, workflows

* add datamodel for socket message

* version update

* fix chatbox height bug

* fix csv pagination issue

* improve hidden menu for uploading entities

* fix minor issue with animation timing on chat interface

* version bump, css fixes

* use description field in autogen conversable class for description

* add implementation for llm summarization of agent chat

* support for llm summary of agent history

* formatting fixes

* formatting updates

* add dockerfile to run autogenstudio in a docker contailer

* autogenstudio docker container

* updates to websockets

* update socket connection logic,

* support using socket for passing message requests where a socket is available

* improve command for building frontend

* formatting updates

* remove duplicated code

# overwrite skills.py in work_dir is duplicated

* update description location

as Where the code calls is like  config.description

* version bump

* refactor to ensure each session and call within a session has an independent working directory

* support use of socket for sending messages where available

* use rsync to copy built files to ui direction instead of cp -rT

* spelling correctino

* readme update

* fix numpy version

* version bump

* add support for dot env variables and updating default app dir to /home/<user>/.autogenstudio

* formatting update

* update gitignore

* formatting updates

---------

Co-authored-by: James Woffinden-Luey <jluey@microsoft.com>
Co-authored-by: cillyfly <cillyfly@gmail.com>
2024-03-16 02:44:47 +00:00
Qingyun Wu
8844f86525
Allow different senders in nested chat (#2028)
* allow sender in nested chat

* description

* update example list

* doc format

* meta data

* add test
2024-03-15 22:26:45 +00:00
Wael Karkoub
c5536ee92b
[Feature] Adds Image Generation Capability 2.0 (#1907)
* adds image generation capability

* add todo

* readded cache

* wip

* fix content str bugs

* removed todo: delete imshow

* wip

* fix circular imports

* add notebook

* improve prompt

* improved text analyzer + notebook

* notebook update

* improve notebook

* smaller notebook size

* made changes to the wrong branch :(

* resolve comments + 1

* adds doc strings

* adds cache doc string

* adds doc string to add_to_agent

* adds doc string to ImageGeneration

* instructions are not configurable

* removed unnecessary imports

* changed doc string location

* more doc strings

* improves testability

* adds tests

* adds cache test

* added test to github workflow

* compatible llm config format

* configurable reply function position

* skip_openai + better comments

* fix test

* fix test?

* please fix test?

* last fix test?

* remove type hint

* skip cache test

* adds mock api key

* dalle-2 test

* fix dalle config

* use apu key function

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-15 22:11:53 +00:00
Jack Gerrits
ea2c1b270e
Add another batch of notebooks to the website (#1969)
* Add another batch of notebooks to the website

* update link

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-15 14:30:34 +00:00
afourney
3a5dd361b9
Bump autogenbench version. (#2027) 2024-03-15 14:26:09 +00:00
Eduardo Salinas
146d49b2e3
refactor: [conversable_agent] remove raise from property access (#2006)
* refactor: [conversable_agent] remove raise from property access

raising exception seems drastic, can we return None and let the called fail in case it receives a None?

* Update conversable_agent.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-15 04:40:49 +00:00
Victor Dibia
08ba070936
Update link to AGS repo in AGS blogpost (#2022)
Update link to AGS repo in AGS blogpost
2024-03-14 20:44:28 +00:00
Benhao Huang
462ef9c387
Update chat-termination.ipynb (#2019)
grammar typos found and fixed
2024-03-14 18:09:49 +00:00
Yiran Wu
f78985d359
StateFlow Blog (#1826)
* init PR

* update

* update code check

* update

* update

* update

* update

* update

* Test the ability to have agents a,u,t,o,g,e,n speak in turn.

* update

* update

* update

* Evidence that groupchat not terminating because of the TERMINATE substring.

* Raising NoEligibleSpeakerException allows graceful exit before max turns

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* udpate to comments

* update

* Update website/blog/2024-02-29-StateFlow/index.mdx

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

* update links

* remove unnecessary changes

* Update website/blog/2024-02-29-StateFlow/index.mdx

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* Update website/blog/2024-02-29-StateFlow/index.mdx

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* remove test for custom notebook

* update

* update

---------

Co-authored-by: Joshua Kim <Joshua@spectdata.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
2024-03-14 15:46:28 +00:00
Eduardo Salinas
6dbae0a88b
fix: [autogenbench] writing to stdout encoding error in win-os (#2002) 2024-03-14 15:45:21 +00:00
Kosta Petan
baabd413eb Update docs (#11)
* docs update WIP

* getting started guide updated

* update getting started guide

* clarify github app creation

* add webhook secret to getting started guide and gh-flow app

* restructure Readme

* fix the Organization assumption

* add mermaid diagram of the event flow

* devtunnel feature to devcontainer

* throw all the exceptions and add the history to the prompt

* Update github-flow.md

* update readme
2024-03-14 16:29:23 +01:00
Christian Ladrón De Guevara
77513f0ba4
Add extra_body field to LLMConfig dataclass for Azure AI Search support (#2011)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-14 04:06:22 +00:00
Qingyun Wu
e1c0423d9a
add RAG under topics (#1990)
* add RAG

* demo

* correct notebook

* Update quarto installation

* Update gitignore

* Update format

* RAG doc

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-03-14 00:49:39 +00:00
Davor Runje
bf08856389
Fix type and default value of the code_execution_config parameter in UserProxyAgent (#1996)
* fix type and default value of the code_execution_config of UserProxAgent

* fix type and default value of the code_execution_config of UserProxAgent

* set default value of llm_config in UserProxyAgent to None

* fixed tests

* revert llm_config to False

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-13 22:57:43 +00:00
Jack Gerrits
24418bd5d2
Fix type issues in exception_utils.py (#1972)
* Fix type issues in exception_utils.py

* fix yaml
2024-03-13 20:24:21 +00:00
Jack Gerrits
508d2665f9
Fix file not being flushed bug (#2003) 2024-03-13 18:48:20 +00:00
Xiaoyun Zhang
ff1529c976
add release pipeline (#1989) 2024-03-13 18:14:19 +00:00
Eric Zhu
0ae35815be
Rename tutorial chapter: "what is next" --> "what next" (#1992)
* rename termination to chat termination

* label

* redirect

* Rename "what is next" --> "what next"
2024-03-13 15:47:41 +00:00
David Forster
3d162f476b
fixed typo (#1997)
* Update Dockerfile

* Update Dockerfile
2024-03-13 15:45:45 +00:00
Rajan
8f6590e231
Feature: Composable Actor Platform for AutoGen (#1655)
* Core CAP components + Autogen adapter + Demo

* Cleanup Readme

* C# folder

* Cleanup readme

* summary_method bug fix

* CAN -> CAP

* pre-commit fixes

* pre-commit fixes

* modification of sys path should ignore E402

* fix pre-commit check issues

* Updated docs

* Clean up docs

* more refactoring

* better packaging refactor

* Refactoring for package changes

* Run demo app without autogencap installed or in the path

* Remove debug related sleep()

* removed CAP in some class names

* Investigate a logging framework that supports color in windows

* added type hints

* remove circular dependency

* fixed pre-commit issues

* pre-commit ruff issues

* removed circular definition

* pre-commit fixes

* Fix pre-commit issues

* pre-commit fixes

* updated for _prepare_chat signature changes

* Better instructions for demo and some minor refactoring

* Added details that explain CAP

* Reformat Readme

* More ReadMe Formatting

* Readme edits

* Agent -> Actor

* Broker can startup on it's own

* Remote AutoGen Agents

* Updated docs

* 1) StandaloneBroker in demo
2) Removed Autogen only demo options

* 1) Agent -> Actor refactor
2) init broker as early

* rename user_proxy -> user_proxy_conn

* Add DirectorySvc

* Standalone demo refactor

* Get ActorInfo from DirectorySvc when searching for Actor

* Broker cleanup

* Proper cleanup and remove debug sleep()

* Run one directory service only.

* fix paths to run demo apps from command line

* Handle keyboard interrupt

* Wait for Broker and Directory to start up

* Move Terminate AGActor

* Accept input from the user in UserProxy

* Move sleeps close to operations that bind or connect

* Comments

* Created an encapsulated CAP Pair for AutoGen pair communication

* pre-commit checks

* fix pre-commit

* Pair should not make assumptions about who is first and who is second

* Use task passed into InitiateChat

* Standalone directory svc

* Fix broken LFS files

* Long running DirectorySvc

* DirectorySvc does not have a status

* Exit DirectorySvc Loop

* Debugging Remoting

* Reduce frequency of status messages

* Debugging remote Actor

* roll back git-lfs updates

* rollback git-lfs changes

* Debug network connectivity

* pre-commit fixes

* Create a group chat interface familiar to AutoGen GroupChat users

* pre-commit fixes
2024-03-13 04:48:52 +00:00
Eric Zhu
a120f0ed2b
Redirect from /docs/tutorial/termination to /docs/tutorial/chat-termination (#1991)
* rename termination to chat termination

* label

* redirect
2024-03-13 04:46:30 +00:00
Eric Zhu
33e42c44cb
Rename tutorial chatper "Termination" to "Chat Termination" (#1962)
* rename termination to chat termination

* label
2024-03-12 23:55:08 +00:00
schauppi
34a02f0a42
added new example in gallery.json (#1955)
* added new example in gallery.json

* added image to webagent example

* changed image format from .png to .jpg

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-12 23:50:47 +00:00
Jack Gerrits
d583c8088e
Update local cli executor to use same filename strategy as docker (#1981)
* consistent file saving across cli executors

* test fixes

* feedback

* make path

* formatting

* run timeout test on windows

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.19
2024-03-12 21:57:32 +00:00
Eduardo Salinas
a814ba54de
fix: [autogenbench] windows fails unless we specify encoding (#1957) 2024-03-12 21:28:16 +00:00
Qingyun Wu
99df2c5d5e
Examples by topics (#1967)
* add reasoning example

* title

* task decomposition

* update demo with custom speark function

* update

* Add metaprompt

* add notebook to topics

* remove

* remove endpoint setup and collab

* ignore words

* rename

* Update .pre-commit-config.yaml

* codespell

* Updates to formatting and content tweaks

---------

Co-authored-by: kevin666aa <yrwu000627@gmail.com>
Co-authored-by: LeoLjl <3110503618@qq.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-03-12 20:57:32 +00:00
Davor Runje
d728cd9110
git-lhs added to devcontainers (#1979) 2024-03-12 20:57:19 +00:00
Jack Gerrits
f42021fb9b
Remove lint silencing comment (#1970)
No longer needed
2024-03-12 19:51:03 +00:00
Chi Wang
858cec8de8
bump version to 0.2.19 and update doc (#1971)
* bump version to 0.2.19 and update doc

* doc update
2024-03-12 19:05:00 +00:00
Jack Gerrits
b1c44deb0c
Remove system message from code executors (#1933)
* Remove system message functionality from code executors

* remove from protocol

* fix tests, pre-commit

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-12 19:04:43 +00:00
Davor Runje
16955959a3
website/docs/tutorial/assets/conversable-agent.jpg: convert to Git LFS (#1974) 2024-03-12 18:09:54 +00:00
Jack Gerrits
c2663330af
Require numpy be a 1.x release (#1966) 2024-03-12 15:05:53 +00:00