@yuntijs/arcadia-bff-sdk 1.2.151 → 1.2.153
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/cjs/index.d.ts +21 -0
- package/dist/cjs/sdk.d.ts +36 -0
- package/dist/cjs/sdk.js +20 -0
- package/dist/cjs/taro.d.ts +15 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/sdk.d.ts +36 -0
- package/dist/esm/sdk.js +109 -98
- package/dist/esm/taro.d.ts +15 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -98,6 +98,9 @@ export declare const sdk: {
|
|
|
98
98
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
99
99
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
100
100
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
101
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
102
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
103
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
101
104
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
102
105
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
103
106
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -437,6 +440,9 @@ export declare const sdk: {
|
|
|
437
440
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
438
441
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
439
442
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
443
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
444
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
445
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
440
446
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
441
447
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
442
448
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -972,6 +978,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
972
978
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
973
979
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
974
980
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
981
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
982
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
983
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
975
984
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
976
985
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
977
986
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -1383,6 +1392,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1383
1392
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1384
1393
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1385
1394
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
1395
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1396
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1397
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
1386
1398
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1387
1399
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1388
1400
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -1722,6 +1734,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1722
1734
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1723
1735
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1724
1736
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
1737
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1738
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1739
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
1725
1740
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1726
1741
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1727
1742
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -2133,6 +2148,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2133
2148
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
2134
2149
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
2135
2150
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
2151
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
2152
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
2153
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
2136
2154
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
2137
2155
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
2138
2156
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -2472,6 +2490,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2472
2490
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
2473
2491
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
2474
2492
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
2493
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
2494
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
2495
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
2475
2496
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
2476
2497
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
2477
2498
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -94,6 +94,8 @@ export type Agent = {
|
|
|
94
94
|
docNullReturn?: Maybe<Scalars['String']['output']>;
|
|
95
95
|
/** enableOnlineSearch 是否在这个智能体启用在线搜索 */
|
|
96
96
|
enableOnlineSearch?: Maybe<Scalars['Boolean']['output']>;
|
|
97
|
+
/** 是否支持切换思考模式(仅模型支持时有效) */
|
|
98
|
+
enableThinkingSwitch?: Maybe<Scalars['Boolean']['output']>;
|
|
97
99
|
/** knowledgebases 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
98
100
|
knowledgebases?: Maybe<Array<TypedObjectReference>>;
|
|
99
101
|
/** llm 指当前智能体使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */
|
|
@@ -1666,6 +1668,12 @@ export type KnowledgeBaseFileChunk = {
|
|
|
1666
1668
|
processingPhaseReason: Scalars['String']['output'];
|
|
1667
1669
|
updatedAt?: Maybe<Scalars['Time']['output']>;
|
|
1668
1670
|
};
|
|
1671
|
+
export type KnowledgeBaseFileEmbedResult = {
|
|
1672
|
+
__typename?: 'KnowledgeBaseFileEmbedResult';
|
|
1673
|
+
failedCount?: Maybe<Scalars['Int']['output']>;
|
|
1674
|
+
pendingCount?: Maybe<Scalars['Int']['output']>;
|
|
1675
|
+
succeedCount?: Maybe<Scalars['Int']['output']>;
|
|
1676
|
+
};
|
|
1669
1677
|
export type KnowledgeBaseMutation = {
|
|
1670
1678
|
__typename?: 'KnowledgeBaseMutation';
|
|
1671
1679
|
createKnowledgeBase: KnowledgeBase;
|
|
@@ -1729,6 +1737,7 @@ export type KnowledgeBaseQuery = {
|
|
|
1729
1737
|
__typename?: 'KnowledgeBaseQuery';
|
|
1730
1738
|
getKnowledgeBase: KnowledgeBase;
|
|
1731
1739
|
getKnowledgeBaseFile: KnowledgeBaseFile;
|
|
1740
|
+
getKnowledgeBaseFileEmbedResult: KnowledgeBaseFileEmbedResult;
|
|
1732
1741
|
getKnowledgeBasePrecisionTesting: PrecisionTestingRecord;
|
|
1733
1742
|
listKnowledgeBaseFileChunks: PaginatedResult;
|
|
1734
1743
|
listKnowledgeBaseFiles: PaginatedResult;
|
|
@@ -1744,6 +1753,9 @@ export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
|
|
|
1744
1753
|
export type KnowledgeBaseQueryGetKnowledgeBaseFileArgs = {
|
|
1745
1754
|
id: Scalars['String']['input'];
|
|
1746
1755
|
};
|
|
1756
|
+
export type KnowledgeBaseQueryGetKnowledgeBaseFileEmbedResultArgs = {
|
|
1757
|
+
input: ListKnowledgeBaseFilesInput;
|
|
1758
|
+
};
|
|
1747
1759
|
export type KnowledgeBaseQueryGetKnowledgeBasePrecisionTestingArgs = {
|
|
1748
1760
|
id: Scalars['String']['input'];
|
|
1749
1761
|
};
|
|
@@ -3389,6 +3401,8 @@ export type UpdateAgentMetadataInput = {
|
|
|
3389
3401
|
docNullReturn?: InputMaybe<Scalars['String']['input']>;
|
|
3390
3402
|
/** 是否启用在线搜索 */
|
|
3391
3403
|
enableOnlineSearch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3404
|
+
/** 是否启用思考模式切换按钮(仅模型支持时可用) */
|
|
3405
|
+
enableThinkingSwitch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3392
3406
|
/** Icon,应用头像, 图片访问路径 */
|
|
3393
3407
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
3394
3408
|
/** IsPublic, 是否发布,即是否公开提供服务 */
|
|
@@ -4546,6 +4560,7 @@ export type GetAgentQuery = {
|
|
|
4546
4560
|
maxTokens?: number | null;
|
|
4547
4561
|
conversionWindowSize?: number | null;
|
|
4548
4562
|
onDemand?: boolean | null;
|
|
4563
|
+
enableThinkingSwitch?: boolean | null;
|
|
4549
4564
|
searchMode?: string | null;
|
|
4550
4565
|
scoreThreshold?: number | null;
|
|
4551
4566
|
numDocuments?: number | null;
|
|
@@ -6462,6 +6477,21 @@ export type ListKnowledgeBaseFileChunksQuery = {
|
|
|
6462
6477
|
};
|
|
6463
6478
|
} | null;
|
|
6464
6479
|
};
|
|
6480
|
+
export type GetKnowledgeBaseFileEmbedResultQueryVariables = Exact<{
|
|
6481
|
+
input: ListKnowledgeBaseFilesInput;
|
|
6482
|
+
}>;
|
|
6483
|
+
export type GetKnowledgeBaseFileEmbedResultQuery = {
|
|
6484
|
+
__typename?: 'Query';
|
|
6485
|
+
KnowledgeBase?: {
|
|
6486
|
+
__typename?: 'KnowledgeBaseQuery';
|
|
6487
|
+
getKnowledgeBaseFileEmbedResult: {
|
|
6488
|
+
__typename?: 'KnowledgeBaseFileEmbedResult';
|
|
6489
|
+
succeedCount?: number | null;
|
|
6490
|
+
failedCount?: number | null;
|
|
6491
|
+
pendingCount?: number | null;
|
|
6492
|
+
};
|
|
6493
|
+
} | null;
|
|
6494
|
+
};
|
|
6465
6495
|
export type ShowStructuredFileInfoQueryVariables = Exact<{
|
|
6466
6496
|
input: CreateKnowledgeBaseStructuredFileInput;
|
|
6467
6497
|
}>;
|
|
@@ -10921,6 +10951,7 @@ export declare const CreateKnowledgeBaseFileChunkDocument: import("../node_modul
|
|
|
10921
10951
|
export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10922
10952
|
export declare const DeleteKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10923
10953
|
export declare const ListKnowledgeBaseFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10954
|
+
export declare const GetKnowledgeBaseFileEmbedResultDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10924
10955
|
export declare const ShowStructuredFileInfoDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10925
10956
|
export declare const CreateKnowledgeBaseStructuredFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10926
10957
|
export declare const CreateKnowledgeBaseStructuredFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -11075,6 +11106,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
11075
11106
|
updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
|
|
11076
11107
|
deleteKnowledgeBaseFileChunk(variables: DeleteKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkMutation>;
|
|
11077
11108
|
listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
11109
|
+
getKnowledgeBaseFileEmbedResult(variables: GetKnowledgeBaseFileEmbedResultQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetKnowledgeBaseFileEmbedResultQuery>;
|
|
11078
11110
|
showStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ShowStructuredFileInfoQuery>;
|
|
11079
11111
|
createKnowledgeBaseStructuredFiles(variables: CreateKnowledgeBaseStructuredFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFilesMutation>;
|
|
11080
11112
|
createKnowledgeBaseStructuredFileChunk(variables: CreateKnowledgeBaseStructuredFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFileChunkMutation>;
|
|
@@ -11197,6 +11229,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11197
11229
|
useGetKnowledgeBaseFile(variables: GetKnowledgeBaseFileQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileQuery, ClientError>;
|
|
11198
11230
|
useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
|
|
11199
11231
|
useListKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFileChunksQuery, ClientError>;
|
|
11232
|
+
useGetKnowledgeBaseFileEmbedResult(variables: GetKnowledgeBaseFileEmbedResultQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileEmbedResultQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileEmbedResultQuery, ClientError>;
|
|
11200
11233
|
useShowStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, config?: SWRConfigInterface<ShowStructuredFileInfoQuery, ClientError>): import("./useSWR").SWRResponsePro<ShowStructuredFileInfoQuery, ClientError>;
|
|
11201
11234
|
useListKnowledgeBaseStructuredFileChunks(variables: ListKnowledgeBaseStructuredFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>;
|
|
11202
11235
|
useGetKnowledgeBasePrecisionTesting(variables: GetKnowledgeBasePrecisionTestingQueryVariables, config?: SWRConfigInterface<GetKnowledgeBasePrecisionTestingQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBasePrecisionTestingQuery, ClientError>;
|
|
@@ -11432,6 +11465,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11432
11465
|
listKnowledgeBaseFileChunks(variables: Exact<{
|
|
11433
11466
|
input: ListKnowledgeBaseFileChunksInput;
|
|
11434
11467
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
11468
|
+
getKnowledgeBaseFileEmbedResult(variables: Exact<{
|
|
11469
|
+
input: ListKnowledgeBaseFilesInput;
|
|
11470
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetKnowledgeBaseFileEmbedResultQuery>;
|
|
11435
11471
|
showStructuredFileInfo(variables: Exact<{
|
|
11436
11472
|
input: CreateKnowledgeBaseStructuredFileInput;
|
|
11437
11473
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ShowStructuredFileInfoQuery>;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -101,6 +101,7 @@ __export(sdk_exports, {
|
|
|
101
101
|
GetGptStoreDocument: () => GetGptStoreDocument,
|
|
102
102
|
GetKnowledgeBaseDocument: () => GetKnowledgeBaseDocument,
|
|
103
103
|
GetKnowledgeBaseFileDocument: () => GetKnowledgeBaseFileDocument,
|
|
104
|
+
GetKnowledgeBaseFileEmbedResultDocument: () => GetKnowledgeBaseFileEmbedResultDocument,
|
|
104
105
|
GetKnowledgeBasePrecisionTestingDocument: () => GetKnowledgeBasePrecisionTestingDocument,
|
|
105
106
|
GetLlmDocument: () => GetLlmDocument,
|
|
106
107
|
GetModelDocument: () => GetModelDocument,
|
|
@@ -498,6 +499,7 @@ var GetAgentDocument = import_graphql_tag.default`
|
|
|
498
499
|
namespace
|
|
499
500
|
}
|
|
500
501
|
onDemand
|
|
502
|
+
enableThinkingSwitch
|
|
501
503
|
searchMode
|
|
502
504
|
scoreThreshold
|
|
503
505
|
numDocuments
|
|
@@ -1392,6 +1394,17 @@ var ListKnowledgeBaseFileChunksDocument = import_graphql_tag.default`
|
|
|
1392
1394
|
}
|
|
1393
1395
|
}
|
|
1394
1396
|
`;
|
|
1397
|
+
var GetKnowledgeBaseFileEmbedResultDocument = import_graphql_tag.default`
|
|
1398
|
+
query getKnowledgeBaseFileEmbedResult($input: ListKnowledgeBaseFilesInput!) {
|
|
1399
|
+
KnowledgeBase {
|
|
1400
|
+
getKnowledgeBaseFileEmbedResult(input: $input) {
|
|
1401
|
+
succeedCount
|
|
1402
|
+
failedCount
|
|
1403
|
+
pendingCount
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
`;
|
|
1395
1408
|
var ShowStructuredFileInfoDocument = import_graphql_tag.default`
|
|
1396
1409
|
query showStructuredFileInfo($input: CreateKnowledgeBaseStructuredFileInput!) {
|
|
1397
1410
|
KnowledgeBase {
|
|
@@ -3934,6 +3947,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3934
3947
|
listKnowledgeBaseFileChunks(variables, requestHeaders) {
|
|
3935
3948
|
return withWrapper((wrappedRequestHeaders) => client.request(ListKnowledgeBaseFileChunksDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "listKnowledgeBaseFileChunks", "query", variables);
|
|
3936
3949
|
},
|
|
3950
|
+
getKnowledgeBaseFileEmbedResult(variables, requestHeaders) {
|
|
3951
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetKnowledgeBaseFileEmbedResultDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getKnowledgeBaseFileEmbedResult", "query", variables);
|
|
3952
|
+
},
|
|
3937
3953
|
showStructuredFileInfo(variables, requestHeaders) {
|
|
3938
3954
|
return withWrapper((wrappedRequestHeaders) => client.request(ShowStructuredFileInfoDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "showStructuredFileInfo", "query", variables);
|
|
3939
3955
|
},
|
|
@@ -4298,6 +4314,9 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4298
4314
|
useListKnowledgeBaseFileChunks(variables, config) {
|
|
4299
4315
|
return (0, import_useSWR.default)(genKey("ListKnowledgeBaseFileChunks", variables), () => sdk.listKnowledgeBaseFileChunks(variables), config);
|
|
4300
4316
|
},
|
|
4317
|
+
useGetKnowledgeBaseFileEmbedResult(variables, config) {
|
|
4318
|
+
return (0, import_useSWR.default)(genKey("GetKnowledgeBaseFileEmbedResult", variables), () => sdk.getKnowledgeBaseFileEmbedResult(variables), config);
|
|
4319
|
+
},
|
|
4301
4320
|
useShowStructuredFileInfo(variables, config) {
|
|
4302
4321
|
return (0, import_useSWR.default)(genKey("ShowStructuredFileInfo", variables), () => sdk.showStructuredFileInfo(variables), config);
|
|
4303
4322
|
},
|
|
@@ -4500,6 +4519,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4500
4519
|
GetGptStoreDocument,
|
|
4501
4520
|
GetKnowledgeBaseDocument,
|
|
4502
4521
|
GetKnowledgeBaseFileDocument,
|
|
4522
|
+
GetKnowledgeBaseFileEmbedResultDocument,
|
|
4503
4523
|
GetKnowledgeBasePrecisionTestingDocument,
|
|
4504
4524
|
GetLlmDocument,
|
|
4505
4525
|
GetModelDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -225,6 +225,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
225
225
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
226
226
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
227
227
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
228
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
229
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
230
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
228
231
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
229
232
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
230
233
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -636,6 +639,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
636
639
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
637
640
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
638
641
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
642
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
643
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
644
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
639
645
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
640
646
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
641
647
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -975,6 +981,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
975
981
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
976
982
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
977
983
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
984
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
985
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
986
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
978
987
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
979
988
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
980
989
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -1386,6 +1395,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1386
1395
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1387
1396
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1388
1397
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
1398
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1399
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1400
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
1389
1401
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1390
1402
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1391
1403
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -1725,6 +1737,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1725
1737
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1726
1738
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1727
1739
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
1740
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1741
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1742
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
1728
1743
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1729
1744
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1730
1745
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -98,6 +98,9 @@ export declare const sdk: {
|
|
|
98
98
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
99
99
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
100
100
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
101
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
102
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
103
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
101
104
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
102
105
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
103
106
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -437,6 +440,9 @@ export declare const sdk: {
|
|
|
437
440
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
438
441
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
439
442
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
443
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
444
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
445
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
440
446
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
441
447
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
442
448
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -972,6 +978,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
972
978
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
973
979
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
974
980
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
981
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
982
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
983
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
975
984
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
976
985
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
977
986
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -1383,6 +1392,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1383
1392
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1384
1393
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1385
1394
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
1395
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1396
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1397
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
1386
1398
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1387
1399
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1388
1400
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -1722,6 +1734,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1722
1734
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
1723
1735
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
1724
1736
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
1737
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
1738
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
1739
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
1725
1740
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
1726
1741
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
1727
1742
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
|
@@ -2133,6 +2148,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2133
2148
|
useListKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
2134
2149
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
2135
2150
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBaseFileChunksQuery, import("graphql-request/src/types").ClientError>;
|
|
2151
|
+
useGetKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
2152
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
2153
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery, import("graphql-request/src/types").ClientError>;
|
|
2136
2154
|
useShowStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
2137
2155
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
2138
2156
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ShowStructuredFileInfoQuery, import("graphql-request/src/types").ClientError>;
|
|
@@ -2472,6 +2490,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2472
2490
|
listKnowledgeBaseFileChunks(variables: import("./sdk").Exact<{
|
|
2473
2491
|
input: import("./sdk").ListKnowledgeBaseFileChunksInput;
|
|
2474
2492
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBaseFileChunksQuery>;
|
|
2493
|
+
getKnowledgeBaseFileEmbedResult(variables: import("./sdk").Exact<{
|
|
2494
|
+
input: import("./sdk").ListKnowledgeBaseFilesInput;
|
|
2495
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetKnowledgeBaseFileEmbedResultQuery>;
|
|
2475
2496
|
showStructuredFileInfo(variables: import("./sdk").Exact<{
|
|
2476
2497
|
input: import("./sdk").CreateKnowledgeBaseStructuredFileInput;
|
|
2477
2498
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ShowStructuredFileInfoQuery>;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -94,6 +94,8 @@ export type Agent = {
|
|
|
94
94
|
docNullReturn?: Maybe<Scalars['String']['output']>;
|
|
95
95
|
/** enableOnlineSearch 是否在这个智能体启用在线搜索 */
|
|
96
96
|
enableOnlineSearch?: Maybe<Scalars['Boolean']['output']>;
|
|
97
|
+
/** 是否支持切换思考模式(仅模型支持时有效) */
|
|
98
|
+
enableThinkingSwitch?: Maybe<Scalars['Boolean']['output']>;
|
|
97
99
|
/** knowledgebases 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
98
100
|
knowledgebases?: Maybe<Array<TypedObjectReference>>;
|
|
99
101
|
/** llm 指当前智能体使用的模型服务,即 Kind 为 LLM 的 CR 的名称 */
|
|
@@ -1666,6 +1668,12 @@ export type KnowledgeBaseFileChunk = {
|
|
|
1666
1668
|
processingPhaseReason: Scalars['String']['output'];
|
|
1667
1669
|
updatedAt?: Maybe<Scalars['Time']['output']>;
|
|
1668
1670
|
};
|
|
1671
|
+
export type KnowledgeBaseFileEmbedResult = {
|
|
1672
|
+
__typename?: 'KnowledgeBaseFileEmbedResult';
|
|
1673
|
+
failedCount?: Maybe<Scalars['Int']['output']>;
|
|
1674
|
+
pendingCount?: Maybe<Scalars['Int']['output']>;
|
|
1675
|
+
succeedCount?: Maybe<Scalars['Int']['output']>;
|
|
1676
|
+
};
|
|
1669
1677
|
export type KnowledgeBaseMutation = {
|
|
1670
1678
|
__typename?: 'KnowledgeBaseMutation';
|
|
1671
1679
|
createKnowledgeBase: KnowledgeBase;
|
|
@@ -1729,6 +1737,7 @@ export type KnowledgeBaseQuery = {
|
|
|
1729
1737
|
__typename?: 'KnowledgeBaseQuery';
|
|
1730
1738
|
getKnowledgeBase: KnowledgeBase;
|
|
1731
1739
|
getKnowledgeBaseFile: KnowledgeBaseFile;
|
|
1740
|
+
getKnowledgeBaseFileEmbedResult: KnowledgeBaseFileEmbedResult;
|
|
1732
1741
|
getKnowledgeBasePrecisionTesting: PrecisionTestingRecord;
|
|
1733
1742
|
listKnowledgeBaseFileChunks: PaginatedResult;
|
|
1734
1743
|
listKnowledgeBaseFiles: PaginatedResult;
|
|
@@ -1744,6 +1753,9 @@ export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
|
|
|
1744
1753
|
export type KnowledgeBaseQueryGetKnowledgeBaseFileArgs = {
|
|
1745
1754
|
id: Scalars['String']['input'];
|
|
1746
1755
|
};
|
|
1756
|
+
export type KnowledgeBaseQueryGetKnowledgeBaseFileEmbedResultArgs = {
|
|
1757
|
+
input: ListKnowledgeBaseFilesInput;
|
|
1758
|
+
};
|
|
1747
1759
|
export type KnowledgeBaseQueryGetKnowledgeBasePrecisionTestingArgs = {
|
|
1748
1760
|
id: Scalars['String']['input'];
|
|
1749
1761
|
};
|
|
@@ -3389,6 +3401,8 @@ export type UpdateAgentMetadataInput = {
|
|
|
3389
3401
|
docNullReturn?: InputMaybe<Scalars['String']['input']>;
|
|
3390
3402
|
/** 是否启用在线搜索 */
|
|
3391
3403
|
enableOnlineSearch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3404
|
+
/** 是否启用思考模式切换按钮(仅模型支持时可用) */
|
|
3405
|
+
enableThinkingSwitch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3392
3406
|
/** Icon,应用头像, 图片访问路径 */
|
|
3393
3407
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
3394
3408
|
/** IsPublic, 是否发布,即是否公开提供服务 */
|
|
@@ -4546,6 +4560,7 @@ export type GetAgentQuery = {
|
|
|
4546
4560
|
maxTokens?: number | null;
|
|
4547
4561
|
conversionWindowSize?: number | null;
|
|
4548
4562
|
onDemand?: boolean | null;
|
|
4563
|
+
enableThinkingSwitch?: boolean | null;
|
|
4549
4564
|
searchMode?: string | null;
|
|
4550
4565
|
scoreThreshold?: number | null;
|
|
4551
4566
|
numDocuments?: number | null;
|
|
@@ -6462,6 +6477,21 @@ export type ListKnowledgeBaseFileChunksQuery = {
|
|
|
6462
6477
|
};
|
|
6463
6478
|
} | null;
|
|
6464
6479
|
};
|
|
6480
|
+
export type GetKnowledgeBaseFileEmbedResultQueryVariables = Exact<{
|
|
6481
|
+
input: ListKnowledgeBaseFilesInput;
|
|
6482
|
+
}>;
|
|
6483
|
+
export type GetKnowledgeBaseFileEmbedResultQuery = {
|
|
6484
|
+
__typename?: 'Query';
|
|
6485
|
+
KnowledgeBase?: {
|
|
6486
|
+
__typename?: 'KnowledgeBaseQuery';
|
|
6487
|
+
getKnowledgeBaseFileEmbedResult: {
|
|
6488
|
+
__typename?: 'KnowledgeBaseFileEmbedResult';
|
|
6489
|
+
succeedCount?: number | null;
|
|
6490
|
+
failedCount?: number | null;
|
|
6491
|
+
pendingCount?: number | null;
|
|
6492
|
+
};
|
|
6493
|
+
} | null;
|
|
6494
|
+
};
|
|
6465
6495
|
export type ShowStructuredFileInfoQueryVariables = Exact<{
|
|
6466
6496
|
input: CreateKnowledgeBaseStructuredFileInput;
|
|
6467
6497
|
}>;
|
|
@@ -10921,6 +10951,7 @@ export declare const CreateKnowledgeBaseFileChunkDocument: import("../node_modul
|
|
|
10921
10951
|
export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10922
10952
|
export declare const DeleteKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10923
10953
|
export declare const ListKnowledgeBaseFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10954
|
+
export declare const GetKnowledgeBaseFileEmbedResultDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10924
10955
|
export declare const ShowStructuredFileInfoDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10925
10956
|
export declare const CreateKnowledgeBaseStructuredFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10926
10957
|
export declare const CreateKnowledgeBaseStructuredFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -11075,6 +11106,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
11075
11106
|
updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
|
|
11076
11107
|
deleteKnowledgeBaseFileChunk(variables: DeleteKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkMutation>;
|
|
11077
11108
|
listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
11109
|
+
getKnowledgeBaseFileEmbedResult(variables: GetKnowledgeBaseFileEmbedResultQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetKnowledgeBaseFileEmbedResultQuery>;
|
|
11078
11110
|
showStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ShowStructuredFileInfoQuery>;
|
|
11079
11111
|
createKnowledgeBaseStructuredFiles(variables: CreateKnowledgeBaseStructuredFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFilesMutation>;
|
|
11080
11112
|
createKnowledgeBaseStructuredFileChunk(variables: CreateKnowledgeBaseStructuredFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFileChunkMutation>;
|
|
@@ -11197,6 +11229,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11197
11229
|
useGetKnowledgeBaseFile(variables: GetKnowledgeBaseFileQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileQuery, ClientError>;
|
|
11198
11230
|
useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
|
|
11199
11231
|
useListKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFileChunksQuery, ClientError>;
|
|
11232
|
+
useGetKnowledgeBaseFileEmbedResult(variables: GetKnowledgeBaseFileEmbedResultQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileEmbedResultQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileEmbedResultQuery, ClientError>;
|
|
11200
11233
|
useShowStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, config?: SWRConfigInterface<ShowStructuredFileInfoQuery, ClientError>): import("./useSWR").SWRResponsePro<ShowStructuredFileInfoQuery, ClientError>;
|
|
11201
11234
|
useListKnowledgeBaseStructuredFileChunks(variables: ListKnowledgeBaseStructuredFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>;
|
|
11202
11235
|
useGetKnowledgeBasePrecisionTesting(variables: GetKnowledgeBasePrecisionTestingQueryVariables, config?: SWRConfigInterface<GetKnowledgeBasePrecisionTestingQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBasePrecisionTestingQuery, ClientError>;
|
|
@@ -11432,6 +11465,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11432
11465
|
listKnowledgeBaseFileChunks(variables: Exact<{
|
|
11433
11466
|
input: ListKnowledgeBaseFileChunksInput;
|
|
11434
11467
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
11468
|
+
getKnowledgeBaseFileEmbedResult(variables: Exact<{
|
|
11469
|
+
input: ListKnowledgeBaseFilesInput;
|
|
11470
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetKnowledgeBaseFileEmbedResultQuery>;
|
|
11435
11471
|
showStructuredFileInfo(variables: Exact<{
|
|
11436
11472
|
input: CreateKnowledgeBaseStructuredFileInput;
|
|
11437
11473
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ShowStructuredFileInfoQuery>;
|