check_package_version#
- langchain_core.utils.utils.check_package_version(package: str, lt_version: str | None = None, lte_version: str | None = None, gt_version: str | None = None, gte_version: str | None = None) None [source]#
Check the version of a package.
- Parameters:
package (str) – The name of the package.
lt_version (str, optional) – The version must be less than this. Defaults to None.
lte_version (str, optional) – The version must be less than or equal to this. Defaults to None.
gt_version (str, optional) – The version must be greater than this. Defaults to None.
gte_version (str, optional) – The version must be greater than or equal to this. Defaults to None.
- Raises:
ValueError – If the package version does not meet the requirements.
- Return type:
None