Skip to content

fix: consistent picker response#198

Merged
Roopan-Microsoft merged 1 commit intodevfrom
psl-bug-response-picker
Aug 25, 2025
Merged

fix: consistent picker response#198
Roopan-Microsoft merged 1 commit intodevfrom
psl-bug-response-picker

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

Purpose

This pull request improves the robustness of the agent response handling in the convert_script function by adding error handling for invalid JSON responses from the Picker and Semantic Verifier agents. If an agent returns an invalid response, the system now logs the error and falls back to a default response, preventing crashes and ensuring the workflow continues smoothly.

Agent response error handling improvements:

  • Added a try/except block around PickerResponse.model_validate_json to catch and log errors from invalid Picker agent responses, and to provide a default PickerResponse fallback.
  • Added a try/except block around SemanticVerifierResponse.model_validate_json to catch and log errors from invalid Semantic Verifier agent responses, and to provide a default SemanticVerifierResponse fallback.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Roopan-Microsoft Roopan-Microsoft merged commit 1dcb8b9 into dev Aug 25, 2025
6 checks passed
Ritesh-Microsoft pushed a commit that referenced this pull request Oct 10, 2025
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.5.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Priyanka-Microsoft Priyanka-Microsoft deleted the psl-bug-response-picker branch December 25, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants