@yuntijs/arcadia-bff-sdk 1.1.7 → 1.1.9

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/esm/sdk.d.ts CHANGED
@@ -320,6 +320,12 @@ export type CreateEmbedderInput = {
320
320
  export type CreateKnowledgeBaseInput = {
321
321
  /** 知识库资源注释 */
322
322
  annotations?: InputMaybe<Scalars['Map']['input']>;
323
+ /** batchSize为知识库做批量处理时的批次大小 */
324
+ batchSize?: InputMaybe<Scalars['Int']['input']>;
325
+ /** chunkOverlap为知识库作文档拆分时相邻块的交集 */
326
+ chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
327
+ /** chunkSize为知识库做文档拆分时的块大小 */
328
+ chunkSize?: InputMaybe<Scalars['Int']['input']>;
323
329
  /** 知识库资源描述 */
324
330
  description?: InputMaybe<Scalars['String']['input']>;
325
331
  /** 知识库资源展示名称作为显示,并提供编辑 */
@@ -885,6 +891,11 @@ export type DeleteVersionedDatasetInput = {
885
891
  name?: InputMaybe<Scalars['String']['input']>;
886
892
  namespace: Scalars['String']['input'];
887
893
  };
894
+ export type DuplicateRagInput = {
895
+ displayName?: InputMaybe<Scalars['String']['input']>;
896
+ name: Scalars['String']['input'];
897
+ namespace: Scalars['String']['input'];
898
+ };
888
899
  export type Embedder = {
889
900
  __typename?: 'Embedder';
890
901
  annotations?: Maybe<Scalars['Map']['output']>;
@@ -1034,6 +1045,12 @@ export type KnowledgeBase = {
1034
1045
  __typename?: 'KnowledgeBase';
1035
1046
  /** 添加一些辅助性记录信息 */
1036
1047
  annotations?: Maybe<Scalars['Map']['output']>;
1048
+ /** batchSize为知识库做批量处理时的批次大小 */
1049
+ batchSize?: Maybe<Scalars['Int']['output']>;
1050
+ /** chunkOverlap为知识库作文档拆分时相邻块的交集 */
1051
+ chunkOverlap?: Maybe<Scalars['Int']['output']>;
1052
+ /** chunkSize为知识库做文档拆分时的块大小 */
1053
+ chunkSize?: Maybe<Scalars['Int']['output']>;
1037
1054
  /** 创建时间 */
1038
1055
  creationTimestamp?: Maybe<Scalars['Time']['output']>;
1039
1056
  /**
@@ -1748,6 +1765,7 @@ export type RagMutation = {
1748
1765
  __typename?: 'RAGMutation';
1749
1766
  createRAG: Rag;
1750
1767
  deleteRAG?: Maybe<Scalars['Void']['output']>;
1768
+ duplicateRAG: Rag;
1751
1769
  updateRAG: Rag;
1752
1770
  };
1753
1771
  export type RagMutationCreateRagArgs = {
@@ -1756,6 +1774,9 @@ export type RagMutationCreateRagArgs = {
1756
1774
  export type RagMutationDeleteRagArgs = {
1757
1775
  input: DeleteRagInput;
1758
1776
  };
1777
+ export type RagMutationDuplicateRagArgs = {
1778
+ input: DuplicateRagInput;
1779
+ };
1759
1780
  export type RagMutationUpdateRagArgs = {
1760
1781
  input: UpdateRagInput;
1761
1782
  };
@@ -1856,16 +1877,56 @@ export type SelectorInput = {
1856
1877
  /** Tool 应用和Agent中用到的工具 */
1857
1878
  export type Tool = {
1858
1879
  __typename?: 'Tool';
1859
- /** 名称,目前只有bing可选 */
1880
+ /**
1881
+ * 名称,需要严格大小写一致,可选项为:"Bing Search API","calculator","Weather Query API","Web Scraper"
1882
+ * - "Bing Search API" bing搜索工具
1883
+ * - "calculator" 计算器
1884
+ * - "Weather Query API" 天气查询
1885
+ * - "Web Scraper" 网页爬取
1886
+ */
1860
1887
  name?: Maybe<Scalars['String']['output']>;
1861
- /** params 参数 */
1888
+ /**
1889
+ * params 参数,需要严格大小写一致
1890
+ * "Bing Search API"
1891
+ * - apiKey:密钥,默认提供
1892
+ * - count:返回数目,默认为5
1893
+ * - scraperPage:是否抓取bing搜到的网页的内容,默认为true
1894
+ * "calculator" 没有参数
1895
+ * "Weather Query API"
1896
+ * - apiKey:密钥,默认提供;
1897
+ * "Web Scraper"
1898
+ * - delay:抓取时间间隔,秒,默认3
1899
+ * - async:是否异步抓取,是或者否,默认true
1900
+ * - handleLinks:是否从网页内的链接,继续抓取,是或者否,默认false
1901
+ * - blacklist:黑名单列表,用逗号隔开的字符串,默认是login,signup,signin,register,logout,download,redirect,表示这些页面都不抓取
1902
+ */
1862
1903
  params?: Maybe<Scalars['Map']['output']>;
1863
1904
  };
1864
1905
  /** ToolInput 应用和Agent中用到的工具 */
1865
1906
  export type ToolInput = {
1866
- /** 名称(必填),目前只有bing可选 */
1907
+ /**
1908
+ * 名称,需要严格大小写一致,可选项为:"Bing Search API","calculator","Weather Query API","Web Scraper"
1909
+ * - "Bing Search API" bing搜索工具
1910
+ * - "calculator" 计算器
1911
+ * - "Weather Query API" 天气查询
1912
+ * - "Web Scraper" 网页爬取
1913
+ */
1867
1914
  name: Scalars['String']['input'];
1868
- /** params 参数,可选 */
1915
+ /**
1916
+ * params 参数,可选,需要严格大小写一致
1917
+ * "Bing Search API"
1918
+ * - apiKey:密钥,默认提供
1919
+ * - count:返回数目,默认为5
1920
+ * - scraperPage:是否抓取bing搜到的网页的内容,默认为true
1921
+ * "calculator" 没有参数
1922
+ * "Weather Query API"
1923
+ * - apiKey:密钥,默认提供;
1924
+ * "Web Scraper"
1925
+ * - delay:抓取时间间隔,秒,默认3
1926
+ * - async:是否异步抓取,是或者否,默认true
1927
+ * - handleLinks:是否从网页内的链接,继续抓取,是或者否,默认false
1928
+ * - blacklist:黑名单列表,用逗号隔开的字符串,默认是login,signup,signin,register,logout,download,redirect,表示这些页面都不抓取
1929
+ */
1869
1930
  params?: InputMaybe<Scalars['Map']['input']>;
1870
1931
  };
1871
1932
  export type TypedObjectReference = {
@@ -2027,6 +2088,12 @@ export type UpdateEmbedderInput = {
2027
2088
  export type UpdateKnowledgeBaseInput = {
2028
2089
  /** 知识库资源注释 */
2029
2090
  annotations?: InputMaybe<Scalars['Map']['input']>;
2091
+ /** batchSize为知识库做批量处理时的批次大小 */
2092
+ batchSize?: InputMaybe<Scalars['Int']['input']>;
2093
+ /** chunkOverlap为知识库作文档拆分时相邻块的交集 */
2094
+ chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
2095
+ /** chunkSize为知识库做文档拆分时的块大小 */
2096
+ chunkSize?: InputMaybe<Scalars['Int']['input']>;
2030
2097
  /** 如不更新,则为空 */
2031
2098
  description?: InputMaybe<Scalars['String']['input']>;
2032
2099
  /** 如不更新,则为空 */
@@ -3594,6 +3661,9 @@ export type ListKnowledgeBasesQuery = {
3594
3661
  creator?: string | null;
3595
3662
  displayName?: string | null;
3596
3663
  description?: string | null;
3664
+ chunkSize?: number | null;
3665
+ chunkOverlap?: number | null;
3666
+ batchSize?: number | null;
3597
3667
  status?: string | null;
3598
3668
  reason?: string | null;
3599
3669
  message?: string | null;
@@ -3665,6 +3735,9 @@ export type GetKnowledgeBaseQuery = {
3665
3735
  creator?: string | null;
3666
3736
  displayName?: string | null;
3667
3737
  description?: string | null;
3738
+ chunkSize?: number | null;
3739
+ chunkOverlap?: number | null;
3740
+ batchSize?: number | null;
3668
3741
  status?: string | null;
3669
3742
  reason?: string | null;
3670
3743
  message?: string | null;
@@ -3720,6 +3793,9 @@ export type CreateKnowledgeBaseMutation = {
3720
3793
  creator?: string | null;
3721
3794
  displayName?: string | null;
3722
3795
  description?: string | null;
3796
+ chunkSize?: number | null;
3797
+ chunkOverlap?: number | null;
3798
+ batchSize?: number | null;
3723
3799
  status?: string | null;
3724
3800
  reason?: string | null;
3725
3801
  message?: string | null;
@@ -3775,6 +3851,9 @@ export type UpdateKnowledgeBaseMutation = {
3775
3851
  creator?: string | null;
3776
3852
  displayName?: string | null;
3777
3853
  description?: string | null;
3854
+ chunkSize?: number | null;
3855
+ chunkOverlap?: number | null;
3856
+ batchSize?: number | null;
3778
3857
  status?: string | null;
3779
3858
  reason?: string | null;
3780
3859
  message?: string | null;
package/dist/esm/sdk.js CHANGED
@@ -203,10 +203,10 @@ export var ListEmbeddersDocument = gql(_templateObject31 || (_templateObject31 =
203
203
  export var GetEmbedderDocument = gql(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n }\n }\n}\n "])));
204
204
  export var GetGptDocument = gql(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n query getGPT($name: String!) {\n GPT {\n getGPT(name: $name) {\n name\n displayName\n description\n hot\n creator\n category\n icon\n prologue\n }\n }\n}\n "])));
205
205
  export var ListGpTsDocument = gql(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n query listGPTs($input: ListGPTInput!) {\n GPT {\n listGPT(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on GPT {\n name\n displayName\n description\n hot\n creator\n category\n icon\n prologue\n }\n }\n }\n }\n}\n "])));
206
- export var ListKnowledgeBasesDocument = gql(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "])));
207
- export var GetKnowledgeBaseDocument = gql(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
208
- export var CreateKnowledgeBaseDocument = gql(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
209
- export var UpdateKnowledgeBaseDocument = gql(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
206
+ export var ListKnowledgeBasesDocument = gql(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "])));
207
+ export var GetKnowledgeBaseDocument = gql(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
208
+ export var CreateKnowledgeBaseDocument = gql(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
209
+ export var UpdateKnowledgeBaseDocument = gql(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "])));
210
210
  export var DeleteKnowledgeBaseDocument = gql(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "])));
211
211
  export var ListLlMsDocument = gql(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "])));
212
212
  export var GetLlmDocument = gql(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "])));