@salesforce/lds-adapters-service-einsteinllm 1.354.0-dev17 → 1.354.0-dev19

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.
@@ -2425,6 +2425,13 @@ function validate$a(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
2425
2425
  return new TypeError('Expected "string" but received "' + typeof obj_provider + '" (at "' + path_provider + '")');
2426
2426
  }
2427
2427
  }
2428
+ if (obj.showGroundingMetadataInResolvedPrompt !== undefined) {
2429
+ const obj_showGroundingMetadataInResolvedPrompt = obj.showGroundingMetadataInResolvedPrompt;
2430
+ const path_showGroundingMetadataInResolvedPrompt = path + '.showGroundingMetadataInResolvedPrompt';
2431
+ if (typeof obj_showGroundingMetadataInResolvedPrompt !== 'boolean') {
2432
+ return new TypeError('Expected "boolean" but received "' + typeof obj_showGroundingMetadataInResolvedPrompt + '" (at "' + path_showGroundingMetadataInResolvedPrompt + '")');
2433
+ }
2434
+ }
2428
2435
  })();
2429
2436
  return v_error === undefined ? null : v_error;
2430
2437
  }
@@ -2479,7 +2486,7 @@ function equals$9(existing, incoming) {
2479
2486
  return true;
2480
2487
  }
2481
2488
 
2482
- const VERSION$8 = "e17acb0eaa1c08f01126009262687ae4";
2489
+ const VERSION$8 = "b85a5621c60125d9f1644af130f67680";
2483
2490
  function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
