Skip to content

Commit

Permalink
Merge pull request #56 from Credal-ai/rb/sending-feedback-copilot-api
Browse files Browse the repository at this point in the history
added endpoint for sending feedback
  • Loading branch information
tmathew0309 authored Jun 18, 2024
2 parents ee95f7a + 526287a commit f3b7390
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions fern/definition/copilots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -105,6 +135,8 @@ types:
activitySourceIdsForAudit: list<string>
inserted_audit_log: InsertedAuditLog
referencedSources: list<ReferencedSource>
messageId: uuid


ReferencedSource:
properties:
Expand Down Expand Up @@ -135,3 +167,13 @@ types:
id: string
name: string
description: string

FeedbackEnum:
enum:
- POSITIVE
- NEGATIVE

MessageFeedback:
properties:
feedback: FeedbackEnum
suggestedAnswer: optional<string>

0 comments on commit f3b7390

Please sign in to comment.