Skip to content

Commit a2bf1cf

Browse files
authored
Merge pull request #1047 from UiPath/fix/optional-resources-field
fix: make resources field optional with empty default in AgentDefinition
2 parents 390289d + addbb07 commit a2bf1cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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.2.41"
3+
version = "2.2.42"
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"

src/uipath/agent/models/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ class AgentDefinition(BaseModel):
700700
messages: List[AgentMessage]
701701

702702
version: str = "1.0.0"
703-
resources: List[AgentResourceConfig]
703+
resources: List[AgentResourceConfig] = Field(default_factory=list)
704704
features: List[Any] = Field(default_factory=list)
705705
settings: AgentSettings
706706

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)