@salesforce/lds-adapters-service-einsteinllm 1.287.0-dev4 → 1.287.0-dev5

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,31 @@ 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
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
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
+ type: boolean
149
164
  # TODO Hand-rolled W-8334626
150
165
  # Need to manually wrap the input representation with what the aura controller is expecting
151
166
  EinsteinLlmGenerationsInputWrapperRepresentation:
@@ -198,6 +213,56 @@ types:
198
213
  promptTemplateGenerationsInput:
199
214
  description: Set the parameters for prompt template message generation
200
215
  type: EinsteinPromptTemplateGenerationsInputRepresentation
216
+ EinsteinLlmGenerationsSafetyScoreRepresentation:
217
+ description: Output of a einstein llm generation safety score representation
218
+ type: object
219
+ properties:
220
+ hateScore:
221
+ description: Hate Score
222
+ format: double
223
+ type: number
224
+ physicalScore:
225
+ description: Physical Score
226
+ format: double
227
+ type: number
228
+ profanityScore:
229
+ description: Profanity Score
230
+ format: double
231
+ type: number
232
+ safetyScore:
233
+ description: Safety Score
234
+ format: double
235
+ type: number
236
+ sexualScore:
237
+ description: Sexual Score
238
+ format: double
239
+ type: number
240
+ toxicityScore:
241
+ description: Toxicity Score
242
+ format: double
243
+ type: number
244
+ violenceScore:
245
+ description: Violence Score
246
+ format: double
247
+ type: number
248
+ EinsteinPromptTemplateGenerationsErrorRepresentation:
249
+ description: Error output of a EinsteinPromptTemplateGeneration request
250
+ type: object
251
+ properties:
252
+ errorMessage:
253
+ description: This is the error message meant for client consumption. It may
254
+ differ from the Gateway Error Message
255
+ type: string
256
+ httpErrorCode:
257
+ description: HTTP Error Code classifying the error
258
+ type: string
259
+ localizedErrorMessage:
260
+ description: This is the localized error message.
261
+ type: string
262
+ required: false # TODO Hand-rolled W-9314597
263
+ messageCode:
264
+ description: The message code received from the LLM Gateway
265
+ type: string
201
266
  EinsteinPromptTemplateGenerationsInputRepresentation:
202
267
  description: Input representation for generating prompt template responses with
203
268
  Einstein LLM
@@ -226,6 +291,12 @@ types:
226
291
  description: Output of a einstein llm generations response for given prompt template
227
292
  type: object
228
293
  properties:
294
+ generationErrors:
295
+ description: generated prompt template generationErrors
296
+ type: array
297
+ required: false # TODO Hand-rolled W-9314597
298
+ items:
299
+ type: EinsteinPromptTemplateGenerationsErrorRepresentation
229
300
  generations:
230
301
  description: List of generated text
231
302
  type: array
@@ -282,35 +353,35 @@ types:
282
353
  type: object
283
354
  /einstein:
284
355
  /llm:
285
- # Hand-rolled remove /embeddings endpoint; not in scope for current work
286
- /prompt/generations:
356
+ /feedback:
287
357
  post:
288
- displayName: postEinsteinLlmGenerations
289
- description: Generates a response based on the provided prompt and parameters
358
+ displayName: postEinsteinLlmFeedback
359
+ description: Send feedback for a generations.response object
290
360
  responses:
291
361
  '200':
292
362
  description: Success
293
363
  body:
294
364
  application/json:
295
- type: EinsteinLlmGenerationsRepresentation
365
+ type: EinsteinLlmFeedbackRepresentation
296
366
  body:
297
367
  application/json:
298
- type: EinsteinLlmGenerationsInputWrapperRepresentation
299
- (oas-body-name): generationsInput
300
- /feedback:
368
+ type: EinsteinLlmFeedbackWrapperRepresentation
369
+ (oas-body-name): feedbackInput
370
+ # Hand-rolled remove /embeddings endpoint; not in scope for current work
371
+ /prompt/generations:
301
372
  post:
302
- displayName: postEinsteinLlmFeedback
303
- description: Send feedback for a generations.response object
373
+ displayName: postEinsteinLlmGenerations
374
+ description: Generates a response based on the provided prompt and parameters
304
375
  responses:
305
376
  '200':
306
377
  description: Success
307
378
  body:
308
379
  application/json:
309
- type: EinsteinLlmFeedbackRepresentation
380
+ type: EinsteinLlmGenerationsRepresentation
310
381
  body:
311
382
  application/json:
312
- type: EinsteinLlmFeedbackWrapperRepresentation
313
- (oas-body-name): feedbackInput
383
+ type: EinsteinLlmGenerationsInputWrapperRepresentation
384
+ (oas-body-name): generationsInput
314
385
  /prompt-templates/{promptTemplateDevName}/generations:
315
386
  post:
316
387
  displayName: postEinsteinPromptTemplateGenerations