Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
1"""Utilities for getting information about the runtime environment."""2 3import platform4from functools import lru_cache5 6from langchain_core import __version__7 8 9@lru_cache(maxsize=1)10def get_runtime_environment() -> dict:11    """Get information about the LangChain runtime environment.12 13    Returns:14        A dictionary with information about the runtime environment.15    """16    return {17        "library_version": __version__,18        "library": "langchain-core",19        "platform": platform.platform(),20        "runtime": "python",21        "runtime_version": platform.python_version(),22    }23 
codekingpro/portable-devtools · Team Ai