Change8
Error1 reports

Fix ReferenceNotFoundError

in AutoGen

Solution

ReferenceNotFoundError in AutoGen often occurs when a required tool or function is not correctly defined or accessible within the agent's configuration. Ensure that all custom tools or functions, especially those used by custom agents (like those in mcp_server_tools), are properly defined within the Agent's tools list or function map, and that the calling agent has access to them by either inheritance or direct definition. Also, verify that any necessary modules for those tools are installed and importable in the environment where AutoGen is running.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Nov 26, 2025
Last reported:Nov 26, 2025

Need More Help?

View the full changelog and migration guides for AutoGen

View AutoGen Changelog