graphlit-client 1.0.20241207001 → 1.0.20241207002
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
@@ -50,8 +50,8 @@ declare class Graphlit {
|
|
50
50
|
deleteAllContents(): Promise<Types.DeleteAllContentsMutation>;
|
51
51
|
summarizeText(summarization: Types.SummarizationStrategyInput, text: string, textType?: Types.TextTypes, correlationId?: string): Promise<Types.SummarizeTextMutation>;
|
52
52
|
summarizeContents(summarizations: [Types.SummarizationStrategyInput], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.SummarizeContentsMutation>;
|
53
|
-
extractText(prompt: string, text: string,
|
54
|
-
extractContents(prompt: string,
|
53
|
+
extractText(prompt: string, text: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, textType?: Types.TextTypes, correlationId?: string): Promise<Types.ExtractTextMutation>;
|
54
|
+
extractContents(prompt: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
|
55
55
|
publishContents(summaryPrompt: string, summarySpecification: Types.EntityReferenceInput, connector: Types.ContentPublishingConnectorInput, publishPrompt?: string, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishContentsMutation>;
|
56
56
|
publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishTextMutation>;
|
57
57
|
getContent(id: string): Promise<Types.GetContentQuery>;
|
package/dist/client.js
CHANGED
@@ -308,12 +308,12 @@ class Graphlit {
|
|
308
308
|
return this.mutateAndCheckError(Documents.SummarizeContents, { summarizations: summarizations, filter: filter, correlationId: correlationId });
|
309
309
|
});
|
310
310
|
}
|
311
|
-
extractText(prompt, text,
|
311
|
+
extractText(prompt, text, tools, specification, textType, correlationId) {
|
312
312
|
return __awaiter(this, void 0, void 0, function* () {
|
313
313
|
return this.mutateAndCheckError(Documents.ExtractText, { prompt: prompt, text: text, textType: textType, specification: specification, tools: tools, correlationId: correlationId });
|
314
314
|
});
|
315
315
|
}
|
316
|
-
extractContents(prompt,
|
316
|
+
extractContents(prompt, tools, specification, filter, correlationId) {
|
317
317
|
return __awaiter(this, void 0, void 0, function* () {
|
318
318
|
return this.mutateAndCheckError(Documents.ExtractContents, { prompt: prompt, filter: filter, specification: specification, tools: tools, correlationId: correlationId });
|
319
319
|
});
|
@@ -792,7 +792,7 @@ exports.DescribeImage = (0, graphql_tag_1.default) `
|
|
792
792
|
}
|
793
793
|
`;
|
794
794
|
exports.ExtractContents = (0, graphql_tag_1.default) `
|
795
|
-
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput
|
795
|
+
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
|
796
796
|
extractContents(
|
797
797
|
prompt: $prompt
|
798
798
|
filter: $filter
|
@@ -816,7 +816,7 @@ exports.ExtractContents = (0, graphql_tag_1.default) `
|
|
816
816
|
}
|
817
817
|
`;
|
818
818
|
exports.ExtractText = (0, graphql_tag_1.default) `
|
819
|
-
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput
|
819
|
+
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
|
820
820
|
extractText(
|
821
821
|
prompt: $prompt
|
822
822
|
text: $text
|
@@ -3013,8 +3013,8 @@ export type ExtractCompletion = {
|
|
3013
3013
|
name: Scalars['String']['output'];
|
3014
3014
|
/** The page index of the text document, when extracting from document content. */
|
3015
3015
|
pageNumber?: Maybe<Scalars['Int']['output']>;
|
3016
|
-
/** The LLM specification used for data extraction. */
|
3017
|
-
specification
|
3016
|
+
/** The LLM specification used for data extraction, optional. */
|
3017
|
+
specification?: Maybe<EntityReference>;
|
3018
3018
|
/** The start time of the audio transcript segment, when extracting from audio content. */
|
3019
3019
|
startTime?: Maybe<Scalars['TimeSpan']['output']>;
|
3020
3020
|
/** The extracted JSON value from the called tool. */
|
@@ -7393,13 +7393,13 @@ export type MutationExtractContentsArgs = {
|
|
7393
7393
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
7394
7394
|
filter?: InputMaybe<ContentFilter>;
|
7395
7395
|
prompt: Scalars['String']['input'];
|
7396
|
-
specification
|
7396
|
+
specification?: InputMaybe<EntityReferenceInput>;
|
7397
7397
|
tools: Array<ToolDefinitionInput>;
|
7398
7398
|
};
|
7399
7399
|
export type MutationExtractTextArgs = {
|
7400
7400
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
7401
7401
|
prompt: Scalars['String']['input'];
|
7402
|
-
specification
|
7402
|
+
specification?: InputMaybe<EntityReferenceInput>;
|
7403
7403
|
text: Scalars['String']['input'];
|
7404
7404
|
textType?: InputMaybe<TextTypes>;
|
7405
7405
|
tools: Array<ToolDefinitionInput>;
|
@@ -12822,7 +12822,7 @@ export type DescribeImageMutation = {
|
|
12822
12822
|
export type ExtractContentsMutationVariables = Exact<{
|
12823
12823
|
prompt: Scalars['String']['input'];
|
12824
12824
|
filter?: InputMaybe<ContentFilter>;
|
12825
|
-
specification
|
12825
|
+
specification?: InputMaybe<EntityReferenceInput>;
|
12826
12826
|
tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
|
12827
12827
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
12828
12828
|
}>;
|
@@ -12836,10 +12836,10 @@ export type ExtractContentsMutation = {
|
|
12836
12836
|
endTime?: any | null;
|
12837
12837
|
pageNumber?: number | null;
|
12838
12838
|
error?: string | null;
|
12839
|
-
specification
|
12839
|
+
specification?: {
|
12840
12840
|
__typename?: 'EntityReference';
|
12841
12841
|
id: string;
|
12842
|
-
};
|
12842
|
+
} | null;
|
12843
12843
|
content?: {
|
12844
12844
|
__typename?: 'EntityReference';
|
12845
12845
|
id: string;
|
@@ -12850,7 +12850,7 @@ export type ExtractTextMutationVariables = Exact<{
|
|
12850
12850
|
prompt: Scalars['String']['input'];
|
12851
12851
|
text: Scalars['String']['input'];
|
12852
12852
|
textType?: InputMaybe<TextTypes>;
|
12853
|
-
specification
|
12853
|
+
specification?: InputMaybe<EntityReferenceInput>;
|
12854
12854
|
tools: Array<ToolDefinitionInput> | ToolDefinitionInput;
|
12855
12855
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
12856
12856
|
}>;
|
@@ -12864,10 +12864,10 @@ export type ExtractTextMutation = {
|
|
12864
12864
|
endTime?: any | null;
|
12865
12865
|
pageNumber?: number | null;
|
12866
12866
|
error?: string | null;
|
12867
|
-
specification
|
12867
|
+
specification?: {
|
12868
12868
|
__typename?: 'EntityReference';
|
12869
12869
|
id: string;
|
12870
|
-
};
|
12870
|
+
} | null;
|
12871
12871
|
content?: {
|
12872
12872
|
__typename?: 'EntityReference';
|
12873
12873
|
id: string;
|