Skip to content

Commit 4e6c725

Browse files
authored
Merge pull request #605 from UiPath/akshaya/agent_definitions
feat(AgentDefinitions): improving integration resource definition
2 parents 06f2f88 + 7c2a180 commit 4e6c725

3 files changed

Lines changed: 908 additions & 889 deletions

File tree

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.1.56"
3+
version = "2.1.57"
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.10"

src/uipath/agent/models/agent.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from pydantic import BaseModel, ConfigDict, Discriminator, Field, Tag
77

8+
from uipath.models import Connection
9+
810

911
class AgentResourceType(str, Enum):
1012
"""Enum for resource types."""
@@ -95,10 +97,27 @@ class AgentProcessToolResourceConfig(BaseAgentToolResourceConfig):
9597
)
9698

9799

100+
class AgentIntegrationToolProperties(BaseModel):
101+
"""Properties specific to tool configuration."""
102+
103+
tool_path: str = Field(..., alias="toolPath")
104+
object_name: str = Field(..., alias="objectName")
105+
tool_display_name: str = Field(..., alias="toolDisplayName")
106+
tool_description: str = Field(..., alias="toolDescription")
107+
method: str = Field(..., alias="method")
108+
connection: Connection = Field(..., alias="connection")
109+
body_structure: dict[str, Any] = Field(..., alias="bodyStructure")
110+
111+
model_config = ConfigDict(
112+
validate_by_name=True, validate_by_alias=True, extra="allow"
113+
)
114+
115+
98116
class AgentIntegrationToolResourceConfig(BaseAgentToolResourceConfig):
99117
"""Tool resource with tool-specific properties."""
100118

101119
type: Literal[AgentToolType.INTEGRATION] = AgentToolType.INTEGRATION
120+
properties: AgentIntegrationToolProperties
102121

103122
model_config = ConfigDict(
104123
validate_by_name=True, validate_by_alias=True, extra="allow"

0 commit comments

Comments
 (0)