Commit Graph

3267 Commits

Author SHA1 Message Date
Roydemilde
4169786710 Update github-flow-getting-started.md (#18)
Added info for Codespaces.
2024-03-26 13:33:19 +01:00
Suzanne Daniels
de08e20e11 Update project path for gh-flow service (#17) 2024-03-26 12:55:59 +01:00
olgavrou
af9b300be3 add webarena in samples (#2114)
* add webarena in samples/tools

* Update samples/tools/webarena/README.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update samples/tools/webarena/README.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update samples/tools/webarena/README.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* update installation instructions

* black formatting

* Update README.md

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-25 17:43:30 +00:00
Eric Zhu
2bfa181b4d New conversational chess notebook using nested chats and tool use (#2137)
* add chess notebook

* update

* update

* Update notebook with figure

* Add example link

* redirect

* Clean up example format

* address gagan's comments

* update references

* fix links
2024-03-25 16:24:08 +00:00
Eric Zhu
c8aca8dbf7 Native tool call support for Mistral AI API and topic notebook. (#2135)
* Support for Mistral AI API and topic notebook.

* formatting

* formatting
2024-03-25 14:35:29 +00:00
Roydemilde
9d56aebf23 Update github-flow-getting-started.md (#16) 2024-03-25 10:14:23 +01:00
Beibin Li
2f109f5f94 Add vision capability (#2025)
* Add vision capability

* Configurate: description_prompt

* Print warning instead of raising issues for type

* Skip vision capability test if dependencies not installed

* Append "vision" to agent's system message when enabled VisionCapability

* GPT-4V notebook update with ConversableAgent

* Clean GPT-4V notebook

* Add vision capability test to workflow

* Lint import

* Update system message for vision capability

* Add a `custom_caption_func` to VisionCapability

* Add custom function example for vision capability

* Skip test Vision capability custom func

* GPT-4V notebook metadata to website

* Remove redundant files

* The custom caption function takes more inputs now

* Add a more complex example of custom caption func

* Remove trailing space

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-24 19:46:55 +00:00
James
212722cd45 missing jupyter when import JupyterCodeExecutor (#2132) 2024-03-24 05:25:46 +00:00
Eric Zhu
3dfa305acb Update docs for new executors (#2119)
* Update docs for new executors

* Update website/docs/FAQ.mdx

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/FAQ.mdx

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/installation/Installation.mdx

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/installation/Installation.mdx

Co-authored-by: gagb <gagb@users.noreply.github.com>

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-03-23 04:19:54 +00:00
Eric Zhu
01afc9bbe7 Removing tool use from Use-Cases/agent_chat (#2120) 2024-03-23 04:18:17 +00:00
Ikko Eltociear Ashimine
a8abe59085 Update agentchat_nestedchat_optiguide.ipynb (#2122)
auxillary -> auxiliary
2024-03-23 01:29:55 +00:00
Wael Karkoub
331818300d Silences Pip Install Messages in Code Executors (#2105)
* fix

* adds tests

* check if windows

* adds windows shells

* modifies exit code

* fix powershell

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-21 20:08:50 +00:00
Kosta Petan
ec849245ea Refactor project structure (#14)
* refactor abstractions

* refactor structure

* refactor projects WIP

* refactor WIP

* refactoring WIP

* fixes
2024-03-21 20:52:05 +01:00
Davor Runje
fafc29eeef mypy in pre-commit fixed (#2117)
* mypy in pre-commit fixed

* polishing
2024-03-21 18:54:39 +00:00
Eric Zhu
a6a7409ac8 Fix link in non-openai model doc (#2106)
* Fix link in non-openai model doc

* Update about-using-nonopenai-models.md
2024-03-21 00:10:42 +00:00
Jack Gerrits
88a71d57da Ignore deprecated files from mypy test (#2103) v0.2.20 2024-03-20 22:36:43 +00:00
Jack Gerrits
2ad016d18d Print slow tests in CI (#2082)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-20 22:27:35 +00:00
Mark Sze
7739632ef2 [Documentation] Using non-OpenAI models (#2076)
* Addition of Non-OpenAI LLM section and main doc page

* Continued writing...

* Continued writing - cloud-based proxy servers

* Folder renamed

* Further writing

* together.ai example added

* Local proxy server added, diagram added, tidy up

* Added vLLM to local proxy servers documentation

* As per @ekzhu's feedback, individual pages and tidy up

* Added reference to LM Studio and renamed file

* Fixed incorrect huggingface.co link

* Run pre-commit checks, added LM Studio redirect

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-20 20:16:37 +00:00
Eric Zhu
ecc459f8c5 Add tool use chapter to tutorial (#2079)
* Add tool use chapter

* fix format

* typo

* Edits to tool-use chapter

* update

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-03-20 19:31:58 +00:00
Davor Runje
4af0440730 Update GitHub actions (#2078)
* Add mypy check in pre-commit

* Add mypy check in pre-commit

* bug fix

* CI fix

* add python version matrix for checking types in CI

* update github actions

* revert some accidental changes

* revert some accidental changes

* revert some accidental changes

* revert some accidental changes

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-20 17:18:11 +00:00
Chi Wang
42d41a0aef enrich register_reply and simplify user's code; bug fix in gpt assistant agent (#2095) 2024-03-20 17:17:09 +00:00
Eric Zhu
5b5727172c Pin databind package versions in gh-release CI (#2094)
* Pin databind version

* Pin databind version in gh-release CI
2024-03-20 06:01:18 +00:00
Jack Gerrits
6d2c923424 Consolidate separate caching docs (#2054)
* Consolidate separate caching docs

* add pointer for moved

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-20 03:40:59 +00:00
veh3546
b2be4059ea Centers the icons on homepage (#2089)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-20 02:48:12 +00:00
Eric Zhu
5c1579d2ad Add links to roadmap issues from README, Getting-Started, Contribute and Tutorial (#2072)
* Link to roadmap issues.

* Ordering
2024-03-20 02:04:41 +00:00
Davor Runje
99e48dc024 Add mypy to pre-commit (#2068)
* Add mypy check in pre-commit

* Add mypy check in pre-commit

* bug fix

* CI fix

* add python version matrix for checking types in CI

* added 3.12 to CI

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-20 02:01:16 +00:00
Eric Zhu
6cab643906 Pin databind version (#2091) 2024-03-20 01:16:10 +00:00
Kosta Petan
04ddb4b85f Update SK (#15)
* update sk all around - memory

* enable all roslyn rules

* remove githubjwt dependency

* add kernel-memory
2024-03-19 22:19:30 +01:00
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