@salesforce/lds-adapters-service-einsteinllm 1.302.0 → 1.304.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/src/raml/api.raml CHANGED
@@ -330,6 +330,59 @@ types:
330
330
  description: Violence Score
331
331
  type: number | nil # Hand-rolled union 'nil'
332
332
  required: false # TODO Hand-rolled W-9314597
333
+ EinsteinPromptRecordCollectionOutputRepresentation:
334
+ description: Output of Prompt Records Collection
335
+ type: object
336
+ properties:
337
+ hasMoreRecords:
338
+ description: hasMoreRecords
339
+ type: boolean
340
+ promptRecords:
341
+ description: List of prompt templates that are available for selection.
342
+ type: array
343
+ required: false
344
+ items:
345
+ type: EinsteinPromptRecordRepresentation
346
+ totalPromptRecords:
347
+ description: totalPromptRecords
348
+ type: integer
349
+ EinsteinPromptRecordFieldRepresentation:
350
+ description: Contains both the raw and displayable field values for a field in
351
+ a Record.
352
+ type: object
353
+ properties:
354
+ displayValue:
355
+ description: The displayable value for a field
356
+ type: string
357
+ value:
358
+ description: The value of a field in its raw data form.
359
+ type: boolean | integer | string | nil
360
+ EinsteinPromptRecordRepresentation:
361
+ description: Representation of a single Prompt Template
362
+ type: object
363
+ properties:
364
+ apiName:
365
+ description: apiName
366
+ type: string
367
+ required: false
368
+ childRelationships:
369
+ description: Prompt Record ChildRelationships
370
+ type: object
371
+ required: false
372
+ properties:
373
+ //:
374
+ type: EinsteinPromptRecordRepresentation
375
+ fields:
376
+ description: GenAiPromptTemplate Fields
377
+ type: object
378
+ required: false
379
+ properties:
380
+ //:
381
+ type: EinsteinPromptRecordFieldRepresentation
382
+ id:
383
+ description: The ID of the prompt template
384
+ type: string
385
+ required: false
333
386
  EinsteinPromptTemplateGenerationsErrorRepresentation:
334
387
  description: Error output of a EinsteinPromptTemplateGeneration request
335
388
  type: object
@@ -454,32 +507,6 @@ types:
454
507
  enableModeration:
455
508
  description: enable moderation value
456
509
  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
483
510
  WrappedListString:
484
511
  description: Wrapped list of String for use in Apex.
485
512
  type: object
@@ -563,22 +590,43 @@ types:
563
590
  (oas-body-name): generationsInput
564
591
  /prompt-templates:
565
592
  get:
566
- displayName: getPromptTemplates
567
- description: Returns Prompt Template data based on the provided prompt template
568
- type and related object
593
+ displayName: getEinsteinPromptTemplates
594
+ description: Returns Prompt Templates based on the provided prompt template type and related object, other params
569
595
  responses:
570
596
  '200':
571
597
  description: Success
572
598
  body:
573
599
  application/json:
574
- type: EinsteinPromptTemplateOutputRepresentation
600
+ type: EinsteinPromptRecordCollectionOutputRepresentation
575
601
  queryParameters:
576
- objectName:
577
- description: The entity related to the prompt template to filter by.
602
+ isActive:
603
+ description: Filter to is active templates
604
+ type: boolean
605
+ required: false
606
+ fields:
607
+ type: array
608
+ required: false
609
+ items:
610
+ type: string
611
+ (oas-collectionFormat): csv
612
+ relatedEntity:
613
+ description: The Related Entity of prompt template to filter by
614
+ type: string
615
+ required: false
616
+ offset:
617
+ type: integer
618
+ required: false
619
+ pageLimit:
620
+ type: integer
621
+ required: false
622
+ type:
623
+ description: The type of prompt template to filter by
624
+ type: string
625
+ required: false
626
+ query:
578
627
  type: string
579
628
  required: false
580
- promptType:
581
- description: The type of prompt template to filter by.
629
+ sortBy:
582
630
  type: string
583
631
  required: false
584
632
  /prompt-templates/{promptTemplateDevName}/generations:
@@ -21,8 +21,9 @@ types:
21
21
  message: message
22
22
  EinsteinLlmEmbeddingsRepresentation:
23
23
  (luvio.ttl): 100
24
- EinsteinPromptTemplateOutputRepresentation:
24
+ EinsteinPromptRecordCollectionOutputRepresentation:
25
25
  (luvio.ttl): 100
26
+ (luvio.opaque): true
26
27
 
27
28
  /einstein/llm/prompt/generations:
28
29
  post:
@@ -1,30 +0,0 @@
1
- import { EinsteinPromptTemplateRepresentation as EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation } from './EinsteinPromptTemplateRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const TTL = 100;
4
- export declare const VERSION = "74ddb28bbbb6ed1fc91167ffb7d4c2ed";
5
- export declare function validate(obj: any, path?: string): TypeError | null;
6
- export declare const RepresentationType: string;
7
- export declare function normalize(input: EinsteinPromptTemplateOutputRepresentation, existing: EinsteinPromptTemplateOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateOutputRepresentationNormalized;
8
- export declare const select: () => $64$luvio_engine_FragmentSelection;
9
- export declare function equals(existing: EinsteinPromptTemplateOutputRepresentationNormalized, incoming: EinsteinPromptTemplateOutputRepresentationNormalized): boolean;
10
- export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTemplateOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
- /**
13
- * Output of the PromptTemplate request
14
- *
15
- * Keys:
16
- * (none)
17
- */
18
- export interface EinsteinPromptTemplateOutputRepresentationNormalized {
19
- /** List of prompt templates that are available for selection. */
20
- promptTemplates?: Array<EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>;
21
- }
22
- /**
23
- * Output of the PromptTemplate request
24
- *
25
- * Keys:
26
- * (none)
27
- */
28
- export interface EinsteinPromptTemplateOutputRepresentation {
29
- promptTemplates?: Array<EinsteinPromptTemplateRepresentation_EinsteinPromptTemplateRepresentation>;
30
- }
@@ -1,34 +0,0 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "dae416517e0a664e0253f2c108824225";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: EinsteinPromptTemplateRepresentation, existing: EinsteinPromptTemplateRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: EinsteinPromptTemplateRepresentationNormalized, incoming: EinsteinPromptTemplateRepresentationNormalized): boolean;
8
- export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EinsteinPromptTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Representation of a single Prompt Template
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface EinsteinPromptTemplateRepresentationNormalized {
17
- /** The ID of the prompt template */
18
- id?: string;
19
- /** The master label of the prompt template */
20
- label?: string;
21
- /** The API name of the prompt template */
22
- name?: string;
23
- }
24
- /**
25
- * Representation of a single Prompt Template
26
- *
27
- * Keys:
28
- * (none)
29
- */
30
- export interface EinsteinPromptTemplateRepresentation {
31
- id?: string;
32
- label?: string;
33
- name?: string;
34
- }