feat(ai-assistant): implement AIAssistant widget and add suggested response feature#712
Open
lego0110 wants to merge 2 commits into
Open
feat(ai-assistant): implement AIAssistant widget and add suggested response feature#712lego0110 wants to merge 2 commits into
lego0110 wants to merge 2 commits into
Conversation
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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.
COMPLETES #https://jira-eng-sjc12.cisco.com/jira/browse/CAI-8037
This pull request addresses
-Create a new independent Widget: AIAssistant under which Suggested Response will be one of the features.
-Read Adaptive Card payloads and render them as received from the event.
-UI has to be created as per the attached Figma design: https://www.figma.com/design/xAoUT1dZl1VyqwkqfeqF5j/Phase-B-Widgets?node-id=8015-146438&p=f&t=YJEmQCDOaG3uiDL7-0
by making the following changes
Follow-up Actions: AI Assistant telemetry — SDK divergence resolution
SUGGESTED_RESPONSES_USER_ACTION (like / dislike / copy) takes a different code path from GET_SUGGESTIONS / ADD_SUGGESTIONS_EXTRA_CONTEXT. Same endpoint, same envelope, different implementation.
Why: the SDK's apiAIAssistant.sendEvent() types action as TranscriptAction = 'START' | 'STOP'; there's no parameter for userAction: { actionType, actionId }, so we can't route this event through the typed API.
Action items:
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
The GAI Coding Policy And Copyright Annotation Best Practices
Checklist before merging
Make sure to have followed the contributing guidelines before submitting.