2822 Commits

Author SHA1 Message Date
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
Victor Dibia
7d057a93b2
Autogenstudio docs (#2890)
* add autogenstudio docs

* update ags readme to point to docs page

* update docs

* update docs

* update faqs

* update, fix typos
2024-06-10 03:29:34 +00:00
Eric Zhu
03efb87cd7 Chat room example for event-based agents (#61) 2024-06-09 18:06:51 -07:00
Eric Zhu
7ef502a33e Refactor chat (#60) 2024-06-09 12:11:36 -07:00
Eric Zhu
e99ad511fa Initial chat memory implementation (#59) 2024-06-08 16:29:27 -07:00
Eric Zhu
37cc6bc12a Improve assistant and chess examples to make them more robust and better presentation. (#58)
* Improve assistant and chess examples to make them more robust and better presentation.

* type dep

* format
2024-06-08 01:27:27 -07:00
Eric Zhu
21b730e7c6 oai assistant agent example and custom event handler for streaming mode (#56)
* oai assistant agent example

* wip

* open ai assistant with custom event handler

* doc
2024-06-07 14:46:13 -07:00
Eric Zhu
b4ade8b735 Add examples to showcase patterns (#55)
* add chess example

* wip

* wip

* fix tool schema generation

* fixes

* Agent handle exception

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

* format

* mypy

* fix test for annotated

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-06-07 13:33:51 -07:00
Braelyn Boynton
85ad929f34
AgentOps Runtime Logging Implementation (#2682)
* add agentops req

* track conversable agents with agentops

* track tool usage

* track message sending

* remove record from parent

* remove record

* simple example

* notebook example

* remove spacing change

* optional dependency

* documentation

* remove extra import

* optional import

* record if agentops

* if agentops

* wrap function auto name

* install agentops before notebook test

* documentation fixes

* notebook metadata

* notebook metadata

* pre-commit hook changes

* doc link fixes

* git lfs

* autogen tag

* bump agentops version

* log tool events

* notebook fixes

* docs

* formatting

* Updated ecosystem manual

* Update notebook for clarity

* cleaned up notebook

* updated precommit recommendations

* Fixed links to screenshots and examples

* removed unused files

* changed notebook hyperlink

* update docusaurus link path

* reverted setup.py

* change setup again

* undo changes

* revert conversable agent

* removed file not in branch

* Updated notebook to look nicer

* change letter

* revert setup

* revert setup again

* change ref link

* change reflink

* remove optional dependency

* removed duplicated section

* Addressed clarity commetns from howard

* minor updates to wording

* formatting and pr fixes

* added info markdown cell

* better docs

* notebook

* observability docs

* pre-commit fixes

* example images in notebook

* example images in docs

* example images in docs

* delete agentops ong

* doc updates

* docs updates

* docs updates

* use agent as extra_kwarg

* add logging tests

* pass function properly

* create table

* dummy function name

* log chat completion source name

* safe serialize

* test fixes

* formatting

* type checks

---------

Co-authored-by: reibs <areibman@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Howard Gil <howardbgil@gmail.com>
Co-authored-by: Alex Reibman <meta.alex.r@gmail.com>
2024-06-07 06:01:03 +00:00
Jack Gerrits
c6360feeb6 Fix function tools (#57)
* Fix function tools

* lint
2024-06-06 21:58:11 -04:00
aswny
75f0808b5a
allow function to remove termination string in groupchat (#2804)
* allow function to remove termination string in groupchat

* improve docstring

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* improve docstring

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* improve test case description

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

---------

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
2024-06-06 21:55:55 +00:00
Wael Karkoub
8564bd4c48
[Refactor] Transforms Utils (#2863)
* wip

* tests + docstrings

* improves tests

* fix import
2024-06-06 21:49:22 +00:00
Xiaoyun Zhang
102d36d98f
add github icon (#2878) 2024-06-06 18:41:35 +00:00
afourney
f904b4fa17
Updated the azure client to support AAD auth. (#2879) 2024-06-06 18:12:00 +00:00
Jack Gerrits
06ba5d3ca8 Rename ModelClient to ChatCompletionClient (#54) 2024-06-05 19:51:40 +00:00
Jack Gerrits
ab420cc9ee Overhaul tools (#53)
* Overhaul tools

* add a simple test

* mypy fixes

* format
2024-06-05 19:48:14 +00:00
Jack Gerrits
837c388d38 Update readme (#52)
* Update README.md

* Update README.md
2024-06-05 18:44:23 +00:00
Jack Gerrits
8cb530f65e Simplify handler decorator (#50)
* Simplify handler decorator

* add more tests

* mypy

* formatting

* fix 3.10 and improve type handling of decorator

* test fix

* format
2024-06-05 08:51:49 -04:00
Jack Gerrits
ad513d5017 rename llm to models (#49) 2024-06-04 12:09:34 -04:00
Jack Gerrits
ed0229734d Organize some more modules (#48)
* Organize some more modules

* cleanup model_client
2024-06-04 11:13:13 -04:00
Xiaoyun Zhang
84c7c2430c
[.Net] Add AOT compatible check for AutoGen.Core (#2858)
* add AutoGen.AotCompatibility test

* add aot test

* fix build error

* update ps1 path
2024-06-04 15:01:11 +00:00
Jack Gerrits
19570fdd98 Port changes from agexplore (#47) 2024-06-04 14:17:04 +00:00
Jack Gerrits
69627aeee6 Remove accidentall added test file (#46) 2024-06-04 14:02:51 +00:00
Jack Gerrits
c0143069f4 Rename modules (#45) 2024-06-04 14:00:05 +00:00
Jack Gerrits
805707c89a Format docstrings with ruff (#43) 2024-06-04 13:36:12 +00:00
Jack Gerrits
492f8ecae0 Add detailed instructions for installation (#44) 2024-06-04 13:34:56 +00:00
Diego Colombo
5f29d6b97d
Refactor hook registration and processing methods (#2853)
* Refactor hook registration and processing methods

- Refactored the `hook_lists` dictionary to use type hints for better readability.
- Updated the `register_hook` method signature to include type hints for the `hook` parameter.
- Added type hints to the `process_last_received_message` method parameters and return value.

This commit refactors the code related to hook registration and processing in the `conversable_agent.py` file. The changes improve code readability and maintainability by using type hints and updating method signatures.

* Refactor hook_lists initialization and add type hints

- Refactored the initialization of `hook_lists` to use a colon instead of an equal sign.
- Added type hints for the parameters and return types of `process_last_received_message` method.

* Refactor hook registration and processing in conversable_agent.py

- Refactored the `hook_lists` dictionary to use a more generic type for the list of hooks.
- Updated the signature check for `process_message_before_send`, `process_all_messages_before_reply`, and `process_last_received_message` hooks to ensure they are callable with the correct signatures.
- Added error handling to raise a ValueError or TypeError if any hook does not have the expected signature.

* Refactor hook processing in conversable_agent.py

- Simplify the code by removing unnecessary type checks and error handling.
- Consolidate the logic for processing hooks in `_process_message_before_send`, `process_all_messages_before_reply`, and `process_last_received_message` methods.

* Refactor register_hook method signature for flexibility

The commit changes the signature of the `register_hook` method in `conversable_agent.py`. The second argument, `hook`, is now of type `Callable` instead of `Callable[[List[Dict]], List[Dict]]`. This change allows for more flexibility when registering hooks.
2024-06-03 22:16:58 +00:00