@salesforce/lds-adapters-service-einsteinllm 1.298.0 → 1.299.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 +527 -200
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplates.d.ts +28 -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/getEinsteinPromptTemplates.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateOutputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateRepresentation.d.ts +34 -0
- package/package.json +4 -4
- package/sfdc/index.js +615 -276
- package/src/raml/api.raml +46 -0
- package/src/raml/luvio.raml +7 -0
package/src/raml/api.raml
CHANGED
|
@@ -454,6 +454,32 @@ types:
|
|
|
454
454
|
enableModeration:
|
|
455
455
|
description: enable moderation value
|
|
456
456
|
type: boolean
|
|
457
|
+
EinsteinPromptTemplateOutputRepresentation:
|
|
458
|
+
description: Output of the PromptTemplate request
|
|
459
|
+
type: object
|
|
460
|
+
properties:
|
|
461
|
+
promptTemplates:
|
|
462
|
+
description: List of prompt templates that are available for selection.
|
|
463
|
+
type: array
|
|
464
|
+
required: false
|
|
465
|
+
items:
|
|
466
|
+
type: EinsteinPromptTemplateRepresentation
|
|
467
|
+
EinsteinPromptTemplateRepresentation:
|
|
468
|
+
description: Representation of a single Prompt Template
|
|
469
|
+
type: object
|
|
470
|
+
properties:
|
|
471
|
+
id:
|
|
472
|
+
description: The ID of the prompt template
|
|
473
|
+
type: string
|
|
474
|
+
required: false
|
|
475
|
+
label:
|
|
476
|
+
description: The master label of the prompt template
|
|
477
|
+
type: string
|
|
478
|
+
required: false
|
|
479
|
+
name:
|
|
480
|
+
description: The API name of the prompt template
|
|
481
|
+
type: string
|
|
482
|
+
required: false
|
|
457
483
|
WrappedListString:
|
|
458
484
|
description: Wrapped list of String for use in Apex.
|
|
459
485
|
type: object
|
|
@@ -535,6 +561,26 @@ types:
|
|
|
535
561
|
application/json:
|
|
536
562
|
type: EinsteinLlmGenerationsInputWrapperRepresentation
|
|
537
563
|
(oas-body-name): generationsInput
|
|
564
|
+
/prompt-templates:
|
|
565
|
+
get:
|
|
566
|
+
displayName: getPromptTemplates
|
|
567
|
+
description: Returns Prompt Template data based on the provided prompt template
|
|
568
|
+
type and related object
|
|
569
|
+
responses:
|
|
570
|
+
'200':
|
|
571
|
+
description: Success
|
|
572
|
+
body:
|
|
573
|
+
application/json:
|
|
574
|
+
type: EinsteinPromptTemplateOutputRepresentation
|
|
575
|
+
queryParameters:
|
|
576
|
+
objectName:
|
|
577
|
+
description: The entity related to the prompt template to filter by.
|
|
578
|
+
type: string
|
|
579
|
+
required: false
|
|
580
|
+
promptType:
|
|
581
|
+
description: The type of prompt template to filter by.
|
|
582
|
+
type: string
|
|
583
|
+
required: false
|
|
538
584
|
/prompt-templates/{promptTemplateDevName}/generations:
|
|
539
585
|
post:
|
|
540
586
|
displayName: postEinsteinPromptTemplateGenerations
|
package/src/raml/luvio.raml
CHANGED
|
@@ -21,12 +21,19 @@ types:
|
|
|
21
21
|
message: message
|
|
22
22
|
EinsteinLlmEmbeddingsRepresentation:
|
|
23
23
|
(luvio.ttl): 100
|
|
24
|
+
EinsteinPromptTemplateOutputRepresentation:
|
|
25
|
+
(luvio.ttl): 100
|
|
24
26
|
|
|
25
27
|
/einstein/llm/prompt/generations:
|
|
26
28
|
post:
|
|
27
29
|
(luvio.adapter):
|
|
28
30
|
name: createGenerations
|
|
29
31
|
|
|
32
|
+
/einstein/prompt-templates:
|
|
33
|
+
get:
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getPromptTemplates
|
|
36
|
+
|
|
30
37
|
/einstein/prompt-templates/{promptTemplateDevName}/generations:
|
|
31
38
|
post:
|
|
32
39
|
(luvio.adapter):
|