Skip to content

Chore/adjust docs #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged
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
3 changes: 3 additions & 0 deletions docs/how_to_contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--8<--
CONTRIBUTING.md
--8<--
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
56 changes: 0 additions & 56 deletions src/uipath/_services/actions_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"),
Expand All @@ -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(
Expand All @@ -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")
Expand Down Expand Up @@ -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")

Expand All @@ -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
Loading