@salesforce/lds-adapters-service-einsteinllm 1.379.1 → 1.380.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/dist/es/es2018/service-einsteinllm.js +2775 -396
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviderInstanceConfig.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviderTypeConfigs.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataProviders.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getInputMappedDataProviders.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersion.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplateVersions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/putEinsteinPromptTemplateVersionStatus.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePromptTemplateVersion.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +10 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +17 -1
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProviderTypesByTemplateType.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesDataProvidersByTemplateType.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplates.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesDataProviderDescribe.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesDataProvidersMapped.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsStatusByPromptTemplateDevNameAndVersionId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationCitationRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationGenAiCitedReferenceRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderDiscoveryInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInputParamRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigRepresentation.d.ts +77 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderOutputParamRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderTypeConfigRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/WrappedMap.d.ts +3 -3
- package/package.json +4 -4
- package/sfdc/index.js +3038 -579
- package/src/raml/api.raml +470 -1
- package/src/raml/luvio.raml +61 -0
package/src/raml/api.raml
CHANGED
|
@@ -357,6 +357,29 @@ types:
|
|
|
357
357
|
value:
|
|
358
358
|
description: The value of a field in its raw data form.
|
|
359
359
|
type: boolean | integer | string | nil
|
|
360
|
+
EinsteinPromptRecordInputRepresentation:
|
|
361
|
+
description: Input representation for creating a prompt template
|
|
362
|
+
type: object
|
|
363
|
+
properties:
|
|
364
|
+
apiName:
|
|
365
|
+
description: apiName
|
|
366
|
+
type: string
|
|
367
|
+
childRelationships:
|
|
368
|
+
description: Prompt Record ChildRelationships
|
|
369
|
+
type: object
|
|
370
|
+
properties:
|
|
371
|
+
//:
|
|
372
|
+
type: any # TODO Hand-rolled W-18886332
|
|
373
|
+
fields:
|
|
374
|
+
description: GenAiPromptTemplate Fields
|
|
375
|
+
type: object
|
|
376
|
+
properties:
|
|
377
|
+
//:
|
|
378
|
+
type: any # TODO Hand-rolled W-18886332
|
|
379
|
+
id:
|
|
380
|
+
description: The ID of the prompt template
|
|
381
|
+
type: string
|
|
382
|
+
required: false # TODO Hand-rolled W-18886332
|
|
360
383
|
EinsteinPromptRecordRepresentation:
|
|
361
384
|
description: Representation of a single Prompt Template
|
|
362
385
|
type: object
|
|
@@ -439,6 +462,10 @@ types:
|
|
|
439
462
|
description: Output of a einstein llm generations response for given prompt template
|
|
440
463
|
type: object
|
|
441
464
|
properties:
|
|
465
|
+
citations:
|
|
466
|
+
description: Generation Citations Mapping
|
|
467
|
+
required: false # TODO Hand-rolled W-19304625
|
|
468
|
+
type: EinsteinLlmGenerationCitationRepresentation
|
|
442
469
|
generationErrors:
|
|
443
470
|
description: generated prompt template generationErrors
|
|
444
471
|
type: array
|
|
@@ -457,6 +484,9 @@ types:
|
|
|
457
484
|
prompt:
|
|
458
485
|
description: Prompt used for the generation
|
|
459
486
|
type: string | nil # Hand-rolled union 'nil'
|
|
487
|
+
rawPrompt:
|
|
488
|
+
description: Raw prompt with unresolved merge fields
|
|
489
|
+
type: string | nil # Hand-rolled union 'nil'
|
|
460
490
|
promptTemplateDevName:
|
|
461
491
|
description: generated prompt template promptTemplateDevName
|
|
462
492
|
type: string
|
|
@@ -490,6 +520,45 @@ types:
|
|
|
490
520
|
required: false # TODO Hand-rolled W-17552098
|
|
491
521
|
items:
|
|
492
522
|
type: EinsteinPromptTemplateAttachmentRepresentation
|
|
523
|
+
EinsteinLlmGenerationCitationRepresentation:
|
|
524
|
+
description: Output of a Einstein LLM Generation Citation output
|
|
525
|
+
type: object
|
|
526
|
+
properties:
|
|
527
|
+
citedReferences:
|
|
528
|
+
description: Cited References
|
|
529
|
+
required: false # TODO Hand-rolled W-19304625
|
|
530
|
+
type: array
|
|
531
|
+
items:
|
|
532
|
+
type: EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
533
|
+
EinsteinLlmGenerationGenAiCitedReferenceRepresentation:
|
|
534
|
+
description: Output of a Einstein LLM Generation Gen AI Citation output
|
|
535
|
+
type: object
|
|
536
|
+
properties:
|
|
537
|
+
citationLocations:
|
|
538
|
+
description: Array of locations where that particular citation needs to appear
|
|
539
|
+
in the input text
|
|
540
|
+
type: array
|
|
541
|
+
required: false # TODO Hand-rolled W-19304625
|
|
542
|
+
items:
|
|
543
|
+
type: integer
|
|
544
|
+
claims:
|
|
545
|
+
description: Matching chunk from the input text
|
|
546
|
+
type: array
|
|
547
|
+
required: false # TODO Hand-rolled W-19304625
|
|
548
|
+
items:
|
|
549
|
+
type: string
|
|
550
|
+
link:
|
|
551
|
+
description: Link
|
|
552
|
+
type: string
|
|
553
|
+
required: false # TODO Hand-rolled W-19304625
|
|
554
|
+
sourceObjectApiName:
|
|
555
|
+
description: SourceObjectApiName
|
|
556
|
+
type: string
|
|
557
|
+
required: false # TODO Hand-rolled W-19304625
|
|
558
|
+
sourceObjectRecordId:
|
|
559
|
+
description: SourceObjectRecordId
|
|
560
|
+
type: string
|
|
561
|
+
required: false # TODO Hand-rolled W-19304625
|
|
493
562
|
EinsteinPromptTemplateAttachmentRepresentation:
|
|
494
563
|
description: Representation of file data for prompt template attachments
|
|
495
564
|
type: object
|
|
@@ -524,6 +593,44 @@ types:
|
|
|
524
593
|
isExcluded:
|
|
525
594
|
description: true if the file is excluded from LLM request, false otherwise
|
|
526
595
|
type: boolean
|
|
596
|
+
EinsteinPromptTemplateRepresentation:
|
|
597
|
+
description: Comprehensive representation for prompt template operations including
|
|
598
|
+
creation, updates, and activation
|
|
599
|
+
type: object
|
|
600
|
+
properties:
|
|
601
|
+
additionalData?: # TODO Hand-rolled W-18886332
|
|
602
|
+
description: Additional data, such as references
|
|
603
|
+
type: WrappedMap
|
|
604
|
+
errorMessages:
|
|
605
|
+
description: Error Messages
|
|
606
|
+
type: array
|
|
607
|
+
items:
|
|
608
|
+
type: string
|
|
609
|
+
hasWarning:
|
|
610
|
+
description: has warning messages
|
|
611
|
+
type: boolean
|
|
612
|
+
isSuccessful:
|
|
613
|
+
description: IsSuccessful
|
|
614
|
+
type: boolean
|
|
615
|
+
statusCode:
|
|
616
|
+
description: Status Code of connect api
|
|
617
|
+
type: string
|
|
618
|
+
required: false # TODO Hand-rolled W-18886332
|
|
619
|
+
templateId:
|
|
620
|
+
description: Template Id
|
|
621
|
+
type: string
|
|
622
|
+
templateType:
|
|
623
|
+
description: Template Type
|
|
624
|
+
type: string
|
|
625
|
+
required: false # TODO Hand-rolled W-18886332
|
|
626
|
+
versionId:
|
|
627
|
+
description: Version Id
|
|
628
|
+
type: string
|
|
629
|
+
warningMessages:
|
|
630
|
+
description: Warning Messages
|
|
631
|
+
type: array
|
|
632
|
+
items:
|
|
633
|
+
type: string
|
|
527
634
|
EinsteinPromptTemplateMaskContentRepresentation:
|
|
528
635
|
description: Output of a einstein mask data request and response for given prompt template
|
|
529
636
|
type: object
|
|
@@ -579,6 +686,188 @@ types:
|
|
|
579
686
|
languageDisplayName:
|
|
580
687
|
description: Language Display Name
|
|
581
688
|
type: string
|
|
689
|
+
PromptTemplateDataProviderDiscoveryInputRepresentation:
|
|
690
|
+
description: Input for data provider discovery API to find available data providers
|
|
691
|
+
based on criteria
|
|
692
|
+
type: object
|
|
693
|
+
properties:
|
|
694
|
+
groupName:
|
|
695
|
+
description: The expression group name for the data provider
|
|
696
|
+
type: string
|
|
697
|
+
required: false # TODO Hand-rolled W-18968514
|
|
698
|
+
target:
|
|
699
|
+
description: The scoped target for data provider discovery
|
|
700
|
+
type: string
|
|
701
|
+
required: false # TODO Hand-rolled W-18968514
|
|
702
|
+
templateInputs:
|
|
703
|
+
description: List of template input parameters for data provider discovery
|
|
704
|
+
type: array
|
|
705
|
+
items:
|
|
706
|
+
type: any #TODO Hand-rolled W-18968514
|
|
707
|
+
templateTypeName:
|
|
708
|
+
description: The template type name to filter data providers by
|
|
709
|
+
type: string
|
|
710
|
+
PromptTemplateDataProviderInputParamRepresentation:
|
|
711
|
+
description: Represents an input parameter for a data provider instance
|
|
712
|
+
type: object
|
|
713
|
+
properties:
|
|
714
|
+
apiName:
|
|
715
|
+
description: The api name of the input parameter
|
|
716
|
+
type: string
|
|
717
|
+
label:
|
|
718
|
+
description: The label of the input parameter
|
|
719
|
+
type: string
|
|
720
|
+
required:
|
|
721
|
+
description: The flag to identify if input is mandatory
|
|
722
|
+
type: boolean
|
|
723
|
+
type:
|
|
724
|
+
description: The data type of the input parameter
|
|
725
|
+
type: string
|
|
726
|
+
PromptTemplateDataProviderInstanceConfigCollectionRepresentation:
|
|
727
|
+
description: Collection of data provider instance configurations for a prompt
|
|
728
|
+
template version
|
|
729
|
+
type: object
|
|
730
|
+
properties:
|
|
731
|
+
dataProviderInstanceConfigs:
|
|
732
|
+
description: List of data provider instance configurations
|
|
733
|
+
type: array
|
|
734
|
+
items:
|
|
735
|
+
type: PromptTemplateDataProviderInstanceConfigRepresentation
|
|
736
|
+
PromptTemplateDataProviderInstanceConfigInputRepresentation:
|
|
737
|
+
description: Input for data provider instance configuration generation
|
|
738
|
+
type: object
|
|
739
|
+
properties:
|
|
740
|
+
additionalParam:
|
|
741
|
+
description: Additional parameters for the data provider configuration
|
|
742
|
+
type: object
|
|
743
|
+
required: false # TODO Hand-rolled W-18968514
|
|
744
|
+
properties:
|
|
745
|
+
//:
|
|
746
|
+
type: any #TODO Hand-rolled W-18968514
|
|
747
|
+
definition:
|
|
748
|
+
description: The definition of the data provider instance
|
|
749
|
+
type: string
|
|
750
|
+
groupName:
|
|
751
|
+
description: The expression group name for the data provider
|
|
752
|
+
type: string
|
|
753
|
+
PromptTemplateDataProviderInstanceConfigRepresentation:
|
|
754
|
+
description: Configuration for a specific instance of a data provider that drives
|
|
755
|
+
PB UI capabilities
|
|
756
|
+
type: object
|
|
757
|
+
properties:
|
|
758
|
+
apiName:
|
|
759
|
+
description: The API name of the discovered data provider
|
|
760
|
+
type: string
|
|
761
|
+
dataProviderBundle:
|
|
762
|
+
description: The data provider bundle containing configuration and schema
|
|
763
|
+
information
|
|
764
|
+
type: object
|
|
765
|
+
required: false # TODO Hand-rolled W-18968514
|
|
766
|
+
properties:
|
|
767
|
+
//:
|
|
768
|
+
type: any # TODO Hand-rolled W-18968514
|
|
769
|
+
defaultOutputParam:
|
|
770
|
+
description: The default output parameter for the data provider instance
|
|
771
|
+
type: PromptTemplateDataProviderOutputParamRepresentation
|
|
772
|
+
required: false # TODO Hand-rolled W-18968514
|
|
773
|
+
definition:
|
|
774
|
+
description: The definition field for the data provider instance
|
|
775
|
+
type: string
|
|
776
|
+
description:
|
|
777
|
+
description: The description of data provider
|
|
778
|
+
type: string | nil
|
|
779
|
+
required: false # TODO Hand-rolled W-18968514
|
|
780
|
+
groupName:
|
|
781
|
+
description: The expression group name for the data provider instance
|
|
782
|
+
type: string
|
|
783
|
+
inputParams:
|
|
784
|
+
description: The list of all input parameters for the data provider instance
|
|
785
|
+
type: array
|
|
786
|
+
required: false # TODO Hand-rolled W-18968514
|
|
787
|
+
items:
|
|
788
|
+
type: PromptTemplateDataProviderInputParamRepresentation
|
|
789
|
+
label:
|
|
790
|
+
description: The display label for the data provider instance
|
|
791
|
+
type: string
|
|
792
|
+
mappedInputs:
|
|
793
|
+
description: The mapped inputs for data provider
|
|
794
|
+
type: object
|
|
795
|
+
required: false # TODO Hand-rolled W-18968514
|
|
796
|
+
properties:
|
|
797
|
+
//:
|
|
798
|
+
type: any # TODO Hand-rolled W-18968514
|
|
799
|
+
nodeIcon:
|
|
800
|
+
description: The icon identifier for the data provider instance
|
|
801
|
+
type: string | nil
|
|
802
|
+
required: false # TODO Hand-rolled W-18968514
|
|
803
|
+
outputParams:
|
|
804
|
+
description: The list of all output parameters for the data provider instance
|
|
805
|
+
type: array
|
|
806
|
+
required: false # TODO Hand-rolled W-18968514
|
|
807
|
+
items:
|
|
808
|
+
type: PromptTemplateDataProviderOutputParamRepresentation
|
|
809
|
+
referenceName:
|
|
810
|
+
description: The reference name for the data provider instance
|
|
811
|
+
type: string
|
|
812
|
+
scopedToTarget:
|
|
813
|
+
description: The target scope for non-top level providers scoped to a specific
|
|
814
|
+
target
|
|
815
|
+
type: string | nil
|
|
816
|
+
required: false # TODO Hand-rolled W-18968514
|
|
817
|
+
subGroup:
|
|
818
|
+
description: The sub-group used to categorize data providers in the resource
|
|
819
|
+
picker
|
|
820
|
+
type: string | nil
|
|
821
|
+
required: false # TODO Hand-rolled W-18968514
|
|
822
|
+
PromptTemplateDataProviderOutputParamRepresentation:
|
|
823
|
+
description: Represents an output parameter for a data provider instance
|
|
824
|
+
type: object
|
|
825
|
+
properties:
|
|
826
|
+
apiName:
|
|
827
|
+
description: The value of the output parameter
|
|
828
|
+
type: string
|
|
829
|
+
label:
|
|
830
|
+
description: The label of the output parameter
|
|
831
|
+
type: string
|
|
832
|
+
PromptTemplateDataProviderTypeConfigCollectionRepresentation:
|
|
833
|
+
description: Collection of data provider type configurations for a prompt template
|
|
834
|
+
type
|
|
835
|
+
type: object
|
|
836
|
+
properties:
|
|
837
|
+
dataProviderTypeConfigs:
|
|
838
|
+
description: List of data provider type configs
|
|
839
|
+
type: array
|
|
840
|
+
items:
|
|
841
|
+
type: PromptTemplateDataProviderTypeConfigRepresentation
|
|
842
|
+
PromptTemplateDataProviderTypeConfigRepresentation:
|
|
843
|
+
description: Output representation of a data provider type configuration
|
|
844
|
+
type: object
|
|
845
|
+
properties:
|
|
846
|
+
description:
|
|
847
|
+
description: The localized description of the data provider type
|
|
848
|
+
type: string
|
|
849
|
+
required: false # TODO Hand-rolled W-19333313
|
|
850
|
+
groupName:
|
|
851
|
+
description: The group name of the data provider type
|
|
852
|
+
type: string
|
|
853
|
+
icon:
|
|
854
|
+
description: The icon identifier for the data provider type
|
|
855
|
+
type: string
|
|
856
|
+
isTopLevel:
|
|
857
|
+
description: Indicates whether this is a top level data provider type
|
|
858
|
+
type: boolean
|
|
859
|
+
label:
|
|
860
|
+
description: The localized label of the data provider type
|
|
861
|
+
type: string
|
|
862
|
+
parentNode:
|
|
863
|
+
description: The parent node identifier for hierarchical data provider types
|
|
864
|
+
type: string
|
|
865
|
+
required: false # TODO Hand-rolled W-19333313
|
|
866
|
+
scope:
|
|
867
|
+
description: The scope configuration for the data provider type (can be 'ALL'
|
|
868
|
+
or list of specific scopes)
|
|
869
|
+
type: any # TODO Hand-rolled W-19333313, scope can be a string, list of string, or just "ALL"
|
|
870
|
+
required: false # TODO Hand-rolled W-19333313
|
|
582
871
|
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
583
872
|
description: Representation of all supported output languages for a given Prompt
|
|
584
873
|
Template Version
|
|
@@ -621,7 +910,7 @@ types:
|
|
|
621
910
|
type: object
|
|
622
911
|
properties:
|
|
623
912
|
//:
|
|
624
|
-
type:
|
|
913
|
+
type: any
|
|
625
914
|
WrappedValue:
|
|
626
915
|
description: Wrapped Object for use in Einstein LLM.
|
|
627
916
|
type: object
|
|
@@ -725,6 +1014,91 @@ types:
|
|
|
725
1014
|
sortBy:
|
|
726
1015
|
type: string
|
|
727
1016
|
required: false
|
|
1017
|
+
post:
|
|
1018
|
+
displayName: postEinsteinPromptTemplateCollection
|
|
1019
|
+
description: Create a prompt template
|
|
1020
|
+
responses:
|
|
1021
|
+
'200':
|
|
1022
|
+
description: Success
|
|
1023
|
+
body:
|
|
1024
|
+
application/json:
|
|
1025
|
+
type: EinsteinPromptTemplateRepresentation
|
|
1026
|
+
body:
|
|
1027
|
+
application/json:
|
|
1028
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
1029
|
+
(oas-body-name): templateInput
|
|
1030
|
+
/prompt-templates/data-providers:
|
|
1031
|
+
/mapped:
|
|
1032
|
+
post:
|
|
1033
|
+
displayName: postDataProviderInputMatchDiscovery
|
|
1034
|
+
description: Get Data Provider Discovery Info List
|
|
1035
|
+
responses:
|
|
1036
|
+
'200':
|
|
1037
|
+
description: Success
|
|
1038
|
+
body:
|
|
1039
|
+
application/json:
|
|
1040
|
+
type: PromptTemplateDataProviderInstanceConfigCollectionRepresentation
|
|
1041
|
+
body:
|
|
1042
|
+
application/json:
|
|
1043
|
+
type: PromptTemplateDataProviderDiscoveryInputRepresentation
|
|
1044
|
+
(oas-body-name): dataProviderDiscoveryInput
|
|
1045
|
+
/{templateType}:
|
|
1046
|
+
get:
|
|
1047
|
+
displayName: getPromptTemplateDataProviderDiscovery
|
|
1048
|
+
description: Discover available data providers for prompt templates
|
|
1049
|
+
responses:
|
|
1050
|
+
'200':
|
|
1051
|
+
description: Success
|
|
1052
|
+
body:
|
|
1053
|
+
application/json:
|
|
1054
|
+
type: PromptTemplateDataProviderInstanceConfigCollectionRepresentation
|
|
1055
|
+
queryParameters:
|
|
1056
|
+
groupNames:
|
|
1057
|
+
description: The group names for data provider discovery
|
|
1058
|
+
type: array
|
|
1059
|
+
required: false
|
|
1060
|
+
items:
|
|
1061
|
+
type: string
|
|
1062
|
+
(oas-collectionFormat): csv
|
|
1063
|
+
targets:
|
|
1064
|
+
description: The scoped targets for data provider discovery
|
|
1065
|
+
type: array
|
|
1066
|
+
required: false
|
|
1067
|
+
items:
|
|
1068
|
+
type: string
|
|
1069
|
+
(oas-collectionFormat): csv
|
|
1070
|
+
uriParameters:
|
|
1071
|
+
templateType:
|
|
1072
|
+
type: string
|
|
1073
|
+
required: true
|
|
1074
|
+
/prompt-templates/data-provider/describe:
|
|
1075
|
+
post:
|
|
1076
|
+
displayName: postPromptTemplateDataProviderInstanceConfig
|
|
1077
|
+
description: Get Data Provider Instance Configuration for given definition name
|
|
1078
|
+
responses:
|
|
1079
|
+
'200':
|
|
1080
|
+
description: Success
|
|
1081
|
+
body:
|
|
1082
|
+
application/json:
|
|
1083
|
+
type: PromptTemplateDataProviderInstanceConfigRepresentation
|
|
1084
|
+
body:
|
|
1085
|
+
application/json:
|
|
1086
|
+
type: PromptTemplateDataProviderInstanceConfigInputRepresentation
|
|
1087
|
+
(oas-body-name): dataProviderInstanceConfigInput
|
|
1088
|
+
/prompt-templates/data-provider-types/{templateType}:
|
|
1089
|
+
get:
|
|
1090
|
+
displayName: getPromptTemplateDataProviderTypeConfig
|
|
1091
|
+
description: Get available data provider types for the specified template type
|
|
1092
|
+
responses:
|
|
1093
|
+
'200':
|
|
1094
|
+
description: Success
|
|
1095
|
+
body:
|
|
1096
|
+
application/json:
|
|
1097
|
+
type: PromptTemplateDataProviderTypeConfigCollectionRepresentation
|
|
1098
|
+
uriParameters:
|
|
1099
|
+
templateType:
|
|
1100
|
+
type: string
|
|
1101
|
+
required: true
|
|
728
1102
|
/prompt-templates/{promptTemplateDevName}:
|
|
729
1103
|
get:
|
|
730
1104
|
displayName: getEinsteinPromptTemplate
|
|
@@ -743,6 +1117,101 @@ types:
|
|
|
743
1117
|
promptTemplateDevName:
|
|
744
1118
|
type: string
|
|
745
1119
|
required: true
|
|
1120
|
+
/versions:
|
|
1121
|
+
get:
|
|
1122
|
+
displayName: getEinsteinPromptTemplateVersions
|
|
1123
|
+
description: Get Prompt Template Versions by DeveloperName
|
|
1124
|
+
responses:
|
|
1125
|
+
'200':
|
|
1126
|
+
description: Success
|
|
1127
|
+
body:
|
|
1128
|
+
application/json:
|
|
1129
|
+
type: EinsteinPromptRecordRepresentation
|
|
1130
|
+
queryParameters:
|
|
1131
|
+
includingContent:
|
|
1132
|
+
type: boolean
|
|
1133
|
+
required: false
|
|
1134
|
+
includingVersionDetail:
|
|
1135
|
+
type: boolean
|
|
1136
|
+
required: false
|
|
1137
|
+
post:
|
|
1138
|
+
displayName: postEinsteinPromptTemplateVersion
|
|
1139
|
+
description: Create a prompt template Version
|
|
1140
|
+
responses:
|
|
1141
|
+
'200':
|
|
1142
|
+
description: Success
|
|
1143
|
+
body:
|
|
1144
|
+
application/json:
|
|
1145
|
+
type: EinsteinPromptTemplateRepresentation
|
|
1146
|
+
body:
|
|
1147
|
+
application/json:
|
|
1148
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
1149
|
+
(oas-body-name): templateInput
|
|
1150
|
+
uriParameters:
|
|
1151
|
+
promptTemplateDevName:
|
|
1152
|
+
type: string
|
|
1153
|
+
required: true
|
|
1154
|
+
/versions/{versionId}:
|
|
1155
|
+
get:
|
|
1156
|
+
displayName: getEinsteinPromptTemplateVersion
|
|
1157
|
+
description: Get Prompt Template Version by DeveloperName and VersionId
|
|
1158
|
+
responses:
|
|
1159
|
+
'200':
|
|
1160
|
+
description: Success
|
|
1161
|
+
body:
|
|
1162
|
+
application/json:
|
|
1163
|
+
type: EinsteinPromptRecordRepresentation
|
|
1164
|
+
queryParameters:
|
|
1165
|
+
includingContent:
|
|
1166
|
+
type: boolean
|
|
1167
|
+
required: false
|
|
1168
|
+
includingVersionDetail:
|
|
1169
|
+
type: boolean
|
|
1170
|
+
required: false
|
|
1171
|
+
put:
|
|
1172
|
+
displayName: putEinsteinPromptTemplateVersion
|
|
1173
|
+
description: Modify a prompt template Version
|
|
1174
|
+
responses:
|
|
1175
|
+
'200':
|
|
1176
|
+
description: Success
|
|
1177
|
+
body:
|
|
1178
|
+
application/json:
|
|
1179
|
+
type: EinsteinPromptTemplateRepresentation
|
|
1180
|
+
body:
|
|
1181
|
+
application/json:
|
|
1182
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
1183
|
+
(oas-body-name): templateInput
|
|
1184
|
+
uriParameters:
|
|
1185
|
+
promptTemplateDevName:
|
|
1186
|
+
type: string
|
|
1187
|
+
required: true
|
|
1188
|
+
versionId:
|
|
1189
|
+
type: string
|
|
1190
|
+
required: true
|
|
1191
|
+
/versions/{versionId}/status:
|
|
1192
|
+
put:
|
|
1193
|
+
displayName: putEinsteinPromptTemplateVersionStatus
|
|
1194
|
+
description: Update prompt template version status (activate/deactivate)
|
|
1195
|
+
responses:
|
|
1196
|
+
'200':
|
|
1197
|
+
description: Success
|
|
1198
|
+
body:
|
|
1199
|
+
application/json:
|
|
1200
|
+
type: EinsteinPromptTemplateRepresentation
|
|
1201
|
+
queryParameters:
|
|
1202
|
+
action:
|
|
1203
|
+
type: string
|
|
1204
|
+
required: false
|
|
1205
|
+
ignoreWarnings:
|
|
1206
|
+
type: boolean
|
|
1207
|
+
required: false
|
|
1208
|
+
uriParameters:
|
|
1209
|
+
promptTemplateDevName:
|
|
1210
|
+
type: string
|
|
1211
|
+
required: true
|
|
1212
|
+
versionId:
|
|
1213
|
+
type: string
|
|
1214
|
+
required: true
|
|
746
1215
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
747
1216
|
post:
|
|
748
1217
|
displayName: postEinsteinPromptTemplateGenerations
|
package/src/raml/luvio.raml
CHANGED
|
@@ -29,6 +29,19 @@ types:
|
|
|
29
29
|
EinsteinPromptRecordRepresentation:
|
|
30
30
|
(luvio.ttl): 100
|
|
31
31
|
(luvio.opaque): true
|
|
32
|
+
EinsteinPromptTemplateRepresentation:
|
|
33
|
+
(luvio.ttl): 100
|
|
34
|
+
(luvio.key):
|
|
35
|
+
versionId: versionId
|
|
36
|
+
PromptTemplateDataProviderInstanceConfigCollectionRepresentation:
|
|
37
|
+
(luvio.ttl): 300
|
|
38
|
+
(luvio.opaque): true
|
|
39
|
+
PromptTemplateDataProviderInstanceConfigRepresentation:
|
|
40
|
+
(luvio.ttl): 300
|
|
41
|
+
(luvio.opaque): true
|
|
42
|
+
PromptTemplateDataProviderTypeConfigCollectionRepresentation:
|
|
43
|
+
(luvio.ttl): 300
|
|
44
|
+
(luvio.opaque): true
|
|
32
45
|
|
|
33
46
|
/einstein/llm/prompt/generations:
|
|
34
47
|
post:
|
|
@@ -39,6 +52,33 @@ types:
|
|
|
39
52
|
get:
|
|
40
53
|
(luvio.adapter):
|
|
41
54
|
name: getPromptTemplates
|
|
55
|
+
post:
|
|
56
|
+
(luvio.adapter):
|
|
57
|
+
name: createPromptTemplate
|
|
58
|
+
|
|
59
|
+
# Treat this POST operation as GET, so LDS can handle automatic caching,
|
|
60
|
+
/einstein/prompt-templates/data-providers/mapped:
|
|
61
|
+
post:
|
|
62
|
+
(luvio.method): get
|
|
63
|
+
(luvio.adapter):
|
|
64
|
+
name: getInputMappedDataProviders
|
|
65
|
+
|
|
66
|
+
# Treat this POST operation as GET, so LDS can handle automatic caching,
|
|
67
|
+
/einstein/prompt-templates/data-provider/describe:
|
|
68
|
+
post:
|
|
69
|
+
(luvio.method): get
|
|
70
|
+
(luvio.adapter):
|
|
71
|
+
name: getDataProviderInstanceConfig
|
|
72
|
+
|
|
73
|
+
/einstein/prompt-templates/data-providers/{templateType}:
|
|
74
|
+
get:
|
|
75
|
+
(luvio.adapter):
|
|
76
|
+
name: getDataProviders
|
|
77
|
+
|
|
78
|
+
/einstein/prompt-templates/data-provider-types/{templateType}:
|
|
79
|
+
get:
|
|
80
|
+
(luvio.adapter):
|
|
81
|
+
name: getDataProviderTypeConfigs
|
|
42
82
|
|
|
43
83
|
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
44
84
|
get:
|
|
@@ -50,6 +90,22 @@ types:
|
|
|
50
90
|
(luvio.adapter):
|
|
51
91
|
name: createGenerationsForPromptTemplate
|
|
52
92
|
|
|
93
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions:
|
|
94
|
+
post:
|
|
95
|
+
(luvio.adapter):
|
|
96
|
+
name: createPromptTemplateVersion
|
|
97
|
+
get:
|
|
98
|
+
(luvio.adapter):
|
|
99
|
+
name: getPromptTemplateVersions
|
|
100
|
+
|
|
101
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}:
|
|
102
|
+
put:
|
|
103
|
+
(luvio.adapter):
|
|
104
|
+
name: updatePromptTemplateVersion
|
|
105
|
+
get:
|
|
106
|
+
(luvio.adapter):
|
|
107
|
+
name: getPromptTemplateVersion
|
|
108
|
+
|
|
53
109
|
/einstein/prompt-template/{promptTemplateDevName}/output-languages:
|
|
54
110
|
get:
|
|
55
111
|
(luvio.adapter):
|
|
@@ -65,3 +121,8 @@ types:
|
|
|
65
121
|
(luvio.method): get
|
|
66
122
|
(luvio.adapter):
|
|
67
123
|
name: createEmbeddings
|
|
124
|
+
|
|
125
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}/status:
|
|
126
|
+
put:
|
|
127
|
+
(luvio.adapter):
|
|
128
|
+
name: putEinsteinPromptTemplateVersionStatus
|