From 9f7be1f9a04dc8dd15a5dff74cc3598b2c96359f Mon Sep 17 00:00:00 2001 From: Gheorghita Hurmuz Date: Thu, 10 Apr 2025 11:21:15 +0300 Subject: [PATCH 1/2] docs: update docs for actions --- src/uipath/_services/actions_service.py | 56 ------------------------- 1 file changed, 56 deletions(-) diff --git a/src/uipath/_services/actions_service.py b/src/uipath/_services/actions_service.py index f99d528a5..fdd4d451a 100644 --- a/src/uipath/_services/actions_service.py +++ b/src/uipath/_services/actions_service.py @@ -19,18 +19,6 @@ def _create_spec( app_key: str = "", app_version: int = -1, ) -> RequestSpec: - """Creates a request specification for creating a new action task. - - Args: - title: The title of the action task - data: Optional dictionary containing input data for the action - action_schema: Optional schema defining the action's inputs, outputs, and outcomes - app_key: The unique identifier of the application - app_version: The version of the application - - Returns: - RequestSpec: A specification for creating an action task - """ field_list = [] outcome_list = [] if action_schema: @@ -113,14 +101,6 @@ def _create_spec( def _retrieve_action_spec(action_key: str) -> RequestSpec: - """Creates a request specification for retrieving an action by its key. - - Args: - action_key: The unique identifier of the action to retrieve - - Returns: - RequestSpec: A specification for retrieving an action - """ return RequestSpec( method="GET", endpoint=Endpoint("/orchestrator_/tasks/GenericTasks/GetTaskDataByKey"), @@ -129,15 +109,6 @@ def _retrieve_action_spec(action_key: str) -> RequestSpec: def _assign_task_spec(task_key: str, assignee: str) -> RequestSpec: - """Creates a request specification for assigning a task to a user. - - Args: - task_key: The unique identifier of the task - assignee: The username or email of the user to assign the task to - - Returns: - RequestSpec: A specification for assigning a task - """ return RequestSpec( method="POST", endpoint=Endpoint( @@ -150,17 +121,6 @@ def _assign_task_spec(task_key: str, assignee: str) -> RequestSpec: def _retrieve_app_key_spec(app_name: str) -> RequestSpec: - """Creates a request specification for retrieving an application's key by its name. - - Args: - app_name: The name of the application to retrieve - - Returns: - RequestSpec: A specification for retrieving an application key - - Raises: - Exception: If the tenant ID environment variable is not set - """ tenant_id = os.getenv(ENV_TENANT_ID, None) if not tenant_id: raise Exception(f"{ENV_TENANT_ID} env var is not set") @@ -357,17 +317,6 @@ async def __get_app_key_and_schema_async( def __get_app_key_and_schema( self, app_name: str ) -> Tuple[str, Optional[ActionSchema]]: - """Retrieves an application's key and schema synchronously. - - Args: - app_name: The name of the application to retrieve - - Returns: - Tuple[str, Optional[ActionSchema]]: A tuple containing the application key and schema - - Raises: - Exception: If app_name is not provided - """ if not app_name: raise Exception("appName or appKey is required") @@ -392,9 +341,4 @@ def __get_app_key_and_schema( @property def custom_headers(self) -> Dict[str, str]: - """Gets the custom headers required for folder context. - - Returns: - Dict[str, str]: A dictionary of custom headers - """ return self.folder_headers From f013841f6b0cae0459cbb7747b87896e64a575aa Mon Sep 17 00:00:00 2001 From: Gheorghita Hurmuz Date: Thu, 10 Apr 2025 11:26:08 +0300 Subject: [PATCH 2/2] chore: fix path for docs --- docs/how_to_contribute.md | 3 +++ mkdocs.yml | 6 ++++-- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 docs/how_to_contribute.md diff --git a/docs/how_to_contribute.md b/docs/how_to_contribute.md new file mode 100644 index 000000000..b8b5db8f1 --- /dev/null +++ b/docs/how_to_contribute.md @@ -0,0 +1,3 @@ +--8<-- +CONTRIBUTING.md +--8<-- diff --git a/mkdocs.yml b/mkdocs.yml index 50591cf8e..4c5685231 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -34,9 +34,11 @@ theme: logo: assets/uipath-logo.svg nav: - - Home: index.md + - Home: + - index.md + - How To Contribute: how_to_contribute.md - Langchain: - - plugins/uipath-langchain-python/Readme.md + - plugins/uipath-langchain-python/README.md - Chat models: plugins/uipath-langchain-python/docs/chat_models.md - Context Grounding Chain: plugins/uipath-langchain-python/docs/context_grounding_chain.md - Context Grounding Retriever: plugins/uipath-langchain-python/docs/context_grounding_retriever.md diff --git a/pyproject.toml b/pyproject.toml index 3024967d0..a5c0d7e0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath" -version = "2.0.4.dev3" +version = "2.0.4.dev4" 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.10"