codekingpro/portable-devtools
114k
1"""Eleven Labs Services Tools."""2 3from typing import TYPE_CHECKING, Any4 5from langchain_classic._api import create_importer6 7if TYPE_CHECKING:8 from langchain_community.tools import ElevenLabsText2SpeechTool9 10# Create a way to dynamically look up deprecated imports.11# Used to consolidate logic for raising deprecation warnings and12# handling optional imports.13DEPRECATED_LOOKUP = {"ElevenLabsText2SpeechTool": "langchain_community.tools"}14 15_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)16 17 18def __getattr__(name: str) -> Any:19 """Look up attributes dynamically."""20 return _import_attribute(name)21 22 23__all__ = [24 "ElevenLabsText2SpeechTool",25]26 