@salesforce/lds-adapters-service-einsteinllm 1.332.0-dev1 → 1.332.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/src/raml/api.raml CHANGED
@@ -472,6 +472,28 @@ types:
472
472
  type: array
473
473
  items:
474
474
  type: EinsteinPromptTemplateMaskDataRepresentation
475
+ fileData:
476
+ description: file info of the input files used in generation
477
+ type: array
478
+ required: false # TODO Hand-rolled W-17552098
479
+ items:
480
+ type: EinsteinPromptTemplateAttachmentRepresentation
481
+ EinsteinPromptTemplateAttachmentRepresentation:
482
+ description: Representation of file data for prompt template attachments
483
+ type: object
484
+ properties:
485
+ id:
486
+ description: ContentDocument Id of file attached to prompt template
487
+ type: string
488
+ title:
489
+ description: title of the attachment file
490
+ type: string
491
+ fileExtension:
492
+ description: extension of the file attachment
493
+ type: string
494
+ latestPublishedVersion:
495
+ description: ContentVersion of the latest published version of the file attachment
496
+ type: string
475
497
  EinsteinPromptTemplateMaskContentRepresentation:
476
498
  description: Output of a einstein mask data request and response for given prompt template
477
499
  type: object
@@ -507,6 +529,50 @@ types:
507
529
  enableModeration:
508
530
  description: enable moderation value
509
531
  type: boolean
532
+ EinsteinPromptTemplateSupportedLanguageErrorRepresentation:
533
+ description: Representation of an error encountered when returning the Prompt Template Version Supported Languages.
534
+ type: object
535
+ properties:
536
+ errorMessage:
537
+ description: Error message for this error
538
+ type: string
539
+ messageCode:
540
+ description: Message Code for this error.
541
+ type: string
542
+ EinsteinPromptTemplateSupportedLanguageRepresentation:
543
+ description: Representation of a single Prompt Template Version Supported Language
544
+ type: object
545
+ properties:
546
+ languageCode:
547
+ description: Language Code
548
+ type: string
549
+ languageDisplayName:
550
+ description: Language Display Name
551
+ type: string
552
+ EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
553
+ description: Representation of all supported output languages for a given Prompt
554
+ Template Version
555
+ type: object
556
+ properties:
557
+ errors:
558
+ description: Supported Language Errors
559
+ type: array
560
+ items:
561
+ type: EinsteinPromptTemplateSupportedLanguageErrorRepresentation
562
+ isSuccess:
563
+ description: Did this call succeed or not.
564
+ type: boolean
565
+ promptTemplateDevName:
566
+ description: Prompt Template Developer Name
567
+ type: string
568
+ supportedLanguages:
569
+ description: Supported Languages
570
+ type: array
571
+ items:
572
+ type: EinsteinPromptTemplateSupportedLanguageRepresentation
573
+ versionId:
574
+ description: Prompt Template Version Id
575
+ type: string
510
576
  WrappedListString:
511
577
  description: Wrapped list of String for use in Apex.
512
578
  type: object
@@ -652,3 +718,24 @@ types:
652
718
  promptTemplateDevName:
653
719
  type: string
654
720
  required: true
721
+ /prompt-template/{promptTemplateDevName}/output-languages:
722
+ get:
723
+ displayName: getEinsteinPromptTemplateOutputLanguages
724
+ description: Get A Prompt Template by DeveloperName and Version Id
725
+ responses:
726
+ '200':
727
+ description: Success
728
+ body:
729
+ application/json:
730
+ type: EinsteinPromptTemplateVersionOutputLanguagesRepresentation
731
+ queryParameters:
732
+ useStandardVersion:
733
+ type: boolean
734
+ required: false
735
+ versionId:
736
+ type: string
737
+ required: false
738
+ uriParameters:
739
+ promptTemplateDevName:
740
+ type: string
741
+ required: true
@@ -24,6 +24,8 @@ types:
24
24
  EinsteinPromptRecordCollectionOutputRepresentation:
25
25
  (luvio.ttl): 100
26
26
  (luvio.opaque): true
27
+ EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
28
+ (luvio.ttl): 100
27
29
 
28
30
  /einstein/llm/prompt/generations:
29
31
  post:
@@ -40,6 +42,11 @@ types:
40
42
  (luvio.adapter):
41
43
  name: createGenerationsForPromptTemplate
42
44
 
45
+ /einstein/prompt-template/{promptTemplateDevName}/output-languages:
46
+ get:
47
+ (luvio.adapter):
48
+ name: getOutputLanguages
49
+
43
50
  /einstein/llm/feedback:
44
51
  post:
45
52
  (luvio.adapter):