@salesforce/lds-adapters-service-einsteinllm 1.379.0 → 1.380.0-dev1
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 +966 -323
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplate.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/adapters/createPromptTemplateVersion.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePromptTemplateVersion.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplates.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postEinsteinPromptTemplatesVersionsByPromptTemplateDevName.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/putEinsteinPromptTemplatesVersionsByPromptTemplateDevNameAndVersionId.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptRecordInputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateRepresentation.d.ts +62 -0
- package/package.json +4 -4
- package/sfdc/index.js +1052 -400
- package/src/raml/api.raml +118 -0
- package/src/raml/luvio.raml +17 -0
package/src/raml/api.raml
CHANGED
|
@@ -357,6 +357,34 @@ 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: array
|
|
376
|
+
items:
|
|
377
|
+
type: object
|
|
378
|
+
properties:
|
|
379
|
+
//:
|
|
380
|
+
type: any # TODO Hand-rolled W-18886332
|
|
381
|
+
id:
|
|
382
|
+
description: The ID of the prompt template
|
|
383
|
+
type: string
|
|
384
|
+
required: false # TODO Hand-rolled W-18886332
|
|
385
|
+
isStandard:
|
|
386
|
+
description: isStandard
|
|
387
|
+
type: boolean
|
|
360
388
|
EinsteinPromptRecordRepresentation:
|
|
361
389
|
description: Representation of a single Prompt Template
|
|
362
390
|
type: object
|
|
@@ -524,6 +552,44 @@ types:
|
|
|
524
552
|
isExcluded:
|
|
525
553
|
description: true if the file is excluded from LLM request, false otherwise
|
|
526
554
|
type: boolean
|
|
555
|
+
EinsteinPromptTemplateRepresentation:
|
|
556
|
+
description: Comprehensive representation for prompt template operations including
|
|
557
|
+
creation, updates, and activation
|
|
558
|
+
type: object
|
|
559
|
+
properties:
|
|
560
|
+
additionalData?: # TODO Hand-rolled W-18886332
|
|
561
|
+
description: Additional data, such as references
|
|
562
|
+
type: WrappedMap
|
|
563
|
+
errorMessages:
|
|
564
|
+
description: Error Messages
|
|
565
|
+
type: array
|
|
566
|
+
items:
|
|
567
|
+
type: string
|
|
568
|
+
hasWarning:
|
|
569
|
+
description: has warning messages
|
|
570
|
+
type: boolean
|
|
571
|
+
isSuccessful:
|
|
572
|
+
description: IsSuccessful
|
|
573
|
+
type: boolean
|
|
574
|
+
statusCode:
|
|
575
|
+
description: Status Code of connect api
|
|
576
|
+
type: string
|
|
577
|
+
required: false # TODO Hand-rolled W-18886332
|
|
578
|
+
templateId:
|
|
579
|
+
description: Template Id
|
|
580
|
+
type: string
|
|
581
|
+
templateType:
|
|
582
|
+
description: Template Type
|
|
583
|
+
type: string
|
|
584
|
+
required: false # TODO Hand-rolled W-18886332
|
|
585
|
+
versionId:
|
|
586
|
+
description: Version Id
|
|
587
|
+
type: string
|
|
588
|
+
warningMessages:
|
|
589
|
+
description: Warning Messages
|
|
590
|
+
type: array
|
|
591
|
+
items:
|
|
592
|
+
type: string
|
|
527
593
|
EinsteinPromptTemplateMaskContentRepresentation:
|
|
528
594
|
description: Output of a einstein mask data request and response for given prompt template
|
|
529
595
|
type: object
|
|
@@ -725,6 +791,19 @@ types:
|
|
|
725
791
|
sortBy:
|
|
726
792
|
type: string
|
|
727
793
|
required: false
|
|
794
|
+
post:
|
|
795
|
+
displayName: postEinsteinPromptTemplateCollection
|
|
796
|
+
description: Create a prompt template
|
|
797
|
+
responses:
|
|
798
|
+
'200':
|
|
799
|
+
description: Success
|
|
800
|
+
body:
|
|
801
|
+
application/json:
|
|
802
|
+
type: EinsteinPromptTemplateRepresentation
|
|
803
|
+
body:
|
|
804
|
+
application/json:
|
|
805
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
806
|
+
(oas-body-name): templateInput
|
|
728
807
|
/prompt-templates/{promptTemplateDevName}:
|
|
729
808
|
get:
|
|
730
809
|
displayName: getEinsteinPromptTemplate
|
|
@@ -743,6 +822,45 @@ types:
|
|
|
743
822
|
promptTemplateDevName:
|
|
744
823
|
type: string
|
|
745
824
|
required: true
|
|
825
|
+
/versions:
|
|
826
|
+
post:
|
|
827
|
+
displayName: postEinsteinPromptTemplateVersion
|
|
828
|
+
description: Create a prompt template Version
|
|
829
|
+
responses:
|
|
830
|
+
'200':
|
|
831
|
+
description: Success
|
|
832
|
+
body:
|
|
833
|
+
application/json:
|
|
834
|
+
type: EinsteinPromptTemplateRepresentation
|
|
835
|
+
body:
|
|
836
|
+
application/json:
|
|
837
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
838
|
+
(oas-body-name): templateInput
|
|
839
|
+
uriParameters:
|
|
840
|
+
promptTemplateDevName:
|
|
841
|
+
type: string
|
|
842
|
+
required: true
|
|
843
|
+
/versions/{versionId}:
|
|
844
|
+
put:
|
|
845
|
+
displayName: putEinsteinPromptTemplateVersion
|
|
846
|
+
description: Modify a prompt template Version
|
|
847
|
+
responses:
|
|
848
|
+
'200':
|
|
849
|
+
description: Success
|
|
850
|
+
body:
|
|
851
|
+
application/json:
|
|
852
|
+
type: EinsteinPromptTemplateRepresentation
|
|
853
|
+
body:
|
|
854
|
+
application/json:
|
|
855
|
+
type: EinsteinPromptRecordInputRepresentation
|
|
856
|
+
(oas-body-name): templateInput
|
|
857
|
+
uriParameters:
|
|
858
|
+
promptTemplateDevName:
|
|
859
|
+
type: string
|
|
860
|
+
required: true
|
|
861
|
+
versionId:
|
|
862
|
+
type: string
|
|
863
|
+
required: true
|
|
746
864
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
747
865
|
post:
|
|
748
866
|
displayName: postEinsteinPromptTemplateGenerations
|
package/src/raml/luvio.raml
CHANGED
|
@@ -29,6 +29,10 @@ 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
|
|
32
36
|
|
|
33
37
|
/einstein/llm/prompt/generations:
|
|
34
38
|
post:
|
|
@@ -39,6 +43,9 @@ types:
|
|
|
39
43
|
get:
|
|
40
44
|
(luvio.adapter):
|
|
41
45
|
name: getPromptTemplates
|
|
46
|
+
post:
|
|
47
|
+
(luvio.adapter):
|
|
48
|
+
name: createPromptTemplate
|
|
42
49
|
|
|
43
50
|
/einstein/prompt-templates/{promptTemplateDevName}:
|
|
44
51
|
get:
|
|
@@ -50,6 +57,16 @@ types:
|
|
|
50
57
|
(luvio.adapter):
|
|
51
58
|
name: createGenerationsForPromptTemplate
|
|
52
59
|
|
|
60
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions:
|
|
61
|
+
post:
|
|
62
|
+
(luvio.adapter):
|
|
63
|
+
name: createPromptTemplateVersion
|
|
64
|
+
|
|
65
|
+
/einstein/prompt-templates/{promptTemplateDevName}/versions/{versionId}:
|
|
66
|
+
put:
|
|
67
|
+
(luvio.adapter):
|
|
68
|
+
name: updatePromptTemplateVersion
|
|
69
|
+
|
|
53
70
|
/einstein/prompt-template/{promptTemplateDevName}/output-languages:
|
|
54
71
|
get:
|
|
55
72
|
(luvio.adapter):
|