# Copyright 2025 © BeeAI a Series of LF Projects, LLC
# SPDX-License-Identifier: Apache-2.0

# This file is auto-generated by scripts/generate_shims.py

import warnings
from typing import Any

import beeai_framework.adapters.agentstack.backend as _new_module

warnings.warn(
    "beeai_framework.adapters.beeai_platform.backend is deprecated and will be removed in a future release. "
    "Please use beeai_framework.adapters.agentstack.backend instead.",
    DeprecationWarning,
    stacklevel=2,
)


def __getattr__(name: str) -> Any:
    final_name = name.replace("BeeAIPlatform", "AgentStack")
    if hasattr(_new_module, final_name) and final_name != name:
        warnings.warn(
            f"The imported entry '{name}' has been renamed to '{final_name}'.",
            DeprecationWarning,
            stacklevel=2,
        )
    return getattr(_new_module, final_name)
