lagent.version

Module Contents

Functions

parse_version_info(version_str[, length])

Parse a version string into a tuple.

Attributes

version_info

lagent.version.parse_version_info(version_str, length=4)

Parse a version string into a tuple.

Parameters:
  • version_str (str) – The version string.

  • length (int) – The maximum number of version levels. Default: 4.

Returns:

The version info, e.g., “1.3.0” is parsed into

(1, 3, 0, 0, 0, 0), and “2.0.0rc1” is parsed into (2, 0, 0, 0, ‘rc’, 1) (when length is set to 4).

Return type:

tuple[int | str]

lagent.version.version_info