-
Notifications
You must be signed in to change notification settings - Fork 20
fix: decouple mocking from evals #1148
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
Conversation
a583ab4 to
0f86c8f
Compare
0f86c8f to
631956b
Compare
akshaylive
left a comment
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.
Looks great overall. We do need to figure out the details regarding agentInfo and evaluation_criterias in a debug context.
442ee42 to
f468cd6
Compare
f468cd6 to
e44e2f8
Compare
akshaylive
left a comment
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.
LGTM!
| evaluation_item: EvaluationItem, | ||
| mocking_strategy: InputMockingStrategy, | ||
| input_schema: dict[str, Any], | ||
| expected_behavior: str, |
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.
Let's make this Optional[str] and Optional[dict[str, Any]] respectively please
| if evaluation_item.input_mocking_strategy | ||
| else None | ||
| ) | ||
| model_parameters = mocking_strategy.model if mocking_strategy else None |
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.
This line can be removed -- mocking_strategy cannot be None here.
Now that mocking is decoupled from evals (PR #1148), update the debug command to use MockingContext directly instead of creating a dummy EvaluationItem. This simplifies the code and better reflects the separation of concerns. Changes: - Update load_simulation_config to return MockingContext instead of EvaluationItem - Replace EvaluationSimulationTool with ToolSimulation - Update all tests to work with MockingContext - Remove unnecessary evaluation_criterias field Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Description
Decouples mocking from evaluation context.
Ref: #1117
Development Package
uipath pack --nolockto get the latest dev build from this PR (requires version range).