Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath"
version = "2.10.23"
version = "2.10.24"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
4 changes: 3 additions & 1 deletion packages/uipath/src/uipath/_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"debug": "cli_debug",
"assets": "services.cli_assets",
"buckets": "services.cli_buckets",
"list-models": "cli_list_models",
Copy link
Collaborator

@radu-mocanu radu-mocanu Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"list-models": "cli_list_models",
"list models": "cli_list_models",

we should follow a standard format for CLI commands

list models
list buckets 
list assets 
etc.

Copy link
Collaborator

@radu-mocanu radu-mocanu Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would create a generic cli_list, similar to cli_add and match by resource type

}

_RUNTIME_COMMANDS = {"init", "dev", "run", "eval", "debug", "server"}
Expand Down Expand Up @@ -78,7 +79,8 @@ def _load_command(name: str):

module_name = _LAZY_COMMANDS[name]
mod = __import__(f"uipath._cli.{module_name}", fromlist=[name])
return getattr(mod, name)
attr_name = name.replace("-", "_")
return getattr(mod, attr_name)


def __getattr__(name: str):
Expand Down
17 changes: 17 additions & 0 deletions packages/uipath/src/uipath/_cli/cli_list_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import click

from ._utils._service_base import ServiceCommandBase, service_command


@click.command(name="list-models")
Copy link
Contributor

@ionmincu ionmincu Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would also add a testcase for this 😄 , or alter an existing one to also run this cli command

@click.option(
"--format",
type=click.Choice(["json", "table", "csv"]),
help="Output format (overrides global)",
)
@click.option("--output", "-o", type=click.Path(), help="Output file")
@service_command
async def list_models(ctx, format, output):
"""List available LLM models."""
client = ServiceCommandBase.get_client(ctx)
return await client.agenthub.get_available_llm_models_async()
2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading