graphlit-client 1.0.20241210001 → 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 {
@@ -6437,6 +6439,7 @@ exports.GetSpecification = (0, graphql_tag_1.default) `
6437
6439
  embedCitations
6438
6440
  flattenCitations
6439
6441
  enableFacets
6442
+ disableGuardrails
6440
6443
  messagesWeight
6441
6444
  contentsWeight
6442
6445
  }
@@ -6741,6 +6744,7 @@ exports.QuerySpecifications = (0, graphql_tag_1.default) `
6741
6744
  embedCitations
6742
6745
  flattenCitations
6743
6746
  enableFacets
6747
+ disableGuardrails
6744
6748
  messagesWeight
6745
6749
  contentsWeight
6746
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 = {
@@ -19511,6 +19578,7 @@ export type GetSpecificationQuery = {
19511
19578
  embedCitations?: boolean | null;
19512
19579
  flattenCitations?: boolean | null;
19513
19580
  enableFacets?: boolean | null;
19581
+ disableGuardrails?: boolean | null;
19514
19582
  messagesWeight?: number | null;
19515
19583
  contentsWeight?: number | null;
19516
19584
  } | null;
@@ -19852,6 +19920,7 @@ export type QuerySpecificationsQuery = {
19852
19920
  embedCitations?: boolean | null;
19853
19921
  flattenCitations?: boolean | null;
19854
19922
  enableFacets?: boolean | null;
19923
+ disableGuardrails?: boolean | null;
19855
19924
  messagesWeight?: number | null;
19856
19925
  contentsWeight?: number | null;
19857
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.20241210001",
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",