Get Version • AI Agent SDK
get_version: Get the version string from pyproject.toml.
get_version
Function
</div>
This function is defined in the _version module.
Get the version string from pyproject.toml.
Signature
def get_version() -> strReturns
ResponseField
strVersion string (e.g., “1.6.52”)
Exceptions
RuntimeError
If version cannot be found or parsed
Uses
Pathpyproject_path.existsRuntimeErrorpyproject_path.read_textre.searchmatch.groupwarnings.warn
Source
View on GitHubpraisonaiagents/_version.py at line 12