@salesforce/lds-adapters-service-einstein-copilot-bot 1.294.0 → 1.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einstein-copilot-bot.js +396 -211
- package/dist/es/es2018/types/src/generated/adapters/submitFeedback.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCopilotFeedback.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/CopilotLLMFeedbackOutputRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +452 -264
- package/src/raml/api.raml +46 -0
- package/src/raml/luvio.raml +8 -0
package/src/raml/api.raml
CHANGED
|
@@ -228,6 +228,38 @@ types:
|
|
|
228
228
|
isSuccess:
|
|
229
229
|
description: Success indicator of the get operation.
|
|
230
230
|
type: boolean
|
|
231
|
+
CopilotLLMFeedbackInputRepresentation:
|
|
232
|
+
description: Copilot LLM feedback input
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
details:
|
|
236
|
+
description: details
|
|
237
|
+
type: object
|
|
238
|
+
properties:
|
|
239
|
+
//:
|
|
240
|
+
type: object
|
|
241
|
+
feedback:
|
|
242
|
+
description: Structured feedback enum, thumbs up/down, good/bad
|
|
243
|
+
type: string
|
|
244
|
+
enum:
|
|
245
|
+
- Bad
|
|
246
|
+
- Good
|
|
247
|
+
feedbackId:
|
|
248
|
+
description: Feedback ID
|
|
249
|
+
type: string
|
|
250
|
+
sessionId:
|
|
251
|
+
description: Session ID
|
|
252
|
+
type: string
|
|
253
|
+
text:
|
|
254
|
+
description: User provided long-form feedback
|
|
255
|
+
type: string
|
|
256
|
+
CopilotLLMFeedbackOutputRepresentation:
|
|
257
|
+
description: CopilotLLMFeedback
|
|
258
|
+
type: object
|
|
259
|
+
properties:
|
|
260
|
+
submitFeedbackStatus:
|
|
261
|
+
description: Bot Runtime feedback response
|
|
262
|
+
type: string
|
|
231
263
|
CopilotQuickActionRepresentation:
|
|
232
264
|
description: Represents a Copilot QuickAction which can be executed by a Copilot client.
|
|
233
265
|
type: object
|
|
@@ -434,6 +466,20 @@ types:
|
|
|
434
466
|
objectType:
|
|
435
467
|
type: string
|
|
436
468
|
required: true
|
|
469
|
+
/copilot/feedback:
|
|
470
|
+
post:
|
|
471
|
+
displayName: postConversationLLMFeedback
|
|
472
|
+
description: Submit feedback to the chatbot runtime.
|
|
473
|
+
responses:
|
|
474
|
+
'200':
|
|
475
|
+
description: Success
|
|
476
|
+
body:
|
|
477
|
+
application/json:
|
|
478
|
+
type: CopilotLLMFeedbackOutputRepresentation
|
|
479
|
+
body:
|
|
480
|
+
application/json:
|
|
481
|
+
type: CopilotLLMFeedbackInputRepresentation
|
|
482
|
+
(oas-body-name): submitFeedback
|
|
437
483
|
/recommended-actions:
|
|
438
484
|
get:
|
|
439
485
|
displayName: getRecommendedActions
|
package/src/raml/luvio.raml
CHANGED
|
@@ -15,6 +15,10 @@ types:
|
|
|
15
15
|
(luvio.ttl): 30000
|
|
16
16
|
(luvio.key):
|
|
17
17
|
id: id
|
|
18
|
+
CopilotLLMFeedbackOutputRepresentation:
|
|
19
|
+
(luvio.ttl): 100
|
|
20
|
+
(luvio.key):
|
|
21
|
+
id: submitFeedbackStatus
|
|
18
22
|
ConversationRuntimeProxyChoiceRepresentation:
|
|
19
23
|
(luvio.ttl): 30000
|
|
20
24
|
CollectMessageRepresentation:
|
|
@@ -50,3 +54,7 @@ types:
|
|
|
50
54
|
get:
|
|
51
55
|
(luvio.adapter):
|
|
52
56
|
name: getRecommendedActions
|
|
57
|
+
/copilot/feedback:
|
|
58
|
+
post:
|
|
59
|
+
(luvio.adapter):
|
|
60
|
+
name: submitFeedback
|