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.14.44"
version = "2.14.45"
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PromptUserSettings(BaseModel):


_AGENT_SYSTEM_PROMPT_PREFIX_TEMPLATE = """You are {{CONVERSATIONAL_AGENT_SERVICE_PREFIX_agentName}}.
The current date is: {{CONVERSATIONAL_AGENT_SERVICE_PREFIX_currentDate}}.
Current date and time (UTC, rounded down to the hour): {{CONVERSATIONAL_AGENT_SERVICE_PREFIX_currentDate}}
Understand user goals through conversation and use appropriate tools to fulfill requests.

=====================================================================
Expand Down Expand Up @@ -162,8 +162,9 @@ def get_chat_system_prompt(
Returns:
The complete system prompt string
"""
# Format date as ISO 8601 (yyyy-MM-ddTHH:mmZ)
formatted_date = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%MZ")
# Truncated to the hour to increase prompt-caching hits
now = datetime.now(timezone.utc)
formatted_date = f"{now:%A, %B} {now.day}, {now:%Y}, {now:%H}:00 UTC"

prompt = _AGENT_SYSTEM_PROMPT_PREFIX_TEMPLATE
prompt = prompt.replace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_generate_system_prompt_includes_agent_name(self):
assert "You are Customer Support Bot." in prompt

def test_generate_system_prompt_includes_current_date(self):
"""Current date in ISO 8601 format is included."""
"""Current date is included, truncated to the hour."""
# Mock datetime to have a predictable value
mock_dt = datetime(2026, 1, 15, 10, 30, tzinfo=timezone.utc)
with patch(
Expand All @@ -123,7 +123,8 @@ def test_generate_system_prompt_includes_current_date(self):
user_settings=None,
)

assert "2026-01-15T10:30Z" in prompt
assert "Thursday, January 15, 2026, 10:00 UTC" in prompt
assert "10:30" not in prompt

def test_generate_system_prompt_includes_attachments_section(self):
"""Attachments template is always included."""
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