langchain/env.py/get_runtime_environment
def get_runtime_environment() -> dict:
    """Get information about the environment."""
    # Lazy import to avoid circular imports
    from langchain import __version__

    return {
        "library_version": __version__,
        "platform": platform.platform(),
        "runtime": "python",
        "runtime_version": platform.python_version(),
    }