@salesforce/lds-adapters-service-einsteinllm 1.287.0-dev1 → 1.287.0-dev11
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-einsteinllm.js +1338 -295
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts +13 -2
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsContentQualityRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationsSafetyScoreRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsErrorRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +16 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskContentRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskDataRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateMaskSettingsRepresentation.d.ts +28 -0
- package/package.json +4 -4
- package/sfdc/index.js +1098 -55
- package/src/raml/api.raml +147 -17
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '61.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -136,16 +136,36 @@ types:
|
|
|
136
136
|
description: Output of a einstein llm generation item response
|
|
137
137
|
type: object
|
|
138
138
|
properties:
|
|
139
|
+
contentQualityRepresentation:
|
|
140
|
+
description: Generations Content Quality Representation
|
|
141
|
+
type: EinsteinLlmGenerationsContentQualityRepresentation | nil # Hand-rolled union 'nil'
|
|
142
|
+
required: false # TODO Hand-rolled W-9314597
|
|
143
|
+
isSummarized:
|
|
144
|
+
description: Flag indicating summarization was done
|
|
145
|
+
type: boolean
|
|
146
|
+
required: false # TODO Hand-rolled W-15576505
|
|
139
147
|
parameters:
|
|
140
148
|
description: Any provider specific attributes will be included as part of
|
|
141
149
|
this object
|
|
142
150
|
type: string
|
|
151
|
+
responseId:
|
|
152
|
+
description: Generations Response Id
|
|
153
|
+
type: string
|
|
154
|
+
safetyScoreRepresentation:
|
|
155
|
+
description: 'Generations Safety Score Representation '
|
|
156
|
+
type: EinsteinLlmGenerationsSafetyScoreRepresentation | nil # Hand-rolled union 'nil'
|
|
157
|
+
required: false # TODO Hand-rolled W-9314597
|
|
143
158
|
text:
|
|
144
159
|
description: Text
|
|
145
160
|
type: string
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
EinsteinLlmGenerationsContentQualityRepresentation:
|
|
162
|
+
description: Output of a einstein llm generation content quality representation
|
|
163
|
+
type: object
|
|
164
|
+
properties:
|
|
165
|
+
isToxicityDetected:
|
|
166
|
+
description: Content Quality
|
|
167
|
+
required: false # TODO Hand-rolled W-9314597
|
|
168
|
+
type: boolean | nil # Hand-rolled union 'nil'
|
|
149
169
|
# TODO Hand-rolled W-8334626
|
|
150
170
|
# Need to manually wrap the input representation with what the aura controller is expecting
|
|
151
171
|
EinsteinLlmGenerationsInputWrapperRepresentation:
|
|
@@ -198,6 +218,56 @@ types:
|
|
|
198
218
|
promptTemplateGenerationsInput:
|
|
199
219
|
description: Set the parameters for prompt template message generation
|
|
200
220
|
type: EinsteinPromptTemplateGenerationsInputRepresentation
|
|
221
|
+
EinsteinLlmGenerationsSafetyScoreRepresentation:
|
|
222
|
+
description: Output of a einstein llm generation safety score representation
|
|
223
|
+
type: object
|
|
224
|
+
properties:
|
|
225
|
+
hateScore:
|
|
226
|
+
description: Hate Score
|
|
227
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
228
|
+
required: false # TODO Hand-rolled W-9314597
|
|
229
|
+
physicalScore:
|
|
230
|
+
description: Physical Score
|
|
231
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
232
|
+
required: false # TODO Hand-rolled W-9314597
|
|
233
|
+
profanityScore:
|
|
234
|
+
description: Profanity Score
|
|
235
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
236
|
+
required: false # TODO Hand-rolled W-9314597
|
|
237
|
+
safetyScore:
|
|
238
|
+
description: Safety Score
|
|
239
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
240
|
+
required: false # TODO Hand-rolled W-9314597
|
|
241
|
+
sexualScore:
|
|
242
|
+
description: Sexual Score
|
|
243
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
244
|
+
required: false # TODO Hand-rolled W-9314597
|
|
245
|
+
toxicityScore:
|
|
246
|
+
description: Toxicity Score
|
|
247
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
248
|
+
required: false # TODO Hand-rolled W-9314597
|
|
249
|
+
violenceScore:
|
|
250
|
+
description: Violence Score
|
|
251
|
+
type: number | nil # Hand-rolled union 'nil'
|
|
252
|
+
required: false # TODO Hand-rolled W-9314597
|
|
253
|
+
EinsteinPromptTemplateGenerationsErrorRepresentation:
|
|
254
|
+
description: Error output of a EinsteinPromptTemplateGeneration request
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
errorMessage:
|
|
258
|
+
description: This is the error message meant for client consumption. It may
|
|
259
|
+
differ from the Gateway Error Message
|
|
260
|
+
type: string
|
|
261
|
+
httpErrorCode:
|
|
262
|
+
description: HTTP Error Code classifying the error
|
|
263
|
+
type: string
|
|
264
|
+
localizedErrorMessage:
|
|
265
|
+
description: This is the localized error message.
|
|
266
|
+
type: string
|
|
267
|
+
required: false # TODO Hand-rolled W-9314597
|
|
268
|
+
messageCode:
|
|
269
|
+
description: The message code received from the LLM Gateway
|
|
270
|
+
type: string
|
|
201
271
|
EinsteinPromptTemplateGenerationsInputRepresentation:
|
|
202
272
|
description: Input representation for generating prompt template responses with
|
|
203
273
|
Einstein LLM
|
|
@@ -218,6 +288,10 @@ types:
|
|
|
218
288
|
description: Whether to generate prompt template preview by resolving merge
|
|
219
289
|
fields
|
|
220
290
|
type: boolean
|
|
291
|
+
outputLanguage:
|
|
292
|
+
description: Output Language
|
|
293
|
+
type: string
|
|
294
|
+
required: false # TODO Hand-rolled W-15576505
|
|
221
295
|
provider:
|
|
222
296
|
description: LLM Provider
|
|
223
297
|
type: string
|
|
@@ -226,6 +300,12 @@ types:
|
|
|
226
300
|
description: Output of a einstein llm generations response for given prompt template
|
|
227
301
|
type: object
|
|
228
302
|
properties:
|
|
303
|
+
generationErrors:
|
|
304
|
+
description: generated prompt template generationErrors
|
|
305
|
+
type: array
|
|
306
|
+
required: false # TODO Hand-rolled W-9314597
|
|
307
|
+
items:
|
|
308
|
+
type: EinsteinPromptTemplateGenerationsErrorRepresentation
|
|
229
309
|
generations:
|
|
230
310
|
description: List of generated text
|
|
231
311
|
type: array
|
|
@@ -244,6 +324,56 @@ types:
|
|
|
244
324
|
requestId:
|
|
245
325
|
description: ID of the generation request
|
|
246
326
|
type: string
|
|
327
|
+
requestMessages?: # TODO Hand-rolled W-15709657
|
|
328
|
+
description: generated prompt template RequestMessages
|
|
329
|
+
type: array
|
|
330
|
+
items:
|
|
331
|
+
type: EinsteinPromptTemplateMaskContentRepresentation
|
|
332
|
+
responseMessages?: # TODO Hand-rolled W-15709657
|
|
333
|
+
description: generated prompt template ResponseMessages
|
|
334
|
+
type: array
|
|
335
|
+
items:
|
|
336
|
+
type: EinsteinPromptTemplateMaskContentRepresentation
|
|
337
|
+
slotsMaskingInformation?: # TODO Hand-rolled W-15709657
|
|
338
|
+
description: generated prompt template slotsMaskingInformation
|
|
339
|
+
type: array
|
|
340
|
+
items:
|
|
341
|
+
type: EinsteinPromptTemplateMaskDataRepresentation
|
|
342
|
+
EinsteinPromptTemplateMaskContentRepresentation:
|
|
343
|
+
description: Output of a einstein mask data request and response for given prompt template
|
|
344
|
+
type: object
|
|
345
|
+
properties:
|
|
346
|
+
content:
|
|
347
|
+
description: content value
|
|
348
|
+
type: string
|
|
349
|
+
moderationSettings?:
|
|
350
|
+
description: moderationSettings value
|
|
351
|
+
type: EinsteinPromptTemplateMaskSettingsRepresentation | nil # TODO Hand-rolled W-15709657
|
|
352
|
+
role?:
|
|
353
|
+
description: RoleEnum value
|
|
354
|
+
type: string
|
|
355
|
+
EinsteinPromptTemplateMaskDataRepresentation:
|
|
356
|
+
description: Output of a einstein mask data response for given prompt template
|
|
357
|
+
type: object
|
|
358
|
+
properties:
|
|
359
|
+
originalValue:
|
|
360
|
+
description: original field value
|
|
361
|
+
type: string
|
|
362
|
+
placeHolder:
|
|
363
|
+
description: placeholder value
|
|
364
|
+
type: string
|
|
365
|
+
recognizers:
|
|
366
|
+
description: recognizers
|
|
367
|
+
type: array
|
|
368
|
+
items:
|
|
369
|
+
type: string
|
|
370
|
+
EinsteinPromptTemplateMaskSettingsRepresentation:
|
|
371
|
+
description: Output of a einstein mask data moderation setting for given prompt template
|
|
372
|
+
type: object
|
|
373
|
+
properties:
|
|
374
|
+
enableModeration:
|
|
375
|
+
description: enable moderation value
|
|
376
|
+
type: boolean
|
|
247
377
|
WrappedListString:
|
|
248
378
|
description: Wrapped list of String for use in Apex.
|
|
249
379
|
type: object
|
|
@@ -282,35 +412,35 @@ types:
|
|
|
282
412
|
type: object
|
|
283
413
|
/einstein:
|
|
284
414
|
/llm:
|
|
285
|
-
|
|
286
|
-
/prompt/generations:
|
|
415
|
+
/feedback:
|
|
287
416
|
post:
|
|
288
|
-
displayName:
|
|
289
|
-
description:
|
|
417
|
+
displayName: postEinsteinLlmFeedback
|
|
418
|
+
description: Send feedback for a generations.response object
|
|
290
419
|
responses:
|
|
291
420
|
'200':
|
|
292
421
|
description: Success
|
|
293
422
|
body:
|
|
294
423
|
application/json:
|
|
295
|
-
type:
|
|
424
|
+
type: EinsteinLlmFeedbackRepresentation
|
|
296
425
|
body:
|
|
297
426
|
application/json:
|
|
298
|
-
type:
|
|
299
|
-
(oas-body-name):
|
|
300
|
-
/
|
|
427
|
+
type: EinsteinLlmFeedbackWrapperRepresentation
|
|
428
|
+
(oas-body-name): feedbackInput
|
|
429
|
+
# Hand-rolled remove /embeddings endpoint; not in scope for current work
|
|
430
|
+
/prompt/generations:
|
|
301
431
|
post:
|
|
302
|
-
displayName:
|
|
303
|
-
description:
|
|
432
|
+
displayName: postEinsteinLlmGenerations
|
|
433
|
+
description: Generates a response based on the provided prompt and parameters
|
|
304
434
|
responses:
|
|
305
435
|
'200':
|
|
306
436
|
description: Success
|
|
307
437
|
body:
|
|
308
438
|
application/json:
|
|
309
|
-
type:
|
|
439
|
+
type: EinsteinLlmGenerationsRepresentation
|
|
310
440
|
body:
|
|
311
441
|
application/json:
|
|
312
|
-
type:
|
|
313
|
-
(oas-body-name):
|
|
442
|
+
type: EinsteinLlmGenerationsInputWrapperRepresentation
|
|
443
|
+
(oas-body-name): generationsInput
|
|
314
444
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
315
445
|
post:
|
|
316
446
|
displayName: postEinsteinPromptTemplateGenerations
|