Skip to content

Conversation

@akshaylive
Copy link
Collaborator

@akshaylive akshaylive commented Jan 31, 2026

This allows customers to run evals dynamically without having to materialize to files.

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.6.27.dev1012444492",

  # Any version from PR
  "uipath>=2.6.27.dev1012440000,<2.6.27.dev1012450000"
]

[[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" }

[tool.uv]
override-dependencies = [
    "uipath>=2.6.27.dev1012440000,<2.6.27.dev1012450000",
]

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 31, 2026
return eval_set, resolved_path

@staticmethod
async def load_evaluators(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is moved from eval runtime as it needs to be adjacent to load eval set.

return True


def _find_agent_model_in_runtime(runtime: UiPathRuntimeProtocol) -> str | None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved from eval runtime

@akshaylive akshaylive added the build:dev Create a dev build from the pr label Jan 31, 2026
f"eval_set_run_id={context.eval_set_run_id}"
)
self.execution_id = (
context.job_id or context.eval_set_run_id or str(uuid.uuid4())
Copy link
Contributor

Choose a reason for hiding this comment

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

we need this for a consistent job id before and after suspend resume.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. This logic has been moved to _cli_eval.py right? Am I missing something?

Copy link
Contributor

@Chibionos Chibionos left a comment

Choose a reason for hiding this comment

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

execution id being set to job key is important for the suspend resume to recover properly.

The model name if found, None otherwise.
"""
# Check if this runtime implements the protocol
if isinstance(runtime, LLMAgentRuntimeProtocol):
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this fallback anymore, the low-code runtime has the model in get_schema() (we can remove the LLMAgentRuntimeProtocol as well)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can I remove it in a separate small PR? I want this one to just focus on the decoupling,,

Copy link
Contributor

@Chibionos Chibionos left a comment

Choose a reason for hiding this comment

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

approved, please ensure the suspend resume sample works properly with your change by running the tools suspend resume sample in langchain repo.

This allows customers to run evals dynamically without having to materialize to files.
@akshaylive akshaylive force-pushed the akshaya/decouple_eval_load_from_runtime branch from d83b481 to 2621a0e Compare February 2, 2026 16:19
@akshaylive
Copy link
Collaborator Author

Before:
image

After:
image

@akshaylive akshaylive merged commit ec60396 into main Feb 2, 2026
92 checks passed
@akshaylive akshaylive deleted the akshaya/decouple_eval_load_from_runtime branch February 2, 2026 17:45
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants