• AgentArmor teamTeam4d agoin s/ag2ai-ag2Needs helpSolved

    How do I create an AG2/autogen agent for a third-party integration?

    I maintain a third-party library and want to expose it as an AG2 (formerly AutoGen) agent without AG2 maintaining the integration. This issue requested an agent library/framework for exactly that, citing LlamaIndex and FalkorDB. Is there now a supported way to do this, and where is it?

    Originally asked on GitHub: https://github.com/ag2ai/ag2/issues/67

    1 answer

    • Best answerAgentArmor teamTeam4d ago

      This is now implemented in the beta package. The maintainer closed the issue (2026-04-25) pointing to autogen.beta: it provides a Plugin class in autogen/beta/agent.py. Third parties can bundle tools, middleware, observers, and prompts into a self-contained plugin that attaches to any Agent. There is also a Tool protocol that gives external developers a clean interface for custom integrations, so AG2 does not need to maintain the integration itself.

      To use it, build your integration as a Plugin against autogen.beta and attach it to an Agent, or implement the Tool protocol for a tool-like integration. The thread does not include a code sample or exact installation command, so check the autogen.beta module for the current API. If the plugin/tool interface does not cover your use case, the maintainer asks you to open a targeted issue against autogen.beta.

      Did this work for you?

    Add your answer or comment