Commit Graph

3198 Commits

Author SHA1 Message Date
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
Xiaoyun Zhang
cd8f437a71 update update.md (#2937) 2024-06-13 20:07:18 +00:00
dependabot[bot]
c221eea14e Bump braces from 3.0.2 to 3.0.3 in /website (#2934)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  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-13 17:27:01 +00:00
Davor Runje
c873080b0d changed CRLF to LF (#2935) 2024-06-13 16:44:11 +00:00
Xiaoyun Zhang
ca4f717616 [.Net] Add Gemini samples to AutoGen.Net website + configure Gemini package to be ready for release (#2917)
* update website

* fix buid error

* update
2024-06-13 08:01:16 +00:00
Eric Zhu
387aa6abb7 add pattern docs (#73) 2024-06-13 07:10:35 +00:00
Wael Karkoub
004ba22637 human input mode annotations fixed (#2864)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 04:53:55 +00:00
Eric Zhu
f754f3ce2f HeadAndTail memory; add group chat manager transitions; update software_consultancy example (#72) 2024-06-12 15:28:00 -07:00
Jack Gerrits
c36ea487e0 Flesh out agent docs more (#71) 2024-06-12 17:10:17 -04:00
Jack Gerrits
92d413e877 Fix links, add index content, move contrib (#70) 2024-06-12 15:21:20 -04:00
Eric Zhu
1dc22d9672 Add documentation (#68)
* initial docs

* update docs

* Update agent.md

* Update memory.md

* Update runtime.md

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-06-12 11:25:42 -04:00
ken-gravilon
f36b658f8f Docs typo cli-code-executor.ipynb (#2909)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-12 14:36:26 +00:00
Li Jiang
11b8c767ca Improve update context condition checking rule (#2883)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-12 14:26:19 +00:00
Davor Runje
a0787aced3 pre-commit version update and a few spelling fixes (#2913) 2024-06-12 06:26:22 +00:00
Davor Runje
53a59ddac6 CRLF changed to LF (#2915) 2024-06-12 06:25:18 +00:00
Kosta Petan
178e209e5f Initial devcontainer scaffolding (#66)
* adds devcontainer setup, docker-compose based

* add python via a feature
2024-06-12 05:23:49 +00:00
Daniel (Neng) Wang
b03fb6d6a3 Change chunk size of vectordb from max_tokens to chunk_token_size (#2896)
* Update retrieve_user_proxy_agent.py

* Update retrieve_user_proxy_agent.py

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-11 13:09:24 +00:00
Li Jiang
067fa88b67 Update notebook (#2886) 2024-06-11 13:04:37 +00:00
Audel Rouhi
bf7e4d619c Bugfix: PGVector/RAG - Calculate the Vector Size based on Model Dimensions (#2865)
* Calculate the dimension size based off model chosen.

* Added example docstring.

* Validated working notebook with sentence models of different dimensions.

* Validated removal of model_name working.

* Second example uses conn object.

* embedding_function no longer directly references .encode

* Fixed pre-commit issue.

* Use try/except to raise error when shape is not found in embedding function.

* Re-ran notebook.

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Added .encode

* Removed example comment.

* Fix overwrite doesn't work with existing collection when custom embedding function has different dimension from default one

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-11 12:16:56 +00:00
Eric Zhu
1b9f4641a7 fix buffered memory; update documentation (#65) 2024-06-11 00:46:52 -07:00
Eric Zhu
7d7992b21e Update group chat example and add a progress bar to chat completion agent (#64)
* update group chat example

* format

* fix
2024-06-10 21:43:06 -07:00
Eric Zhu
1448cbc138 Event-Based GroupChat and Update Examples (#62)
* initial

* convert examples to event-based; add user proxy agent.

* update examples
2024-06-10 19:51:51 -07:00
Chi Wang
2d6c8c012b version update (#2908)
* version update

* version update
2024-06-10 18:23:51 +00:00
David Luong
d578d0dfd9 Squash changes (#2849) 2024-06-10 17:32:33 +00:00
Xiaoyun Zhang
a16b307dc0 [.Net] Add Goolge gemini (#2868)
* update

* add vertex gemini test

* remove DTO

* add test for vertexGeminiAgent

* update test name

* update IGeminiClient interface

* add test for streaming

* add message connector

* add gemini message extension

* add tests

* update

* add gemnini sample

* update examples

* add test for iamge

* fix test

* add more tests

* add streaming message test

* add comment

* remove unused json

* implement google gemini client

* update

* fix comment
2024-06-10 17:31:45 +00:00