diff --git a/reasonify-headless/reasonify/tools/install.py b/reasonify-headless/reasonify/tools/install.py index 4ab538b..21f00d0 100644 --- a/reasonify-headless/reasonify/tools/install.py +++ b/reasonify-headless/reasonify/tools/install.py @@ -4,10 +4,7 @@ @tool -async def pip_install(requirements: str | list[str]): - """ - Install a package or list of packages to this runtime environment. - If you are going to use a 3-party library, you should install it first. - """ +async def pip_install(*requirements: str): + """install 3rd-party packages to this runtime environment""" - return await install(requirements, keep_going=True) + return await install(sum(map(str.split, requirements), []), keep_going=True) diff --git a/reasonify-headless/version.py b/reasonify-headless/version.py index ae73625..bbab024 100644 --- a/reasonify-headless/version.py +++ b/reasonify-headless/version.py @@ -1 +1 @@ -__version__ = "0.1.3" +__version__ = "0.1.4"