Skip to content

Commit

Permalink
core[minor]: Add other langgraph packages to sys_info (#28190)
Browse files Browse the repository at this point in the history
Add other langgraph packages to sys_info output
  • Loading branch information
eyurtsev authored Nov 19, 2024
1 parent 97f752c commit 5599a0a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions libs/core/langchain_core/sys_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,24 @@ def print_sys_info(*, additional_pkgs: Sequence[str] = ()) -> None:
# Packages that do not start with "langchain" prefix.
other_langchain_packages = [
"langserve",
"langgraph",
"langsmith",
]

langchain_pkgs = [
name for _, name, _ in pkgutil.iter_modules() if name.startswith("langchain")
]

langgraph_pkgs = [
name for _, name, _ in pkgutil.iter_modules() if name.startswith("langgraph")
]

all_packages = sorted(
set(langchain_pkgs + other_langchain_packages + list(additional_pkgs))
set(
langchain_pkgs
+ langgraph_pkgs
+ other_langchain_packages
+ list(additional_pkgs)
)
)

# Always surface these packages to the top
Expand Down

0 comments on commit 5599a0a

Please sign in to comment.