Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
1import platform2from functools import lru_cache3 4 5@lru_cache(maxsize=1)6def get_runtime_environment() -> dict:7    """Get information about the LangChain runtime environment."""8    # Lazy import to avoid circular imports9    from langchain_classic import __version__10 11    return {12        "library_version": __version__,13        "library": "langchain-classic",14        "platform": platform.platform(),15        "runtime": "python",16        "runtime_version": platform.python_version(),17    }18 
codekingpro/portable-devtools · Team Ai