Skip to content

Commit 59365ec

Browse files
feat(agent): add http-request internal tool type (#1830)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 71c96fe commit 59365ec

4 files changed

Lines changed: 40 additions & 2 deletions

File tree

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.13.15"
3+
version = "2.13.16"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath/src/uipath/agent/models/agent.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class AgentInternalToolType(str, CaseInsensitiveEnum):
127127
ANALYZE_FILES = "analyze-attachments"
128128
DEEP_RAG = "deep-rag"
129129
BATCH_TRANSFORM = "batch-transform"
130+
HTTP_REQUEST = "http-request"
130131

131132

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

10481049

1050+
class AgentInternalHttpRequestToolProperties(BaseResourceProperties):
1051+
"""Agent internal http request tool properties model."""
1052+
1053+
tool_type: Literal[AgentInternalToolType.HTTP_REQUEST] = Field(
1054+
alias="toolType", default=AgentInternalToolType.HTTP_REQUEST, frozen=True
1055+
)
1056+
1057+
10491058
AgentInternalToolProperties = Annotated[
10501059
Union[
10511060
AgentInternalAnalyzeFilesToolProperties,
10521061
AgentInternalDeepRagToolProperties,
10531062
AgentInternalBatchTransformToolProperties,
1063+
AgentInternalHttpRequestToolProperties,
10541064
],
10551065
Field(discriminator="tool_type"),
10561066
_case_insensitive_enum_validator("tool_type", AgentInternalToolType, "toolType"),

packages/uipath/tests/agent/models/test_agent.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
AgentIntegrationToolResourceConfig,
2828
AgentInternalBatchTransformToolProperties,
2929
AgentInternalDeepRagToolProperties,
30+
AgentInternalHttpRequestToolProperties,
3031
AgentInternalToolResourceConfig,
3132
AgentInternalToolType,
3233
AgentIxpExtractionResourceConfig,
@@ -3157,6 +3158,24 @@ def test_case_insensitive_enums(self):
31573158
"description": "Test batch transform tool",
31583159
"isEnabled": True,
31593160
},
3161+
{
3162+
"$resourceType": "Tool",
3163+
"type": "Internal",
3164+
"inputSchema": {
3165+
"type": "object",
3166+
"properties": {},
3167+
},
3168+
"outputSchema": {"type": "object", "properties": {}},
3169+
"arguments": {},
3170+
"settings": {"timeout": 0, "maxAttempts": 0, "retryDelay": 0},
3171+
"properties": {
3172+
"toolType": "Http-Request",
3173+
},
3174+
"argumentProperties": {},
3175+
"name": "HTTP Request Tool",
3176+
"description": "Test http request tool",
3177+
"isEnabled": True,
3178+
},
31603179
],
31613180
"guardrails": [
31623181
{
@@ -3279,6 +3298,15 @@ def test_case_insensitive_enums(self):
32793298
== BatchTransformWebSearchGrounding.ENABLED
32803299
)
32813300

3301+
http_request_tool = config.resources[5]
3302+
assert isinstance(http_request_tool, AgentInternalToolResourceConfig)
3303+
assert isinstance(
3304+
http_request_tool.properties, AgentInternalHttpRequestToolProperties
3305+
)
3306+
assert (
3307+
http_request_tool.properties.tool_type == AgentInternalToolType.HTTP_REQUEST
3308+
)
3309+
32823310
assert config.guardrails is not None
32833311
custom_guardrail = config.guardrails[0]
32843312
assert isinstance(custom_guardrail, AgentCustomGuardrail)

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)