@salesforce/lds-adapters-service-einsteinllm 1.450.0 → 1.451.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 +697 -387
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateAttachmentRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateLatencyExecutionRepresentation.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateTokenUsageRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeModelAffinityRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTypeRecordRepresentation.d.ts +11 -1
- package/package.json +4 -10
- package/sfdc/index.js +712 -402
- package/src/raml/api.raml +53 -0
package/src/raml/api.raml
CHANGED
|
@@ -605,6 +605,14 @@ types:
|
|
|
605
605
|
description: ParentName of the file attachment
|
|
606
606
|
type: string
|
|
607
607
|
required: false # TODO Hand-rolled W-17793327
|
|
608
|
+
transformationInfo:
|
|
609
|
+
description: Type of transformation applied to the file before it was sent
|
|
610
|
+
to the model, such as conversion to PDF
|
|
611
|
+
type: object
|
|
612
|
+
properties:
|
|
613
|
+
//:
|
|
614
|
+
type: string
|
|
615
|
+
required: false
|
|
608
616
|
EinsteinPromptTemplateAttachmentExclusionInfoRepresentation:
|
|
609
617
|
description: Representation for info of file exclusion from LLM requests
|
|
610
618
|
type: object
|
|
@@ -776,15 +784,46 @@ types:
|
|
|
776
784
|
languageDisplayName:
|
|
777
785
|
description: Language Display Name
|
|
778
786
|
type: string
|
|
787
|
+
EinsteinPromptTypeModelAffinityRepresentation:
|
|
788
|
+
description: Representation of the model affinity of a Prompt Template type
|
|
789
|
+
type: object
|
|
790
|
+
properties:
|
|
791
|
+
preferredCapabilities:
|
|
792
|
+
description: The capabilities preferred by the template type
|
|
793
|
+
type: array
|
|
794
|
+
items:
|
|
795
|
+
type: string
|
|
796
|
+
required: false
|
|
797
|
+
requiredCapabilities:
|
|
798
|
+
description: The capabilities required by the template type
|
|
799
|
+
type: array
|
|
800
|
+
items:
|
|
801
|
+
type: string
|
|
802
|
+
required: false
|
|
779
803
|
EinsteinPromptTypeRecordRepresentation:
|
|
780
804
|
description: Representation of a single Prompt Template Type
|
|
781
805
|
type: object
|
|
782
806
|
properties:
|
|
807
|
+
allowActions:
|
|
808
|
+
description: Whether templates of this type may invoke actions
|
|
809
|
+
type: boolean
|
|
810
|
+
required: false
|
|
811
|
+
allowedInputTypes:
|
|
812
|
+
description: The list of input-type classifications this template type may
|
|
813
|
+
use
|
|
814
|
+
type: array
|
|
815
|
+
items:
|
|
816
|
+
type: string
|
|
817
|
+
required: false
|
|
783
818
|
excludedGlobalVariables:
|
|
784
819
|
description: The list of excluded global variables
|
|
785
820
|
type: array
|
|
786
821
|
items:
|
|
787
822
|
type: string
|
|
823
|
+
modelAffinity:
|
|
824
|
+
description: The model affinity of the prompt template type
|
|
825
|
+
type: EinsteinPromptTypeModelAffinityRepresentation
|
|
826
|
+
required: false
|
|
788
827
|
schema:
|
|
789
828
|
description: The schema of the prompt template type
|
|
790
829
|
type: EinsteinPromptTypeSchemaRepresentation
|
|
@@ -1065,6 +1104,10 @@ types:
|
|
|
1065
1104
|
description: Latency execution breakdown with metrics for all execution steps
|
|
1066
1105
|
type: object
|
|
1067
1106
|
properties:
|
|
1107
|
+
fileProcessing:
|
|
1108
|
+
description: Latency metrics for file processing step
|
|
1109
|
+
type: EinsteinPromptTemplateLatencyStepRepresentation
|
|
1110
|
+
required: false
|
|
1068
1111
|
generation:
|
|
1069
1112
|
description: Latency metrics for generation step
|
|
1070
1113
|
type: EinsteinPromptTemplateLatencyStepRepresentation
|
|
@@ -1130,6 +1173,16 @@ types:
|
|
|
1130
1173
|
description: Output representation for token usage and its breakdown
|
|
1131
1174
|
type: object
|
|
1132
1175
|
properties:
|
|
1176
|
+
cacheReadTokens:
|
|
1177
|
+
description: Number of tokens read from the cache (Bedrock/Anthropic prompt
|
|
1178
|
+
caching)
|
|
1179
|
+
required: false
|
|
1180
|
+
type: integer
|
|
1181
|
+
cacheWriteTokens:
|
|
1182
|
+
description: Number of tokens written to the cache (Bedrock/Anthropic prompt
|
|
1183
|
+
caching)
|
|
1184
|
+
required: false
|
|
1185
|
+
type: integer
|
|
1133
1186
|
completion:
|
|
1134
1187
|
description: Number of tokens used for completion
|
|
1135
1188
|
type: integer
|