-
Notifications
You must be signed in to change notification settings - Fork 20
feat: enable evaluators after resume by using consistent thread_id and Command API #1132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Chibionos
wants to merge
3
commits into
main
Choose a base branch
from
feat/enable-evaluators-on-resume
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+50
−10
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
540ed7a to
e905c9c
Compare
cristipufu
reviewed
Jan 16, 2026
52aaa6b to
33d66ea
Compare
cristipufu
approved these changes
Jan 19, 2026
| logger.info(f"🟢 EVAL RUNTIME: Using thread_id: {runtime_id}") | ||
| logger.info(f"🟢 EVAL RUNTIME: Using execution_id: {execution_id}") | ||
| logger.info( | ||
| "🟢 EVAL RUNTIME: Passing None - wrapper will load resume data from storage" |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove these logs, they were useful for debugging, but for the end-user not so useful
- Use eval_item.id as runtime_id to maintain consistent thread_id across suspend/resume - Pass UiPathExecuteOptions(resume=True) when in resume mode - Add logging to track resume mode execution This ensures: 1. Checkpoints can be found when resuming (same thread_id) 2. Framework-agnostic approach (uses runtime options, not LangGraph Command) 3. Resume handling is delegated to runtime layer where framework-specific logic belongs
During resume, the eval runtime should pass None as input instead of
inputs_with_overrides. This allows the UiPathResumableRuntime wrapper to:
1. Fetch triggers from storage
2. Read resume data via trigger_manager.read_trigger()
3. Build resume map: {interrupt_id: resume_data}
4. Pass this map to the delegate runtime
The wrapper's _restore_resume_input() method handles the resume data
restoration automatically when input is None. Passing the original input
would skip this mechanism and cause the resume to fail.
This completes the fix for evaluator execution after resume, working in
conjunction with the langchain runtime's Command(resume=...) wrapper.
33d66ea to
5834c18
Compare
Changes: - Bump version from 2.5.13 to 2.5.14 - Add execution_id logging to track evaluation execution across suspend/resume - Log execution_id at runtime creation - Log execution_id before initial execution - Log execution_id before and after resume execution - Use eval_item.id as execution_id for consistency with runtime_id This helps with debugging and tracing evaluation runs, especially when troubleshooting suspend/resume issues. The execution_id is now visible in logs at all key points in the execution lifecycle.
5834c18 to
ce5f2f6
Compare
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
test:uipath-langchain
Triggers tests in the uipath-langchain-python repository
test:uipath-llamaindex
Triggers tests in the uipath-llamaindex-python repository
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Enables evaluators to execute and produce scores after agent resumes from suspended state.
Changes
Consistent thread_id for suspend/resume
Command API integration
Enhanced logging
Testing
Tested with suspend/resume evaluation samples in uipath-langchain-python:
Built on top of
🤖 Generated with Claude Code
Development Package
uipath pack --nolockto get the latest dev build from this PR (requires version range).