@salesforce/lds-adapters-service-einsteinllm 1.383.0 → 1.385.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 +1505 -553
- 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/putEinsteinPromptTemplateVersionStatus.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -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/postEinsteinPromptTemplatesDataProviderDescribe.d.ts +19 -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/EinsteinPromptTemplateGenerationsRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigCollectionRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigInputRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/PromptTemplateDataProviderInstanceConfigRepresentation.d.ts +6 -5
- 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/package.json +4 -4
- package/sfdc/index.js +1579 -592
- package/src/raml/api.raml +174 -8
- package/src/raml/luvio.raml +28 -0
package/src/raml/api.raml
CHANGED
|
@@ -6,7 +6,7 @@ version: '62.0'
|
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
9
|
-
baseUri: /services/data/
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
10
|
securitySchemes:
|
|
11
11
|
OAuth2:
|
|
12
12
|
type: OAuth 2.0
|
|
@@ -467,6 +467,10 @@ types:
|
|
|
467
467
|
description: Output of a einstein llm generations response for given prompt template
|
|
468
468
|
type: object
|
|
469
469
|
properties:
|
|
470
|
+
citations:
|
|
471
|
+
description: Generation Citations Mapping
|
|
472
|
+
required: false # TODO Hand-rolled W-19304625
|
|
473
|
+
type: EinsteinLlmGenerationCitationRepresentation
|
|
470
474
|
generationErrors:
|
|
471
475
|
description: generated prompt template generationErrors
|
|
472
476
|
type: array
|
|
@@ -518,6 +522,45 @@ types:
|
|
|
518
522
|
required: false # TODO Hand-rolled W-17552098
|
|
519
523
|
items:
|
|
520
524
|
type: EinsteinPromptTemplateAttachmentRepresentation
|
|
525
|
+
EinsteinLlmGenerationCitationRepresentation:
|
|
526
|
+
description: Output of a Einstein LLM Generation Citation output
|
|
527
|
+
type: object
|
|
528
|
+
properties:
|
|
529
|
+
citedReferences:
|
|
530
|
+
description: Cited References
|
|
531
|
+
required: false # TODO Hand-rolled W-19304625
|
|
532
|
+
type: array
|
|
533
|
+
items:
|
|
534
|
+
type: EinsteinLlmGenerationGenAiCitedReferenceRepresentation
|
|
535
|
+
EinsteinLlmGenerationGenAiCitedReferenceRepresentation:
|
|
536
|
+
description: Output of a Einstein LLM Generation Gen AI Citation output
|
|
537
|
+
type: object
|
|
538
|
+
properties:
|
|
539
|
+
citationLocations:
|
|
540
|
+
description: Array of locations where that particular citation needs to appear
|
|
541
|
+
in the input text
|
|
542
|
+
type: array
|
|
543
|
+
required: false # TODO Hand-rolled W-19304625
|
|
544
|
+
items:
|
|
545
|
+
type: integer
|
|
546
|
+
claims:
|
|
547
|
+
description: Matching chunk from the input text
|
|
548
|
+
type: array
|
|
549
|
+
required: false # TODO Hand-rolled W-19304625
|
|
550
|
+
items:
|
|
551
|
+
type: string
|
|
552
|
+
link:
|
|
553
|
+
description: Link
|
|
554
|
+
type: string
|
|
555
|
+
required: false # TODO Hand-rolled W-19304625
|
|
556
|
+
sourceObjectApiName:
|
|
557
|
+
description: SourceObjectApiName
|
|
558
|
+
type: string
|
|
559
|
+
required: false # TODO Hand-rolled W-19304625
|
|
560
|
+
sourceObjectRecordId:
|
|
561
|
+
description: SourceObjectRecordId
|
|
562
|
+
type: string
|
|
563
|
+
required: false # TODO Hand-rolled W-19304625
|
|
521
564
|
EinsteinPromptTemplateAttachmentRepresentation:
|
|
522
565
|
description: Representation of file data for prompt template attachments
|
|
523
566
|
type: object
|
|
@@ -699,9 +742,10 @@ types:
|
|
|
699
742
|
additionalParam:
|
|
700
743
|
description: Additional parameters for the data provider configuration
|
|
701
744
|
type: object
|
|
745
|
+
required: false # TODO Hand-rolled W-18968514
|
|
702
746
|
properties:
|
|
703
747
|
//:
|
|
704
|
-
type:
|
|
748
|
+
type: any #TODO Hand-rolled W-18968514
|
|
705
749
|
definition:
|
|
706
750
|
description: The definition of the data provider instance
|
|
707
751
|
type: string
|
|
@@ -757,6 +801,7 @@ types:
|
|
|
757
801
|
nodeIcon:
|
|
758
802
|
description: The icon identifier for the data provider instance
|
|
759
803
|
type: string | nil
|
|
804
|
+
required: false # TODO Hand-rolled W-18968514
|
|
760
805
|
outputParams:
|
|
761
806
|
description: The list of all output parameters for the data provider instance
|
|
762
807
|
type: array
|
|
@@ -786,6 +831,45 @@ types:
|
|
|
786
831
|
label:
|
|
787
832
|
description: The label of the output parameter
|
|
788
833
|
type: string
|
|
834
|
+
PromptTemplateDataProviderTypeConfigCollectionRepresentation:
|
|
835
|
+
description: Collection of data provider type configurations for a prompt template
|
|
836
|
+
type
|
|
837
|
+
type: object
|
|
838
|
+
properties:
|
|
839
|
+
dataProviderTypeConfigs:
|
|
840
|
+
description: List of data provider type configs
|
|
841
|
+
type: array
|
|
842
|
+
items:
|
|
843
|
+
type: PromptTemplateDataProviderTypeConfigRepresentation
|
|
844
|
+
PromptTemplateDataProviderTypeConfigRepresentation:
|
|
845
|
+
description: Output representation of a data provider type configuration
|
|
846
|
+
type: object
|
|
847
|
+
properties:
|
|
848
|
+
description:
|
|
849
|
+
description: The localized description of the data provider type
|
|
850
|
+
type: string
|
|
851
|
+
required: false # TODO Hand-rolled W-19333313
|
|
852
|
+
groupName:
|
|
853
|
+
description: The group name of the data provider type
|
|
854
|
+
type: string
|
|
855
|
+
icon:
|
|
856
|
+
description: The icon identifier for the data provider type
|
|
857
|
+
type: string
|
|
858
|
+
isTopLevel:
|
|
859
|
+
description: Indicates whether this is a top level data provider type
|
|
860
|
+
type: boolean
|
|
861
|
+
label:
|
|
862
|
+
description: The localized label of the data provider type
|
|
863
|
+
type: string
|
|
864
|
+
parentNode:
|
|
865
|
+
description: The parent node identifier for hierarchical data provider types
|
|
866
|
+
type: string
|
|
867
|
+
required: false # TODO Hand-rolled W-19333313
|
|
868
|
+
scope:
|
|
869
|
+
description: The scope configuration for the data provider type (can be 'ALL'
|
|
870
|
+
or list of specific scopes)
|
|
871
|
+
type: any # TODO Hand-rolled W-19333313, scope can be a string, list of string, or just "ALL"
|
|
872
|
+
required: false # TODO Hand-rolled W-19333313
|
|
789
873
|
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
790
874
|
description: Representation of all supported output languages for a given Prompt
|
|
791
875
|
Template Version
|
|
@@ -945,20 +1029,78 @@ types:
|
|
|
945
1029
|
application/json:
|
|
946
1030
|
type: EinsteinPromptRecordInputRepresentation
|
|
947
1031
|
(oas-body-name): templateInput
|
|
948
|
-
/prompt-templates/data-providers
|
|
1032
|
+
/prompt-templates/data-providers:
|
|
1033
|
+
/mapped:
|
|
1034
|
+
post:
|
|
1035
|
+
displayName: postDataProviderInputMatchDiscovery
|
|
1036
|
+
description: Get Data Provider Discovery Info List
|
|
1037
|
+
responses:
|
|
1038
|
+
'200':
|
|
1039
|
+
description: Success
|
|
1040
|
+
body:
|
|
1041
|
+
application/json:
|
|
1042
|
+
type: PromptTemplateDataProviderInstanceConfigCollectionRepresentation
|
|
1043
|
+
body:
|
|
1044
|
+
application/json:
|
|
1045
|
+
type: PromptTemplateDataProviderDiscoveryInputRepresentation
|
|
1046
|
+
(oas-body-name): dataProviderDiscoveryInput
|
|
1047
|
+
/{templateType}:
|
|
1048
|
+
get:
|
|
1049
|
+
displayName: getPromptTemplateDataProviderDiscovery
|
|
1050
|
+
description: Discover available data providers for prompt templates
|
|
1051
|
+
responses:
|
|
1052
|
+
'200':
|
|
1053
|
+
description: Success
|
|
1054
|
+
body:
|
|
1055
|
+
application/json:
|
|
1056
|
+
type: PromptTemplateDataProviderInstanceConfigCollectionRepresentation
|
|
1057
|
+
queryParameters:
|
|
1058
|
+
groupNames:
|
|
1059
|
+
description: The group names for data provider discovery
|
|
1060
|
+
type: array
|
|
1061
|
+
required: false
|
|
1062
|
+
items:
|
|
1063
|
+
type: string
|
|
1064
|
+
(oas-collectionFormat): csv
|
|
1065
|
+
targets:
|
|
1066
|
+
description: The scoped targets for data provider discovery
|
|
1067
|
+
type: array
|
|
1068
|
+
required: false
|
|
1069
|
+
items:
|
|
1070
|
+
type: string
|
|
1071
|
+
(oas-collectionFormat): csv
|
|
1072
|
+
uriParameters:
|
|
1073
|
+
templateType:
|
|
1074
|
+
type: string
|
|
1075
|
+
required: true
|
|
1076
|
+
/prompt-templates/data-provider/describe:
|
|
949
1077
|
post:
|
|
950
|
-
displayName:
|
|
951
|
-
description: Get Data Provider
|
|
1078
|
+
displayName: postPromptTemplateDataProviderInstanceConfig
|
|
1079
|
+
description: Get Data Provider Instance Configuration for given definition name
|
|
952
1080
|
responses:
|
|
953
1081
|
'200':
|
|
954
1082
|
description: Success
|
|
955
1083
|
body:
|
|
956
1084
|
application/json:
|
|
957
|
-
type:
|
|
1085
|
+
type: PromptTemplateDataProviderInstanceConfigRepresentation
|
|
958
1086
|
body:
|
|
959
1087
|
application/json:
|
|
960
|
-
type:
|
|
961
|
-
(oas-body-name):
|
|
1088
|
+
type: PromptTemplateDataProviderInstanceConfigInputRepresentation
|
|
1089
|
+
(oas-body-name): dataProviderInstanceConfigInput
|
|
1090
|
+
/prompt-templates/data-provider-types/{templateType}:
|
|
1091
|
+
get:
|
|
1092
|
+
displayName: getPromptTemplateDataProviderTypeConfig
|
|
1093
|
+
description: Get available data provider types for the specified template type
|
|
1094
|
+
responses:
|
|
1095
|
+
'200':
|
|
1096
|
+
description: Success
|
|
1097
|
+
body:
|
|
1098
|
+
application/json:
|
|
1099
|
+
type: PromptTemplateDataProviderTypeConfigCollectionRepresentation
|
|
1100
|
+
uriParameters:
|
|
1101
|
+
templateType:
|
|
1102
|
+
type: string
|
|
1103
|
+
required: true
|
|
962
1104
|
/prompt-templates/{promptTemplateDevName}:
|
|
963
1105
|
get:
|
|
964
1106
|
displayName: getEinsteinPromptTemplate
|
|
@@ -1016,6 +1158,30 @@ types:
|
|
|
1016
1158
|
versionId:
|
|
1017
1159
|
type: string
|
|
1018
1160
|
required: true
|
|
1161
|
+
/versions/{versionId}/status:
|
|
1162
|
+
put:
|
|
1163
|
+
displayName: putEinsteinPromptTemplateVersionStatus
|
|
1164
|
+
description: Update prompt template version status (activate/deactivate)
|
|
1165
|
+
responses:
|
|
1166
|
+
'200':
|
|
1167
|
+
description: Success
|
|
1168
|
+
body:
|
|
1169
|
+
application/json:
|
|
1170
|
+
type: EinsteinPromptTemplateRepresentation
|
|
1171
|
+
queryParameters:
|
|
1172
|
+
action:
|
|
1173
|
+
type: string
|
|
1174
|
+
required: false
|
|
1175
|
+
ignoreWarnings:
|
|
1176
|
+
type: boolean
|
|
1177
|
+
required: false
|
|
1178
|
+
uriParameters:
|
|
1179
|
+
promptTemplateDevName:
|
|
1180
|
+
type: string
|
|
1181
|
+
required: true
|
|
1182
|
+
versionId:
|
|
1183
|
+
type: string
|
|
1184
|
+
required: true
|
|
1019
1185
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
1020
1186
|
post:
|
|
1021
1187
|
displayName: postEinsteinPromptTemplateGenerations
|
package/src/raml/luvio.raml
CHANGED
|
@@ -36,6 +36,12 @@ types:
|
|
|
36
36
|
PromptTemplateDataProviderInstanceConfigCollectionRepresentation:
|
|
37
37
|
(luvio.ttl): 300
|
|
38
38
|
(luvio.opaque): true
|
|
39
|
+
PromptTemplateDataProviderInstanceConfigRepresentation:
|
|
40
|
+
(luvio.ttl): 300
|
|
41
|
+
(luvio.opaque): true
|
|
42
|
+
PromptTemplateDataProviderTypeConfigCollectionRepresentation:
|
|
43
|
+
(luvio.ttl): 300
|
|
44
|
+
(luvio.opaque): true
|
|
39
45
|
|
|
40
46
|
/einstein/llm/prompt/generations:
|
|
41
47
|
post:
|
|
@@ -57,6 +63,23 @@ types:
|
|
|
57
63
|
(luvio.adapter):
|
|
58
64
|
name: getInputMappedDataProviders
|
|
59
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
|
|
82
|
+
|
|
60
83
|
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
61
84
|
get:
|
|
62
85
|
(luvio.adapter):
|
|
@@ -92,3 +115,8 @@ types:
|
|
|
92
115
|
(luvio.method): get
|
|
93
116
|
(luvio.adapter):
|
|
94
117
|
name: createEmbeddings
|
|
118
|
+
|
|
119
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}/status:
|
|
120
|
+
put:
|
|
121
|
+
(luvio.adapter):
|
|
122
|
+
name: putEinsteinPromptTemplateVersionStatus
|