2822 Commits

Author SHA1 Message Date
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
Olaoluwa Ademola Salami
a0eb557dd7
change specified api-version (#2955) 2024-06-18 05:37:38 +00:00
Mark Sze
8dd3a8a8f9
Client class utilities (#2949)
* Addition of client utilities, initially for parameter validation

* Corrected test

* update: type checks and few tests

* fix: docs, tests

---------

Co-authored-by: Hk669 <hrushi669@gmail.com>
2024-06-18 04:01:15 +00:00
Eric Zhu
6d7cbe0027 Add repo doc for examples #86 (#88)
* Add repo doc for examples

* fox
2024-06-17 17:54:27 -07:00
Eric Zhu
51c8b678de exception in intervention (#82)
* exception in intervention

* log
2024-06-17 17:34:56 -07:00
Eric Zhu
641d83fd10 add illustrator-critics demo; handle multi-modal messages in agents; refactored examples to use Textual app; equality comparison for AgentId (#87)
* add illustrator-critics demo; handle multi-modal messages in agents

* fix

* Refactored examples to use Textual app. Add equality comparison for AgentId
2024-06-17 17:20:46 -07:00
Jack Gerrits
edb939f4d7 use agent id in apis (#85) 2024-06-17 15:37:46 -04:00
Jack Gerrits
c29218b329 Add agent proxy (#84) 2024-06-17 12:43:51 -04:00
Jack Gerrits
89f1133831 migrate name, desc, subs to metadata (#83)
* migrate name, desc, subs to metadata

* fix quote in f string

* remove file

* add metadata func to runtime

* format
2024-06-17 10:44:46 -04:00
Eric Zhu
40701a5a00 Textual Example; Tool Approver (#81)
* Update example to use textual app. Add tool approver setting to chat completion agent.

* dep

* fix
2024-06-15 18:04:24 -07:00
Zoltan Lux
10b8fa548b
Fix missing messages in Gemini history (#2906)
* fix missing message in history

* fix message handling

* add list of Parts to Content object

* add test for gemini message conversion function

* add test for gemini message conversion

* add message to asserts

* add safety setting support for vertexai

* remove vertexai safety settings
v0.2.29
2024-06-14 18:13:19 +00:00
Qingyun Wu
6d4cf406f9
Filter models with tags instead of model name (#2912)
* identify model with tags instead of model name

* models

* model to tag

* add more model name

* format

* Update test/agentchat/test_function_call.py

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

* Update test/agentchat/test_function_call.py

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

* Update test/agentchat/test_tool_calls.py

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

* Update test/agentchat/test_tool_calls.py

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

* remove uncessary tags

* use gpt-4 as tag

* model to tag

* add tag for teachable agent test

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: AutoGen-Hub <flaml20201204@gmail.com>
2024-06-14 15:58:17 +00:00
LeoLjl
c54e8a5db1
[Autobuild] improve robustness and reduce cost (#2907)
* Update Autobuild.

* merge main into autobuild

* update test for new autobuild

* update author info

* fix pre-commit

* Update autobuild notebook

* Update autobuild_agent_library.ipynb

* Update autobuild_agent_library.ipynb

* Fix pre-commit failures.

---------

Co-authored-by: Linxin Song <rm.social.song1@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-14 14:14:08 +00:00
Xiaoyun Zhang
55b2df8bf9
[.Net] update oai tests by using new OpenAI resources (#2939)
* update oai tests

* Update MetaInfo.props
2024-06-14 13:53:12 +00:00
whichxjy
d020cccf01
Fix repeated comma typo (#2940) 2024-06-14 13:48:45 +00:00
Jack Gerrits
8dad8b0536 Make parenthesis optional for type routed agent message handler (#74) 2024-06-13 16:44:51 -07:00
thetechoddbug (José María Gutiérrez)
7e43935229
Update OAI_CONFIG_LIST_sample (#2867)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 20:15:38 +00:00
Yiran Wu
39f688778e
Allow passing in custom pricing in config_list (#2902)
* update

* update

* TODO comment removed

* update

---------

Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 20:10:47 +00:00