initial commit
This commit is contained in:
17
venv/Lib/site-packages/langchain_classic/env.py
Normal file
17
venv/Lib/site-packages/langchain_classic/env.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import platform
|
||||
from functools import lru_cache
|
||||
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def get_runtime_environment() -> dict:
|
||||
"""Get information about the LangChain runtime environment."""
|
||||
# Lazy import to avoid circular imports
|
||||
from langchain_classic import __version__
|
||||
|
||||
return {
|
||||
"library_version": __version__,
|
||||
"library": "langchain-classic",
|
||||
"platform": platform.platform(),
|
||||
"runtime": "python",
|
||||
"runtime_version": platform.python_version(),
|
||||
}
|
||||
Reference in New Issue
Block a user