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.13.15"
version = "2.13.16"
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
10 changes: 10 additions & 0 deletions packages/uipath/src/uipath/agent/models/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class AgentInternalToolType(str, CaseInsensitiveEnum):
ANALYZE_FILES = "analyze-attachments"
DEEP_RAG = "deep-rag"
BATCH_TRANSFORM = "batch-transform"
HTTP_REQUEST = "http-request"


class AgentEscalationRecipientType(str, CaseInsensitiveEnum):
Expand Down Expand Up @@ -1046,11 +1047,20 @@ class AgentInternalBatchTransformToolProperties(BaseResourceProperties):
settings: AgentInternalBatchTransformSettings = Field(..., alias="settings")


class AgentInternalHttpRequestToolProperties(BaseResourceProperties):
"""Agent internal http request tool properties model."""

tool_type: Literal[AgentInternalToolType.HTTP_REQUEST] = Field(
alias="toolType", default=AgentInternalToolType.HTTP_REQUEST, frozen=True
)


AgentInternalToolProperties = Annotated[
Union[
AgentInternalAnalyzeFilesToolProperties,
AgentInternalDeepRagToolProperties,
AgentInternalBatchTransformToolProperties,
AgentInternalHttpRequestToolProperties,
],
Field(discriminator="tool_type"),
_case_insensitive_enum_validator("tool_type", AgentInternalToolType, "toolType"),
Expand Down
28 changes: 28 additions & 0 deletions packages/uipath/tests/agent/models/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
AgentIntegrationToolResourceConfig,
AgentInternalBatchTransformToolProperties,
AgentInternalDeepRagToolProperties,
AgentInternalHttpRequestToolProperties,
AgentInternalToolResourceConfig,
AgentInternalToolType,
AgentIxpExtractionResourceConfig,
Expand Down Expand Up @@ -3157,6 +3158,24 @@ def test_case_insensitive_enums(self):
"description": "Test batch transform tool",
"isEnabled": True,
},
{
"$resourceType": "Tool",
"type": "Internal",
"inputSchema": {
"type": "object",
"properties": {},
},
"outputSchema": {"type": "object", "properties": {}},
"arguments": {},
"settings": {"timeout": 0, "maxAttempts": 0, "retryDelay": 0},
"properties": {
"toolType": "Http-Request",
},
"argumentProperties": {},
"name": "HTTP Request Tool",
"description": "Test http request tool",
"isEnabled": True,
},
],
"guardrails": [
{
Expand Down Expand Up @@ -3279,6 +3298,15 @@ def test_case_insensitive_enums(self):
== BatchTransformWebSearchGrounding.ENABLED
)

http_request_tool = config.resources[5]
assert isinstance(http_request_tool, AgentInternalToolResourceConfig)
assert isinstance(
http_request_tool.properties, AgentInternalHttpRequestToolProperties
)
assert (
http_request_tool.properties.tool_type == AgentInternalToolType.HTTP_REQUEST
)

assert config.guardrails is not None
custom_guardrail = config.guardrails[0]
assert isinstance(custom_guardrail, AgentCustomGuardrail)
Expand Down
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