Skip to content
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

display feedback state when loading a past conversation #41

Conversation

raintygao
Copy link
Collaborator

Description

display feedback state when loading a past conversation

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3be4f51) 22.86% compared to head (acb7e59) 23.28%.
Report is 4 commits behind head on feature/agent-framework.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           feature/agent-framework      #41      +/-   ##
===========================================================
+ Coverage                    22.86%   23.28%   +0.41%     
===========================================================
  Files                           42       42              
  Lines                          892      919      +27     
  Branches                       221      227       +6     
===========================================================
+ Hits                           204      214      +10     
- Misses                         681      698      +17     
  Partials                         7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SuZhou-Joe SuZhou-Joe force-pushed the feature/agent-framework branch from b9360e2 to 4ff6726 Compare December 5, 2023 05:17
@raintygao raintygao force-pushed the feat-display-feedback branch from 633859d to ec5fa8f Compare December 5, 2023 06:12
@SuZhou-Joe SuZhou-Joe force-pushed the feat-display-feedback branch from ec5fa8f to 453a193 Compare December 6, 2023 03:13
@@ -12,7 +12,7 @@ export interface Interaction {
conversation_id: string;
interaction_id: string;
create_time: string;
additional_info?: Record<string, unknown>;
Copy link
Member

@SuZhou-Joe SuZhou-Joe Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Interaciton type is used in many places. The key-value pair does not have to be Record<string, boolean> I suppose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it may can also be string. But i assumed this could be updated when needed in future or predefined.

Copy link
Member

@SuZhou-Joe SuZhou-Joe Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
What about { feedback?: SendFeedbackBody, [key: string]: unknown }.

My intent to set value as unknown is letting consumers to cast to other types explicitly in their functions if they want to consume specific field and know exactly what the type those values are.

https://github.com/opensearch-project/dashboards-assistant/blob/feature/agent-framework/server/parsers/visualization_card_parser.ts#L19 for reference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense.

@raintygao raintygao merged commit 36ac34b into opensearch-project:feature/agent-framework Dec 6, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants