graphlit-client 1.0.20241209001 → 1.0.20241212001

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/client.d.ts CHANGED
@@ -73,9 +73,9 @@ declare class Graphlit {
73
73
  reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
74
74
  reviseContent(prompt: string, content: Types.EntityReferenceInput, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseContentMutation>;
75
75
  prompt(prompt: string, specification?: Types.EntityReferenceInput, messages?: [Types.ConversationMessageInput], correlationId?: string): Promise<Types.PromptMutation>;
76
- formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.FormatConversationMutation>;
76
+ formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, includeDetails?: boolean, correlationId?: string): Promise<Types.FormatConversationMutation>;
77
77
  completeConversation(completion: string, id: string, correlationId?: string): Promise<Types.CompleteConversationMutation>;
78
- promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: [Types.ToolDefinitionInput], requireTool?: boolean, correlationId?: string): Promise<Types.PromptConversationMutation>;
78
+ promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: [Types.ToolDefinitionInput], requireTool?: boolean, includeDetails?: boolean, correlationId?: string): Promise<Types.PromptConversationMutation>;
79
79
  continueConversation(id: string, responses: [Types.ConversationToolResponseInput], correlationId?: string): Promise<Types.ContinueConversationMutation>;
80
80
  publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishConversationMutation>;
81
81
  suggestConversation(id: string, count?: number, correlationId?: string): Promise<Types.SuggestConversationMutation>;
package/dist/client.js CHANGED
@@ -423,9 +423,9 @@ class Graphlit {
423
423
  return this.mutateAndCheckError(Documents.Prompt, { prompt: prompt, specification: specification, messages: messages, correlationId: correlationId });
424
424
  });
425
425
  }
426
- formatConversation(prompt, id, specification, correlationId) {
426
+ formatConversation(prompt, id, specification, includeDetails, correlationId) {
427
427
  return __awaiter(this, void 0, void 0, function* () {
428
- return this.mutateAndCheckError(Documents.FormatConversation, { prompt: prompt, id: id, specification: specification, correlationId: correlationId });
428
+ return this.mutateAndCheckError(Documents.FormatConversation, { prompt: prompt, id: id, specification: specification, includeDetails: includeDetails, correlationId: correlationId });
429
429
  });
430
430
  }
431
431
  completeConversation(completion, id, correlationId) {
@@ -433,9 +433,9 @@ class Graphlit {
433
433
  return this.mutateAndCheckError(Documents.CompleteConversation, { completion: completion, id: id, correlationId: correlationId });
434
434
  });
435
435
  }
436
- promptConversation(prompt, id, specification, tools, requireTool, correlationId) {
436
+ promptConversation(prompt, id, specification, tools, requireTool, includeDetails, correlationId) {
437
437
  return __awaiter(this, void 0, void 0, function* () {
438
- return this.mutateAndCheckError(Documents.PromptConversation, { prompt: prompt, id: id, specification: specification, tools: tools, requireTool: requireTool, correlationId: correlationId });
438
+ return this.mutateAndCheckError(Documents.PromptConversation, { prompt: prompt, id: id, specification: specification, tools: tools, requireTool: requireTool, includeDetails: includeDetails, correlationId: correlationId });
439
439
  });
440
440
  }
441
441
  continueConversation(id, responses, correlationId) {
@@ -2294,11 +2294,12 @@ exports.DeleteConversations = (0, graphql_tag_1.default) `
2294
2294
  }
2295
2295
  `;
2296
2296
  exports.FormatConversation = (0, graphql_tag_1.default) `
2297
- mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $correlationId: String) {
2297
+ mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $includeDetails: Boolean, $correlationId: String) {
2298
2298
  formatConversation(
2299
2299
  prompt: $prompt
2300
2300
  id: $id
2301
2301
  specification: $specification
2302
+ includeDetails: $includeDetails
2302
2303
  correlationId: $correlationId
2303
2304
  ) {
2304
2305
  conversation {
@@ -2871,13 +2872,14 @@ exports.Prompt = (0, graphql_tag_1.default) `
2871
2872
  }
2872
2873
  `;
2873
2874
  exports.PromptConversation = (0, graphql_tag_1.default) `
2874
- mutation PromptConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $correlationId: String) {
2875
+ mutation PromptConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $includeDetails: Boolean, $correlationId: String) {
2875
2876
  promptConversation(
2876
2877
  prompt: $prompt
2877
2878
  id: $id
2878
2879
  specification: $specification
2879
2880
  tools: $tools
2880
2881
  requireTool: $requireTool
2882
+ includeDetails: $includeDetails
2881
2883
  correlationId: $correlationId
2882
2884
  ) {
2883
2885
  conversation {
@@ -3963,6 +3965,9 @@ exports.GetEvent = (0, graphql_tag_1.default) `
3963
3965
  name
3964
3966
  alternateNames
3965
3967
  creationDate
3968
+ uri
3969
+ description
3970
+ identifier
3966
3971
  thing
3967
3972
  relevance
3968
3973
  address {
@@ -3993,6 +3998,9 @@ exports.QueryEvents = (0, graphql_tag_1.default) `
3993
3998
  name
3994
3999
  alternateNames
3995
4000
  creationDate
4001
+ uri
4002
+ description
4003
+ identifier
3996
4004
  thing
3997
4005
  relevance
3998
4006
  address {
@@ -4662,6 +4670,9 @@ exports.GetMedicalCondition = (0, graphql_tag_1.default) `
4662
4670
  name
4663
4671
  alternateNames
4664
4672
  creationDate
4673
+ uri
4674
+ description
4675
+ identifier
4665
4676
  thing
4666
4677
  relevance
4667
4678
  }
@@ -4675,6 +4686,9 @@ exports.QueryMedicalConditions = (0, graphql_tag_1.default) `
4675
4686
  name
4676
4687
  alternateNames
4677
4688
  creationDate
4689
+ uri
4690
+ description
4691
+ identifier
4678
4692
  thing
4679
4693
  relevance
4680
4694
  }
@@ -4739,6 +4753,9 @@ exports.GetMedicalContraindication = (0, graphql_tag_1.default) `
4739
4753
  name
4740
4754
  alternateNames
4741
4755
  creationDate
4756
+ uri
4757
+ description
4758
+ identifier
4742
4759
  thing
4743
4760
  relevance
4744
4761
  }
@@ -4752,6 +4769,9 @@ exports.QueryMedicalContraindications = (0, graphql_tag_1.default) `
4752
4769
  name
4753
4770
  alternateNames
4754
4771
  creationDate
4772
+ uri
4773
+ description
4774
+ identifier
4755
4775
  thing
4756
4776
  relevance
4757
4777
  }
@@ -4816,6 +4836,9 @@ exports.GetMedicalDevice = (0, graphql_tag_1.default) `
4816
4836
  name
4817
4837
  alternateNames
4818
4838
  creationDate
4839
+ uri
4840
+ description
4841
+ identifier
4819
4842
  thing
4820
4843
  relevance
4821
4844
  }
@@ -4829,6 +4852,9 @@ exports.QueryMedicalDevices = (0, graphql_tag_1.default) `
4829
4852
  name
4830
4853
  alternateNames
4831
4854
  creationDate
4855
+ uri
4856
+ description
4857
+ identifier
4832
4858
  thing
4833
4859
  relevance
4834
4860
  }
@@ -4893,6 +4919,9 @@ exports.GetMedicalDrug = (0, graphql_tag_1.default) `
4893
4919
  name
4894
4920
  alternateNames
4895
4921
  creationDate
4922
+ uri
4923
+ description
4924
+ identifier
4896
4925
  thing
4897
4926
  relevance
4898
4927
  }
@@ -4906,6 +4935,9 @@ exports.QueryMedicalDrugs = (0, graphql_tag_1.default) `
4906
4935
  name
4907
4936
  alternateNames
4908
4937
  creationDate
4938
+ uri
4939
+ description
4940
+ identifier
4909
4941
  thing
4910
4942
  relevance
4911
4943
  }
