Skip to content

feat: eliminate 10k char limit on agent messages#553

Merged
PopescuTudor merged 1 commit into
mainfrom
feat/message-len-limit
Sep 10, 2025
Merged

feat: eliminate 10k char limit on agent messages#553
PopescuTudor merged 1 commit into
mainfrom
feat/message-len-limit

Conversation

@PopescuTudor

@PopescuTudor PopescuTudor commented Sep 8, 2025

Copy link
Copy Markdown
Collaborator

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.1.39.dev1005530989",

  # Any version from PR
  "uipath>=2.1.39.dev1005530000,<2.1.39.dev1005540000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

@PopescuTudor PopescuTudor added the build:dev Create a dev build from the pr label Sep 8, 2025
@PopescuTudor PopescuTudor force-pushed the feat/message-len-limit branch 8 times, most recently from 5b66e4c to 1303248 Compare September 9, 2025 15:58
@PopescuTudor PopescuTudor marked this pull request as ready for review September 9, 2025 16:04
Comment thread src/uipath/_services/jobs_service.py Outdated
"""
if job.output_file:
# Large output stored as attachment
temp_path = os.path.join(self._temp_dir, f"output_{job.output_file}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should delete the tempdir after usage. please check:

with tempfile.TemporaryDirectory() as tmpdir:

the logic inside create_attachment and create_attachment_async methods should also be updated.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the logic inside create_attachment and create_attachment_async uses a temp file only when no job is available, intended for local development/debugging (as stated in the methods' descriptions). I wouldn't change it to a mechanism that only keeps a temporary file during a with... context.

@PopescuTudor PopescuTudor merged commit 21e8c5a into main Sep 10, 2025
16 checks passed
@PopescuTudor PopescuTudor deleted the feat/message-len-limit branch September 10, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants