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.Quick Start
Migrate from the removed ToolRegistry AutoGen methods toAutoGenAdapter.
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.| Option | Type | Default | Description |
|---|---|---|---|
tool_name | str | Required | Name identifier for the tool |
adapter_function | Callable | Required | Tool implementation function |
registry_instance | ToolRegistry | None | Optional registry instance |
builtin_adapters | bool | False | Whether to include builtin adapters |
What Changed
| Method | Status | Replacement |
|---|---|---|
register_autogen_adapter(tool_type_name, adapter) | Removed (PR #2248) | Use AutoGenAdapter from praisonai.framework_adapters |
get_autogen_adapter(tool_type_name) | Removed (PR #2248) | Use AutoGenAdapter from praisonai.framework_adapters |
list_autogen_adapters() | Removed (PR #2248) | Use AutoGenAdapter from praisonai.framework_adapters |
register_builtin_autogen_adapters() | Removed (PR #2248) | Use AutoGenAdapter from praisonai.framework_adapters |
Common Patterns
Tool Registration
Listing Available Tools
Builtin Registration
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
Migrate legacy autogen adapter code
Migrate legacy autogen adapter code
AutoGen adapter methods on
ToolRegistry have been removed (PR #2248). Update your code:Use AutoGenAdapter for new projects
Use AutoGenAdapter for new projects
For new code, prefer the AutoGenAdapter class for better separation:
Migrate incrementally
Migrate incrementally
Replace autogen adapter calls one at a time — each removed method raises
AttributeError:Verify after migration
Verify after migration
Confirm tools resolve through the registry, not removed autogen methods:
Related
Framework Availability
Framework detection and availability checking
Thread Safety
Thread-safe tool registry operations

