@salesforce/lds-adapters-service-einsteinllm 1.380.0-dev1 → 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 +2229 -493
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +2 -3
- 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 +2 -3
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +14 -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 +2 -3
- 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 +2 -3
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +2 -3
- 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 +5 -8
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsRepresentation.d.ts +7 -1
- 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 +2480 -673
- package/src/raml/api.raml +361 -10
- package/src/raml/luvio.raml +44 -0
package/src/raml/api.raml
CHANGED
|
@@ -372,19 +372,14 @@ types:
|
|
|
372
372
|
type: any # TODO Hand-rolled W-18886332
|
|
373
373
|
fields:
|
|
374
374
|
description: GenAiPromptTemplate Fields
|
|
375
|
-
type:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
//:
|
|
380
|
-
type: any # TODO Hand-rolled W-18886332
|
|
375
|
+
type: object
|
|
376
|
+
properties:
|
|
377
|
+
//:
|
|
378
|
+
type: any # TODO Hand-rolled W-18886332
|
|
381
379
|
id:
|
|
382
380
|
description: The ID of the prompt template
|
|
383
381
|
type: string
|
|
384
382
|
required: false # TODO Hand-rolled W-18886332
|
|
385
|
-
isStandard:
|
|
386
|
-
description: isStandard
|
|
387
|
-
type: boolean
|
|
388
383
|
EinsteinPromptRecordRepresentation:
|
|
389
384
|
description: Representation of a single Prompt Template
|
|
390
385
|
type: object
|
|
@@ -467,6 +462,10 @@ types:
|
|
|
467
462
|
description: Output of a einstein llm generations response for given prompt template
|
|
468
463
|
type: object
|
|
469
464
|
properties:
|
|
465
|
+
citations:
|
|
466
|
+
description: Generation Citations Mapping
|
|
467
|
+
required: false # TODO Hand-rolled W-19304625
|
|
468
|
+
type: EinsteinLlmGenerationCitationRepresentation
|
|
470
469
|
generationErrors:
|
|
471
470
|
description: generated prompt template generationErrors
|
|
472
471
|
type: array
|
|
@@ -485,6 +484,9 @@ types:
|
|
|
485
484
|
prompt:
|
|
486
485
|
description: Prompt used for the generation
|
|
487
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'
|
|
488
490
|
promptTemplateDevName:
|
|
489
491
|
description: generated prompt template promptTemplateDevName
|
|
490
492
|
type: string
|
|
@@ -518,6 +520,45 @@ types:
|
|
|
518
520
|
required: false # TODO Hand-rolled W-17552098
|
|
519
521
|
items:
|
|
520
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
|
|
521
562
|
EinsteinPromptTemplateAttachmentRepresentation:
|
|
522
563
|
description: Representation of file data for prompt template attachments
|
|
523
564
|
type: object
|
|
@@ -645,6 +686,188 @@ types:
|
|
|
645
686
|
languageDisplayName:
|
|
646
687
|
description: Language Display Name
|
|
647
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
|
|
648
871
|
EinsteinPromptTemplateVersionOutputLanguagesRepresentation:
|
|
649
872
|
description: Representation of all supported output languages for a given Prompt
|
|
650
873
|
Template Version
|
|
@@ -687,7 +910,7 @@ types:
|
|
|
687
910
|
type: object
|
|
688
911
|
properties:
|
|
689
912
|
//:
|
|
690
|
-
type:
|
|
913
|
+
type: any
|
|
691
914
|
WrappedValue:
|
|
692
915
|
description: Wrapped Object for use in Einstein LLM.
|
|
693
916
|
type: object
|
|
@@ -804,6 +1027,78 @@ types:
|
|
|
804
1027
|
application/json:
|
|
805
1028
|
type: EinsteinPromptRecordInputRepresentation
|
|
806
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
|
|
807
1102
|
/prompt-templates/{promptTemplateDevName}:
|
|
808
1103
|
get:
|
|
809
1104
|
displayName: getEinsteinPromptTemplate
|
|
@@ -823,6 +1118,22 @@ types:
|
|
|
823
1118
|
type: string
|
|
824
1119
|
required: true
|
|
825
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
|
|
826
1137
|
post:
|
|
827
1138
|
displayName: postEinsteinPromptTemplateVersion
|
|
828
1139
|
description: Create a prompt template Version
|
|
@@ -841,6 +1152,22 @@ types:
|
|
|
841
1152
|
type: string
|
|
842
1153
|
required: true
|
|
843
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
|
|
844
1171
|
put:
|
|
845
1172
|
displayName: putEinsteinPromptTemplateVersion
|
|
846
1173
|
description: Modify a prompt template Version
|
|
@@ -861,6 +1188,30 @@ types:
|
|
|
861
1188
|
versionId:
|
|
862
1189
|
type: string
|
|
863
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
|
|
864
1215
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
865
1216
|
post:
|
|
866
1217
|
displayName: postEinsteinPromptTemplateGenerations
|
package/src/raml/luvio.raml
CHANGED
|
@@ -33,6 +33,15 @@ types:
|
|
|
33
33
|
(luvio.ttl): 100
|
|
34
34
|
(luvio.key):
|
|
35
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
|
|
36
45
|
|
|
37
46
|
/einstein/llm/prompt/generations:
|
|
38
47
|
post:
|
|
@@ -47,6 +56,30 @@ types:
|
|
|
47
56
|
(luvio.adapter):
|
|
48
57
|
name: createPromptTemplate
|
|
49
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
|
|
82
|
+
|
|
50
83
|
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
51
84
|
get:
|
|
52
85
|
(luvio.adapter):
|
|
@@ -61,11 +94,17 @@ types:
|
|
|
61
94
|
post:
|
|
62
95
|
(luvio.adapter):
|
|
63
96
|
name: createPromptTemplateVersion
|
|
97
|
+
get:
|
|
98
|
+
(luvio.adapter):
|
|
99
|
+
name: getPromptTemplateVersions
|
|
64
100
|
|
|
65
101
|
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}:
|
|
66
102
|
put:
|
|
67
103
|
(luvio.adapter):
|
|
68
104
|
name: updatePromptTemplateVersion
|
|
105
|
+
get:
|
|
106
|
+
(luvio.adapter):
|
|
107
|
+
name: getPromptTemplateVersion
|
|
69
108
|
|
|
70
109
|
/einstein/prompt-template/{promptTemplateDevName}/output-languages:
|
|
71
110
|
get:
|
|
@@ -82,3 +121,8 @@ types:
|
|
|
82
121
|
(luvio.method): get
|
|
83
122
|
(luvio.adapter):
|
|
84
123
|
name: createEmbeddings
|
|
124
|
+
|
|
125
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}/status:
|
|
126
|
+
put:
|
|
127
|
+
(luvio.adapter):
|
|
128
|
+
name: putEinsteinPromptTemplateVersionStatus
|