-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Credal-ai/rb/sending-feedback-copilot-api
added endpoint for sending feedback
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,34 @@ service: | |
response: | ||
body: | ||
conversationId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a" | ||
provideMessageFeedback: | ||
path: /provideMessageFeedback | ||
method: POST | ||
request: | ||
name: ProvideMessageFeedbackRequest | ||
body: | ||
properties: | ||
userEmail: | ||
type: string | ||
docs: | | ||
The user profile you want to use when providing feedback. | ||
messageId: | ||
type: uuid | ||
docs: | | ||
The message ID for which feedback is being provided. | ||
messageFeedback: | ||
type: MessageFeedback | ||
docs: | | ||
The feedback provided by the user. | ||
examples: | ||
- name: Example0 | ||
request: | ||
userEmail: [email protected] | ||
messageId: dd721cd8-4bf2-4b94-9869-258df3dab9dc | ||
messageFeedback: | ||
feedback: NEGATIVE | ||
suggestedAnswer: "Yes, Credal is SOC 2 compliant." | ||
|
||
sendMessage: | ||
path: /sendMessage | ||
method: POST | ||
|
@@ -71,6 +99,8 @@ service: | |
name: "Example Document", | ||
url: "https://drive.google.com/file/d/123456/view"} | ||
] | ||
messageId: dd721cd8-4bf2-4b94-9869-258df3dab9dc | ||
|
||
types: | ||
# CreateConversationRequest: | ||
# properties: | ||
|
@@ -105,6 +135,8 @@ types: | |
activitySourceIdsForAudit: list<string> | ||
inserted_audit_log: InsertedAuditLog | ||
referencedSources: list<ReferencedSource> | ||
messageId: uuid | ||
|
||
|
||
ReferencedSource: | ||
properties: | ||
|
@@ -135,3 +167,13 @@ types: | |
id: string | ||
name: string | ||
description: string | ||
|
||
FeedbackEnum: | ||
enum: | ||
- POSITIVE | ||
- NEGATIVE | ||
|
||
MessageFeedback: | ||
properties: | ||
feedback: FeedbackEnum | ||
suggestedAnswer: optional<string> |