Skip to content

chore(deps): require uipath-platform 0.3.23 for memory search executionType - #1259

Merged
yashwagle1 merged 2 commits into
mainfrom
chore/bump-uipath-platform-execution-type
Dec 2, 2026
Merged

yashwagle1 merged 2 commits into
mainfrom
chore/bump-uipath-platform-execution-type

Conversation

@yashwagle1

@yashwagle1 yashwagle1 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Raises the uipath-platform floor to >=0.3.23, <0.4.0 and bumps the version to 0.21.8.

LLMOps is adding a count of how often deployed agent runs put each memory into their prompt (UiPath/llm-observability#3580), so users can see whether a memory is actually used in production. 0.3.23 (UiPath/uipath-python#2035) is what makes langchain agents report that:

  • memory.search_async (the dynamic few-shot node) and memory.escalation_search_async (escalation memory) move to the vNext route, POST /llmopstenant_/api/Memory/{id}/search. Each request now carries the run's executionType (Debug or Runtime, from resolve_execution_type(), the value agent spans use). LLMOps counts only Runtime searches.
  • EscalationMemoryMatch now parses answer from the JSON string LLMOps returns. Before, every escalation hit failed the SDK model, and escalation_memory.py always took its raw-payload fallback.

The fallback stays for an answer that isn't valid JSON, which the SDK still rejects; its comment is updated to say so. It now goes to the shared vNext route too, so it sends memoryType: 1. Without it, the route searches every memory type. It still sends no executionType, so a broken memory isn't counted as used.

Tests in tests/agent/tools/test_escalation_memory.py:

  • test_returns_cached_answer_when_sdk_response_has_string_answer built its ValidationError by validating a JSON-string answer, which 0.3.23 accepts. It now checks that such an answer, with capitalized Output / Outcome keys, comes back through the SDK response with no raw request.
  • The raw fallback is covered by the new test_falls_back_to_raw_search_when_sdk_rejects_answer, which uses an answer that isn't JSON and checks the raw request sends memoryType: 1.

Lock changes: uipath-platform 0.3.21 → 0.3.23.

Tests: full suite passes except test_create_file_tool.py::test_symlink_out_of_the_workspace_is_rejected, a local Windows symlink-privilege error (WinError 1314) that also fails on main. ruff check, ruff format --check and mypy src are clean.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings December 2, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The raw retry omits memoryType: 1, so the shared endpoint no longer identifies it as an escalation search, and the fallback test does not catch the omission.

1 open issue
What changed in this PR

Updates the SDK dependency to support execution-type reporting for memory searches and JSON-string escalation answers.

Changes:

  • Raises uipath-platform to 0.3.23 and releases version 0.21.8.
  • Updates escalation tests for SDK parsing and raw fallback behavior.
  • Clarifies the fallback comment without changing agent logic.
File Description
uv.lock Locks updated SDK and package versions.
tests/​agent/​tools/​test_escalation_memory.py Covers string-answer parsing and validation fallback.
src/​uipath_langchain/​agent/​tools/​escalation_memory.py Clarifies when raw fallback occurs.
pyproject.toml Raises dependency floor and package version.

Review effort: Balanced

0.3.23 moved escalation search to the shared Memory search route, where a
request without memoryType searches every memory type.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@yashwagle1
yashwagle1 merged commit 08dfd3b into main Dec 2, 2026
50 of 51 checks passed
@yashwagle1
yashwagle1 deleted the chore/bump-uipath-platform-execution-type branch December 2, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants