Retry intent detection if incorrect parameters are sent#33
Merged
Mitchell-UCF-Git merged 2 commits intomainfrom Apr 5, 2025
Merged
Retry intent detection if incorrect parameters are sent#33Mitchell-UCF-Git merged 2 commits intomainfrom
Mitchell-UCF-Git merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements a retry mechanism for intent detection when incorrect parameters are sent.
- Updated LoadIntentDetectionResponse, HandleWorkflow, and makeAPICall signatures to accept an additional parameter (originalInput) for retrying.
- Modified loadprompt.go to pass the user input to LoadIntentDetectionResponse.
- Added retry logic within makeAPICall to restart intent detection when the response includes unnecessary data.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/callers/loadprompt.go | Updated the call to LoadIntentDetectionResponse to include the user text input. |
| internal/callers/contentgen.go | Modified function signatures and added retry logic in makeAPICall for error handling. |
psmit03
approved these changes
Apr 4, 2025
…rough the general yaml file
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.
This retries intent detection if an incorrect parameter is sent, as title states.