Move DSPy utilities from agentchat to autogen-ext package

Move _utils.py containing DSPy-specific utilities from autogen_agentchat.optimize to autogen_ext.optimize to avoid DSPy dependency in the core agentchat package. Update import in dspy.py backend accordingly.

Co-authored-by: ekzhu <320302+ekzhu@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-06-17 02:54:31 +00:00
parent 4142e90445
commit d1db7c85bf
2 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ if TYPE_CHECKING:
dspy = None dspy = None
from autogen_agentchat.optimize._backend import BaseBackend from autogen_agentchat.optimize._backend import BaseBackend
from autogen_agentchat.optimize._utils import AutoGenLM, DSPyAgentWrapper from ._utils import AutoGenLM, DSPyAgentWrapper
def _check_dspy_available() -> None: def _check_dspy_available() -> None: