|
5 | 5 |
|
6 | 6 | from pydantic import BaseModel, ConfigDict, Discriminator, Field, Tag |
7 | 7 |
|
| 8 | +from uipath.models import Connection |
| 9 | + |
8 | 10 |
|
9 | 11 | class AgentResourceType(str, Enum): |
10 | 12 | """Enum for resource types.""" |
@@ -95,10 +97,27 @@ class AgentProcessToolResourceConfig(BaseAgentToolResourceConfig): |
95 | 97 | ) |
96 | 98 |
|
97 | 99 |
|
| 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 | + |
98 | 116 | class AgentIntegrationToolResourceConfig(BaseAgentToolResourceConfig): |
99 | 117 | """Tool resource with tool-specific properties.""" |
100 | 118 |
|
101 | 119 | type: Literal[AgentToolType.INTEGRATION] = AgentToolType.INTEGRATION |
| 120 | + properties: AgentIntegrationToolProperties |
102 | 121 |
|
103 | 122 | model_config = ConfigDict( |
104 | 123 | validate_by_name=True, validate_by_alias=True, extra="allow" |
|
0 commit comments