2484
2491
  const v_error = (() => {
2485
2492
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2510,6 +2517,13 @@ function validate$8(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
2510
2517
  if (typeof obj_latestPublishedVersion !== 'string') {
2511
2518
  return new TypeError('Expected "string" but received "' + typeof obj_latestPublishedVersion + '" (at "' + path_latestPublishedVersion + '")');
2512
2519
  }
2520
+ if (obj.parentName !== undefined) {
2521
+ const obj_parentName = obj.parentName;
2522
+ const path_parentName = path + '.parentName';
2523
+ if (typeof obj_parentName !== 'string') {
2524
+ return new TypeError('Expected "string" but received "' + typeof obj_parentName + '" (at "' + path_parentName + '")');
2525
+ }
2526
+ }
2513
2527
  const obj_title = obj.title;
2514
2528
  const path_title = path + '.title';
2515
2529
  if (typeof obj_title !== 'string') {
@@ -2543,6 +2557,11 @@ const select$a = function EinsteinPromptTemplateAttachmentRepresentationSelect()
2543
2557
  name: 'latestPublishedVersion',
2544
2558
  kind: 'Scalar'
2545
2559
  },
2560
+ {
2561
+ name: 'parentName',
2562
+ kind: 'Scalar',
2563
+ required: false
2564
+ },
2546
2565
  {
2547
2566
  name: 'title',
2548
2567
  kind: 'Scalar'
@@ -2566,6 +2585,19 @@ function equals$8(existing, incoming) {
2566
2585
  if (!(existing_latestPublishedVersion === incoming_latestPublishedVersion)) {
2567
2586
  return false;
2568
2587
  }
2588
+ const existing_parentName = existing.parentName;
2589
+ const incoming_parentName = incoming.parentName;
2590
+ // if at least one of these optionals is defined
2591
+ if (existing_parentName !== undefined || incoming_parentName !== undefined) {
2592
+ // if one of these is not defined we know the other is defined and therefore
2593
+ // not equal
2594
+ if (existing_parentName === undefined || incoming_parentName === undefined) {
2595
+ return false;
2596
+ }
2597
+ if (!(existing_parentName === incoming_parentName)) {
2598
+ return false;
2599
+ }
2600
+ }
2569
2601
  const existing_title = existing.title;
2570
2602
  const incoming_title = incoming.title;
2571
2603
  if (!(existing_title === incoming_title)) {
@@ -2906,7 +2938,7 @@ function equals$4(existing, incoming) {
2906
2938
  }
2907
2939
 
2908
2940
  const TTL$1 = 100;
2909
- const VERSION$3 = "1beba5cc950346499a8f4810c77e2b03";
2941
+ const VERSION$3 = "492c5045545dfbf96d7f660532a30499";
2910
2942
  function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2911
2943
  const v_error = (() => {
2912
2944
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2961,6 +2993,22 @@ function validate$3(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2961
2993
  return new TypeError(message);
2962
2994
  }
2963
2995
  }
2996
+ if (obj.mergeFieldInformation !== undefined) {
2997
+ const obj_mergeFieldInformation = obj.mergeFieldInformation;
2998
+ const path_mergeFieldInformation = path + '.mergeFieldInformation';
2999
+ if (typeof obj_mergeFieldInformation !== 'object' || ArrayIsArray(obj_mergeFieldInformation) || obj_mergeFieldInformation === null) {
3000
+ return new TypeError('Expected "object" but received "' + typeof obj_mergeFieldInformation + '" (at "' + path_mergeFieldInformation + '")');
3001
+ }
3002
+ const obj_mergeFieldInformation_keys = ObjectKeys(obj_mergeFieldInformation);
3003
+ for (let i = 0; i < obj_mergeFieldInformation_keys.length; i++) {
3004
+ const key = obj_mergeFieldInformation_keys[i];
3005
+ const obj_mergeFieldInformation_prop = obj_mergeFieldInformation[key];
3006
+ const path_mergeFieldInformation_prop = path_mergeFieldInformation + '["' + key + '"]';
3007
+ if (obj_mergeFieldInformation_prop === undefined) {
3008
+ return new TypeError('Expected "defined" but received "' + typeof obj_mergeFieldInformation_prop + '" (at "' + path_mergeFieldInformation_prop + '")');
3009
+ }
3010
+ }
3011
+ }
2964
3012
  const obj_parameters = obj.parameters;
2965
3013
  const path_parameters = path + '.parameters';
2966
3014
  let obj_parameters_union0 = null;
@@ -3125,6 +3173,11 @@ const select$5 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
3125
3173
  plural: true,
3126
3174
  selections: EinsteinLlmGenerationItemRepresentation__selections
3127
3175
  },
3176
+ {
3177
+ name: 'mergeFieldInformation',
3178
+ kind: 'Object',
3179
+ // any
3180
+ },
3128
3181
  {
3129
3182
  name: 'parameters',
3130
3183
  kind: 'Object',
@@ -3224,6 +3277,24 @@ function equals$3(existing, incoming) {
3224
3277
  if (equals_generations_items === false) {
3225
3278
  return false;
3226
3279
  }
3280
+ const existing_mergeFieldInformation = existing.mergeFieldInformation;
3281
+ const incoming_mergeFieldInformation = incoming.mergeFieldInformation;
3282
+ // if at least one of these optionals is defined
3283
+ if (existing_mergeFieldInformation !== undefined || incoming_mergeFieldInformation !== undefined) {
3284
+ // if one of these is not defined we know the other is defined and therefore
3285
+ // not equal
3286
+ if (existing_mergeFieldInformation === undefined || incoming_mergeFieldInformation === undefined) {
3287
+ return false;
3288
+ }
3289
+ const equals_mergeFieldInformation_props = equalsObject(existing_mergeFieldInformation, incoming_mergeFieldInformation, (existing_mergeFieldInformation_prop, incoming_mergeFieldInformation_prop) => {
3290
+ if (JSONStringify(incoming_mergeFieldInformation_prop) !== JSONStringify(existing_mergeFieldInformation_prop)) {
3291
+ return false;
3292
+ }
3293
+ });
3294
+ if (equals_mergeFieldInformation_props === false) {
3295
+ return false;
3296
+ }
3297
+ }
3227
3298
  const existing_parameters = existing.parameters;
3228
3299
  const incoming_parameters = incoming.parameters;
3229
3300
  if (!(existing_parameters === incoming_parameters
@@ -1,6 +1,6 @@
1
1
  import { EinsteinPromptTemplateAttachmentExclusionInfoRepresentation as EinsteinPromptTemplateAttachmentExclusionInfoRepresentation_EinsteinPromptTemplateAttachmentExclusionInfoRepresentation } from './EinsteinPromptTemplateAttachmentExclusionInfoRepresentation';
2
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 VERSION = "e17acb0eaa1c08f01126009262687ae4";
3
+ export declare const VERSION = "b85a5621c60125d9f1644af130f67680";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: EinsteinPromptTemplateAttachmentRepresentation, existing: EinsteinPromptTemplateAttachmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateAttachmentRepresentationNormalized;
@@ -22,6 +22,8 @@ export interface EinsteinPromptTemplateAttachmentRepresentationNormalized {
22
22
  id: string;
23
23
  /** ContentVersion of the latest published version of the file attachment */
24
24
  latestPublishedVersion: string;
25
+ /** ParentName of the file attachment */
26
+ parentName?: string;
25
27
  /** title of the attachment file */
26
28
  title: string;
27
29
  }
@@ -36,5 +38,6 @@ export interface EinsteinPromptTemplateAttachmentRepresentation {
36
38
  fileExtension: string;
37
39
  id: string;
38
40
  latestPublishedVersion: string;
41
+ parentName?: string;
39
42
  title: string;
40
43
  }
@@ -1,7 +1,7 @@
1
1
  import { EinsteinLlmAdditionalConfigInputRepresentation as EinsteinLlmAdditionalConfigInputRepresentation_EinsteinLlmAdditionalConfigInputRepresentation } from './EinsteinLlmAdditionalConfigInputRepresentation';
2
2
  import { WrappedValueMap as WrappedValueMap_WrappedValueMap } from './WrappedValueMap';
3
3
  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';
4
- export declare const VERSION = "0130f54028dfb4ebf390f32ccd147e6f";
4
+ export declare const VERSION = "a2cd7e0282d520ef2004c8eb2a8178b1";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: EinsteinPromptTemplateGenerationsInputRepresentation, existing: EinsteinPromptTemplateGenerationsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EinsteinPromptTemplateGenerationsInputRepresentationNormalized;
@@ -26,6 +26,8 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentationNormalized
26
26
  outputLanguage?: string;
27
27
  /** LLM Provider */
28
28
  provider?: string;
29
+ /** When this flag is true, mergeFieldInformation will be added to the LLM Generations Response output, which will be used to show annotations in the resolved prompt. */
30
+ showGroundingMetadataInResolvedPrompt?: boolean;
29
31
  }
30
32
  /**
31
33
  * Input representation for generating prompt template responses with Einstein LLM
@@ -39,4 +41,5 @@ export interface EinsteinPromptTemplateGenerationsInputRepresentation {
39
41
  isPreview: boolean;
40
42
  outputLanguage?: string;
41
43
  provider?: string;
44
+ showGroundingMetadataInResolvedPrompt?: boolean;
42
45
  }
@@ -6,7 +6,7 @@ import { EinsteinPromptTemplateMaskContentRepresentation as EinsteinPromptTempla
6
6
  import { EinsteinPromptTemplateMaskDataRepresentation as EinsteinPromptTemplateMaskDataRepresentation_EinsteinPromptTemplateMaskDataRepresentation } from './EinsteinPromptTemplateMaskDataRepresentation';
7
7
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
8
8
  export declare const TTL = 100;
9
- export declare const VERSION = "1beba5cc950346499a8f4810c77e2b03";
9
+ export declare const VERSION = "492c5045545dfbf96d7f660532a30499";
10
10
  export declare function validate(obj: any, path?: string): TypeError | null;
11
11
  export declare const RepresentationType: string;
12
12
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -36,6 +36,10 @@ export interface EinsteinPromptTemplateGenerationsRepresentationNormalized {
36
36
  generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
37
37
  /** List of generated text */
38
38
  generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
39
+ /** merge field information mapping used for annotations in the resolved prompt */
40
+ mergeFieldInformation?: {
41
+ [key: string]: unknown;
42
+ };
39
43
  /** Any provider specific attributes will be included as part of this object */
40
44
  parameters: WrappedMap_WrappedMap | null;
41
45
  /** Prompt used for the generation */
@@ -61,6 +65,9 @@ export interface EinsteinPromptTemplateGenerationsRepresentation {
61
65
  fileData?: Array<EinsteinPromptTemplateAttachmentRepresentation_EinsteinPromptTemplateAttachmentRepresentation>;
62
66
  generationErrors?: Array<EinsteinPromptTemplateGenerationsErrorRepresentation_EinsteinPromptTemplateGenerationsErrorRepresentation>;
63
67
  generations: Array<EinsteinLlmGenerationItemRepresentation_EinsteinLlmGenerationItemRepresentation>;
68
+ mergeFieldInformation?: {
69
+ [key: string]: unknown;
70
+ };
64
71
  parameters: WrappedMap_WrappedMap | null;
65
72
  prompt: string | null;
66
73
  promptTemplateDevName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.354.0-dev17",
3
+ "version": "1.354.0-dev19",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest --config=./jest.config.js"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.354.0-dev17"
47
+ "@salesforce/lds-bindings": "^1.354.0-dev19"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.354.0-dev17",
51
- "@salesforce/lds-karma": "^1.354.0-dev17"
50
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev19",
51
+ "@salesforce/lds-karma": "^1.354.0-dev19"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -1905,6 +1905,13 @@ function validate$d(obj, path = 'EinsteinPromptTemplateGenerationsInputRepresent
1905
1905
  return new TypeError('Expected "string" but received "' + typeof obj_provider + '" (at "' + path_provider + '")');
1906
1906
  }
1907
1907
  }
1908
+ if (obj.showGroundingMetadataInResolvedPrompt !== undefined) {
1909
+ const obj_showGroundingMetadataInResolvedPrompt = obj.showGroundingMetadataInResolvedPrompt;
1910
+ const path_showGroundingMetadataInResolvedPrompt = path + '.showGroundingMetadataInResolvedPrompt';
1911
+ if (typeof obj_showGroundingMetadataInResolvedPrompt !== 'boolean') {
1912
+ return new TypeError('Expected "boolean" but received "' + typeof obj_showGroundingMetadataInResolvedPrompt + '" (at "' + path_showGroundingMetadataInResolvedPrompt + '")');
1913
+ }
1914
+ }
1908
1915
  })();
1909
1916
  return v_error === undefined ? null : v_error;
1910
1917
  }
@@ -1959,7 +1966,7 @@ function equals$b(existing, incoming) {
1959
1966
  return true;
1960
1967
  }
1961
1968
 
1962
- const VERSION$a = "e17acb0eaa1c08f01126009262687ae4";
1969
+ const VERSION$a = "b85a5621c60125d9f1644af130f67680";
1963
1970
  function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation') {
1964
1971
  const v_error = (() => {
1965
1972
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1990,6 +1997,13 @@ function validate$b(obj, path = 'EinsteinPromptTemplateAttachmentRepresentation'
1990
1997
  if (typeof obj_latestPublishedVersion !== 'string') {
1991
1998
  return new TypeError('Expected "string" but received "' + typeof obj_latestPublishedVersion + '" (at "' + path_latestPublishedVersion + '")');
1992
1999
  }
2000
+ if (obj.parentName !== undefined) {
2001
+ const obj_parentName = obj.parentName;
2002
+ const path_parentName = path + '.parentName';
2003
+ if (typeof obj_parentName !== 'string') {
2004
+ return new TypeError('Expected "string" but received "' + typeof obj_parentName + '" (at "' + path_parentName + '")');
2005
+ }
2006
+ }
1993
2007
  const obj_title = obj.title;
1994
2008
  const path_title = path + '.title';
1995
2009
  if (typeof obj_title !== 'string') {
@@ -2023,6 +2037,11 @@ const select$e = function EinsteinPromptTemplateAttachmentRepresentationSelect()
2023
2037
  name: 'latestPublishedVersion',
2024
2038
  kind: 'Scalar'
2025
2039
  },
2040
+ {
2041
+ name: 'parentName',
2042
+ kind: 'Scalar',
2043
+ required: false
2044
+ },
2026
2045
  {
2027
2046
  name: 'title',
2028
2047
  kind: 'Scalar'
@@ -2046,6 +2065,19 @@ function equals$a(existing, incoming) {
2046
2065
  if (!(existing_latestPublishedVersion === incoming_latestPublishedVersion)) {
2047
2066
  return false;
2048
2067
  }
2068
+ const existing_parentName = existing.parentName;
2069
+ const incoming_parentName = incoming.parentName;
2070
+ // if at least one of these optionals is defined
2071
+ if (existing_parentName !== undefined || incoming_parentName !== undefined) {
2072
+ // if one of these is not defined we know the other is defined and therefore
2073
+ // not equal
2074
+ if (existing_parentName === undefined || incoming_parentName === undefined) {
2075
+ return false;
2076
+ }
2077
+ if (!(existing_parentName === incoming_parentName)) {
2078
+ return false;
2079
+ }
2080
+ }
2049
2081
  const existing_title = existing.title;
2050
2082
  const incoming_title = incoming.title;
2051
2083
  if (!(existing_title === incoming_title)) {
@@ -2386,7 +2418,7 @@ function equals$6(existing, incoming) {
2386
2418
  }
2387
2419
 
2388
2420
  const TTL$3 = 100;
2389
- const VERSION$5 = "1beba5cc950346499a8f4810c77e2b03";
2421
+ const VERSION$5 = "492c5045545dfbf96d7f660532a30499";
2390
2422
  function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation') {
2391
2423
  const v_error = (() => {
2392
2424
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2441,6 +2473,22 @@ function validate$6(obj, path = 'EinsteinPromptTemplateGenerationsRepresentation
2441
2473
  return new TypeError(message);
2442
2474
  }
2443
2475
  }
2476
+ if (obj.mergeFieldInformation !== undefined) {
2477
+ const obj_mergeFieldInformation = obj.mergeFieldInformation;
2478
+ const path_mergeFieldInformation = path + '.mergeFieldInformation';
2479
+ if (typeof obj_mergeFieldInformation !== 'object' || ArrayIsArray(obj_mergeFieldInformation) || obj_mergeFieldInformation === null) {
2480
+ return new TypeError('Expected "object" but received "' + typeof obj_mergeFieldInformation + '" (at "' + path_mergeFieldInformation + '")');
2481
+ }
2482
+ const obj_mergeFieldInformation_keys = ObjectKeys(obj_mergeFieldInformation);
2483
+ for (let i = 0; i < obj_mergeFieldInformation_keys.length; i++) {
2484
+ const key = obj_mergeFieldInformation_keys[i];
2485
+ const obj_mergeFieldInformation_prop = obj_mergeFieldInformation[key];
2486
+ const path_mergeFieldInformation_prop = path_mergeFieldInformation + '["' + key + '"]';
2487
+ if (obj_mergeFieldInformation_prop === undefined) {
2488
+ return new TypeError('Expected "defined" but received "' + typeof obj_mergeFieldInformation_prop + '" (at "' + path_mergeFieldInformation_prop + '")');
2489
+ }
2490
+ }
2491
+ }
2444
2492
  const obj_parameters = obj.parameters;
2445
2493
  const path_parameters = path + '.parameters';
2446
2494
  let obj_parameters_union0 = null;
@@ -2605,6 +2653,11 @@ const select$9 = function EinsteinPromptTemplateGenerationsRepresentationSelect(
2605
2653
  plural: true,
2606
2654
  selections: EinsteinLlmGenerationItemRepresentation__selections
2607
2655
  },
2656
+ {
2657
+ name: 'mergeFieldInformation',
2658
+ kind: 'Object',
2659
+ // any
2660
+ },
2608
2661
  {
2609
2662
  name: 'parameters',
2610
2663
  kind: 'Object',
@@ -2704,6 +2757,24 @@ function equals$5(existing, incoming) {
2704
2757
  if (equals_generations_items === false) {
2705
2758
  return false;
2706
2759
  }
2760
+ const existing_mergeFieldInformation = existing.mergeFieldInformation;
2761
+ const incoming_mergeFieldInformation = incoming.mergeFieldInformation;
2762
+ // if at least one of these optionals is defined
2763
+ if (existing_mergeFieldInformation !== undefined || incoming_mergeFieldInformation !== undefined) {
2764
+ // if one of these is not defined we know the other is defined and therefore
2765
+ // not equal
2766
+ if (existing_mergeFieldInformation === undefined || incoming_mergeFieldInformation === undefined) {
2767
+ return false;
2768
+ }
2769
+ const equals_mergeFieldInformation_props = equalsObject(existing_mergeFieldInformation, incoming_mergeFieldInformation, (existing_mergeFieldInformation_prop, incoming_mergeFieldInformation_prop) => {
2770
+ if (JSONStringify(incoming_mergeFieldInformation_prop) !== JSONStringify(existing_mergeFieldInformation_prop)) {
2771
+ return false;
2772
+ }
2773
+ });
2774
+ if (equals_mergeFieldInformation_props === false) {
2775
+ return false;
2776
+ }
2777
+ }
2707
2778
  const existing_parameters = existing.parameters;
2708
2779
  const incoming_parameters = incoming.parameters;
2709
2780
  if (!(existing_parameters === incoming_parameters
@@ -3885,4 +3956,4 @@ withDefaultLuvio((luvio) => {
3885
3956
  });
3886
3957
 
3887
3958
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative };
3888
- // version: 1.354.0-dev17-0989532028
3959
+ // version: 1.354.0-dev19-b5be6b3511
package/src/raml/api.raml CHANGED
@@ -431,6 +431,10 @@ types:
431
431
  description: LLM Provider
432
432
  type: string
433
433
  required: false # TODO Hand-rolled W-9314597
434
+ showGroundingMetadataInResolvedPrompt:
435
+ description: When this flag is true, mergeFieldInformation will be added to the LLM Generations Response output, which will be used to show annotations in the resolved prompt.
436
+ type: boolean
437
+ required: false # TODO Hand-rolled W-18853661
434
438
  EinsteinPromptTemplateGenerationsRepresentation:
435
439
  description: Output of a einstein llm generations response for given prompt template
436
440
  type: object
@@ -469,6 +473,12 @@ types:
469
473
  type: array
470
474
  items:
471
475
  type: EinsteinPromptTemplateMaskContentRepresentation
476
+ mergeFieldInformation?: # TODO Hand-rolled W-18853661
477
+ description: merge field information mapping used for annotations in the resolved prompt
478
+ type: object
479
+ properties:
480
+ //:
481
+ type: any
472
482
  slotsMaskingInformation?: # TODO Hand-rolled W-15709657
473
483
  description: generated prompt template slotsMaskingInformation
474
484
  type: array
@@ -500,6 +510,10 @@ types:
500
510
  latestPublishedVersion:
501
511
  description: ContentVersion of the latest published version of the file attachment
502
512
  type: string
513
+ parentName:
514
+ description: ParentName of the file attachment
515
+ type: string
516
+ required: false # TODO Hand-rolled W-17793327
503
517
  EinsteinPromptTemplateAttachmentExclusionInfoRepresentation:
504
518
  description: Representation for info of file exclusion from LLM requests
505
519
  type: object