graphlit-client 1.0.20250220002 → 1.0.20250224002
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
@@ -74,6 +74,7 @@ declare class Graphlit {
|
|
74
74
|
reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
|
75
75
|
reviseContent(prompt: string, content: Types.EntityReferenceInput, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseContentMutation>;
|
76
76
|
prompt(prompt?: string, mimeType?: string, data?: string, specification?: Types.EntityReferenceInput, messages?: [Types.ConversationMessageInput], correlationId?: string): Promise<Types.PromptMutation>;
|
77
|
+
retrieveSources(prompt: string, filter?: Types.ContentFilter, augmentedFilter?: Types.ContentFilter, retrievalStrategy?: Types.RetrievalStrategyInput, rerankingStrategy?: Types.RerankingStrategyInput, correlationId?: string): Promise<Types.RetrieveSourcesMutation>;
|
77
78
|
formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, includeDetails?: boolean, correlationId?: string): Promise<Types.FormatConversationMutation>;
|
78
79
|
completeConversation(completion: string, id: string, correlationId?: string): Promise<Types.CompleteConversationMutation>;
|
79
80
|
askGraphlit(prompt: string, type?: Types.SdkTypes, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.AskGraphlitMutation>;
|
package/dist/client.js
CHANGED
@@ -428,6 +428,11 @@ class Graphlit {
|
|
428
428
|
return this.mutateAndCheckError(Documents.Prompt, { prompt: prompt, mimeType: mimeType, data: data, specification: specification, messages: messages, correlationId: correlationId });
|
429
429
|
});
|
430
430
|
}
|
431
|
+
retrieveSources(prompt, filter, augmentedFilter, retrievalStrategy, rerankingStrategy, correlationId) {
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
433
|
+
return this.mutateAndCheckError(Documents.RetrieveSources, { prompt: prompt, filter: filter, augmentedFilter: augmentedFilter, retrievalStrategy: retrievalStrategy, rerankingStrategy: rerankingStrategy, correlationId: correlationId });
|
434
|
+
});
|
435
|
+
}
|
431
436
|
formatConversation(prompt, id, specification, includeDetails, correlationId) {
|
432
437
|
return __awaiter(this, void 0, void 0, function* () {
|
433
438
|
return this.mutateAndCheckError(Documents.FormatConversation, { prompt: prompt, id: id, specification: specification, includeDetails: includeDetails, correlationId: correlationId });
|
@@ -1095,6 +1095,7 @@ exports.GetContent = (0, graphql_tag_1.default) `
|
|
1095
1095
|
confidence
|
1096
1096
|
text
|
1097
1097
|
role
|
1098
|
+
language
|
1098
1099
|
relevance
|
1099
1100
|
}
|
1100
1101
|
}
|
@@ -1857,6 +1858,7 @@ exports.QueryContents = (0, graphql_tag_1.default) `
|
|
1857
1858
|
confidence
|
1858
1859
|
text
|
1859
1860
|
role
|
1861
|
+
language
|
1860
1862
|
relevance
|
1861
1863
|
}
|
1862
1864
|
}
|
@@ -2107,6 +2109,7 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
|
|
2107
2109
|
confidence
|
2108
2110
|
text
|
2109
2111
|
role
|
2112
|
+
language
|
2110
2113
|
relevance
|
2111
2114
|
}
|
2112
2115
|
}
|
@@ -4633,12 +4636,17 @@ exports.RetrieveSources = (0, graphql_tag_1.default) `
|
|
4633
4636
|
correlationId: $correlationId
|
4634
4637
|
) {
|
4635
4638
|
results {
|
4639
|
+
type
|
4636
4640
|
content {
|
4637
4641
|
id
|
4638
4642
|
}
|
4639
4643
|
text
|
4640
4644
|
metadata
|
4641
4645
|
relevance
|
4646
|
+
startTime
|
4647
|
+
endTime
|
4648
|
+
pageNumber
|
4649
|
+
frameNumber
|
4642
4650
|
}
|
4643
4651
|
}
|
4644
4652
|
}
|
@@ -310,6 +310,8 @@ export type AnthropicModelProperties = {
|
|
310
310
|
chunkTokenLimit?: Maybe<Scalars['Int']['output']>;
|
311
311
|
/** The limit of tokens generated by prompt completion. */
|
312
312
|
completionTokenLimit?: Maybe<Scalars['Int']['output']>;
|
313
|
+
/** Whether Claude's extended thinking is enabled. Applies to Claude 3.7 or higher. */
|
314
|
+
enableThinking?: Maybe<Scalars['Boolean']['output']>;
|
313
315
|
/** The Anthropic API key, if using developer's own account. */
|
314
316
|
key?: Maybe<Scalars['String']['output']>;
|
315
317
|
/** The Anthropic model, or custom, when using developer's own account. */
|
@@ -320,13 +322,19 @@ export type AnthropicModelProperties = {
|
|
320
322
|
probability?: Maybe<Scalars['Float']['output']>;
|
321
323
|
/** The model temperature. */
|
322
324
|
temperature?: Maybe<Scalars['Float']['output']>;
|
325
|
+
/** The limit of thinking tokens allowed for Claude's internal reasoning process. */
|
326
|
+
thinkingTokenLimit?: Maybe<Scalars['Int']['output']>;
|
323
327
|
/** The number of tokens which can provided to the Anthropic model, if using developer's own account. */
|
324
328
|
tokenLimit?: Maybe<Scalars['Int']['output']>;
|
325
329
|
};
|
326
330
|
/** Represents Anthropic model properties. */
|
327
331
|
export type AnthropicModelPropertiesInput = {
|
332
|
+
/** The limit of tokens per embedded text chunk, defaults to 600. */
|
333
|
+
chunkTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
328
334
|
/** The limit of tokens generated by prompt completion. */
|
329
335
|
completionTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
336
|
+
/** Whether Claude's extended thinking is enabled. Applies to Claude 3.7 or higher. */
|
337
|
+
enableThinking?: InputMaybe<Scalars['Boolean']['input']>;
|
330
338
|
/** The Anthropic API key, if using developer's own account. */
|
331
339
|
key?: InputMaybe<Scalars['String']['input']>;
|
332
340
|
/** The Anthropic model, or custom, when using developer's own account. */
|
@@ -337,13 +345,19 @@ export type AnthropicModelPropertiesInput = {
|
|
337
345
|
probability?: InputMaybe<Scalars['Float']['input']>;
|
338
346
|
/** The model temperature. */
|
339
347
|
temperature?: InputMaybe<Scalars['Float']['input']>;
|
348
|
+
/** The limit of thinking tokens allowed for Claude's internal reasoning process. */
|
349
|
+
thinkingTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
340
350
|
/** The number of tokens which can provided to the Anthropic model, if using developer's own account. */
|
341
351
|
tokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
342
352
|
};
|
343
353
|
/** Represents Anthropic model properties. */
|
344
354
|
export type AnthropicModelPropertiesUpdateInput = {
|
355
|
+
/** The limit of tokens per embedded text chunk, defaults to 600. */
|
356
|
+
chunkTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
345
357
|
/** The limit of tokens generated by prompt completion. */
|
346
358
|
completionTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
359
|
+
/** Whether Claude's extended thinking is enabled. Applies to Claude 3.7 or higher. */
|
360
|
+
enableThinking?: InputMaybe<Scalars['Boolean']['input']>;
|
347
361
|
/** The Anthropic API key, if using developer's own account. */
|
348
362
|
key?: InputMaybe<Scalars['String']['input']>;
|
349
363
|
/** The Anthropic model, or custom, when using developer's own account. */
|
@@ -354,6 +368,8 @@ export type AnthropicModelPropertiesUpdateInput = {
|
|
354
368
|
probability?: InputMaybe<Scalars['Float']['input']>;
|
355
369
|
/** The model temperature. */
|
356
370
|
temperature?: InputMaybe<Scalars['Float']['input']>;
|
371
|
+
/** The limit of thinking tokens allowed for Claude's internal reasoning process. */
|
372
|
+
thinkingTokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
357
373
|
/** The number of tokens which can provided to the Anthropic model, if using developer's own account. */
|
358
374
|
tokenLimit?: InputMaybe<Scalars['Int']['input']>;
|
359
375
|
};
|
@@ -375,6 +391,10 @@ export declare enum AnthropicModels {
|
|
375
391
|
Claude_3_5Sonnet_20240620 = "CLAUDE_3_5_SONNET_20240620",
|
376
392
|
/** Claude 3.5 Sonnet (10-22-2024 version) */
|
377
393
|
Claude_3_5Sonnet_20241022 = "CLAUDE_3_5_SONNET_20241022",
|
394
|
+
/** Claude 3.7 Sonnet (Latest) */
|
395
|
+
Claude_3_7Sonnet = "CLAUDE_3_7_SONNET",
|
396
|
+
/** Claude 3.7 Sonnet (02-19-2025 version) */
|
397
|
+
Claude_3_7Sonnet_20250219 = "CLAUDE_3_7_SONNET_20250219",
|
378
398
|
/** Claude 3 Haiku (Latest) */
|
379
399
|
Claude_3Haiku = "CLAUDE_3_HAIKU",
|
380
400
|
/** Claude 3 Haiku (03-07-2024 version) */
|
@@ -12268,6 +12288,8 @@ export type TextChunk = {
|
|
12268
12288
|
confidence?: Maybe<Scalars['Float']['output']>;
|
12269
12289
|
/** The text chunk index. */
|
12270
12290
|
index?: Maybe<Scalars['Int']['output']>;
|
12291
|
+
/** The text chunk language. May be assigned for code chunks. */
|
12292
|
+
language?: Maybe<Scalars['String']['output']>;
|
12271
12293
|
/** The page index of chunk, if within section. */
|
12272
12294
|
pageIndex?: Maybe<Scalars['Int']['output']>;
|
12273
12295
|
/** The relevance score of the text chunk. */
|
@@ -14329,6 +14351,7 @@ export type GetContentQuery = {
|
|
14329
14351
|
confidence?: number | null;
|
14330
14352
|
text?: string | null;
|
14331
14353
|
role?: TextRoles | null;
|
14354
|
+
language?: string | null;
|
14332
14355
|
relevance?: number | null;
|
14333
14356
|
} | null> | null;
|
14334
14357
|
}> | null;
|
@@ -15177,6 +15200,7 @@ export type QueryContentsQuery = {
|
|
15177
15200
|
confidence?: number | null;
|
15178
15201
|
text?: string | null;
|
15179
15202
|
role?: TextRoles | null;
|
15203
|
+
language?: string | null;
|
15180
15204
|
relevance?: number | null;
|
15181
15205
|
} | null> | null;
|
15182
15206
|
}> | null;
|
@@ -15463,6 +15487,7 @@ export type QueryContentsFacetsQuery = {
|
|
15463
15487
|
confidence?: number | null;
|
15464
15488
|
text?: string | null;
|
15465
15489
|
role?: TextRoles | null;
|
15490
|
+
language?: string | null;
|
15466
15491
|
relevance?: number | null;
|
15467
15492
|
} | null> | null;
|
15468
15493
|
}> | null;
|
@@ -18306,9 +18331,14 @@ export type RetrieveSourcesMutation = {
|
|
18306
18331
|
__typename?: 'ContentSourceResults';
|
18307
18332
|
results?: Array<{
|
18308
18333
|
__typename?: 'ContentSource';
|
18334
|
+
type?: ContentSourceTypes | null;
|
18309
18335
|
text: string;
|
18310
18336
|
metadata?: string | null;
|
18311
18337
|
relevance: number;
|
18338
|
+
startTime?: any | null;
|
18339
|
+
endTime?: any | null;
|
18340
|
+
pageNumber?: number | null;
|
18341
|
+
frameNumber?: number | null;
|
18312
18342
|
content: {
|
18313
18343
|
__typename?: 'EntityReference';
|
18314
18344
|
id: string;
|
@@ -28,6 +28,10 @@ var AnthropicModels;
|
|
28
28
|
AnthropicModels["Claude_3_5Sonnet_20240620"] = "CLAUDE_3_5_SONNET_20240620";
|
29
29
|
/** Claude 3.5 Sonnet (10-22-2024 version) */
|
30
30
|
AnthropicModels["Claude_3_5Sonnet_20241022"] = "CLAUDE_3_5_SONNET_20241022";
|
31
|
+
/** Claude 3.7 Sonnet (Latest) */
|
32
|
+
AnthropicModels["Claude_3_7Sonnet"] = "CLAUDE_3_7_SONNET";
|
33
|
+
/** Claude 3.7 Sonnet (02-19-2025 version) */
|
34
|
+
AnthropicModels["Claude_3_7Sonnet_20250219"] = "CLAUDE_3_7_SONNET_20250219";
|
31
35
|
/** Claude 3 Haiku (Latest) */
|
32
36
|
AnthropicModels["Claude_3Haiku"] = "CLAUDE_3_HAIKU";
|
33
37
|
/** Claude 3 Haiku (03-07-2024 version) */
|