feat(eval): add --simulation flag to uipath debug#1632
Draft
ajay-kesavan wants to merge 1 commit into
Draft
Conversation
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>
|
3 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Mirrors the
--simulationflag introduced foruipath runin #1624 ontouipath debug, so a simulation config can be passed inline (same JSON schema assimulation.json) without writing it to disk.--simulationoption + parameter tocli_debug.pySimulationConfig.model_validate_json(usespydantic.ValidationErrorfor surfacing errors)--simulationis provided, builds the mocking context viabuild_mocking_context(simulation_config, agent_model)--simulationis omitted, the existingload_simulation_config()fallback (readssimulation.jsonfrom cwd) is preserved — this is the one behavioral difference fromrun, which has no file-based fallbackTest plan
ruff checkandruff format --checkpass on the modified filedebug --simulation(mirroring theTestRunSimulationclass added totests/cli/test_run.pyin 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 hereScope notes
This PR only mirrors the CLI flag. The sample (
runtime-simulations-agent) and integration testcase (simulation-testcase) added in #1624 exerciseuipath runand are not duplicated fordebugsince the underlyingbuild_mocking_contextplumbing they cover is shared.🤖 Generated with Claude Code