Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 18:30 UTC
docs: migrate AutoGen provider examples to ag2's LLMConfig API (#3833)
## Summary The AutoGen provider examples still used the legacy `llm_config={"config_list": [...]}` dict form, which ag2 0.14 (the distribution `composio-autogen` depends on since #3729) only keeps for backport compatibility and marks deprecated in `LLMConfig.ensure_config`. The install command also pulled `autogen-agentchat` (Microsoft's next-gen AutoGen package), which the provider never imports, while the `ag2` distribution the examples actually import from was only installed transitively. Fixes #3831 ## Changes - `docs/content/docs/providers/autogen.mdx`: example migrated to `LLMConfig({...})`, install line changed to `composio composio_autogen ag2`, added `ag2` keyword and a one-line note that the provider runs on the ag2 distribution - `python/providers/autogen/README.md`: same quickstart and install fixes - `python/providers/autogen/autogen_demo.py`: same `LLMConfig` migration `initiate_chat` is left as is: it isn't deprecated in ag2 0.14, and it's the flow `register_tools` (caller/executor) is verified against. ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactor/Chore - [x] Documentation - [ ] Breaking change ## How Has This Been Tested? - Verified in a fresh venv with the local `composio` + `composio-autogen` packages and `ag2==0.14.0`: the updated example constructs both agents, wraps a Composio tool via `AutogenProvider`, registers it with `register_tools`, and executes it through the executor's function map - `uv run nox -s chk` (ruff + mypy): green - `ruff format --check providers/autogen/`: clean - Docs: `bun run build` and `bun run lint:links` from `docs/`: green ## Screenshots (if applicable) ## Checklist - [x] I have read the Code of Conduct and this PR adheres to it - [x] I ran linters/tests locally and they passed - [x] I updated documentation as needed - [ ] I added tests or explain why not applicable - [x] I added a changeset if this change affects published packages ## Additional context No changeset added: docs and Python-only change, no published TypeScript package affected. No tests added: example/docs change with no runtime code paths; the updated example was exercised manually against ag2 0.14 as described above. --------- Co-authored-by: Alberto Schiabel <jkomyno@users.noreply.github.com> Co-authored-by: jkomyno <alberto@composio.dev>