@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev1 → 1.381.0
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 +827 -344
- package/dist/es/es2018/types/src/generated/adapters/getInputMappedDataProviders.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesDataProvidersMapped.d.ts +18 -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 +76 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderOutputParamRepresentation.d.ts +31 -0
- package/package.json +4 -4
- package/sfdc/index.js +865 -370
- package/src/raml/api.raml +155 -0
- package/src/raml/luvio.raml +10 -0
package/src/raml/api.raml
CHANGED
|
@@ -645,6 +645,147 @@ types:
|
|
|
645
645
|
languageDisplayName:
|
|
646
646
|
description: Language Display Name
|
|
647
647
|
type: string
|
|
648
|
+
PromptTemplateDataProviderDiscoveryInputRepresentation:
|
|
649
|
+
description: Input for data provider discovery API to find available data providers
|
|
650
|
+
based on criteria
|
|
651
|
+
type: object
|
|
652
|
+
properties:
|
|
653
|
+
groupName:
|
|
654
|
+
description: The expression group name for the data provider
|
|
655
|
+
type: string
|
|
656
|
+
required: false # TODO Hand-rolled W-18968514
|
|
657
|
+
target:
|
|
658
|
+
description: The scoped target for data provider discovery
|
|
659
|
+
type: string
|
|
660
|
+
required: false # TODO Hand-rolled W-18968514
|
|
661
|
+
templateInputs:
|
|
662
|
+
description: List of template input parameters for data provider discovery
|
|
663
|
+
type: array
|
|
664
|
+
items:
|
|
665
|
+
type: any #TODO Hand-rolled W-18968514
|
|
666
|
+
templateTypeName:
|
|
667
|
+
description: The template type name to filter data providers by
|
|
668
|
+
type: string
|
|
669
|
+
PromptTemplateDataProviderInputParamRepresentation:
|
|
670
|
+
description: Represents an input parameter for a data provider instance
|
|
671
|
+
type: object
|
|
672
|
+
properties:
|
|
673
|
+
apiName:
|
|
674
|
+
description: The api name of the input parameter
|
|
675
|
+
type: string
|
|
676
|
+
label:
|
|
677
|
+
description: The label of the input parameter
|
|
678
|
+
type: string
|
|
679
|
+
required:
|
|
680
|
+
description: The flag to identify if input is mandatory
|
|
681
|
+
type: boolean
|
|
682
|
+
type:
|
|
683
|
+
description: The data type of the input parameter
|
|
684
|
+
type: string
|
|
685
|
+
PromptTemplateDataProviderInstanceConfigCollectionRepresentation:
|
|
686
|
+
description: Collection of data provider instance configurations for a prompt
|
|
687
|
+
template version
|
|
688
|
+
type: object
|
|
689
|
+
properties:
|
|
690
|
+
dataProviderInstanceConfigs:
|
|
691
|
+
description: List of data provider instance configurations
|
|
692
|
+
type: array
|
|
693
|
+
items:
|
|
694
|
+
type: PromptTemplateDataProviderInstanceConfigRepresentation
|
|
695
|
+
PromptTemplateDataProviderInstanceConfigInputRepresentation:
|
|
696
|
+
description: Input for data provider instance configuration generation
|
|
697
|
+
type: object
|
|
698
|
+
properties:
|
|
699
|
+
additionalParam:
|
|
700
|
+
description: Additional parameters for the data provider configuration
|
|
701
|
+
type: object
|
|
702
|
+
properties:
|
|
703
|
+
//:
|
|
704
|
+
type: object
|
|
705
|
+
definition:
|
|
706
|
+
description: The definition of the data provider instance
|
|
707
|
+
type: string
|
|
708
|
+
groupName:
|
|
709
|
+
description: The expression group name for the data provider
|
|
710
|
+
type: string
|
|
711
|
+
PromptTemplateDataProviderInstanceConfigRepresentation:
|
|
712
|
+
description: Configuration for a specific instance of a data provider that drives
|
|
713
|
+
PB UI capabilities
|
|
714
|
+
type: object
|
|
715
|
+
properties:
|
|
716
|
+
apiName:
|
|
717
|
+
description: The API name of the discovered data provider
|
|
718
|
+
type: string
|
|
719
|
+
dataProviderBundle:
|
|
720
|
+
description: The data provider bundle containing configuration and schema
|
|
721
|
+
information
|
|
722
|
+
type: object
|
|
723
|
+
required: false # TODO Hand-rolled W-18968514
|
|
724
|
+
properties:
|
|
725
|
+
//:
|
|
726
|
+
type: any # TODO Hand-rolled W-18968514
|
|
727
|
+
defaultOutputParam:
|
|
728
|
+
description: The default output parameter for the data provider instance
|
|
729
|
+
type: PromptTemplateDataProviderOutputParamRepresentation
|
|
730
|
+
required: false # TODO Hand-rolled W-18968514
|
|
731
|
+
definition:
|
|
732
|
+
description: The definition field for the data provider instance
|
|
733
|
+
type: string
|
|
734
|
+
description:
|
|
735
|
+
description: The description of data provider
|
|
736
|
+
type: string | nil
|
|
737
|
+
required: false # TODO Hand-rolled W-18968514
|
|
738
|
+
groupName:
|
|
739
|
+
description: The expression group name for the data provider instance
|
|
740
|
+
type: string
|
|
741
|
+
inputParams:
|
|
742
|
+
description: The list of all input parameters for the data provider instance
|
|
743
|
+
type: array
|
|
744
|
+
required: false # TODO Hand-rolled W-18968514
|
|
745
|
+
items:
|
|
746
|
+
type: PromptTemplateDataProviderInputParamRepresentation
|
|
747
|
+
label:
|
|
748
|
+
description: The display label for the data provider instance
|
|
749
|
+
type: string
|
|
750
|
+
mappedInputs:
|
|
751
|
+
description: The mapped inputs for data provider
|
|
752
|
+
type: object
|
|
753
|
+
required: false # TODO Hand-rolled W-18968514
|
|
754
|
+
properties:
|
|
755
|
+
//:
|
|
756
|
+
type: any # TODO Hand-rolled W-18968514
|
|
757
|
+
nodeIcon:
|
|
758
|
+
description: The icon identifier for the data provider instance
|
|
759
|
+
type: string | nil
|
|
760
|
+
outputParams:
|
|
761
|
+
description: The list of all output parameters for the data provider instance
|
|
762
|
+
type: array
|
|
763
|
+
required: false # TODO Hand-rolled W-18968514
|
|
764
|
+
items:
|
|
765
|
+
type: PromptTemplateDataProviderOutputParamRepresentation
|
|
766
|
+
referenceName:
|
|
767
|
+
description: The reference name for the data provider instance
|
|
768
|
+
type: string
|
|
769
|
+
scopedToTarget:
|
|
770
|
+
description: The target scope for non-top level providers scoped to a specific
|
|
771
|
+
target
|
|
772
|
+
type: string | nil
|
|
773
|
+
required: false # TODO Hand-rolled W-18968514
|
|
774
|
+
subGroup:
|
|
775
|
+
description: The sub-group used to categorize data providers in the resource
|
|
776
|
+
picker
|
|
777
|
+
type: string | nil
|
|
778
|
+
required: false # TODO Hand-rolled W-18968514
|
|
779
|
+
PromptTemplateDataProviderOutputParamRepresentation:
|
|
780
|
+
description: Represents an output parameter for a data provider instance
|
|
781
|
+
type: object
|
|
782
|
+
properties:
|
|
783
|
+
apiName:
|
|
784
|
+
description: The value of the output parameter
|
|
785
|
+
type: string
|
|
786
|
+
label:
|
|
787
|
+
description: The label of the output parameter
|
|
788
|
+
type: string
|
|
648
789
|
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
649
790
|
description: Representation of all supported output languages for a given Prompt
|
|
650
791
|
Template Version
|
|
@@ -804,6 +945,20 @@ types:
|
|
|
804
945
|
application/json:
|
|
805
946
|
type: EinsteinPromptRecordInputRepresentation
|
|
806
947
|
(oas-body-name): templateInput
|
|
948
|
+
/prompt-templates/data-providers/mapped:
|
|
949
|
+
post:
|
|
950
|
+
displayName: postDataProviderInputMatchDiscovery
|
|
951
|
+
description: Get Data Provider Discovery Info List
|
|
952
|
+
responses:
|
|
953
|
+
'200':
|
|
954
|
+
description: Success
|
|
955
|
+
body:
|
|
956
|
+
application/json:
|
|
957
|
+
type: PromptTemplateDataProviderInstanceConfigCollectionRepresentation
|
|
958
|
+
body:
|
|
959
|
+
application/json:
|
|
960
|
+
type: PromptTemplateDataProviderDiscoveryInputRepresentation
|
|
961
|
+
(oas-body-name): dataProviderDiscoveryInput
|
|
807
962
|
/prompt-templates/{promptTemplateDevName}:
|
|
808
963
|
get:
|
|
809
964
|
displayName: getEinsteinPromptTemplate
|
package/src/raml/luvio.raml
CHANGED
|
@@ -33,6 +33,9 @@ types:
|
|
|
33
33
|
(luvio.ttl): 100
|
|
34
34
|
(luvio.key):
|
|
35
35
|
versionId: versionId
|
|
36
|
+
PromptTemplateDataProviderInstanceConfigCollectionRepresentation:
|
|
37
|
+
(luvio.ttl): 300
|
|
38
|
+
(luvio.opaque): true
|
|
36
39
|
|
|
37
40
|
/einstein/llm/prompt/generations:
|
|
38
41
|
post:
|
|
@@ -47,6 +50,13 @@ types:
|
|
|
47
50
|
(luvio.adapter):
|
|
48
51
|
name: createPromptTemplate
|
|
49
52
|
|
|
53
|
+
# Treat this POST operation as GET, so LDS can handle automatic caching,
|
|
54
|
+
/einstein/prompt-templates/data-providers/mapped:
|
|
55
|
+
post:
|
|
56
|
+
(luvio.method): get
|
|
57
|
+
(luvio.adapter):
|
|
58
|
+
name: getInputMappedDataProviders
|
|
59
|
+
|
|
50
60
|
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
51
61
|
get:
|
|
52
62
|
(luvio.adapter):
|