@@ -4970,6 +5002,9 @@ exports.GetMedicalDrugClass = (0, graphql_tag_1.default) `
4970
5002
  name
4971
5003
  alternateNames
4972
5004
  creationDate
5005
+ uri
5006
+ description
5007
+ identifier
4973
5008
  thing
4974
5009
  relevance
4975
5010
  }
@@ -4983,6 +5018,9 @@ exports.QueryMedicalDrugClasses = (0, graphql_tag_1.default) `
4983
5018
  name
4984
5019
  alternateNames
4985
5020
  creationDate
5021
+ uri
5022
+ description
5023
+ identifier
4986
5024
  thing
4987
5025
  relevance
4988
5026
  }
@@ -5047,6 +5085,9 @@ exports.GetMedicalGuideline = (0, graphql_tag_1.default) `
5047
5085
  name
5048
5086
  alternateNames
5049
5087
  creationDate
5088
+ uri
5089
+ description
5090
+ identifier
5050
5091
  thing
5051
5092
  relevance
5052
5093
  }
@@ -5060,6 +5101,9 @@ exports.QueryMedicalGuidelines = (0, graphql_tag_1.default) `
5060
5101
  name
5061
5102
  alternateNames
5062
5103
  creationDate
5104
+ uri
5105
+ description
5106
+ identifier
5063
5107
  thing
5064
5108
  relevance
5065
5109
  }
@@ -5124,6 +5168,9 @@ exports.GetMedicalIndication = (0, graphql_tag_1.default) `
5124
5168
  name
5125
5169
  alternateNames
5126
5170
  creationDate
5171
+ uri
5172
+ description
5173
+ identifier
5127
5174
  thing
5128
5175
  relevance
5129
5176
  }
@@ -5137,6 +5184,9 @@ exports.QueryMedicalIndications = (0, graphql_tag_1.default) `
5137
5184
  name
5138
5185
  alternateNames
5139
5186
  creationDate
5187
+ uri
5188
+ description
5189
+ identifier
5140
5190
  thing
5141
5191
  relevance
5142
5192
  }
@@ -5201,6 +5251,9 @@ exports.GetMedicalProcedure = (0, graphql_tag_1.default) `
5201
5251
  name
5202
5252
  alternateNames
5203
5253
  creationDate
5254
+ uri
5255
+ description
5256
+ identifier
5204
5257
  thing
5205
5258
  relevance
5206
5259
  }
@@ -5214,6 +5267,9 @@ exports.QueryMedicalProcedures = (0, graphql_tag_1.default) `
5214
5267
  name
5215
5268
  alternateNames
5216
5269
  creationDate
5270
+ uri
5271
+ description
5272
+ identifier
5217
5273
  thing
5218
5274
  relevance
5219
5275
  }
@@ -5278,6 +5334,9 @@ exports.GetMedicalStudy = (0, graphql_tag_1.default) `
5278
5334
  name
5279
5335
  alternateNames
5280
5336
  creationDate
5337
+ uri
5338
+ description
5339
+ identifier
5281
5340
  thing
5282
5341
  relevance
5283
5342
  address {
@@ -5298,6 +5357,9 @@ exports.QueryMedicalStudies = (0, graphql_tag_1.default) `
5298
5357
  name
5299
5358
  alternateNames
5300
5359
  creationDate
5360
+ uri
5361
+ description
5362
+ identifier
5301
5363
  thing
5302
5364
  relevance
5303
5365
  address {
@@ -5369,6 +5431,9 @@ exports.GetMedicalTest = (0, graphql_tag_1.default) `
5369
5431
  name
5370
5432
  alternateNames
5371
5433
  creationDate
5434
+ uri
5435
+ description
5436
+ identifier
5372
5437
  thing
5373
5438
  relevance
5374
5439
  }
@@ -5382,6 +5447,9 @@ exports.QueryMedicalTests = (0, graphql_tag_1.default) `
5382
5447
  name
5383
5448
  alternateNames
5384
5449
  creationDate
5450
+ uri
5451
+ description
5452
+ identifier
5385
5453
  thing
5386
5454
  relevance
5387
5455
  }
@@ -5446,6 +5514,9 @@ exports.GetMedicalTherapy = (0, graphql_tag_1.default) `
5446
5514
  name
5447
5515
  alternateNames
5448
5516
  creationDate
5517
+ uri
5518
+ description
5519
+ identifier
5449
5520
  thing
5450
5521
  relevance
5451
5522
  }
@@ -5459,6 +5530,9 @@ exports.QueryMedicalTherapies = (0, graphql_tag_1.default) `
5459
5530
  name
5460
5531
  alternateNames
5461
5532
  creationDate
5533
+ uri
5534
+ description
5535
+ identifier
5462
5536
  thing
5463
5537
  relevance
5464
5538
  }
@@ -5547,6 +5621,9 @@ exports.GetOrganization = (0, graphql_tag_1.default) `
5547
5621
  name
5548
5622
  alternateNames
5549
5623
  creationDate
5624
+ uri
5625
+ description
5626
+ identifier
5550
5627
  thing
5551
5628
  relevance
5552
5629
  address {
@@ -5573,6 +5650,9 @@ exports.QueryOrganizations = (0, graphql_tag_1.default) `
5573
5650
  name
5574
5651
  alternateNames
5575
5652
  creationDate
5653
+ uri
5654
+ description
5655
+ identifier
5576
5656
  thing
5577
5657
  relevance
5578
5658
  address {
@@ -5650,6 +5730,9 @@ exports.GetPerson = (0, graphql_tag_1.default) `
5650
5730
  name
5651
5731
  alternateNames
5652
5732
  creationDate
5733
+ uri
5734
+ description
5735
+ identifier
5653
5736
  thing
5654
5737
  relevance
5655
5738
  address {
@@ -5678,6 +5761,9 @@ exports.QueryPersons = (0, graphql_tag_1.default) `
5678
5761
  name
5679
5762
  alternateNames
5680
5763
  creationDate
5764
+ uri
5765
+ description
5766
+ identifier
5681
5767
  thing
5682
5768
  relevance
5683
5769
  address {
@@ -5757,6 +5843,9 @@ exports.GetPlace = (0, graphql_tag_1.default) `
5757
5843
  name
5758
5844
  alternateNames
5759
5845
  creationDate
5846
+ uri
5847
+ description
5848
+ identifier
5760
5849
  thing
5761
5850
  relevance
5762
5851
  address {
@@ -5777,6 +5866,9 @@ exports.QueryPlaces = (0, graphql_tag_1.default) `
5777
5866
  name
5778
5867
  alternateNames
5779
5868
  creationDate
5869
+ uri
5870
+ description
5871
+ identifier
5780
5872
  thing
5781
5873
  relevance
5782
5874
  address {
@@ -5848,6 +5940,9 @@ exports.GetProduct = (0, graphql_tag_1.default) `
5848
5940
  name
5849
5941
  alternateNames
5850
5942
  creationDate
5943
+ uri
5944
+ description
5945
+ identifier
5851
5946
  thing
5852
5947
  relevance
5853
5948
  address {
@@ -5875,6 +5970,9 @@ exports.QueryProducts = (0, graphql_tag_1.default) `
5875
5970
  name
5876
5971
  alternateNames
5877
5972
  creationDate
5973
+ uri
5974
+ description
5975
+ identifier
5878
5976
  thing
5879
5977
  relevance
5880
5978
  address {
@@ -6122,6 +6220,9 @@ exports.GetRepo = (0, graphql_tag_1.default) `
6122
6220
  name
6123
6221
  alternateNames
6124
6222
  creationDate
6223
+ uri
6224
+ description
6225
+ identifier
6125
6226
  thing
6126
6227
  relevance
6127
6228
  }
@@ -6135,6 +6236,9 @@ exports.QueryRepos = (0, graphql_tag_1.default) `
6135
6236
  name
6136
6237
  alternateNames
6137
6238
  creationDate
6239
+ uri
6240
+ description
6241
+ identifier
6138
6242
  thing
6139
6243
  relevance
6140
6244
  }
@@ -6228,6 +6332,9 @@ exports.GetSoftware = (0, graphql_tag_1.default) `
6228
6332
  name
6229
6333
  alternateNames
6230
6334
  creationDate
6335
+ uri
6336
+ description
6337
+ identifier
6231
6338
  thing
6232
6339
  relevance
6233
6340
  releaseDate
@@ -6243,6 +6350,9 @@ exports.QuerySoftwares = (0, graphql_tag_1.default) `
6243
6350
  name
6244
6351
  alternateNames
6245
6352
  creationDate
6353
+ uri
6354
+ description
6355
+ identifier
6246
6356
  thing
6247
6357
  relevance
6248
6358
  releaseDate
@@ -6329,6 +6439,7 @@ exports.GetSpecification = (0, graphql_tag_1.default) `
6329
6439
  embedCitations
6330
6440
  flattenCitations
6331
6441
  enableFacets
6442
+ disableGuardrails
6332
6443
  messagesWeight
6333
6444
  contentsWeight
6334
6445
  }
@@ -6633,6 +6744,7 @@ exports.QuerySpecifications = (0, graphql_tag_1.default) `
6633
6744
  embedCitations
6634
6745
  flattenCitations
6635
6746
  enableFacets
6747
+ disableGuardrails
6636
6748
  messagesWeight
6637
6749
  contentsWeight
6638
6750
  }
@@ -615,6 +615,10 @@ export declare enum AzureDocumentIntelligenceModels {
615
615
  ReadOcr = "READ_OCR",
616
616
  /** Receipt */
617
617
  Receipt = "RECEIPT",
618
+ /** Bank Check (US) */
619
+ UsBankCheck = "US_BANK_CHECK",
620
+ /** Bank Statement (US) */
621
+ UsBankStatement = "US_BANK_STATEMENT",
618
622
  /** Health Insurance Card (US) */
619
623
  UsHealthInsuranceCard = "US_HEALTH_INSURANCE_CARD",
620
624
  /** Marriage Certificate (US) */
@@ -625,6 +629,8 @@ export declare enum AzureDocumentIntelligenceModels {
625
629
  UsMortgage1008 = "US_MORTGAGE1008",
626
630
  /** Mortgage closing disclosure (US) */
627
631
  UsMortgageDisclosure = "US_MORTGAGE_DISCLOSURE",
632
+ /** Pay Stub (US) */
633
+ UsPayStub = "US_PAY_STUB",
628
634
  /** 1098 Form (US) */
629
635
  UsTaxForm1098 = "US_TAX_FORM1098",
630
636
  /** 1098E Form (US) */
@@ -1773,6 +1779,52 @@ export type ConversationCitation = {
1773
1779
  /** The citation text. */
1774
1780
  text: Scalars['String']['output'];
1775
1781
  };
1782
+ /** Represents the RAG pipeline details for a prompted conversation. */
1783
+ export type ConversationDetails = {
1784
+ __typename?: 'ConversationDetails';
1785
+ /** The LLM assistant message, prior to parsing JSON guardrails. */
1786
+ assistantMessage?: Maybe<Scalars['String']['output']>;
1787
+ /** The LLM completion token limit. */
1788
+ completionTokenLimit?: Maybe<Scalars['Int']['output']>;
1789
+ /** The formatted RAG instructions. */
1790
+ formattedInstructions?: Maybe<Scalars['String']['output']>;
1791
+ /** The formatted observed entities. */
1792
+ formattedObservables?: Maybe<Scalars['String']['output']>;
1793
+ /** The formatted sources. */
1794
+ formattedSources?: Maybe<Scalars['String']['output']>;
1795
+ /** The formatted LLM tools. */
1796
+ formattedTools?: Maybe<Scalars['String']['output']>;
1797
+ /** The LLM conversation messages. */
1798
+ messages?: Maybe<Array<Maybe<ConversationMessage>>>;
1799
+ /** The LLM model description. */
1800
+ model?: Maybe<Scalars['String']['output']>;
1801
+ /** The LLM service type. */
1802
+ modelService?: Maybe<ModelServiceTypes>;
1803
+ /** The number of observable entities after retrieval. */
1804
+ observableCount?: Maybe<Scalars['Int']['output']>;
1805
+ /** The number of observable entities after reranking. */
1806
+ rankedObservableCount?: Maybe<Scalars['Int']['output']>;
1807
+ /** The number of content sources after reranking. */
1808
+ rankedSourceCount?: Maybe<Scalars['Int']['output']>;
1809
+ /** The number of tools after reranking. */
1810
+ rankedToolCount?: Maybe<Scalars['Int']['output']>;
1811
+ /** The number of observable entities after rendering. */
1812
+ renderedObservableCount?: Maybe<Scalars['Int']['output']>;
1813
+ /** The number of content sources after rendering. */
1814
+ renderedSourceCount?: Maybe<Scalars['Int']['output']>;
1815
+ /** The number of tools after rendering. */
1816
+ renderedToolCount?: Maybe<Scalars['Int']['output']>;
1817
+ /** The number of content sources after retrieval. */
1818
+ sourceCount?: Maybe<Scalars['Int']['output']>;
1819
+ /** JSON representation of the source to content mapping. */
1820
+ sources?: Maybe<Scalars['String']['output']>;
1821
+ /** Whether the LLM supports tool calling. */
1822
+ supportsToolCalling?: Maybe<Scalars['Boolean']['output']>;
1823
+ /** The LLM prompt token limit. */
1824
+ tokenLimit?: Maybe<Scalars['Int']['output']>;
1825
+ /** The number of tools. */
1826
+ toolCount?: Maybe<Scalars['Int']['output']>;
1827
+ };
1776
1828
  /** Represents a filter for conversations. */
1777
1829
  export type ConversationFilter = {
1778
1830
  /** Filter by similar conversations. */
@@ -1830,7 +1882,7 @@ export type ConversationMessage = {
1830
1882
  completionTime?: Maybe<Scalars['TimeSpan']['output']>;
1831
1883
  /** The conversation message. */
1832
1884
  message?: Maybe<Scalars['String']['output']>;
1833
- /** The LLM description, only provided with assistant role. */
1885
+ /** The LLM model description, only provided with assistant role. */
1834
1886
  model?: Maybe<Scalars['String']['output']>;
1835
1887
  /** The LLM service type, only provided with assistant role. */
1836
1888
  modelService?: Maybe<ModelServiceTypes>;
@@ -1881,6 +1933,8 @@ export type ConversationStrategy = {
1881
1933
  __typename?: 'ConversationStrategy';
1882
1934
  /** The weight of contents within prompt context, in range [0.0 - 1.0]. */
1883
1935
  contentsWeight?: Maybe<Scalars['Float']['output']>;
1936
+ /** Disable JSON guardrails, if system prompt asks for non-JSON output format. */
1937
+ disableGuardrails?: Maybe<Scalars['Boolean']['output']>;
1884
1938
  /** Embed content citations into completed converation messages. */
1885
1939
  embedCitations?: Maybe<Scalars['Boolean']['output']>;
1886
1940
  /** Provide content facets with completed conversation. */
@@ -1898,6 +1952,8 @@ export type ConversationStrategy = {
1898
1952
  export type ConversationStrategyInput = {
1899
1953
  /** The weight of contents within prompt context, in range [0.0 - 1.0]. */
1900
1954
  contentsWeight?: InputMaybe<Scalars['Float']['input']>;
1955
+ /** Disable JSON guardrails, if system prompt asks for non-JSON output format. */
1956
+ disableGuardrails?: InputMaybe<Scalars['Boolean']['input']>;
1901
1957
  /** Embed content citations into completed converation messages. */
1902
1958
  embedCitations?: InputMaybe<Scalars['Boolean']['input']>;
1903
1959
  /** Provide content facets with completed conversation. */
@@ -1922,6 +1978,8 @@ export declare enum ConversationStrategyTypes {
1922
1978
  export type ConversationStrategyUpdateInput = {
1923
1979
  /** The weight of contents within prompt context, in range [0.0 - 1.0]. */
1924
1980
  contentsWeight?: InputMaybe<Scalars['Float']['input']>;
1981
+ /** Disable JSON guardrails, if system prompt asks for non-JSON output format. */
1982
+ disableGuardrails?: InputMaybe<Scalars['Boolean']['input']>;
1925
1983
  /** Embed content citations into completed converation messages. */
1926
1984
  embedCitations?: InputMaybe<Scalars['Boolean']['input']>;
1927
1985
  /** Provide content facets with completed conversation. */
@@ -3688,7 +3746,9 @@ export declare enum GoogleModels {
3688
3746
  /** Gemini 1.5 Pro (001 version) */
3689
3747
  Gemini_1_5Pro_001 = "GEMINI_1_5_PRO_001",
3690
3748
  /** Gemini 1.5 Pro (002 version) */
3691
- Gemini_1_5Pro_002 = "GEMINI_1_5_PRO_002"
3749
+ Gemini_1_5Pro_002 = "GEMINI_1_5_PRO_002",
3750
+ /** Gemini 2.0 Flash (Experimental) */
3751
+ Gemini_2_0FlashExperimental = "GEMINI_2_0_FLASH_EXPERIMENTAL"
3692
3752
  }
3693
3753
  /** Represents a knowledge graph. */
3694
3754
  export type Graph = {
@@ -6951,6 +7011,7 @@ export type MutationCompleteConversationArgs = {
6951
7011
  export type MutationContinueConversationArgs = {
6952
7012
  correlationId?: InputMaybe<Scalars['String']['input']>;
6953
7013
  id: Scalars['ID']['input'];
7014
+ includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
6954
7015
  responses: Array<ConversationToolResponseInput>;
6955
7016
  };
6956
7017
  export type MutationCreateAlertArgs = {
@@ -7407,6 +7468,7 @@ export type MutationExtractTextArgs = {
7407
7468
  export type MutationFormatConversationArgs = {
7408
7469
  correlationId?: InputMaybe<Scalars['String']['input']>;
7409
7470
  id?: InputMaybe<Scalars['ID']['input']>;
7471
+ includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
7410
7472
  prompt: Scalars['String']['input'];
7411
7473
  specification?: InputMaybe<EntityReferenceInput>;
7412
7474
  };
@@ -7486,6 +7548,7 @@ export type MutationPromptArgs = {
7486
7548
  export type MutationPromptConversationArgs = {
7487
7549
  correlationId?: InputMaybe<Scalars['String']['input']>;
7488
7550
  id?: InputMaybe<Scalars['ID']['input']>;
7551
+ includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
7489
7552
  prompt: Scalars['String']['input'];
7490
7553
  requireTool?: InputMaybe<Scalars['Boolean']['input']>;
7491
7554
  specification?: InputMaybe<EntityReferenceInput>;
@@ -9424,6 +9487,8 @@ export type PromptConversation = {
9424
9487
  __typename?: 'PromptConversation';
9425
9488
  /** The completed conversation. */
9426
9489
  conversation?: Maybe<EntityReference>;
9490
+ /** The RAG pipeline details for debugging purposes. */
9491
+ details?: Maybe<ConversationDetails>;
9427
9492
  /** The content facets referenced by the completed conversation message. */
9428
9493
  facets?: Maybe<Array<Maybe<ContentFacet>>>;
9429
9494
  /** The knowledge graph generated from the retrieved contents. */
@@ -14534,6 +14599,7 @@ export type FormatConversationMutationVariables = Exact<{
14534
14599
  prompt: Scalars['String']['input'];
14535
14600
  id?: InputMaybe<Scalars['ID']['input']>;
14536
14601
  specification?: InputMaybe<EntityReferenceInput>;
14602
+ includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
14537
14603
  correlationId?: InputMaybe<Scalars['String']['input']>;
14538
14604
  }>;
14539
14605
  export type FormatConversationMutation = {
@@ -15195,6 +15261,7 @@ export type PromptConversationMutationVariables = Exact<{
15195
15261
  specification?: InputMaybe<EntityReferenceInput>;
15196
15262
  tools?: InputMaybe<Array<ToolDefinitionInput> | ToolDefinitionInput>;
15197
15263
  requireTool?: InputMaybe<Scalars['Boolean']['input']>;
15264
+ includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
15198
15265
  correlationId?: InputMaybe<Scalars['String']['input']>;
15199
15266
  }>;
15200
15267
  export type PromptConversationMutation = {
@@ -16419,6 +16486,9 @@ export type GetEventQuery = {
16419
16486
  name: string;
16420
16487
  alternateNames?: Array<string | null> | null;
16421
16488
  creationDate: any;
16489
+ uri?: any | null;
16490
+ description?: string | null;
16491
+ identifier?: string | null;
16422
16492
  thing?: string | null;
16423
16493
  relevance?: number | null;
16424
16494
  startDate?: any | null;
@@ -16454,6 +16524,9 @@ export type QueryEventsQuery = {
16454
16524
  name: string;
16455
16525
  alternateNames?: Array<string | null> | null;
16456
16526
  creationDate: any;
16527
+ uri?: any | null;
16528
+ description?: string | null;
16529
+ identifier?: string | null;
16457
16530
  thing?: string | null;
16458
16531
  relevance?: number | null;
16459
16532
  startDate?: any | null;
@@ -17281,6 +17354,9 @@ export type GetMedicalConditionQuery = {
17281
17354
  name: string;
17282
17355
  alternateNames?: Array<string | null> | null;
17283
17356
  creationDate: any;
17357
+ uri?: any | null;
17358
+ description?: string | null;
17359
+ identifier?: string | null;
17284
17360
  thing?: string | null;
17285
17361
  relevance?: number | null;
17286
17362
  } | null;
@@ -17298,6 +17374,9 @@ export type QueryMedicalConditionsQuery = {
17298
17374
  name: string;
17299
17375
  alternateNames?: Array<string | null> | null;
17300
17376
  creationDate: any;
17377
+ uri?: any | null;
17378
+ description?: string | null;
17379
+ identifier?: string | null;
17301
17380
  thing?: string | null;
17302
17381
  relevance?: number | null;
17303
17382
  } | null> | null;
@@ -17382,6 +17461,9 @@ export type GetMedicalContraindicationQuery = {
17382
17461
  name: string;
17383
17462
  alternateNames?: Array<string | null> | null;
17384
17463
  creationDate: any;
17464
+ uri?: any | null;
17465
+ description?: string | null;
17466
+ identifier?: string | null;
17385
17467
  thing?: string | null;
17386
17468
  relevance?: number | null;
17387
17469
  } | null;
@@ -17399,6 +17481,9 @@ export type QueryMedicalContraindicationsQuery = {
17399
17481
  name: string;
17400
17482
  alternateNames?: Array<string | null> | null;
17401
17483
  creationDate: any;
17484
+ uri?: any | null;
17485
+ description?: string | null;
17486
+ identifier?: string | null;
17402
17487
  thing?: string | null;
17403
17488
  relevance?: number | null;
17404
17489
  } | null> | null;
@@ -17483,6 +17568,9 @@ export type GetMedicalDeviceQuery = {
17483
17568
  name: string;
17484
17569
  alternateNames?: Array<string | null> | null;
17485
17570
  creationDate: any;
17571
+ uri?: any | null;
17572
+ description?: string | null;
17573
+ identifier?: string | null;
17486
17574
  thing?: string | null;
17487
17575
  relevance?: number | null;
17488
17576
  } | null;
@@ -17500,6 +17588,9 @@ export type QueryMedicalDevicesQuery = {
17500
17588
  name: string;
17501
17589
  alternateNames?: Array<string | null> | null;
17502
17590
  creationDate: any;
17591
+ uri?: any | null;
17592
+ description?: string | null;
17593
+ identifier?: string | null;
17503
17594
  thing?: string | null;
17504
17595
  relevance?: number | null;
17505
17596
  } | null> | null;
@@ -17584,6 +17675,9 @@ export type GetMedicalDrugQuery = {
17584
17675
  name: string;
17585
17676
  alternateNames?: Array<string | null> | null;
17586
17677
  creationDate: any;
17678
+ uri?: any | null;
17679
+ description?: string | null;
17680
+ identifier?: string | null;
17587
17681
  thing?: string | null;
17588
17682
  relevance?: number | null;
17589
17683
  } | null;
@@ -17601,6 +17695,9 @@ export type QueryMedicalDrugsQuery = {
17601
17695
  name: string;
17602
17696
  alternateNames?: Array<string | null> | null;
17603
17697
  creationDate: any;
17698
+ uri?: any | null;
17699
+ description?: string | null;
17700
+ identifier?: string | null;
17604
17701
  thing?: string | null;
17605
17702
  relevance?: number | null;
17606
17703
  } | null> | null;
@@ -17685,6 +17782,9 @@ export type GetMedicalDrugClassQuery = {
17685
17782
  name: string;
17686
17783
  alternateNames?: Array<string | null> | null;
17687
17784
  creationDate: any;
17785
+ uri?: any | null;
17786
+ description?: string | null;
17787
+ identifier?: string | null;
17688
17788
  thing?: string | null;
17689
17789
  relevance?: number | null;
17690
17790
  } | null;
@@ -17702,6 +17802,9 @@ export type QueryMedicalDrugClassesQuery = {
17702
17802
  name: string;
17703
17803
  alternateNames?: Array<string | null> | null;
17704
17804
  creationDate: any;
17805
+ uri?: any | null;
17806
+ description?: string | null;
17807
+ identifier?: string | null;
17705
17808
  thing?: string | null;
17706
17809
  relevance?: number | null;
17707
17810
  } | null> | null;
@@ -17786,6 +17889,9 @@ export type GetMedicalGuidelineQuery = {
17786
17889
  name: string;
17787
17890
  alternateNames?: Array<string | null> | null;
17788
17891
  creationDate: any;
17892
+ uri?: any | null;
17893
+ description?: string | null;
17894
+ identifier?: string | null;
17789
17895
  thing?: string | null;
17790
17896
  relevance?: number | null;
17791
17897
  } | null;
@@ -17803,6 +17909,9 @@ export type QueryMedicalGuidelinesQuery = {
17803
17909
  name: string;
17804
17910
  alternateNames?: Array<string | null> | null;
17805
17911
  creationDate: any;
17912
+ uri?: any | null;
17913
+ description?: string | null;
17914
+ identifier?: string | null;
17806
17915
  thing?: string | null;
17807
17916
  relevance?: number | null;
17808
17917
  } | null> | null;
@@ -17887,6 +17996,9 @@ export type GetMedicalIndicationQuery = {
17887
17996
  name: string;
17888
17997
  alternateNames?: Array<string | null> | null;
17889
17998
  creationDate: any;
17999
+ uri?: any | null;
18000
+ description?: string | null;
18001
+ identifier?: string | null;
17890
18002
  thing?: string | null;
17891
18003
  relevance?: number | null;
17892
18004
  } | null;
@@ -17904,6 +18016,9 @@ export type QueryMedicalIndicationsQuery = {
17904
18016
  name: string;
17905
18017
  alternateNames?: Array<string | null> | null;
17906
18018
  creationDate: any;
18019
+ uri?: any | null;
18020
+ description?: string | null;
18021
+ identifier?: string | null;
17907
18022
  thing?: string | null;
17908
18023
  relevance?: number | null;
17909
18024
  } | null> | null;
@@ -17988,6 +18103,9 @@ export type GetMedicalProcedureQuery = {
17988
18103
  name: string;
17989
18104
  alternateNames?: Array<string | null> | null;
17990
18105
  creationDate: any;
18106
+ uri?: any | null;
18107
+ description?: string | null;
18108
+ identifier?: string | null;
17991
18109
  thing?: string | null;
17992
18110
  relevance?: number | null;
17993
18111
  } | null;
@@ -18005,6 +18123,9 @@ export type QueryMedicalProceduresQuery = {
18005
18123
  name: string;
18006
18124
  alternateNames?: Array<string | null> | null;
18007
18125
  creationDate: any;
18126
+ uri?: any | null;
18127
+ description?: string | null;
18128
+ identifier?: string | null;
18008
18129
  thing?: string | null;
18009
18130
  relevance?: number | null;
18010
18131
  } | null> | null;
@@ -18089,6 +18210,9 @@ export type GetMedicalStudyQuery = {
18089
18210
  name: string;
18090
18211
  alternateNames?: Array<string | null> | null;
18091
18212
  creationDate: any;
18213
+ uri?: any | null;
18214
+ description?: string | null;
18215
+ identifier?: string | null;
18092
18216
  thing?: string | null;
18093
18217
  relevance?: number | null;
18094
18218
  address?: {
@@ -18114,6 +18238,9 @@ export type QueryMedicalStudiesQuery = {
18114
18238
  name: string;
18115
18239
  alternateNames?: Array<string | null> | null;
18116
18240
  creationDate: any;
18241
+ uri?: any | null;
18242
+ description?: string | null;
18243
+ identifier?: string | null;
18117
18244
  thing?: string | null;
18118
18245
  relevance?: number | null;
18119
18246
  address?: {
@@ -18206,6 +18333,9 @@ export type GetMedicalTestQuery = {
18206
18333
  name: string;
18207
18334
  alternateNames?: Array<string | null> | null;
18208
18335
  creationDate: any;
18336
+ uri?: any | null;
18337
+ description?: string | null;
18338
+ identifier?: string | null;
18209
18339
  thing?: string | null;
18210
18340
  relevance?: number | null;
18211
18341
  } | null;
@@ -18223,6 +18353,9 @@ export type QueryMedicalTestsQuery = {
18223
18353
  name: string;
18224
18354
  alternateNames?: Array<string | null> | null;
18225
18355
  creationDate: any;
18356
+ uri?: any | null;
18357
+ description?: string | null;
18358
+ identifier?: string | null;
18226
18359
  thing?: string | null;
18227
18360
  relevance?: number | null;
18228
18361
  } | null> | null;
@@ -18307,6 +18440,9 @@ export type GetMedicalTherapyQuery = {
18307
18440
  name: string;
18308
18441
  alternateNames?: Array<string | null> | null;
18309
18442
  creationDate: any;
18443
+ uri?: any | null;
18444
+ description?: string | null;
18445
+ identifier?: string | null;
18310
18446
  thing?: string | null;
18311
18447
  relevance?: number | null;
18312
18448
  } | null;
@@ -18324,6 +18460,9 @@ export type QueryMedicalTherapiesQuery = {
18324
18460
  name: string;
18325
18461
  alternateNames?: Array<string | null> | null;
18326
18462
  creationDate: any;
18463
+ uri?: any | null;
18464
+ description?: string | null;
18465
+ identifier?: string | null;
18327
18466
  thing?: string | null;
18328
18467
  relevance?: number | null;
18329
18468
  } | null> | null;
@@ -18441,6 +18580,9 @@ export type GetOrganizationQuery = {
18441
18580
  name: string;
18442
18581
  alternateNames?: Array<string | null> | null;
18443
18582
  creationDate: any;
18583
+ uri?: any | null;
18584
+ description?: string | null;
18585
+ identifier?: string | null;
18444
18586
  thing?: string | null;
18445
18587
  relevance?: number | null;
18446
18588
  foundingDate?: any | null;
@@ -18472,6 +18614,9 @@ export type QueryOrganizationsQuery = {
18472
18614
  name: string;
18473
18615
  alternateNames?: Array<string | null> | null;
18474
18616
  creationDate: any;
18617
+ uri?: any | null;
18618
+ description?: string | null;
18619
+ identifier?: string | null;
18475
18620
  thing?: string | null;
18476
18621
  relevance?: number | null;
18477
18622
  foundingDate?: any | null;
@@ -18570,6 +18715,9 @@ export type GetPersonQuery = {
18570
18715
  name: string;
18571
18716
  alternateNames?: Array<string | null> | null;
18572
18717
  creationDate: any;
18718
+ uri?: any | null;
18719
+ description?: string | null;
18720
+ identifier?: string | null;
18573
18721
  thing?: string | null;
18574
18722
  relevance?: number | null;
18575
18723
  email?: string | null;
@@ -18603,6 +18751,9 @@ export type QueryPersonsQuery = {
18603
18751
  name: string;
18604
18752
  alternateNames?: Array<string | null> | null;
18605
18753
  creationDate: any;
18754
+ uri?: any | null;
18755
+ description?: string | null;
18756
+ identifier?: string | null;
18606
18757
  thing?: string | null;
18607
18758
  relevance?: number | null;
18608
18759
  email?: string | null;
@@ -18703,6 +18854,9 @@ export type GetPlaceQuery = {
18703
18854
  name: string;
18704
18855
  alternateNames?: Array<string | null> | null;
18705
18856
  creationDate: any;
18857
+ uri?: any | null;
18858
+ description?: string | null;
18859
+ identifier?: string | null;
18706
18860
  thing?: string | null;
18707
18861
  relevance?: number | null;
18708
18862
  address?: {
@@ -18728,6 +18882,9 @@ export type QueryPlacesQuery = {
18728
18882
  name: string;
18729
18883
  alternateNames?: Array<string | null> | null;
18730
18884
  creationDate: any;
18885
+ uri?: any | null;
18886
+ description?: string | null;
18887
+ identifier?: string | null;
18731
18888
  thing?: string | null;
18732
18889
  relevance?: number | null;
18733
18890
  address?: {
@@ -18820,6 +18977,9 @@ export type GetProductQuery = {
18820
18977
  name: string;
18821
18978
  alternateNames?: Array<string | null> | null;
18822
18979
  creationDate: any;
18980
+ uri?: any | null;
18981
+ description?: string | null;
18982
+ identifier?: string | null;
18823
18983
  thing?: string | null;
18824
18984
  relevance?: number | null;
18825
18985
  manufacturer?: string | null;
@@ -18852,6 +19012,9 @@ export type QueryProductsQuery = {
18852
19012
  name: string;
18853
19013
  alternateNames?: Array<string | null> | null;
18854
19014
  creationDate: any;
19015
+ uri?: any | null;
19016
+ description?: string | null;
19017
+ identifier?: string | null;
18855
19018
  thing?: string | null;
18856
19019
  relevance?: number | null;
18857
19020
  manufacturer?: string | null;
@@ -19143,6 +19306,9 @@ export type GetRepoQuery = {
19143
19306
  name: string;
19144
19307
  alternateNames?: Array<string | null> | null;
19145
19308
  creationDate: any;
19309
+ uri?: any | null;
19310
+ description?: string | null;
19311
+ identifier?: string | null;
19146
19312
  thing?: string | null;
19147
19313
  relevance?: number | null;
19148
19314
  } | null;
@@ -19160,6 +19326,9 @@ export type QueryReposQuery = {
19160
19326
  name: string;
19161
19327
  alternateNames?: Array<string | null> | null;
19162
19328
  creationDate: any;
19329
+ uri?: any | null;
19330
+ description?: string | null;
19331
+ identifier?: string | null;
19163
19332
  thing?: string | null;
19164
19333
  relevance?: number | null;
19165
19334
  } | null> | null;
@@ -19276,6 +19445,9 @@ export type GetSoftwareQuery = {
19276
19445
  name: string;
19277
19446
  alternateNames?: Array<string | null> | null;
19278
19447
  creationDate: any;
19448
+ uri?: any | null;
19449
+ description?: string | null;
19450
+ identifier?: string | null;
19279
19451
  thing?: string | null;
19280
19452
  relevance?: number | null;
19281
19453
  releaseDate?: any | null;
@@ -19295,6 +19467,9 @@ export type QuerySoftwaresQuery = {
19295
19467
  name: string;
19296
19468
  alternateNames?: Array<string | null> | null;
19297
19469
  creationDate: any;
19470
+ uri?: any | null;
19471
+ description?: string | null;
19472
+ identifier?: string | null;
19298
19473
  thing?: string | null;
19299
19474
  relevance?: number | null;
19300
19475
  releaseDate?: any | null;
@@ -19403,6 +19578,7 @@ export type GetSpecificationQuery = {
19403
19578
  embedCitations?: boolean | null;
19404
19579
  flattenCitations?: boolean | null;
19405
19580
  enableFacets?: boolean | null;
19581
+ disableGuardrails?: boolean | null;
19406
19582
  messagesWeight?: number | null;
19407
19583
  contentsWeight?: number | null;
19408
19584
  } | null;
@@ -19744,6 +19920,7 @@ export type QuerySpecificationsQuery = {
19744
19920
  embedCitations?: boolean | null;
19745
19921
  flattenCitations?: boolean | null;
19746
19922
  enableFacets?: boolean | null;
19923
+ disableGuardrails?: boolean | null;
19747
19924
  messagesWeight?: number | null;
19748
19925
  contentsWeight?: number | null;
19749
19926
  } | null;
@@ -71,6 +71,10 @@ var AzureDocumentIntelligenceModels;
71
71
  AzureDocumentIntelligenceModels["ReadOcr"] = "READ_OCR";
72
72
  /** Receipt */
73
73
  AzureDocumentIntelligenceModels["Receipt"] = "RECEIPT";
74
+ /** Bank Check (US) */
75
+ AzureDocumentIntelligenceModels["UsBankCheck"] = "US_BANK_CHECK";
76
+ /** Bank Statement (US) */
77
+ AzureDocumentIntelligenceModels["UsBankStatement"] = "US_BANK_STATEMENT";
74
78
  /** Health Insurance Card (US) */
75
79
  AzureDocumentIntelligenceModels["UsHealthInsuranceCard"] = "US_HEALTH_INSURANCE_CARD";
76
80
  /** Marriage Certificate (US) */
@@ -81,6 +85,8 @@ var AzureDocumentIntelligenceModels;
81
85
  AzureDocumentIntelligenceModels["UsMortgage1008"] = "US_MORTGAGE1008";
82
86
  /** Mortgage closing disclosure (US) */
83
87
  AzureDocumentIntelligenceModels["UsMortgageDisclosure"] = "US_MORTGAGE_DISCLOSURE";
88
+ /** Pay Stub (US) */
89
+ AzureDocumentIntelligenceModels["UsPayStub"] = "US_PAY_STUB";
84
90
  /** 1098 Form (US) */
85
91
  AzureDocumentIntelligenceModels["UsTaxForm1098"] = "US_TAX_FORM1098";
86
92
  /** 1098E Form (US) */
@@ -743,6 +749,8 @@ var GoogleModels;
743
749
  GoogleModels["Gemini_1_5Pro_001"] = "GEMINI_1_5_PRO_001";
744
750
  /** Gemini 1.5 Pro (002 version) */
745
751
  GoogleModels["Gemini_1_5Pro_002"] = "GEMINI_1_5_PRO_002";
752
+ /** Gemini 2.0 Flash (Experimental) */
753
+ GoogleModels["Gemini_2_0FlashExperimental"] = "GEMINI_2_0_FLASH_EXPERIMENTAL";
746
754
  })(GoogleModels || (exports.GoogleModels = GoogleModels = {}));
747
755
  /** GraphRAG strategies */
748
756
  var GraphStrategyTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20241209001",
3
+ "version": "1.0.20241212001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",