@salesforce/lds-adapters-service-einsteinllm 1.287.0-dev1 → 1.287.0-dev10

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