Commit Graph

500 Commits

Author SHA1 Message Date
Wael Karkoub feef9d4d37
Throttle API Calls (#2283)
* wip

* remove async

* minor fix

* robust timing test

* modifies file names

* modifies config list

* updates faq

* updates llm config doc

* mock openai calls

* make windows tests happy

* clean up

* undo change in doc

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:46:17 +00:00
Evan Hadfield 3c90bee92f
Update LLM Caching link in Optional-Dependencies.md (#2885)
* Update LLM Caching link in Optional-Dependencies.md

Fix link to direct to the current location of the LLM Caching doc

* Update Optional-Dependencies.md

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:08:54 +00:00
Suchit G 0b19aa74d4
Fix syntax error in user-defined-functions docs (unecessarily capitalized) (#3336)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 14:17:16 +00:00
Li Jiang 6aaa238b4e
Fix issue caused by chromadb error type change (#3557)
* Fix chromadb error type

* Update docs

* Improve robustness

* Fix tests

* Fix docs

* Fix docs

* Fix docs

* Fix docs
2024-09-23 19:19:23 +00:00
siddharth Sambharia 5f87b2802f
Portkey Integration with Autogen (#3395)
* Portkey Integration with Autogen

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update portkey.md with changes

* Update website/docs/ecosystem/portkey.md

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>

* Remove trailing white spaces

* Update portkey.md with mark's note

* remove trailing white spaces line 15 and empty line at end

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-09-09 05:36:48 +00:00
Dev Khant 70a17919c7
Ecosystem Mem0: change title (#3492)
* Ecosyste Mem0: change title

* Update website/docs/ecosystem/mem0.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-08 21:46:39 +00:00
Dev Khant 1ff477fefb
Integrate Mem0 for providing long-term memory for AI Agents (#3389)
* Add Mem0 docs

* add notebook link

* add notebook

* formatting

* formatting fix

* resolve comments

* writeup for mem0

---------

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Aristo <6344553+randombet@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-06 00:07:06 +00:00
Lala Sabathil 16396b6154
docs: fix autogen install url (#3459)
/docs/installation redirects for some reason to /docs/docs/installation.
Using the full url is more reliable
2024-09-04 15:49:35 +00:00
Anirudh31415926535 5861bd92a6
fix: tool calling cohere (#3355)
* Add support for tool calling cohere

* update tool calling code

* make client name configurable with default

* formatting nits

* update docs

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-08-28 18:47:39 +00:00
gagb efc5ac8afb
Add studio pre-print (#3423)
* Add studio pre-print

* Fix formatting
2024-08-26 22:11:04 +00:00
Mark Sze ed47ec9d4b
Transform to add an agent's name into the message content (#3334)
* Initial commit with ability to add name into content with a transform

* Transforms documentation

* Fix transform links in documentation

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-08-26 07:35:27 +00:00
HRUSHIKESH DOKALA 34b34d0203
Amazon Bedrock Client for AutoGen (#3232)
* intial commit for aws-bedrock

* format

* converse setup for model req-response

* Renamed to bedrock.py, updated parameter parsing, system message extraction, client class incorporation

* Established Bedrock class based on @astroalek and @ChristianT's code, added ability to disable system prompt separation

* Image parsing and removing access credential checks

* Added tests, added additional parameter support

* Amazon Bedrock documentation

* Moved client parameters to init, align parameter names with Anthropic, spelling fix, remove unnecessary imports, use base and additional parameters, update documentation

* Tidy up comments

* Minor typo fix

* Correct comment re aws_region

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-08-26 07:28:53 +00:00
New-World-2019 0b361dc37c
Update agent_chat.md;Fix broken URL (#3416)
This pull request includes a minor update to the agent_chat.md file to correct the link to the Enhanced Inference.

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-08-26 06:54:46 +00:00
Mark Sze 4451632784
Ability to add MessageTransforms to the GroupChat's Select Speaker nested chat (speaker_selection_method='auto') (#2719)
* Initial commit with ability to add transforms to GroupChat

* Added tests

* Tidy up

* Tidy up of variable names and commented out test

* Tidy up comment

* Update import to relative

* Added documentation topic for transform messages for speaker selection.

* Added handling of non-core module, transforms, in groupchat

* Adjusted parameter if module not loaded.

* Updated groupchat test which failed during CI/CD

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-08-26 03:47:48 +00:00
Li Jiang 663092b5e1
Add mongodb to topic guide (#3400) 2024-08-22 09:58:08 +00:00
New-World-2019 395af4e258
Update Docker.md;fix broken URL (#3399)
This pull request includes a minor update to the CONTRIBUTORS.md file to correct the link to the Dockerfile README.
2024-08-22 09:24:25 +00:00
Eric Zhu d5068d9b6c
update contact information on the repo and release package (#3383)
* update contact information on the repo and release package

* update contact

* update

* fix format
2024-08-20 02:04:44 +00:00
morris.liu a13e4dbbb6
Update human-in-the-loop.ipynb (#3379) 2024-08-19 17:46:01 +00:00
Zoltan Lux 780523f10f
Add OpenAI Gemini Example for VertexAI Notebook (#3290)
* add openai-gemini example

* fix exec numbering

* improve isntructions

* fix br  tag

* mention roles/aiplatform.user and fix markdown reference

* remove mentioning the editor role, and only use the Vertex AI User role

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-08-17 22:17:38 +00:00
Li Jiang 08fa1b6d08
Remove dependency on RetrieveAssistantAgent for RetrieveChat (#3320)
* Remove deps on RetrieveAssistantAgent for getting human input

* Terminate when no more context

* Add deprecation warning message

* Clean up RetrieveAssistantAgent, part 1

* Update version

* Clean up docs and notebooks
2024-08-15 16:03:06 +00:00
Wael Karkoub 6682b6d2d0
Removes Support For `TransformChatHistory` and `CompressibleAgent` (#3313)
* remove old files

* removes ci

* removes faq

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-08-13 03:28:02 +00:00
Gaoxiang Luo 972b4ed024
Fix message history limiter for tool call (#3178)
* fix: message history limiter to support tool calls

* add: pytest and docs for message history limiter for tool calls

* Added keep_first_message for HistoryLimiter transform

* Update to inbetween to between

* Updated keep_first_message to non-optional, logic for history limiter

* Update transforms.py

* Update test_transforms to match utils introduction, add keep_first_message testing

* Update test_transforms.py for pre-commit checks

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-08-09 03:14:34 +00:00
Alexander Lundervold dcccaa8b6b
fix broken link to conversational chess example (#3327)
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-08-09 03:03:26 +00:00
Prithvi 56007d1164
Fix Issue #2880: Document the usage of the AAD auth (#2941)
* Document the usage of the AAD auth. #2880

Added the document for the usage of AAD !

* Update website/docs/topics/llm_configuration.ipynb

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

* Updated Location and Link to Azure OpenAI documentation

* Update AutoTX Link on Gallery.json (#3082)

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>

* Making the required changes

Updated function description and parameter description as well. Also, created the corresponding cs file for the t4 file. And created the new test case and updated the checks as well.

* Revert "Making the required changes"

By mistake

* Update llm_configuration.ipynb

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Yiran Wu <32823396+yiranwu0@users.noreply.github.com>
2024-08-02 14:45:45 +00:00
Mark Sze cf29a2fac1
Recreated doc for Local LLMs - LiteLLM and Ollama - native function calling in Ollama (#3197)
* Recreated documentation for Local LLMs - LiteLLM and Ollama

* Added Docker = False for code execution example

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-29 15:04:44 +00:00
Umer Mansoor d3d4cc0c2f
Fix reference links (#3239)
* fix broken reference links that's pointing to a page that doesn't exists

* Fix 2 broken links and use the correct format

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-29 14:44:52 +00:00
Cell 8ac9bba0be
Fix ConversableAgent break link in agent_chat.md file to include the .md extension in the link for ConversableAgent (#3221)
ConversableAgent has a break link in website/docs/Use-Cases/agent_chat.md file
2024-07-27 15:30:39 +00:00
Zoltan Lux a5e5be73b5
Enhance vertexai integration (#3086)
* switch to officially supported Vertex AI message sending + safety setting converion for vertexai

* add system instructions

* switch to officially supported Vertex AI message sending + safety setting converion for vertexai

* fix bug in safety settings conversion

* add missing system instructions

* add safety settings to send message

* add support for credentials objects

* add type checkingchange project_id to project arg

* add more tests

* fix mock creation in test

* extend docstring

* fix errors with gemini message format in chats

* add option for vertexai response validation setting & improve docstring

* readding empty message handling

* add more tests

* extend and improve gemini vertexai jupyter notebook

* rename project arg to project_id and GOOGLE_API_KEY env var to GOOGLE_GEMINI_API_KEY

* adjust docstring formatting
2024-07-23 16:37:48 +00:00
Luca 5e937641cd
Fixed a typo in tool-use.ipynb (#3151)
Fixed a typo in tool-use.ipynb: comaptible -> compatible
2024-07-17 12:17:08 +00:00
Li Jiang 6ef5c3027d
Update qdrant notebook for new qdrant vectordb (#3140)
* Add qdrant notebook, rename notebooks

* Revert changes of pgvector notebook

* Fix assertion error
2024-07-16 06:44:48 +00:00
Zoltan Lux f55a98f32b
Demo Notebook for Using Gemini with VertexAI (#3032)
* add notebook for using Gemini with VertexAI

* add missing image

* remove part with workload identity federation

* Spelling

* Capitalisation and tweak on config note.

* autogen gemini gcp image

* fix formatting

* move gemini vertexai notebook to website/docs/topics/non-openai-models

* Adjust license

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

* remove auto-generated cell

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-07 22:11:35 +00:00
William W Wang f211994331
Update azure_cosmos_db.md (#3043) 2024-07-04 15:16:29 +00:00
HRUSHIKESH DOKALA b4a3f263b0
Cohere Client (#3004)
* initial setup for cohere client

* client update

* changes: ClintType added to the utils

* Revert "changes: ClintType added to the utils"

This reverts commit 80d6155228.

* Message conversion to Cohere, Parameter handling, cost calculation, streaming, tool calling

* Changed Groq references.

* minor fix

* tests added

* ref fix

* added in the workflows

* Fixed bug on non-streaming text generation

* fix: formatting

* Support Cohere rule for last message not USER when tool_results exist

* Added Cohere to documentation

* fixed client.py merge, removed unnecessary comments in groq.py, updated Cohere documentation, added Groq documentation

* log: ignored params

* update: custom exception added

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-07-03 14:33:03 +00:00
F. Hinkelmann 8133b7de22
Fix simple typo in chat-termination.ipynb (#3050) 2024-07-03 02:26:07 +00:00
Mark Sze fbf24a5f6f
Blog post for enhanced non-OpenAI model support (#2965)
* Blogpost for enhanced non-OpenAI model support

* update: quickstart with simple conversation

* update: authors details

* Added upfront text

* Added function calling, refined text. Added chess for alt-models notebook, updated examples listing.

* Added Groq to blog

* Removed acknowledgements

---------

Co-authored-by: Hk669 <hrushi669@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 19:28:24 +00:00
Qingyun Wu 3f1be8abcb
update readme (#3057)
* update readme

* Update README.md

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>

* add notion link

---------

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 17:49:58 +00:00
F. Hinkelmann 8e66590a1e
Fix simple typos in human-in-the-loop.ipynb (#3051) 2024-07-02 16:25:06 +00:00
William W Wang 5fd2609191
Create azure_cosmos_db in ecosystems.md (#2371)
* Create azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md
2024-06-27 23:34:10 +00: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
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
Qingyun Wu b4837215db
update notebook wording and format (#2991) 2024-06-21 19:58:35 +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
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
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
whichxjy d020cccf01
Fix repeated comma typo (#2940) 2024-06-14 13:48:45 +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
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
Chi Wang 2d6c8c012b
version update (#2908)
* version update

* version update
2024-06-10 18:23:51 +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