3039 Commits

Author SHA1 Message Date
Eric Zhu
1e49aee8fc Add group chat pattern, create separate folder for patterns (#117)
* add tool use example; refactor example directory

* update

* add more examples

* fix

* fix

* doc

* move

* add group chat example, create patterns folder
2024-06-24 16:22:08 -07:00
Eric Zhu
2ab3ce48b1 add tool use and core examples; refactor example directory (#112)
* add tool use example; refactor example directory

* update

* add more examples

* fix

* fix

* doc
2024-06-24 15:05:47 -07:00
Jack Gerrits
6189fdb05c simplify namespace usage (#116)
* simplify namespace usage

* format

* pyright
2024-06-24 16:52:09 -04:00
Jack Gerrits
606e43b325 Update termination-with-intervention.md (#115) 2024-06-24 16:26:02 -04:00
Eric Zhu
4e1e4c2e33 add coder reviewer core examples; renames (#110)
* add coder reviewer core examples; renames

* type

* add termiantion

* type
2024-06-24 10:35:10 -07:00
Jack Gerrits
b8239fc345 remove generic from termination guide (#111) 2024-06-24 17:19:40 +00:00
Jack Gerrits
bb202058ef Add example for termination using an intervention handler (#109) 2024-06-24 17:05:46 +00:00
Eric Zhu
60acf8757d Add examples for mixture of agents; patch doc strings (#108)
* add examples for mixture of agents

* format
2024-06-24 07:46:53 -07:00
Jack Gerrits
b3ef035e3e add example team (#107)
* add example team

* add checks
2024-06-24 10:36:10 -04:00
Yiran Wu
1582927ccd
Improve doc in tutorial/conversation-patterns and customized_speaker_selection (#3006)
* update

* update

---------

Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
2024-06-23 23:19:37 +00:00
Jack Gerrits
0d697037a1 Remove runtime arg from group chat manager (#106) 2024-06-22 18:51:30 +00:00
Jack Gerrits
2d74fa9caf add example of use contextvar (#105) 2024-06-22 14:50:32 -04:00
Qingyun Wu
03259b2229
bump version (#2999)
Co-authored-by: Li Jiang <bnujli@gmail.com>
v0.2.31
2024-06-22 13:31:52 +00:00
Alex Reibman
9b92093b00
LLM Observability documentation fixes: Broken links, grammar, and spelling (#2995)
* update markdown hyperlinks to stable urls

* update notebook images and text

* re-write observability section

* Updated section

* update wording

* added newline

* update styling in image tags to be jsx compatible

* added text

* update link

* simplified text

---------

Co-authored-by: Braelyn Boynton <bboynton97@gmail.com>
2024-06-22 03:05:11 +00:00
Mark Sze
e4720bc6cf
Message handling to support multiple function calls (#2997) 2024-06-22 02:24:23 +00:00
Mark Sze
e3b2560a26
Fixed alternating message role bug in Anthropic client (#2992)
* Fixed alternating message role bug

* Fix bug
2024-06-21 22:39:24 +00:00
Qingyun Wu
b4837215db
update notebook wording and format (#2991) v0.2.30 2024-06-21 19:58:35 +00:00
Jack Gerrits
1d6dbc409b Fix install instructions (#104) 2024-06-21 15:46:19 -04:00
Qingyun Wu
89c2f20166
Bump version to 0.2.30 (#2990) 2024-06-21 19:30:26 +00:00
HRUSHIKESH DOKALA
20f8ba9cfa
fix: created in ChatCompletion for clients (#2988) 2024-06-21 18:52:23 +00:00
Yiran Wu
84f82dc5ec
Uniform Interface for calling different LLMs (#2916)
* update

* update

* Minor tweaks on text

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-06-21 17:30:59 +00:00
Mark Sze
b1ec3ae545
Together AI Client (#2919)
* First pass together.ai client class

* Config handling, models and cost

* Added tests, moved param management to create function

* Tests, parameter, validation, logging updates

* Added use of client_utils PR 2949

* Updated to return OAI response

* Notebook example

* Improved function calling, updated tests, updated notebook with Chess example

* Tidied up together client class, better parameter handling, simpler exception capture, warning for no cost, reuse in tests, cleaner tests

* Update of documentation notebook, replacement of old version

* Fix of messages parameter for hide_tools function call

* Update autogen/oai/together.py

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>

* Update together.py to fix text

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Yiran Wu <32823396+yiranwu0@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-21 17:14:44 +00:00
Garner Fox McCloud
843c343383
Anthropic client fixes (#2981)
* add claude 3.5 sonnet to pricing

* Fix import error for client_utils

* fix import order for ruff formatter

* name key is not supported in anthropic message so let's remove it

* Improved tool use message conversion, changed create to return standard response

* Converted tools to messages for speaker selection, moved message conversion to function, corrected bugs

* Minor bracket typo.

* Renaming function

* add groupchat and run notebook

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-06-21 16:40:55 +00:00
Eric Zhu
ef12ca4b4e small doc fixes (#103) 2024-06-21 08:49:57 -07:00
Jack Gerrits
afdbae2bb9 remove binding from base agent (#100) 2024-06-21 14:47:51 +00:00
Jack Gerrits
b35fe0bd22 Use uv instead of pip for env creation (#99) 2024-06-21 14:43:28 +00:00
Eric Zhu
f72c8ac8d9 update documentation (#102) 2024-06-21 05:05:54 -07:00
Eric Zhu
51dde2916f Move ChatMemory protocol to components.memory; rename files to use "_" convention for implementations. (#101) 2024-06-21 04:06:01 -07:00
Li Jiang
3e3f2985c2
Fix qdrant version (#2984) 2024-06-21 09:51:17 +00:00
Mark Sze
27e3690378
Mistral Client (#2892)
* Initial commit of Mistral client class

* Updated to manage final system message for reflection_with_llm

* Add Mistral support to client class

* Add Mistral support across the board (based on Gemini changes)

* Test file for Mistral client

* Updated handling of config, added notebook for documentation

* Added support for additional API parameters

* Remove unneeded code, updated exception raising

* Updated handling of keywords, including type checks, defaults, warnings. Updated notebook example to remove logging warnings.

* Added class description.

* Updated tests to support new config handling.

* Moved parameter parsing to create function, minimised init, added parameter tests

* Refined parameter validation

* Correct spacing

* Fixed string concat in parameter validation

* Corrected upper/lower bound warning

* Use client_tools, tidy up Mistral create, better handle tool call response, tidy tests

* Update of documentation notebook, replacement of old version

* Update to handle multiple tool_call recommendations in a message

* Updated tests to accommodate multiple tool_calls as well as content in message

* Update autogen/oai/mistral.py comment

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>

* cleanup, rewrite mock

* update

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2024-06-21 05:42:16 +00:00
Xiaoyun Zhang
dd0024c01c
[.Net] add ReAct sample (#2977)
* add ReAct sample

* fix source geenrator test
2024-06-20 22:30:16 +00:00
Jack Gerrits
d365a588cb Move python code to subdir (#98) 2024-06-20 15:19:56 -04:00
Xiaoyun Zhang
393f6fc76c
[.Net] fix #2859 (#2974)
* add getting start sample project

* update

* update

* revert change
2024-06-20 17:47:31 +00:00
Reuben Bond
c9e09e2d27 Merge pull request #79 from microsoft/rebond/merge-repos
Initial OAgents + AGNext merge
2024-06-20 07:19:44 -07:00
Jack Gerrits
83febe56bb Merge branch 'main' into rebond/merge-repos 2024-06-20 10:11:16 -04:00
Li Jiang
29997f0cf1
Fix #2960 by checking if the values are a list of lists. (#2971)
* Fix #2960 by checking values are list of list

* Reduce dictionary look up overhead
2024-06-20 05:24:42 +00:00
HRUSHIKESH DOKALA
08a7578de8
type fix for ChatResult (#2973) 2024-06-20 05:17:19 +00:00
Reuben Bond
fbb4a5a801 Code style cleanup 2024-06-19 19:25:07 -07:00
Reuben Bond
27d04bdff5 Add .editorconfig & use centralized package management 2024-06-19 16:53:37 -07:00
Reuben Bond
c5cec3afbd Merge project-oagents into agnext 2024-06-19 15:34:04 -07:00
Jack Gerrits
432b1c1213 Migrate build tools to hatch (#93)
* Migrate build tools to hatch

* fmt

* fix workflows

* add tldr

* simplify hatch usage and environments

* add hatch to devcontainer
2024-06-19 13:49:13 -04:00
Jack Gerrits
1c69c3ad0b Fix namespace registration (#92) 2024-06-19 10:49:08 -04:00
NanthagopalEswaran
ded8e1b280
Fix #2845 - LocalCommandLineCodeExecutor is not working with virtual environments (#2926)
* Used absolute path of virtual environment bin path in local command executors

* Checked if the expected venv is used or not

* Added code comments for documentation

* fix: format issue - shutil lib

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-19 13:39:23 +00:00
Shobhit Vishnoi
0bc08cec49
a_initaite_chats update (#2958) 2024-06-19 13:30:23 +00:00
HRUSHIKESH DOKALA
32fa709e13
Anthropic Client (#2931)
* intial setup for the anthropic client with cost config

* update: other methods added

* fix: formatting

* fix: config unused

* update: changes made in the client

* update: test added to the workflow

* update: added tests to the anthropic client

* fix: errors in workflows and client

* fix

* fix: anthropic tools type

* update: notebook anthropic

* Nonetype fixed

* fix-tests config

* update: tests and client issues

* logger support

* remove sys path

* updated the functioning of the client

* update: type hints and stream

* skip tests- importerror

* fix: anthropic client and tests

* none fix

* Alternating roles, parameter keywords, cost on response,

* update: anthropic notebook

* update: notebook with more details

* devcontainer

* update: added validate_params from the client_utils

* fix: formatting

* fix: minor comment

---------

Co-authored-by: Mark Sze <mark@sze.family>
2024-06-19 06:15:12 +00:00
Mark Sze
064214f62b
should_hide_tools function added to client_utils (#2966) 2024-06-19 05:22:15 +00:00
dependabot[bot]
b43ec8d44a
Bump ws from 7.5.9 to 7.5.10 in /website (#2964)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 23:25:00 +00:00
Jack Gerrits
4cebf7257b remove _ from send/pub, add docs, (#91)
* remove _ from send/pub, add docs,

* fixes
2024-06-18 15:51:02 -04:00
Jack Gerrits
5b01f69b58 Move agent creation into the runtime (#89)
* Move agent creation into the runtime

* update doc

* add test

* Remove limitation of subscriptions being same across namespaces

* constrain agent types to namespaces
2024-06-18 14:53:18 -04:00
Ikko Eltociear Ashimine
54190bbacd
Update agentchat_function_call_currency_calculator.ipynb (#2952)
minor fix
2024-06-18 05:38:35 +00:00