graphlit-client 1.0.20240930002 → 1.0.20241007001

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.
@@ -343,7 +343,7 @@ export type AnthropicModelPropertiesUpdateInput = {
343
343
  /** The Anthropic API key, if using developer's own account. */
344
344
  key?: InputMaybe<Scalars['String']['input']>;
345
345
  /** The Anthropic model, or custom, when using developer's own account. */
346
- model: AnthropicModels;
346
+ model?: InputMaybe<AnthropicModels>;
347
347
  /** The Anthropic model name, if using developer's own account. */
348
348
  modelName?: InputMaybe<Scalars['String']['input']>;
349
349
  /** The model token probability. */
@@ -739,7 +739,7 @@ export type AzureOpenAiModelPropertiesUpdateInput = {
739
739
  /** The Azure OpenAI API key, if using developer's own account. */
740
740
  key?: InputMaybe<Scalars['String']['input']>;
741
741
  /** The Azure OpenAI model, or custom, when using developer's own account. */
742
- model: AzureOpenAiModels;
742
+ model?: InputMaybe<AzureOpenAiModels>;
743
743
  /** The model token probability. */
744
744
  probability?: InputMaybe<Scalars['Float']['input']>;
745
745
  /** The model temperature. */
@@ -951,7 +951,7 @@ export type CerebrasModelPropertiesUpdateInput = {
951
951
  /** The Cerebras API key, if using developer's own account. */
952
952
  key?: InputMaybe<Scalars['String']['input']>;
953
953
  /** The Cerebras model, or custom, when using developer's own account. */
954
- model: CerebrasModels;
954
+ model?: InputMaybe<CerebrasModels>;
955
955
  /** The Cerebras model name, if using developer's own account. */
956
956
  modelName?: InputMaybe<Scalars['String']['input']>;
957
957
  /** The model token probability. */
@@ -1012,7 +1012,7 @@ export type CohereModelPropertiesUpdateInput = {
1012
1012
  /** The Cohere API key, if using developer's own account. */
1013
1013
  key?: InputMaybe<Scalars['String']['input']>;
1014
1014
  /** The Cohere model, or custom, when using developer's own account. */
1015
- model: CohereModels;
1015
+ model?: InputMaybe<CohereModels>;
1016
1016
  /** The Cohere model name, if using developer's own account. */
1017
1017
  modelName?: InputMaybe<Scalars['String']['input']>;
1018
1018
  /** The model token probability. */
@@ -1729,7 +1729,7 @@ export type ConversationCitation = {
1729
1729
  /** The citation start time, within the referenced audio or video content. */
1730
1730
  startTime?: Maybe<Scalars['TimeSpan']['output']>;
1731
1731
  /** The citation text. */
1732
- text?: Maybe<Scalars['String']['output']>;
1732
+ text: Scalars['String']['output'];
1733
1733
  };
1734
1734
  /** Represents a filter for conversations. */
1735
1735
  export type ConversationFilter = {
@@ -1768,6 +1768,8 @@ export type ConversationInput = {
1768
1768
  augmentedFilter?: InputMaybe<ContentCriteriaInput>;
1769
1769
  /** Filter content for conversation, optional. */
1770
1770
  filter?: InputMaybe<ContentCriteriaInput>;
1771
+ /** The conversation messages. */
1772
+ messages?: InputMaybe<Array<InputMaybe<ConversationMessageInput>>>;
1771
1773
  /** The name of the conversation. */
1772
1774
  name: Scalars['String']['input'];
1773
1775
  /** The LLM specification used by this conversation, optional. */
@@ -1785,7 +1787,7 @@ export type ConversationMessage = {
1785
1787
  /** The elapsed time for the model to complete the prompt, only provided with assistant role. */
1786
1788
  completionTime?: Maybe<Scalars['TimeSpan']['output']>;
1787
1789
  /** The conversation message. */
1788
- message: Scalars['String']['output'];
1790
+ message?: Maybe<Scalars['String']['output']>;
1789
1791
  /** The LLM description, only provided with assistant role. */
1790
1792
  model?: Maybe<Scalars['String']['output']>;
1791
1793
  /** The LLM service type, only provided with assistant role. */
@@ -1795,9 +1797,20 @@ export type ConversationMessage = {
1795
1797
  /** The LLM completion throughput in tokens/second, only provided with assistant role. */
1796
1798
  throughput?: Maybe<Scalars['Float']['output']>;
1797
1799
  /** The conversation message timestamp. */
1798
- timestamp: Scalars['DateTime']['output'];
1800
+ timestamp?: Maybe<Scalars['DateTime']['output']>;
1799
1801
  /** The conversation message token usage, not including RAG context tokens. */
1800
- tokens: Scalars['Int']['output'];
1802
+ tokens?: Maybe<Scalars['Int']['output']>;
1803
+ /** The tools called during the prompting of the conversation. You will need to call continueConversation with the tool responses to continue the conversation. */
1804
+ toolCalls?: Maybe<Array<Maybe<ConversationToolCall>>>;
1805
+ };
1806
+ /** Represents a conversation message. */
1807
+ export type ConversationMessageInput = {
1808
+ /** The conversation message author. */
1809
+ author?: InputMaybe<Scalars['String']['input']>;
1810
+ /** The conversation message. */
1811
+ message: Scalars['String']['input'];
1812
+ /** The conversation message role. */
1813
+ role: ConversationRoleTypes;
1801
1814
  };
1802
1815
  /** Represents conversation query results. */
1803
1816
  export type ConversationResults = {
@@ -1805,10 +1818,13 @@ export type ConversationResults = {
1805
1818
  /** The list of conversation query results. */
1806
1819
  results?: Maybe<Array<Maybe<Conversation>>>;
1807
1820
  };
1821
+ /** Conversation message role type */
1808
1822
  export declare enum ConversationRoleTypes {
1823
+ /** LLM assistant message */
1809
1824
  Assistant = "ASSISTANT",
1810
- Function = "FUNCTION",
1825
+ /** LLM system message */
1811
1826
  System = "SYSTEM",
1827
+ /** LLM user prompt message */
1812
1828
  User = "USER"
1813
1829
  }
1814
1830
  /** Conversation search type */
@@ -1875,6 +1891,23 @@ export type ConversationStrategyUpdateInput = {
1875
1891
  /** The conversation strategy type. */
1876
1892
  type?: InputMaybe<ConversationStrategyTypes>;
1877
1893
  };
1894
+ /** Represents a conversation tool call. */
1895
+ export type ConversationToolCall = {
1896
+ __typename?: 'ConversationToolCall';
1897
+ /** The tool arguments. */
1898
+ arguments: Scalars['String']['output'];
1899
+ /** The tool identifier. */
1900
+ id?: Maybe<Scalars['String']['output']>;
1901
+ /** The tool name. */
1902
+ name: Scalars['String']['output'];
1903
+ };
1904
+ /** Represents a conversation tool calling response. */
1905
+ export type ConversationToolResponseInput = {
1906
+ /** The provided response to the tool call. Accepts either text or JSON. */
1907
+ content: Scalars['String']['input'];
1908
+ /** The tool call identifier. */
1909
+ id: Scalars['String']['input'];
1910
+ };
1878
1911
  /** Conversation type */
1879
1912
  export declare enum ConversationTypes {
1880
1913
  /** Conversation over content */
@@ -2019,7 +2052,7 @@ export type DeepseekModelPropertiesUpdateInput = {
2019
2052
  /** The Deepseek API key, if using developer's own account. */
2020
2053
  key?: InputMaybe<Scalars['String']['input']>;
2021
2054
  /** The Deepseek model, or custom, when using developer's own account. */
2022
- model: DeepseekModels;
2055
+ model?: InputMaybe<DeepseekModels>;
2023
2056
  /** The Deepseek model name, if using developer's own account. */
2024
2057
  modelName?: InputMaybe<Scalars['String']['input']>;
2025
2058
  /** The model token probability. */
@@ -3519,7 +3552,7 @@ export type GoogleModelPropertiesUpdateInput = {
3519
3552
  /** The Google API key, if using developer's own account. */
3520
3553
  key?: InputMaybe<Scalars['String']['input']>;
3521
3554
  /** The Google model, or custom, when using developer's own account. */
3522
- model: GoogleModels;
3555
+ model?: InputMaybe<GoogleModels>;
3523
3556
  /** The Google model name, if using developer's own account. */
3524
3557
  modelName?: InputMaybe<Scalars['String']['input']>;
3525
3558
  /** The model token probability. */
@@ -3539,6 +3572,10 @@ export declare enum GoogleModels {
3539
3572
  Gemini_1_5Flash_001 = "GEMINI_1_5_FLASH_001",
3540
3573
  /** Gemini 1.5 Flash (002 version) */
3541
3574
  Gemini_1_5Flash_002 = "GEMINI_1_5_FLASH_002",
3575
+ /** Gemini 1.5 Flash 8b (Latest) */
3576
+ Gemini_1_5Flash_8B = "GEMINI_1_5_FLASH_8B",
3577
+ /** Gemini 1.5 Flash 8b (001 version) */
3578
+ Gemini_1_5Flash_8B_001 = "GEMINI_1_5_FLASH_8B_001",
3542
3579
  /** Gemini 1.5 Pro (Latest) */
3543
3580
  Gemini_1_5Pro = "GEMINI_1_5_PRO",
3544
3581
  /** Gemini 1.5 Pro (001 version) */
@@ -3661,7 +3698,7 @@ export type GroqModelPropertiesUpdateInput = {
3661
3698
  /** The Groq API key, if using developer's own account. */
3662
3699
  key?: InputMaybe<Scalars['String']['input']>;
3663
3700
  /** The Groq model, or custom, when using developer's own account. */
3664
- model: GroqModels;
3701
+ model?: InputMaybe<GroqModels>;
3665
3702
  /** The Groq model name, if using developer's own account. */
3666
3703
  modelName?: InputMaybe<Scalars['String']['input']>;
3667
3704
  /** The model token probability. */
@@ -6220,7 +6257,7 @@ export type MistralModelPropertiesUpdateInput = {
6220
6257
  /** The Mistral API key, if using developer's own account. */
6221
6258
  key?: InputMaybe<Scalars['String']['input']>;
6222
6259
  /** The Mistral model, or custom, when using developer's own account. */
6223
- model: MistralModels;
6260
+ model?: InputMaybe<MistralModels>;
6224
6261
  /** The Mistral model name, if using developer's own account. */
6225
6262
  modelName?: InputMaybe<Scalars['String']['input']>;
6226
6263
  /** The model token probability. */
@@ -6320,6 +6357,8 @@ export type Mutation = {
6320
6357
  closeCollection?: Maybe<Collection>;
6321
6358
  /** Closes an existing conversation. */
6322
6359
  closeConversation?: Maybe<Conversation>;
6360
+ /** Provide responses to called tools which continues prompted conversation. */
6361
+ continueConversation?: Maybe<PromptConversation>;
6323
6362
  /** Creates a new alert. */
6324
6363
  createAlert?: Maybe<Alert>;
6325
6364
  /** Creates a new category. */
@@ -6546,8 +6585,10 @@ export type Mutation = {
6546
6585
  enableAlert?: Maybe<Alert>;
6547
6586
  /** Enables a feed. */
6548
6587
  enableFeed?: Maybe<Feed>;
6549
- /** Extracts data from contents based on the provided filter criteria. */
6588
+ /** Extracts data using tool calling, from contents resulting from the provided filter criteria. */
6550
6589
  extractContents?: Maybe<Array<Maybe<ExtractCompletion>>>;
6590
+ /** Ingests a batch of content by URI. Supports files and webpages. */
6591
+ ingestBatch?: Maybe<Array<Maybe<Content>>>;
6551
6592
  /** Ingests a file from Base64-encoded data. */
6552
6593
  ingestEncodedFile?: Maybe<Content>;
6553
6594
  /**
@@ -6671,6 +6712,11 @@ export type MutationCloseCollectionArgs = {
6671
6712
  export type MutationCloseConversationArgs = {
6672
6713
  id: Scalars['ID']['input'];
6673
6714
  };
6715
+ export type MutationContinueConversationArgs = {
6716
+ correlationId?: InputMaybe<Scalars['String']['input']>;
6717
+ id: Scalars['ID']['input'];
6718
+ responses: Array<ConversationToolResponseInput>;
6719
+ };
6674
6720
  export type MutationCreateAlertArgs = {
6675
6721
  alert: AlertInput;
6676
6722
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -7099,6 +7145,13 @@ export type MutationExtractContentsArgs = {
7099
7145
  filter?: InputMaybe<ContentFilter>;
7100
7146
  prompt: Scalars['String']['input'];
7101
7147
  specification: EntityReferenceInput;
7148
+ tools: Array<ToolDefinitionInput>;
7149
+ };
7150
+ export type MutationIngestBatchArgs = {
7151
+ collections?: InputMaybe<Array<EntityReferenceInput>>;
7152
+ correlationId?: InputMaybe<Scalars['String']['input']>;
7153
+ uris: Array<Scalars['URL']['input']>;
7154
+ workflow?: InputMaybe<EntityReferenceInput>;
7102
7155
  };
7103
7156
  export type MutationIngestEncodedFileArgs = {
7104
7157
  collections?: InputMaybe<Array<EntityReferenceInput>>;
@@ -7159,6 +7212,7 @@ export type MutationPromptConversationArgs = {
7159
7212
  id?: InputMaybe<Scalars['ID']['input']>;
7160
7213
  prompt: Scalars['String']['input'];
7161
7214
  specification?: InputMaybe<EntityReferenceInput>;
7215
+ tools?: InputMaybe<Array<ToolDefinitionInput>>;
7162
7216
  };
7163
7217
  export type MutationPromptSpecificationsArgs = {
7164
7218
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -7658,7 +7712,7 @@ export type OpenAiModelPropertiesUpdateInput = {
7658
7712
  /** The OpenAI API key, if using developer's own account. */
7659
7713
  key?: InputMaybe<Scalars['String']['input']>;
7660
7714
  /** The Azure OpenAI model, or custom, when using developer's own account. */
7661
- model: OpenAiModels;
7715
+ model?: InputMaybe<OpenAiModels>;
7662
7716
  /** The OpenAI model name, if using developer's own account. */
7663
7717
  modelName?: InputMaybe<Scalars['String']['input']>;
7664
7718
  /** The model token probability. */
@@ -9826,7 +9880,7 @@ export type ReplicateModelPropertiesUpdateInput = {
9826
9880
  /** The Replicate API key, if using developer's own account. */
9827
9881
  key?: InputMaybe<Scalars['String']['input']>;
9828
9882
  /** The Replicate model, or custom, when using developer's own account. */
9829
- model: ReplicateModels;
9883
+ model?: InputMaybe<ReplicateModels>;
9830
9884
  /** The Replicate model name, if using developer's own account. */
9831
9885
  modelName?: InputMaybe<Scalars['String']['input']>;
9832
9886
  /** The model token probability. */
@@ -10607,7 +10661,10 @@ export type Specification = {
10607
10661
  strategy?: Maybe<ConversationStrategy>;
10608
10662
  /** The LLM system prompt. */
10609
10663
  systemPrompt?: Maybe<Scalars['String']['output']>;
10610
- /** The tool definitions. */
10664
+ /**
10665
+ * The tool definitions.
10666
+ * @deprecated Tool definitions have been moved to prompt conversation mutation.
10667
+ */
10611
10668
  tools?: Maybe<Array<ToolDefinition>>;
10612
10669
  /** The specification type. */
10613
10670
  type?: Maybe<SpecificationTypes>;
@@ -10687,8 +10744,6 @@ export type SpecificationInput = {
10687
10744
  strategy?: InputMaybe<ConversationStrategyInput>;
10688
10745
  /** The LLM system prompt. */
10689
10746
  systemPrompt?: InputMaybe<Scalars['String']['input']>;
10690
- /** The tool definitions. */
10691
- tools?: InputMaybe<Array<ToolDefinitionInput>>;
10692
10747
  /** The specification type. */
10693
10748
  type?: InputMaybe<SpecificationTypes>;
10694
10749
  };
@@ -10759,8 +10814,6 @@ export type SpecificationUpdateInput = {
10759
10814
  strategy?: InputMaybe<ConversationStrategyUpdateInput>;
10760
10815
  /** The LLM system prompt. */
10761
10816
  systemPrompt?: InputMaybe<Scalars['String']['input']>;
10762
- /** The tool definitions. */
10763
- tools?: InputMaybe<Array<ToolDefinitionUpdateInput>>;
10764
10817
  /** The specification type. */
10765
10818
  type?: InputMaybe<SpecificationTypes>;
10766
10819
  };
@@ -12019,6 +12072,7 @@ export type ExtractContentsMutationVariables = Exact<{
12019
12072
  prompt: Scalars['String']['input'];
12020
12073
  filter?: InputMaybe<ContentFilter>;
12021
12074
  specification: EntityReferenceInput;
12075
+ tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
12022
12076
  correlationId?: InputMaybe<Scalars['String']['input']>;
12023
12077
  }>;
12024
12078
  export type ExtractContentsMutation = {
@@ -12313,6 +12367,30 @@ export type GetContentQuery = {
12313
12367
  }> | null;
12314
12368
  } | null;
12315
12369
  };
12370
+ export type IngestBatchMutationVariables = Exact<{
12371
+ uris: Array<Scalars['URL']['input']> | Scalars['URL']['input'];
12372
+ workflow?: InputMaybe<EntityReferenceInput>;
12373
+ collections?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
12374
+ correlationId?: InputMaybe<Scalars['String']['input']>;
12375
+ }>;
12376
+ export type IngestBatchMutation = {
12377
+ __typename?: 'Mutation';
12378
+ ingestBatch?: Array<{
12379
+ __typename?: 'Content';
12380
+ id: string;
12381
+ name: string;
12382
+ state: EntityState;
12383
+ type?: ContentTypes | null;
12384
+ fileType?: FileTypes | null;
12385
+ mimeType?: string | null;
12386
+ uri?: any | null;
12387
+ collections?: Array<{
12388
+ __typename?: 'Collection';
12389
+ id: string;
12390
+ name: string;
12391
+ } | null> | null;
12392
+ } | null> | null;
12393
+ };
12316
12394
  export type IngestEncodedFileMutationVariables = Exact<{
12317
12395
  name: Scalars['String']['input'];
12318
12396
  data: Scalars['String']['input'];
@@ -13144,6 +13222,188 @@ export type CloseConversationMutation = {
13144
13222
  type?: ConversationTypes | null;
13145
13223
  } | null;
13146
13224
  };
13225
+ export type ContinueConversationMutationVariables = Exact<{
13226
+ id: Scalars['ID']['input'];
13227
+ responses: Array<ConversationToolResponseInput> | ConversationToolResponseInput;
13228
+ correlationId?: InputMaybe<Scalars['String']['input']>;
13229
+ }>;
13230
+ export type ContinueConversationMutation = {
13231
+ __typename?: 'Mutation';
13232
+ continueConversation?: {
13233
+ __typename?: 'PromptConversation';
13234
+ messageCount?: number | null;
13235
+ conversation?: {
13236
+ __typename?: 'EntityReference';
13237
+ id: string;
13238
+ } | null;
13239
+ message?: {
13240
+ __typename?: 'ConversationMessage';
13241
+ role: ConversationRoleTypes;
13242
+ author?: string | null;
13243
+ message?: string | null;
13244
+ tokens?: number | null;
13245
+ throughput?: number | null;
13246
+ completionTime?: any | null;
13247
+ timestamp?: any | null;
13248
+ modelService?: ModelServiceTypes | null;
13249
+ model?: string | null;
13250
+ citations?: Array<{
13251
+ __typename?: 'ConversationCitation';
13252
+ index?: number | null;
13253
+ text: string;
13254
+ startTime?: any | null;
13255
+ endTime?: any | null;
13256
+ pageNumber?: number | null;
13257
+ frameNumber?: number | null;
13258
+ content?: {
13259
+ __typename?: 'Content';
13260
+ id: string;
13261
+ name: string;
13262
+ state: EntityState;
13263
+ originalDate?: any | null;
13264
+ identifier?: string | null;
13265
+ uri?: any | null;
13266
+ type?: ContentTypes | null;
13267
+ fileType?: FileTypes | null;
13268
+ mimeType?: string | null;
13269
+ format?: string | null;
13270
+ formatName?: string | null;
13271
+ fileExtension?: string | null;
13272
+ fileName?: string | null;
13273
+ fileSize?: any | null;
13274
+ masterUri?: any | null;
13275
+ imageUri?: any | null;
13276
+ textUri?: any | null;
13277
+ audioUri?: any | null;
13278
+ transcriptUri?: any | null;
13279
+ summary?: string | null;
13280
+ customSummary?: string | null;
13281
+ keywords?: Array<string> | null;
13282
+ bullets?: Array<string> | null;
13283
+ headlines?: Array<string> | null;
13284
+ posts?: Array<string> | null;
13285
+ chapters?: Array<string> | null;
13286
+ questions?: Array<string> | null;
13287
+ video?: {
13288
+ __typename?: 'VideoMetadata';
13289
+ width?: number | null;
13290
+ height?: number | null;
13291
+ duration?: any | null;
13292
+ make?: string | null;
13293
+ model?: string | null;
13294
+ software?: string | null;
13295
+ title?: string | null;
13296
+ description?: string | null;
13297
+ keywords?: Array<string | null> | null;
13298
+ author?: string | null;
13299
+ } | null;
13300
+ audio?: {
13301
+ __typename?: 'AudioMetadata';
13302
+ keywords?: Array<string | null> | null;
13303
+ author?: string | null;
13304
+ series?: string | null;
13305
+ episode?: string | null;
13306
+ episodeType?: string | null;
13307
+ season?: string | null;
13308
+ publisher?: string | null;
13309
+ copyright?: string | null;
13310
+ genre?: string | null;
13311
+ title?: string | null;
13312
+ description?: string | null;
13313
+ bitrate?: number | null;
13314
+ channels?: number | null;
13315
+ sampleRate?: number | null;
13316
+ bitsPerSample?: number | null;
13317
+ duration?: any | null;
13318
+ } | null;
13319
+ image?: {
13320
+ __typename?: 'ImageMetadata';
13321
+ width?: number | null;
13322
+ height?: number | null;
13323
+ resolutionX?: number | null;
13324
+ resolutionY?: number | null;
13325
+ bitsPerComponent?: number | null;
13326
+ components?: number | null;
13327
+ projectionType?: ImageProjectionTypes | null;
13328
+ orientation?: OrientationTypes | null;
13329
+ description?: string | null;
13330
+ make?: string | null;
13331
+ model?: string | null;
13332
+ software?: string | null;
13333
+ lens?: string | null;
13334
+ focalLength?: number | null;
13335
+ exposureTime?: string | null;
13336
+ fNumber?: string | null;
13337
+ iso?: string | null;
13338
+ heading?: number | null;
13339
+ pitch?: number | null;
13340
+ } | null;
13341
+ document?: {
13342
+ __typename?: 'DocumentMetadata';
13343
+ title?: string | null;
13344
+ subject?: string | null;
13345
+ summary?: string | null;
13346
+ author?: string | null;
13347
+ publisher?: string | null;
13348
+ description?: string | null;
13349
+ keywords?: Array<string | null> | null;
13350
+ pageCount?: number | null;
13351
+ worksheetCount?: number | null;
13352
+ slideCount?: number | null;
13353
+ wordCount?: number | null;
13354
+ lineCount?: number | null;
13355
+ paragraphCount?: number | null;
13356
+ isEncrypted?: boolean | null;
13357
+ hasDigitalSignature?: boolean | null;
13358
+ } | null;
13359
+ } | null;
13360
+ } | null> | null;
13361
+ toolCalls?: Array<{
13362
+ __typename?: 'ConversationToolCall';
13363
+ id?: string | null;
13364
+ name: string;
13365
+ arguments: string;
13366
+ } | null> | null;
13367
+ } | null;
13368
+ facets?: Array<{
13369
+ __typename?: 'ContentFacet';
13370
+ type?: FacetValueTypes | null;
13371
+ value?: string | null;
13372
+ count?: any | null;
13373
+ facet?: ContentFacetTypes | null;
13374
+ range?: {
13375
+ __typename?: 'StringRange';
13376
+ from?: string | null;
13377
+ to?: string | null;
13378
+ } | null;
13379
+ observable?: {
13380
+ __typename?: 'ObservableFacet';
13381
+ type?: ObservableTypes | null;
13382
+ observable?: {
13383
+ __typename?: 'NamedEntityReference';
13384
+ id: string;
13385
+ name?: string | null;
13386
+ } | null;
13387
+ } | null;
13388
+ } | null> | null;
13389
+ graph?: {
13390
+ __typename?: 'Graph';
13391
+ nodes?: Array<{
13392
+ __typename?: 'GraphNode';
13393
+ id: string;
13394
+ name: string;
13395
+ type: EntityTypes;
13396
+ metadata?: string | null;
13397
+ } | null> | null;
13398
+ edges?: Array<{
13399
+ __typename?: 'GraphEdge';
13400
+ from: string;
13401
+ to: string;
13402
+ relation?: string | null;
13403
+ } | null> | null;
13404
+ } | null;
13405
+ } | null;
13406
+ };
13147
13407
  export type CountConversationsQueryVariables = Exact<{
13148
13408
  filter?: InputMaybe<ConversationFilter>;
13149
13409
  }>;
@@ -13226,17 +13486,17 @@ export type GetConversationQuery = {
13226
13486
  __typename?: 'ConversationMessage';
13227
13487
  role: ConversationRoleTypes;
13228
13488
  author?: string | null;
13229
- message: string;
13230
- tokens: number;
13489
+ message?: string | null;
13490
+ tokens?: number | null;
13231
13491
  throughput?: number | null;
13232
13492
  completionTime?: any | null;
13233
- timestamp: any;
13493
+ timestamp?: any | null;
13234
13494
  modelService?: ModelServiceTypes | null;
13235
13495
  model?: string | null;
13236
13496
  citations?: Array<{
13237
13497
  __typename?: 'ConversationCitation';
13238
13498
  index?: number | null;
13239
- text?: string | null;
13499
+ text: string;
13240
13500
  startTime?: any | null;
13241
13501
  endTime?: any | null;
13242
13502
  pageNumber?: number | null;
@@ -13344,6 +13604,12 @@ export type GetConversationQuery = {
13344
13604
  } | null;
13345
13605
  } | null;
13346
13606
  } | null> | null;
13607
+ toolCalls?: Array<{
13608
+ __typename?: 'ConversationToolCall';
13609
+ id?: string | null;
13610
+ name: string;
13611
+ arguments: string;
13612
+ } | null> | null;
13347
13613
  } | null> | null;
13348
13614
  specification?: {
13349
13615
  __typename?: 'Specification';
@@ -13532,6 +13798,7 @@ export type PromptConversationMutationVariables = Exact<{
13532
13798
  prompt: Scalars['String']['input'];
13533
13799
  id?: InputMaybe<Scalars['ID']['input']>;
13534
13800
  specification?: InputMaybe<EntityReferenceInput>;
13801
+ tools?: InputMaybe<Array<ToolDefinitionInput> | ToolDefinitionInput>;
13535
13802
  correlationId?: InputMaybe<Scalars['String']['input']>;
13536
13803
  }>;
13537
13804
  export type PromptConversationMutation = {
@@ -13547,17 +13814,17 @@ export type PromptConversationMutation = {
13547
13814
  __typename?: 'ConversationMessage';
13548
13815
  role: ConversationRoleTypes;
13549
13816
  author?: string | null;
13550
- message: string;
13551
- tokens: number;
13817
+ message?: string | null;
13818
+ tokens?: number | null;
13552
13819
  throughput?: number | null;
13553
13820
  completionTime?: any | null;
13554
- timestamp: any;
13821
+ timestamp?: any | null;
13555
13822
  modelService?: ModelServiceTypes | null;
13556
13823
  model?: string | null;
13557
13824
  citations?: Array<{
13558
13825
  __typename?: 'ConversationCitation';
13559
13826
  index?: number | null;
13560
- text?: string | null;
13827
+ text: string;
13561
13828
  startTime?: any | null;
13562
13829
  endTime?: any | null;
13563
13830
  pageNumber?: number | null;
@@ -13665,6 +13932,12 @@ export type PromptConversationMutation = {
13665
13932
  } | null;
13666
13933
  } | null;
13667
13934
  } | null> | null;
13935
+ toolCalls?: Array<{
13936
+ __typename?: 'ConversationToolCall';
13937
+ id?: string | null;
13938
+ name: string;
13939
+ arguments: string;
13940
+ } | null> | null;
13668
13941
  } | null;
13669
13942
  facets?: Array<{
13670
13943
  __typename?: 'ContentFacet';
@@ -13758,17 +14031,17 @@ export type QueryConversationsQuery = {
13758
14031
  __typename?: 'ConversationMessage';
13759
14032
  role: ConversationRoleTypes;
13760
14033
  author?: string | null;
13761
- message: string;
13762
- tokens: number;
14034
+ message?: string | null;
14035
+ tokens?: number | null;
13763
14036
  throughput?: number | null;
13764
14037
  completionTime?: any | null;
13765
- timestamp: any;
14038
+ timestamp?: any | null;
13766
14039
  modelService?: ModelServiceTypes | null;
13767
14040
  model?: string | null;
13768
14041
  citations?: Array<{
13769
14042
  __typename?: 'ConversationCitation';
13770
14043
  index?: number | null;
13771
- text?: string | null;
14044
+ text: string;
13772
14045
  startTime?: any | null;
13773
14046
  endTime?: any | null;
13774
14047
  pageNumber?: number | null;
@@ -13876,6 +14149,12 @@ export type QueryConversationsQuery = {
13876
14149
  } | null;
13877
14150
  } | null;
13878
14151
  } | null> | null;
14152
+ toolCalls?: Array<{
14153
+ __typename?: 'ConversationToolCall';
14154
+ id?: string | null;
14155
+ name: string;
14156
+ arguments: string;
14157
+ } | null> | null;
13879
14158
  } | null> | null;
13880
14159
  specification?: {
13881
14160
  __typename?: 'Specification';
@@ -17215,17 +17494,17 @@ export type PromptSpecificationsMutation = {
17215
17494
  __typename?: 'ConversationMessage';
17216
17495
  role: ConversationRoleTypes;
17217
17496
  author?: string | null;
17218
- message: string;
17219
- tokens: number;
17497
+ message?: string | null;
17498
+ tokens?: number | null;
17220
17499
  throughput?: number | null;
17221
17500
  completionTime?: any | null;
17222
- timestamp: any;
17501
+ timestamp?: any | null;
17223
17502
  modelService?: ModelServiceTypes | null;
17224
17503
  model?: string | null;
17225
17504
  citations?: Array<{
17226
17505
  __typename?: 'ConversationCitation';
17227
17506
  index?: number | null;
17228
- text?: string | null;
17507
+ text: string;
17229
17508
  startTime?: any | null;
17230
17509
  endTime?: any | null;
17231
17510
  pageNumber?: number | null;
@@ -17333,6 +17612,12 @@ export type PromptSpecificationsMutation = {
17333
17612
  } | null;
17334
17613
  } | null;
17335
17614
  } | null> | null;
17615
+ toolCalls?: Array<{
17616
+ __typename?: 'ConversationToolCall';
17617
+ id?: string | null;
17618
+ name: string;
17619
+ arguments: string;
17620
+ } | null> | null;
17336
17621
  } | null> | null;
17337
17622
  } | null> | null;
17338
17623
  };
@@ -256,11 +256,14 @@ var ContentTypes;
256
256
  /** Text (i.e. Markdown, HTML, plain text) */
257
257
  ContentTypes["Text"] = "TEXT";
258
258
  })(ContentTypes || (exports.ContentTypes = ContentTypes = {}));
259
+ /** Conversation message role type */
259
260
  var ConversationRoleTypes;
260
261
  (function (ConversationRoleTypes) {
262
+ /** LLM assistant message */
261
263
  ConversationRoleTypes["Assistant"] = "ASSISTANT";
262
- ConversationRoleTypes["Function"] = "FUNCTION";
264
+ /** LLM system message */
263
265
  ConversationRoleTypes["System"] = "SYSTEM";
266
+ /** LLM user prompt message */
264
267
  ConversationRoleTypes["User"] = "USER";
265
268
  })(ConversationRoleTypes || (exports.ConversationRoleTypes = ConversationRoleTypes = {}));
266
269
  /** Conversation search type */
@@ -703,6 +706,10 @@ var GoogleModels;
703
706
  GoogleModels["Gemini_1_5Flash_001"] = "GEMINI_1_5_FLASH_001";
704
707
  /** Gemini 1.5 Flash (002 version) */
705
708
  GoogleModels["Gemini_1_5Flash_002"] = "GEMINI_1_5_FLASH_002";
709
+ /** Gemini 1.5 Flash 8b (Latest) */
710
+ GoogleModels["Gemini_1_5Flash_8B"] = "GEMINI_1_5_FLASH_8B";
711
+ /** Gemini 1.5 Flash 8b (001 version) */
712
+ GoogleModels["Gemini_1_5Flash_8B_001"] = "GEMINI_1_5_FLASH_8B_001";
706
713
  /** Gemini 1.5 Pro (Latest) */
707
714
  GoogleModels["Gemini_1_5Pro"] = "GEMINI_1_5_PRO";
708
715
  /** Gemini 1.5 Pro (001 version) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240930002",
3
+ "version": "1.0.20241007001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",