Skip to content

feat(eval): add --simulation flag to uipath debug#1632

Draft
ajay-kesavan wants to merge 1 commit into
mainfrom
feat/debug-simulation-flag
Draft

feat(eval): add --simulation flag to uipath debug#1632
ajay-kesavan wants to merge 1 commit into
mainfrom
feat/debug-simulation-flag

Conversation

@ajay-kesavan
Copy link
Copy Markdown

Summary

Mirrors the --simulation flag introduced for uipath run in #1624 onto uipath debug, so a simulation config can be passed inline (same JSON schema as simulation.json) without writing it to disk.

  • Adds --simulation option + parameter to cli_debug.py
  • Validates the JSON via SimulationConfig.model_validate_json (uses pydantic.ValidationError for surfacing errors)
  • When --simulation is provided, builds the mocking context via build_mocking_context(simulation_config, agent_model)
  • When --simulation is omitted, the existing load_simulation_config() fallback (reads simulation.json from cwd) is preserved — this is the one behavioral difference from run, which has no file-based fallback

Test plan

  • ruff check and ruff format --check pass on the modified file
  • Unit tests for debug --simulation (mirroring the TestRunSimulation class added to tests/cli/test_run.py in feat(eval): add runtime simulation via --simulation flag #1624) are not included in this PR — happy to add in a follow-up if reviewers want them here

Scope notes

This PR only mirrors the CLI flag. The sample (runtime-simulations-agent) and integration testcase (simulation-testcase) added in #1624 exercise uipath run and are not duplicated for debug since the underlying build_mocking_context plumbing they cover is shared.

🤖 Generated with Claude Code

Mirrors the --simulation flag from `uipath run` (#1624) onto `uipath debug`,
so simulation configs can be passed inline as JSON without needing a
simulation.json on disk. When --simulation is omitted, the existing
simulation.json fallback is preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels May 15, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube Cloud

@ajay-kesavan ajay-kesavan marked this pull request as draft May 15, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant