Commit Graph

3198 Commits

Author SHA1 Message Date
Jack Gerrits
7b5fd51e2e Support string based UDFs (#2195) 2024-03-30 15:15:39 +00:00
Robin-Manuel Thiel
1ede63f9a8 Organize folder structure towards library (#29) 2024-03-30 09:40:27 +01:00
Wael Karkoub
7a685b52d8 Fix generate_init_message for Multimodal Messages (#2124)
* multimodal carryover

* adds mm carryover tests

* more tests + cleanup code

* check content instead

* beibin suggestion

* cleanup

* fix async

* use deepcopy

* handle carryover method

* remove content copy

* sonichi suggestions

---------

Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-30 02:10:24 +00:00
Wannabeasmartguy
6ed8f696ef fix the problem config_list_from_dotenv() can't correctly get other p… (#2172)
* fix the problem config_list_from_dotenv() can't correctly get other params

* Update openai_utils.py

---------

Co-authored-by: Aaron <aaronlaptop12@hotmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-30 01:24:10 +00:00
afourney
061a857b3d AutoGenBench: Handle Ctrl-C more gracefully. (#2174)
* Prints the version of AutoGenBench from the command line, closing i1458

* Added autogenbench version to timestamp.txt

* Attempting to fix formatting.

* Add a gitignore for autogenbench

* Generalize to read all template dirs from Templates

* AutoGenBench logs telemetry when available.

* Remove spaces if present from template names.

* Bump version.

* Fixed formatting.

* Allow native warning to be skipped. Mount autogen repo in Docker if it can be found (experimental).

* Native execution now occurs in a venv.

* Bump version.

* Fixed a prompt escaping bug evident in GAIA task '6f37996b-2ac7-44b0-8e68-6d28256631b4'

* Updated all scenarios to use template discovery.

* Update with main version of runtime_logging.

* Better handling of Ctrl-C and cleanup of unused containers.

* Even stronger hinting that containers should be removed.

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-03-30 01:16:41 +00:00
Davor Runje
20893fc912 replace iostream warning message with info (#2207)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-30 00:15:39 +00:00
Shaokun Zhang
16db0b957f Render AgentOptimzier notebook in web (#2197)
* update

* change tag

---------

Co-authored-by: AnonymousRepoSub <“shaokunzhang529@outlook.com” >
2024-03-29 14:32:22 +00:00
Eric Zhu
8fe54bb834 add clarity analytics (#2201) 2024-03-28 23:26:22 +00:00
dependabot[bot]
f63f0566ec Bump express from 4.18.2 to 4.19.2 in /website (#2157)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  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-28 17:52:26 +00:00
Wael Karkoub
8cb5c14c82 Transform Messages Capability (#1923)
* wip

* Adds docstrings

* fixed spellings

* wip

* fixed errors

* better class names

* adds tests

* added tests to workflow

* improved token counting

* improved notebook

* improved token counting in test

* improved docstrings

* fix inconsistencies

* changed by mistake

* fixed docstring

* fixed details

* improves tests + adds openai contrib test

* fix spelling oai contrib test

* clearer docstrings

* remove repeated docstr

* improved notebook

* adds metadata to notebook

* Improve outline and description (#2125)

* better dir structure

* clip max tokens to allowed tokens

* more accurate comments/docstrs

* add deperecation warning

* fix front matter desc

* add deperecation warning notebook

* undo local notebook settings changes

* format notebook

* format workflow

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-03-28 16:16:17 +00:00
Jack Gerrits
6fbb9e8274 Add link for rendering notebooks docs on website (#2191) v0.2.21 2024-03-28 15:17:14 +00:00
Davor Runje
21a7eb3115 Fix iostream on new thread (#2181)
* fixed get_stream in new thread by introducing a global default

* fixed get_stream in new thread by introducing a global default

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-28 14:26:01 +00:00
Jack Gerrits
f467f21ec9 Fix formatting of admonitions in udf docs (#2188) 2024-03-28 13:48:24 +00:00
Kosta Petan
fda381a82a Knowledge abstraction to AiAgent (#25)
* make ghClient fetch synchronous

* refactor memory, extract knowledge adding to AiAgent
2024-03-28 13:34:33 +01:00
Shaokun Zhang
dd61eaae43 update (#2178)
Co-authored-by: AnonymousRepoSub <“shaokunzhang529@outlook.com” >
2024-03-28 05:11:20 +00:00
Chi Wang
e6237d44a1 simplify getting-started; update news (#2175)
* simplify getting-started; update news

* bug fix
2024-03-28 03:43:01 +00:00
Jack Gerrits
5ef2dfc104 Implement User Defined Functions for Local CLI Executor (#2102)
* Implement user defined functions feature for local cli exec, add docs

* add tests, update docs

* fixes

* fix test

* add pandas test dep

* install test

* provide template as func

* formatting

* undo change

* address comments

* add test deps

* formatting

* test only in 1 env

* formatting

* remove test for local only

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-27 23:45:17 +00:00
calm
d3db7db67f fix(): fix word spelling errors (#2171) 2024-03-27 22:38:00 +00:00
Jack Gerrits
95c0118568 Mark cache as a protocol and update type hints to reflect (#2168)
* Mark cache as a protocl and update type hints to reflect

* int

* undo init change
2024-03-27 22:15:24 +00:00
Rajan
1002882f01 [CAP] [Feature] Get list of actors from directory service. (#2073)
* Search directory for list of actors using regex '.*' gets all actors

* docs changes

* pre-commit fixes

* Use ActorInfo from protobuf

* pre-commit

* Added zmq tests to work on removing sleeps

* minor refactor of zmq tests

* 1) Change DirSvr to user Broker.  2) Add req-router to broker 3) In ActorConnector use handshake and req/resp to remove sleep

* 1) Change DirSvr to user Broker.  2) Add req-router to broker 3) In ActorConnector use handshake and req/resp to remove sleep

* move socket creation to thread with recv

* move socket creation to thread with recv

* Better logging for DirectorySvc

* better logging for directory svc

* Use logging config

* Start removing sleeps

* pre-commit

* Cleanup monitor socket
2024-03-27 22:14:39 +00:00
Suzanne Daniels
3d90292aa8 Adding overview diagram (#24) 2024-03-27 17:23:10 +01:00
Davor Runje
78aa0eb220 Introducing IOStream protocol and adding support for websockets (#1551)
* Introducing IOStream

* bug fixing

* polishing

* refactoring

* refactoring

* refactoring

* wip: async tests

* websockets added

* wip

* merge with main

* notebook added

* FastAPI example added

* wip

* merge

* getter/setter to iostream added

* website/blog/2024-03-03-AutoGen-Update/img/dalle_gpt4v.png: convert to Git LFS

* website/blog/2024-03-03-AutoGen-Update/img/gaia.png: convert to Git LFS

* website/blog/2024-03-03-AutoGen-Update/img/teach.png: convert to Git LFS

* add SSL support

* wip

* wip

* exception handling added to on_connect()

* refactoring: default iostream is being set in a context manager

* test fix

* polishing

* polishing

* polishing

* fixed bug with new thread

* polishing

* a bit of refactoring and docs added

* notebook added to docs

* type checking added to CI

* CI fix

* CI fix

* CI fix

* polishing

* obsolete todo comment removed

* fixed precommit error

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-26 22:39:55 +00:00
Shaokun Zhang
72994ea127 Integrate AgentOptimizer (#1767)
* draft agent optimizer

* refactor

* remove

* change openai config interface

* notebook

* update blog

* add test

* clean up

* redir

* update

* update interface

* change model name

* move to contrib

* Update autogen/agentchat/contrib/agent_optimizer.py

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-03-26 20:31:02 +00:00
Wael Karkoub
66d96dd887 Parse Any HTML-esh Style Tags (#2046)
* tried implementing my own regex

* improves tests

* finally works

* removes prints

* fixed test

* adds start and end

* delete unused imports

* refactored to use new tool

* significantly improved algo

* tag content -> tag attr

* fix tests + adds new field

* return full match

* return remove start and end

* update docstrings

* update docstrings

* update docstrings

---------

Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-26 18:46:44 +00:00
dependabot[bot]
59a7790578 Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website (#2131)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-03-26 16:59:27 +00:00
Qingyun Wu
a1322d2475 context to kwargs (#2064)
* context to kwargs

* add tag

* add test

* text to kwargs

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-03-26 16:31:55 +00:00
Roydemilde
1bf8a7caac Update FAQ.md (#23)
Added first overview for the FAQ, please check.. also on spelling and grammar and correctness of the content.
2024-03-26 17:15:30 +01:00
Roydemilde
40db7d3008 Create FAQ.md (#21)
Added FAQ.md as placeholder
2024-03-26 17:07:22 +01:00
Roydemilde
d813e0fc7c Update github-flow-getting-started.md (#20)
Added more text for the appsettings.json
2024-03-26 17:06:26 +01:00
Roydemilde
60518b1172 Update README.md (#22)
removed locally...
2024-03-26 17:05:41 +01:00
Roydemilde
64732068d2 Update github-flow-getting-started.md (#19)
Added info around labels
2024-03-26 13:33:51 +01:00
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