515 Commits

Author SHA1 Message Date
simrat-code
0806b5dfa2 typo fix in llm_configuration.ipynb (#5781)
There is double 'can can' in the documentation.

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-03-20 17:26:38 -07:00
Victor Dibia
9f428880b3 Fix 0.2 Quickstart example llm_config issue (#4060)
* fix bug in getting started guide for 0.2 #2038

* remove uneeded submodule

* remove uneeded submodule

* remove unecessary file
2024-11-04 19:58:01 -08:00
Luke Hsiao
5ad267707d docs: fix bullet formatting for kubernetes pod executor (#3911)
While the bullets are rendered correctly in GitHub when looking at this
file, the bullet formatting is incorrect on the actual documentation
site [[1]]. This patch adds a newline to fix that formatting.

A screenshot of the incorrect formatting on the site is included in
the PR.

[1]: https://microsoft.github.io/autogen/0.2/docs/topics/code-execution/kubernetes-pod-commandline-code-executor
2024-10-23 13:14:08 -04:00
Daniel Chalef
76a4bd05d9 Add Zep ecosystem doc and notebook (#3681)
* Add Zep ecosystem doc and notebook

* fix linting and formatting issues

* Fix url

* Update agent-memory-with-zep.md

* add notebook metadata

* newline

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-17 10:08:30 -07:00
Lokesh Goel
1960eaba1a Add Couchbase Vector DB Example Notebook and Minor Bug Fix (#3804) 2024-10-17 14:18:03 +02:00
kiyoung
02977ee250 K8s code executor (#3419)
* remove coding directory from gitignore

* add k8s PodCommandLineCodeExecutor

* add error handlings and custom pod spec parameter

* change parameter name to kube_config_file

* add param container_name

* add test case for PodCommandLineCodeExecutor

* add test guide

* draft for docs notebook

* test code fix indent

* add document

* add license info

* revise documentation

* modify document: install autogen-agentchat

* apply pre-commit

* revert change to gitignore

* error handling: move import block into try block

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-16 12:22:50 -07:00
William Espegren
0c4ae702d7 Notebook on web crawling (#2720)
* Web crawling with Spider

* reset run count

* spell correction

* crawl agent

* reset execution counters

* correct return types

* metadat for website

* format

* Update notebook/agentchat_webcrawling_with_spider.ipynb

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update website/docs/Examples.md

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update agentchat_webcrawling_with_spider.ipynb

* Update agentchat_webcrawling_with_spider.ipynb

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-10-11 18:27:15 -07:00
Matteo Frattaroli
ec4f3c0f19 Fix #2643 - groupchat model registration (#2696)
* remove unused import statement

* fix #2643: register custom model clients within GroupChat

* add docs for fix #2643

* Update website/docs/topics/groupchat/using_custom_models.md

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

* Update website/docs/topics/groupchat/using_custom_models.md

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

* fix: removed unnecessary llm_config from checking agent

* fix: handle missing config or "config_list" key in config

* fix: code formatting

* Isolate method for internal agents creation

* Add unit test to verify that internal agents' client actually registers ModelClient class

* fix: function arguments formatting

* chore: prepend "select_speaker_auto_" to llm_config and model_client_cls attributes in GroupChat

* feat: use selector's llm_config for speaker selection agent if none is passed to GroupChat

* Update test/agentchat/test_groupchat.py

* Update groupchat.py - moved class parameters around, added to docstring

* Update groupchat.py - added selector to async select speaker functions

* Update test_groupchat.py - Corrected test cases for custom model client class

* Update test_groupchat.py pre-commit tidy

---------

Co-authored-by: Matteo Frattaroli <m.frattroli97@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-10-11 09:05:23 -07:00
Jack Gerrits
3ebd7aeec2 Update links on 0.2 website (#3734) 2024-10-10 13:16:25 -04:00
Juan Diego Herrera
f32472e9ce Fix small typo in the docs 2024-10-03 17:14:03 -07:00
Jack Gerrits
9b79094891 Add blog post announcing the new architecture preview (#3599) 2024-10-02 18:04:33 +00:00
Henry Tu
249a57bfa2 Fix typos in Cerebras doc (#3590)
* Fix typos in Cerebras doc

Fix typo in Cerebras documentation

* FIx formatting
2024-10-02 15:10:55 +00:00
Jack Gerrits
289e0f4751 Update version to 0.2.36, update package name (#3592)
* Update version to 0.2.36, update package name

* update publish

* Formatting

* Update README.md

* update email
2024-10-02 00:05:11 +00:00
Mark Sze
3a6b88ef8a Ollama Client (with tool calling) (#3056)
* Ollama client! With function calling. Initial commit, client, no docs or tests yet.

* Tidy comments

* Cater for missing prompt token count

* Removed use of eval, added json parsing support library

* Fix to the use of the JSON fix library, handling of Mixtral escape sequence

* Fixed 'name' in JSON bug, catered for single function call JSON without []

* removing role='tool' from inner tool result to reduce token usage.

* Added Ollama documentation and updated library versions

* Added Native Ollama tool calling (v0.3.0 req.) as well as hide/show tools support

* Added native tool calling and hide_tools parameter to documentation

* Update to Ollama 0.3.1, added tests

* Tweak to manual function calling prompt to improve number handling.

* Fix formatting

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

* Fix formatting

* Better error message

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-01 22:06:52 +00:00
Henry Tu
3fdf8dea22 Add Cerebras Integration (#3585)
* Cerebras Integration

* Address feedback

* Fix typo

* Run formatter
2024-09-30 21:14:55 +00:00
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