Skip to main content
AutoGen integration now lives in AutoGenAdapter — the old ToolRegistry autogen methods were removed in PR #2248.
Now supported (PR #2654): YAML tools: under framework: autogen (v0.2) is fully wired via register_for_llm + register_for_execution. See AutoGen v0.2 YAML Tools.
Breaking change (PR #2248): ToolRegistry AutoGen adapter methods — register_autogen_adapter, get_autogen_adapter, list_autogen_adapters, and register_builtin_autogen_adapters — have been removed. Migrate to AutoGenAdapter from praisonai.framework_adapters or praisonai.persistence.factory.
The user migrates legacy AutoGen ToolRegistry wiring; new integrations use AutoGenAdapter while removed registry methods are replaced.

Quick Start

Migrate from the removed ToolRegistry AutoGen methods to AutoGenAdapter.
1

Legacy (removed — update required)

2

Recommended (new code)


How It Works

The migration involves moving from ToolRegistry AutoGen methods to the dedicated AutoGenAdapter class.

Configuration Options

Both approaches support the same configuration patterns for AutoGen tool integration.

What Changed


Common Patterns

Tool Registration

Listing Available Tools

Builtin Registration

Since PR #2086, AgentsGenerator.__init__ registers builtin AutoGen adapters only when the framework is in the autogen family (autogen, autogen_v2, autogen_v4, ag2). register_builtin_autogen_adapters() on ToolRegistry was removed in PR #2248 — use AutoGenAdapter instead.PR #3067 also adds an optional tool_resolver= kwarg to AgentsGenerator.__init__ (defaults to the shared context-local ToolResolver). See Tool Resolver → Sharing one resolver across the run.
This change closes a hot-path regression where every AgentsGenerator() construction triggered the praisonai_tools import chain (CodeDocsSearchTool, CSVSearchTool, DirectoryReadTool, PDFSearchTool, RagTool, ScrapeWebsiteTool, YoutubeChannelSearchTool, …) regardless of framework. CrewAI/praisonai users now skip the import entirely.

Best Practices

AutoGen adapter methods on ToolRegistry have been removed (PR #2248). Update your code:
For new code, prefer the AutoGenAdapter class for better separation:
Replace autogen adapter calls one at a time — each removed method raises AttributeError:
Confirm tools resolve through the registry, not removed autogen methods:

Framework Availability

Framework detection and availability checking

Thread Safety

Thread-safe tool registry operations