@yuntijs/arcadia-bff-sdk 1.2.59 → 1.2.61

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/sdk.d.ts CHANGED
@@ -587,6 +587,21 @@ export type CreateRagInput = {
587
587
  storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
588
588
  suspend?: InputMaybe<Scalars['Boolean']['input']>;
589
589
  };
590
+ export type CreateSftInput = {
591
+ annotations?: InputMaybe<Scalars['Map']['input']>;
592
+ baseModel: TypedObjectReferenceInput;
593
+ datasets: Array<Scalars['String']['input']>;
594
+ description?: InputMaybe<Scalars['String']['input']>;
595
+ displayName?: InputMaybe<Scalars['String']['input']>;
596
+ labels?: InputMaybe<Scalars['Map']['input']>;
597
+ metrics: Array<SftMetricInput>;
598
+ name: Scalars['String']['input'];
599
+ namespace: Scalars['String']['input'];
600
+ params?: InputMaybe<Scalars['String']['input']>;
601
+ serviceAccountName?: InputMaybe<Scalars['String']['input']>;
602
+ storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
603
+ suspend?: InputMaybe<Scalars['Boolean']['input']>;
604
+ };
590
605
  export type CreateTuningDataSetInput = {
591
606
  /** 训练数据集的名字 */
592
607
  name: Scalars['String']['input'];
@@ -1922,6 +1937,7 @@ export type Mutation = {
1922
1937
  ModelService?: Maybe<ModelServiceMutation>;
1923
1938
  Plugin?: Maybe<PluginMutation>;
1924
1939
  RAG?: Maybe<RagMutation>;
1940
+ SFT?: Maybe<SftMutation>;
1925
1941
  TuningDataSet?: Maybe<TuningDataSetMutation>;
1926
1942
  VersionedDataset?: Maybe<VersionedDatasetMutation>;
1927
1943
  Worker?: Maybe<WorkerMutation>;
@@ -1968,7 +1984,7 @@ export type OssInput = {
1968
1984
  bucket: Scalars['String']['input'];
1969
1985
  object?: InputMaybe<Scalars['String']['input']>;
1970
1986
  };
1971
- export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1987
+ export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1972
1988
  export type PaginatedDataProcessItem = {
1973
1989
  __typename?: 'PaginatedDataProcessItem';
1974
1990
  data?: Maybe<Array<DataProcessItem>>;
@@ -2162,6 +2178,7 @@ export type Query = {
2162
2178
  RAG?: Maybe<RagQuery>;
2163
2179
  RayCluster?: Maybe<RayClusterQuery>;
2164
2180
  Reranker?: Maybe<RerankerQuery>;
2181
+ SFT?: Maybe<SftQuery>;
2165
2182
  TuningDataSet?: Maybe<TuningDataSetQuery>;
2166
2183
  VersionedDataset?: Maybe<VersionedDatasetQuery>;
2167
2184
  Worker?: Maybe<WorkerQuery>;
@@ -2427,6 +2444,130 @@ export type ResourcesInput = {
2427
2444
  /** gpu配置 */
2428
2445
  nvidiaGPU?: InputMaybe<Scalars['String']['input']>;
2429
2446
  };
2447
+ export type Sft = {
2448
+ __typename?: 'SFT';
2449
+ ID: Scalars['ID']['output'];
2450
+ /** 添加一些辅助性记录信息 */
2451
+ annotations?: Maybe<Scalars['Map']['output']>;
2452
+ /**
2453
+ * SFT 微调任务所使用的基座模型
2454
+ * 规则:必填
2455
+ */
2456
+ baseModel: TypedObjectReference;
2457
+ /** 微调完成时间, 记录微调任务完成的时间(不包括合并导出,未完成则该字段为空) */
2458
+ completeTimestamp?: Maybe<Scalars['Time']['output']>;
2459
+ /** 创建时间 */
2460
+ creationTimestamp?: Maybe<Scalars['Time']['output']>;
2461
+ /**
2462
+ * 创建者,为当前用户的用户名
2463
+ * 规则: webhook启用后自动添加,默认为空
2464
+ */
2465
+ creator?: Maybe<Scalars['String']['output']>;
2466
+ /**
2467
+ * SFT 微调任务所使用的数据集
2468
+ * 规则:必填,可为复数,内容为版本数据集内容的 id
2469
+ */
2470
+ datasets: Array<Scalars['String']['output']>;
2471
+ /** 描述信息 */
2472
+ description?: Maybe<Scalars['String']['output']>;
2473
+ /** 展示名 */
2474
+ displayName?: Maybe<Scalars['String']['output']>;
2475
+ /** 一些用于标记,选择的的标签 */
2476
+ labels?: Maybe<Scalars['Map']['output']>;
2477
+ /**
2478
+ * SFT 微调任务指定的参数列表
2479
+ * 规则:必填
2480
+ */
2481
+ metrics: Array<SftMetric>;
2482
+ /**
2483
+ * SFT 微调任务名
2484
+ * 规则:必填
2485
+ */
2486
+ name: Scalars['String']['output'];
2487
+ /**
2488
+ * SFT 微调任务所在的 namespace
2489
+ * 规则:必填
2490
+ */
2491
+ namespace: Scalars['String']['output'];
2492
+ /**
2493
+ * SFT 微调任务的附加参数
2494
+ * 规则:非必填,预留
2495
+ */
2496
+ params?: Maybe<Scalars['String']['output']>;
2497
+ /**
2498
+ * SFT 微调任务运行阶段
2499
+ * 规则:阶段分为以下几种:
2500
+ * - "init": 创建 pvc 及初始化
2501
+ * - "download":下载基座模型文件
2502
+ * - "prepare":对数据集(及模型,如有需要)作预处理
2503
+ * - "tuning":微调运行中
2504
+ * - "standby":微调完成,可供测试
2505
+ * - "export":将生成的适配器与基座模型合并(全量微调跳过该阶段)
2506
+ * - "upload":上传合并模型至模型仓库
2507
+ * - "closed":微调任务结束
2508
+ */
2509
+ phase?: Maybe<Scalars['String']['output']>;
2510
+ /** 当前阶段产生的辅助信息 */
2511
+ phaseMessage?: Maybe<Scalars['String']['output']>;
2512
+ /** SFT 微调过程中用到的serviceAccount, 默认是default */
2513
+ serviceAccountName: Scalars['String']['output'];
2514
+ /** SFT 微调状态 */
2515
+ status: Scalars['String']['output'];
2516
+ /** SFT 微调阶段之间需要通过pvc传递数据 */
2517
+ storage: PersistentVolumeClaimSpec;
2518
+ /** SFT 微调过程是否暂停,true 表示已经暂停,false 表示没有暂停 */
2519
+ suspend: Scalars['Boolean']['output'];
2520
+ /** 更新时间 */
2521
+ updateTimestamp?: Maybe<Scalars['Time']['output']>;
2522
+ };
2523
+ export type SftDataset = {
2524
+ __typename?: 'SFTDataset';
2525
+ source?: Maybe<Scalars['String']['output']>;
2526
+ version?: Maybe<Scalars['String']['output']>;
2527
+ };
2528
+ export type SftMetric = {
2529
+ __typename?: 'SFTMetric';
2530
+ metricKind?: Maybe<Scalars['String']['output']>;
2531
+ metricName?: Maybe<Scalars['String']['output']>;
2532
+ metricValue?: Maybe<Scalars['String']['output']>;
2533
+ };
2534
+ export type SftMetricInput = {
2535
+ metricKind?: InputMaybe<Scalars['String']['input']>;
2536
+ metricName?: InputMaybe<Scalars['String']['input']>;
2537
+ metricValue?: InputMaybe<Scalars['String']['input']>;
2538
+ };
2539
+ export type SftMutation = {
2540
+ __typename?: 'SFTMutation';
2541
+ createSFT: Sft;
2542
+ deleteSFT?: Maybe<Scalars['Void']['output']>;
2543
+ exportSFT?: Maybe<Scalars['Void']['output']>;
2544
+ updateSFT: Sft;
2545
+ };
2546
+ export type SftMutationCreateSftArgs = {
2547
+ input: CreateSftInput;
2548
+ };
2549
+ export type SftMutationDeleteSftArgs = {
2550
+ input: DeleteCommonInput;
2551
+ };
2552
+ export type SftMutationExportSftArgs = {
2553
+ name: Scalars['String']['input'];
2554
+ namespace: Scalars['String']['input'];
2555
+ };
2556
+ export type SftMutationUpdateSftArgs = {
2557
+ input: UpdateSftInput;
2558
+ };
2559
+ export type SftQuery = {
2560
+ __typename?: 'SFTQuery';
2561
+ getSFT: Sft;
2562
+ listSFT: PaginatedResult;
2563
+ };
2564
+ export type SftQueryGetSftArgs = {
2565
+ name: Scalars['String']['input'];
2566
+ namespace: Scalars['String']['input'];
2567
+ };
2568
+ export type SftQueryListSftArgs = {
2569
+ input: ListCommonInput;
2570
+ };
2430
2571
  export declare enum SelectCond {
2431
2572
  /** 提供包括该 ns 及官方资源在内的所有资源 */
2432
2573
  All = "ALL",
@@ -2550,8 +2691,10 @@ export type TuningVersionedDatasetContent = {
2550
2691
  __typename?: 'TuningVersionedDatasetContent';
2551
2692
  /** 训练数据集版本内容的ID */
2552
2693
  ID: Scalars['ID']['output'];
2694
+ createdAt: Scalars['Time']['output'];
2553
2695
  /** 训练数据集版本的具体数据 */
2554
2696
  data: ContentTemplate;
2697
+ updatedAt: Scalars['Time']['output'];
2555
2698
  };
2556
2699
  export type TuningVersionedDatasetFiles = {
2557
2700
  __typename?: 'TuningVersionedDatasetFiles';
@@ -2567,6 +2710,7 @@ export type TuningVersionedDatasetFiles = {
2567
2710
  size?: Maybe<Scalars['Int']['output']>;
2568
2711
  /** 文件导入状态 */
2569
2712
  status?: Maybe<Scalars['Int']['output']>;
2713
+ updatedAt: Scalars['Time']['output'];
2570
2714
  };
2571
2715
  export type TypedObjectReference = {
2572
2716
  __typename?: 'TypedObjectReference';
@@ -2870,6 +3014,21 @@ export type UpdateRagInput = {
2870
3014
  storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
2871
3015
  suspend?: InputMaybe<Scalars['Boolean']['input']>;
2872
3016
  };
3017
+ export type UpdateSftInput = {
3018
+ annotations?: InputMaybe<Scalars['Map']['input']>;
3019
+ baseModel?: InputMaybe<TypedObjectReferenceInput>;
3020
+ datasets: Array<Scalars['String']['input']>;
3021
+ description?: InputMaybe<Scalars['String']['input']>;
3022
+ displayName?: InputMaybe<Scalars['String']['input']>;
3023
+ labels?: InputMaybe<Scalars['Map']['input']>;
3024
+ metrics: Array<SftMetricInput>;
3025
+ name: Scalars['String']['input'];
3026
+ namespace: Scalars['String']['input'];
3027
+ params?: InputMaybe<Array<Scalars['String']['input']>>;
3028
+ serviceAccountName?: InputMaybe<Scalars['String']['input']>;
3029
+ storage?: InputMaybe<PersistentVolumeClaimSpecInput>;
3030
+ suspend?: InputMaybe<Scalars['Boolean']['input']>;
3031
+ };
2873
3032
  export type UpdateVersionedDatasetInput = {
2874
3033
  /** 传递方式同label */
2875
3034
  annotations?: InputMaybe<Scalars['Map']['input']>;
@@ -3567,6 +3726,8 @@ export type GetAgentLatestReleaseInEachPlatformQuery = {
3567
3726
  __typename?: 'RayCluster';
3568
3727
  } | {
3569
3728
  __typename?: 'Reranker';
3729
+ } | {
3730
+ __typename?: 'SFT';
3570
3731
  } | {
3571
3732
  __typename?: 'TuningDataSet';
3572
3733
  } | {
@@ -3651,6 +3812,8 @@ export type GetAgentReleaseHistoryQuery = {
3651
3812
  __typename?: 'RayCluster';
3652
3813
  } | {
3653
3814
  __typename?: 'Reranker';
3815
+ } | {
3816
+ __typename?: 'SFT';
3654
3817
  } | {
3655
3818
  __typename?: 'TuningDataSet';
3656
3819
  } | {
@@ -3737,6 +3900,8 @@ export type ListAgentsQuery = {
3737
3900
  __typename?: 'RayCluster';
3738
3901
  } | {
3739
3902
  __typename?: 'Reranker';
3903
+ } | {
3904
+ __typename?: 'SFT';
3740
3905
  } | {
3741
3906
  __typename?: 'TuningDataSet';
3742
3907
  } | {
@@ -3812,6 +3977,8 @@ export type ListAgentPromptQuery = {
3812
3977
  __typename?: 'RayCluster';
3813
3978
  } | {
3814
3979
  __typename?: 'Reranker';
3980
+ } | {
3981
+ __typename?: 'SFT';
3815
3982
  } | {
3816
3983
  __typename?: 'TuningDataSet';
3817
3984
  } | {
@@ -4196,6 +4363,8 @@ export type ListDatasetsQuery = {
4196
4363
  __typename?: 'RayCluster';
4197
4364
  } | {
4198
4365
  __typename?: 'Reranker';
4366
+ } | {
4367
+ __typename?: 'SFT';
4199
4368
  } | {
4200
4369
  __typename?: 'TuningDataSet';
4201
4370
  } | {
@@ -4253,6 +4422,8 @@ export type ListDatasetsQuery = {
4253
4422
  __typename?: 'RayCluster';
4254
4423
  } | {
4255
4424
  __typename?: 'Reranker';
4425
+ } | {
4426
+ __typename?: 'SFT';
4256
4427
  } | {
4257
4428
  __typename?: 'TuningDataSet';
4258
4429
  } | {
@@ -4333,6 +4504,8 @@ export type GetDatasetQuery = {
4333
4504
  __typename?: 'RayCluster';
4334
4505
  } | {
4335
4506
  __typename?: 'Reranker';
4507
+ } | {
4508
+ __typename?: 'SFT';
4336
4509
  } | {
4337
4510
  __typename?: 'TuningDataSet';
4338
4511
  } | {
@@ -4590,6 +4763,8 @@ export type ListDatasourcesQuery = {
4590
4763
  __typename: 'RayCluster';
4591
4764
  } | {
4592
4765
  __typename: 'Reranker';
4766
+ } | {
4767
+ __typename: 'SFT';
4593
4768
  } | {
4594
4769
  __typename: 'TuningDataSet';
4595
4770
  } | {
@@ -4733,6 +4908,8 @@ export type ListEmbeddersQuery = {
4733
4908
  __typename?: 'RayCluster';
4734
4909
  } | {
4735
4910
  __typename?: 'Reranker';
4911
+ } | {
4912
+ __typename?: 'SFT';
4736
4913
  } | {
4737
4914
  __typename?: 'TuningDataSet';
4738
4915
  } | {
@@ -4854,6 +5031,8 @@ export type ListKnowledgeBasesQuery = {
4854
5031
  __typename?: 'RayCluster';
4855
5032
  } | {
4856
5033
  __typename?: 'Reranker';
5034
+ } | {
5035
+ __typename?: 'SFT';
4857
5036
  } | {
4858
5037
  __typename?: 'TuningDataSet';
4859
5038
  } | {
@@ -5087,6 +5266,8 @@ export type ListKnowledgeBaseFilesQuery = {
5087
5266
  __typename?: 'RayCluster';
5088
5267
  } | {
5089
5268
  __typename?: 'Reranker';
5269
+ } | {
5270
+ __typename?: 'SFT';
5090
5271
  } | {
5091
5272
  __typename?: 'TuningDataSet';
5092
5273
  } | {
@@ -5190,6 +5371,8 @@ export type ListKnowledgeBaseFileChunksQuery = {
5190
5371
  __typename?: 'RayCluster';
5191
5372
  } | {
5192
5373
  __typename?: 'Reranker';
5374
+ } | {
5375
+ __typename?: 'SFT';
5193
5376
  } | {
5194
5377
  __typename?: 'TuningDataSet';
5195
5378
  } | {
@@ -5270,6 +5453,8 @@ export type ListLlMsQuery = {
5270
5453
  __typename?: 'RayCluster';
5271
5454
  } | {
5272
5455
  __typename?: 'Reranker';
5456
+ } | {
5457
+ __typename?: 'SFT';
5273
5458
  } | {
5274
5459
  __typename?: 'TuningDataSet';
5275
5460
  } | {
@@ -5418,6 +5603,8 @@ export type ListModelsQuery = {
5418
5603
  __typename?: 'RayCluster';
5419
5604
  } | {
5420
5605
  __typename?: 'Reranker';
5606
+ } | {
5607
+ __typename?: 'SFT';
5421
5608
  } | {
5422
5609
  __typename?: 'TuningDataSet';
5423
5610
  } | {
@@ -5446,6 +5633,8 @@ export type ListModelsQuery = {
5446
5633
  __typename: 'RayCluster';
5447
5634
  } | {
5448
5635
  __typename: 'Reranker';
5636
+ } | {
5637
+ __typename: 'SFT';
5449
5638
  } | {
5450
5639
  __typename: 'TuningDataSet';
5451
5640
  } | {
@@ -5541,6 +5730,8 @@ export type GetModelQuery = {
5541
5730
  __typename?: 'RayCluster';
5542
5731
  } | {
5543
5732
  __typename?: 'Reranker';
5733
+ } | {
5734
+ __typename?: 'SFT';
5544
5735
  } | {
5545
5736
  __typename?: 'TuningDataSet';
5546
5737
  } | {
@@ -5806,6 +5997,8 @@ export type ListModelServicesQuery = {
5806
5997
  __typename: 'RayCluster';
5807
5998
  } | {
5808
5999
  __typename: 'Reranker';
6000
+ } | {
6001
+ __typename: 'SFT';
5809
6002
  } | {
5810
6003
  __typename: 'TuningDataSet';
5811
6004
  } | {
@@ -5911,6 +6104,8 @@ export type ListNodesQuery = {
5911
6104
  __typename: 'RayCluster';
5912
6105
  } | {
5913
6106
  __typename: 'Reranker';
6107
+ } | {
6108
+ __typename: 'SFT';
5914
6109
  } | {
5915
6110
  __typename: 'TuningDataSet';
5916
6111
  } | {
@@ -6001,6 +6196,8 @@ export type ListPluginsQuery = {
6001
6196
  __typename: 'RayCluster';
6002
6197
  } | {
6003
6198
  __typename: 'Reranker';
6199
+ } | {
6200
+ __typename: 'SFT';
6004
6201
  } | {
6005
6202
  __typename: 'TuningDataSet';
6006
6203
  } | {
@@ -6272,6 +6469,8 @@ export type ListRagQuery = {
6272
6469
  __typename?: 'RayCluster';
6273
6470
  } | {
6274
6471
  __typename?: 'Reranker';
6472
+ } | {
6473
+ __typename?: 'SFT';
6275
6474
  } | {
6276
6475
  __typename?: 'TuningDataSet';
6277
6476
  } | {
@@ -6626,6 +6825,8 @@ export type ListRayClustersQuery = {
6626
6825
  pythonVersion?: string | null;
6627
6826
  } | {
6628
6827
  __typename: 'Reranker';
6828
+ } | {
6829
+ __typename: 'SFT';
6629
6830
  } | {
6630
6831
  __typename: 'TuningDataSet';
6631
6832
  } | {
@@ -6706,6 +6907,8 @@ export type ListRerankersQuery = {
6706
6907
  updateTimestamp?: any | null;
6707
6908
  status?: string | null;
6708
6909
  message?: string | null;
6910
+ } | {
6911
+ __typename?: 'SFT';
6709
6912
  } | {
6710
6913
  __typename?: 'TuningDataSet';
6711
6914
  } | {
@@ -6797,6 +7000,8 @@ export type ListTuningDataSetQuery = {
6797
7000
  __typename?: 'RayCluster';
6798
7001
  } | {
6799
7002
  __typename?: 'Reranker';
7003
+ } | {
7004
+ __typename?: 'SFT';
6800
7005
  } | {
6801
7006
  __typename?: 'TuningDataSet';
6802
7007
  ID: string;
@@ -6847,6 +7052,8 @@ export type ListTuningDataSetQuery = {
6847
7052
  __typename?: 'RayCluster';
6848
7053
  } | {
6849
7054
  __typename?: 'Reranker';
7055
+ } | {
7056
+ __typename?: 'SFT';
6850
7057
  } | {
6851
7058
  __typename?: 'TuningDataSet';
6852
7059
  } | {
@@ -6943,6 +7150,8 @@ export type GetTuningDataSetQuery = {
6943
7150
  __typename?: 'RayCluster';
6944
7151
  } | {
6945
7152
  __typename?: 'Reranker';
7153
+ } | {
7154
+ __typename?: 'SFT';
6946
7155
  } | {
6947
7156
  __typename?: 'TuningDataSet';
6948
7157
  } | {
@@ -7026,6 +7235,8 @@ export type GetVersionQuery = {
7026
7235
  __typename?: 'RayCluster';
7027
7236
  } | {
7028
7237
  __typename?: 'Reranker';
7238
+ } | {
7239
+ __typename?: 'SFT';
7029
7240
  } | {
7030
7241
  __typename?: 'TuningDataSet';
7031
7242
  } | {
@@ -7040,6 +7251,7 @@ export type GetVersionQuery = {
7040
7251
  count?: number | null;
7041
7252
  status?: number | null;
7042
7253
  createdAt: any;
7254
+ updatedAt: any;
7043
7255
  msg?: string | null;
7044
7256
  } | {
7045
7257
  __typename?: 'VersionedDataset';
@@ -7101,6 +7313,8 @@ export type GetVersionContentQuery = {
7101
7313
  __typename?: 'RayCluster';
7102
7314
  } | {
7103
7315
  __typename?: 'Reranker';
7316
+ } | {
7317
+ __typename?: 'SFT';
7104
7318
  } | {
7105
7319
  __typename?: 'TuningDataSet';
7106
7320
  } | {
@@ -7108,6 +7322,8 @@ export type GetVersionContentQuery = {
7108
7322
  } | {
7109
7323
  __typename?: 'TuningVersionedDatasetContent';
7110
7324
  ID: string;
7325
+ createdAt: any;
7326
+ updatedAt: any;
7111
7327
  data: {
7112
7328
  __typename?: 'ContentTemplate';
7113
7329
  instruction: string;
@@ -7230,6 +7446,368 @@ export type LoadVersionFilesMutation = {
7230
7446
  loadVersionFiles?: any | null;
7231
7447
  } | null;
7232
7448
  };
7449
+ export type ListSftQueryVariables = Exact<{
7450
+ input: ListCommonInput;
7451
+ }>;
7452
+ export type ListSftQuery = {
7453
+ __typename?: 'Query';
7454
+ SFT?: {
7455
+ __typename?: 'SFTQuery';
7456
+ listSFT: {
7457
+ __typename?: 'PaginatedResult';
7458
+ totalCount: number;
7459
+ hasNextPage: boolean;
7460
+ nodes?: Array<{
7461
+ __typename?: 'AgentMetadata';
7462
+ } | {
7463
+ __typename?: 'AgentPrompt';
7464
+ } | {
7465
+ __typename?: 'AgentRelease';
7466
+ } | {
7467
+ __typename?: 'AgentReleaseHistory';
7468
+ } | {
7469
+ __typename?: 'Dataset';
7470
+ } | {
7471
+ __typename?: 'Datasource';
7472
+ } | {
7473
+ __typename?: 'Embedder';
7474
+ } | {
7475
+ __typename?: 'F';
7476
+ } | {
7477
+ __typename?: 'KnowledgeBase';
7478
+ } | {
7479
+ __typename?: 'KnowledgeBaseFile';
7480
+ } | {
7481
+ __typename?: 'KnowledgeBaseFileChunk';
7482
+ } | {
7483
+ __typename?: 'LLM';
7484
+ } | {
7485
+ __typename?: 'Model';
7486
+ } | {
7487
+ __typename?: 'ModelService';
7488
+ } | {
7489
+ __typename?: 'Node';
7490
+ } | {
7491
+ __typename?: 'Plugin';
7492
+ } | {
7493
+ __typename?: 'RAG';
7494
+ } | {
7495
+ __typename?: 'RayCluster';
7496
+ } | {
7497
+ __typename?: 'Reranker';
7498
+ } | {
7499
+ __typename?: 'SFT';
7500
+ name: string;
7501
+ namespace: string;
7502
+ creator?: string | null;
7503
+ displayName?: string | null;
7504
+ description?: string | null;
7505
+ creationTimestamp?: any | null;
7506
+ updateTimestamp?: any | null;
7507
+ completeTimestamp?: any | null;
7508
+ datasets: Array<string>;
7509
+ serviceAccountName: string;
7510
+ suspend: boolean;
7511
+ status: string;
7512
+ phase?: string | null;
7513
+ phaseMessage?: string | null;
7514
+ storage: {
7515
+ __typename?: 'PersistentVolumeClaimSpec';
7516
+ accessModes: Array<string>;
7517
+ volumeName?: string | null;
7518
+ storageClassName?: string | null;
7519
+ volumeMode?: string | null;
7520
+ selector?: {
7521
+ __typename?: 'Selector';
7522
+ matchLabels?: any | null;
7523
+ matchExpressions?: Array<{
7524
+ __typename?: 'LabelSelectorRequirement';
7525
+ key?: string | null;
7526
+ values?: Array<string | null> | null;
7527
+ operator?: string | null;
7528
+ } | null> | null;
7529
+ } | null;
7530
+ resources?: {
7531
+ __typename?: 'Resource';
7532
+ limits?: any | null;
7533
+ requests?: any | null;
7534
+ } | null;
7535
+ datasource?: {
7536
+ __typename?: 'TypedObjectReference';
7537
+ apiGroup?: string | null;
7538
+ kind: string;
7539
+ name: string;
7540
+ namespace?: string | null;
7541
+ displayName?: string | null;
7542
+ } | null;
7543
+ dataSourceRef?: {
7544
+ __typename?: 'TypedObjectReference';
7545
+ apiGroup?: string | null;
7546
+ kind: string;
7547
+ name: string;
7548
+ namespace?: string | null;
7549
+ displayName?: string | null;
7550
+ } | null;
7551
+ };
7552
+ baseModel: {
7553
+ __typename?: 'TypedObjectReference';
7554
+ kind: string;
7555
+ name: string;
7556
+ namespace?: string | null;
7557
+ displayName?: string | null;
7558
+ };
7559
+ } | {
7560
+ __typename?: 'TuningDataSet';
7561
+ } | {
7562
+ __typename?: 'TuningVersionedDataset';
7563
+ } | {
7564
+ __typename?: 'TuningVersionedDatasetContent';
7565
+ } | {
7566
+ __typename?: 'TuningVersionedDatasetFiles';
7567
+ } | {
7568
+ __typename?: 'VersionedDataset';
7569
+ } | {
7570
+ __typename?: 'Worker';
7571
+ } | {
7572
+ __typename?: 'Workflow';
7573
+ }> | null;
7574
+ };
7575
+ } | null;
7576
+ };
7577
+ export type GetSftQueryVariables = Exact<{
7578
+ name: Scalars['String']['input'];
7579
+ namespace: Scalars['String']['input'];
7580
+ }>;
7581
+ export type GetSftQuery = {
7582
+ __typename?: 'Query';
7583
+ SFT?: {
7584
+ __typename?: 'SFTQuery';
7585
+ getSFT: {
7586
+ __typename?: 'SFT';
7587
+ name: string;
7588
+ namespace: string;
7589
+ creator?: string | null;
7590
+ displayName?: string | null;
7591
+ description?: string | null;
7592
+ creationTimestamp?: any | null;
7593
+ updateTimestamp?: any | null;
7594
+ completeTimestamp?: any | null;
7595
+ datasets: Array<string>;
7596
+ serviceAccountName: string;
7597
+ suspend: boolean;
7598
+ status: string;
7599
+ phase?: string | null;
7600
+ phaseMessage?: string | null;
7601
+ storage: {
7602
+ __typename?: 'PersistentVolumeClaimSpec';
7603
+ accessModes: Array<string>;
7604
+ volumeName?: string | null;
7605
+ storageClassName?: string | null;
7606
+ volumeMode?: string | null;
7607
+ selector?: {
7608
+ __typename?: 'Selector';
7609
+ matchLabels?: any | null;
7610
+ matchExpressions?: Array<{
7611
+ __typename?: 'LabelSelectorRequirement';
7612
+ key?: string | null;
7613
+ values?: Array<string | null> | null;
7614
+ operator?: string | null;
7615
+ } | null> | null;
7616
+ } | null;
7617
+ resources?: {
7618
+ __typename?: 'Resource';
7619
+ limits?: any | null;
7620
+ requests?: any | null;
7621
+ } | null;
7622
+ datasource?: {
7623
+ __typename?: 'TypedObjectReference';
7624
+ apiGroup?: string | null;
7625
+ kind: string;
7626
+ name: string;
7627
+ namespace?: string | null;
7628
+ displayName?: string | null;
7629
+ } | null;
7630
+ dataSourceRef?: {
7631
+ __typename?: 'TypedObjectReference';
7632
+ apiGroup?: string | null;
7633
+ kind: string;
7634
+ name: string;
7635
+ namespace?: string | null;
7636
+ displayName?: string | null;
7637
+ } | null;
7638
+ };
7639
+ baseModel: {
7640
+ __typename?: 'TypedObjectReference';
7641
+ kind: string;
7642
+ name: string;
7643
+ namespace?: string | null;
7644
+ displayName?: string | null;
7645
+ };
7646
+ };
7647
+ } | null;
7648
+ };
7649
+ export type CreateSftMutationVariables = Exact<{
7650
+ input: CreateSftInput;
7651
+ }>;
7652
+ export type CreateSftMutation = {
7653
+ __typename?: 'Mutation';
7654
+ SFT?: {
7655
+ __typename?: 'SFTMutation';
7656
+ createSFT: {
7657
+ __typename?: 'SFT';
7658
+ name: string;
7659
+ namespace: string;
7660
+ creator?: string | null;
7661
+ displayName?: string | null;
7662
+ description?: string | null;
7663
+ creationTimestamp?: any | null;
7664
+ completeTimestamp?: any | null;
7665
+ datasets: Array<string>;
7666
+ serviceAccountName: string;
7667
+ suspend: boolean;
7668
+ status: string;
7669
+ phase?: string | null;
7670
+ phaseMessage?: string | null;
7671
+ storage: {
7672
+ __typename?: 'PersistentVolumeClaimSpec';
7673
+ accessModes: Array<string>;
7674
+ volumeName?: string | null;
7675
+ storageClassName?: string | null;
7676
+ volumeMode?: string | null;
7677
+ selector?: {
7678
+ __typename?: 'Selector';
7679
+ matchLabels?: any | null;
7680
+ matchExpressions?: Array<{
7681
+ __typename?: 'LabelSelectorRequirement';
7682
+ key?: string | null;
7683
+ values?: Array<string | null> | null;
7684
+ operator?: string | null;
7685
+ } | null> | null;
7686
+ } | null;
7687
+ resources?: {
7688
+ __typename?: 'Resource';
7689
+ limits?: any | null;
7690
+ requests?: any | null;
7691
+ } | null;
7692
+ datasource?: {
7693
+ __typename?: 'TypedObjectReference';
7694
+ apiGroup?: string | null;
7695
+ kind: string;
7696
+ name: string;
7697
+ namespace?: string | null;
7698
+ displayName?: string | null;
7699
+ } | null;
7700
+ dataSourceRef?: {
7701
+ __typename?: 'TypedObjectReference';
7702
+ apiGroup?: string | null;
7703
+ kind: string;
7704
+ name: string;
7705
+ namespace?: string | null;
7706
+ displayName?: string | null;
7707
+ } | null;
7708
+ };
7709
+ baseModel: {
7710
+ __typename?: 'TypedObjectReference';
7711
+ kind: string;
7712
+ name: string;
7713
+ namespace?: string | null;
7714
+ displayName?: string | null;
7715
+ };
7716
+ };
7717
+ } | null;
7718
+ };
7719
+ export type UpdateSftMutationVariables = Exact<{
7720
+ input: UpdateSftInput;
7721
+ }>;
7722
+ export type UpdateSftMutation = {
7723
+ __typename?: 'Mutation';
7724
+ SFT?: {
7725
+ __typename?: 'SFTMutation';
7726
+ updateSFT: {
7727
+ __typename?: 'SFT';
7728
+ name: string;
7729
+ namespace: string;
7730
+ creator?: string | null;
7731
+ displayName?: string | null;
7732
+ description?: string | null;
7733
+ creationTimestamp?: any | null;
7734
+ updateTimestamp?: any | null;
7735
+ completeTimestamp?: any | null;
7736
+ datasets: Array<string>;
7737
+ serviceAccountName: string;
7738
+ suspend: boolean;
7739
+ status: string;
7740
+ phase?: string | null;
7741
+ phaseMessage?: string | null;
7742
+ storage: {
7743
+ __typename?: 'PersistentVolumeClaimSpec';
7744
+ accessModes: Array<string>;
7745
+ volumeName?: string | null;
7746
+ storageClassName?: string | null;
7747
+ volumeMode?: string | null;
7748
+ selector?: {
7749
+ __typename?: 'Selector';
7750
+ matchLabels?: any | null;
7751
+ matchExpressions?: Array<{
7752
+ __typename?: 'LabelSelectorRequirement';
7753
+ key?: string | null;
7754
+ values?: Array<string | null> | null;
7755
+ operator?: string | null;
7756
+ } | null> | null;
7757
+ } | null;
7758
+ resources?: {
7759
+ __typename?: 'Resource';
7760
+ limits?: any | null;
7761
+ requests?: any | null;
7762
+ } | null;
7763
+ datasource?: {
7764
+ __typename?: 'TypedObjectReference';
7765
+ apiGroup?: string | null;
7766
+ kind: string;
7767
+ name: string;
7768
+ namespace?: string | null;
7769
+ displayName?: string | null;
7770
+ } | null;
7771
+ dataSourceRef?: {
7772
+ __typename?: 'TypedObjectReference';
7773
+ apiGroup?: string | null;
7774
+ kind: string;
7775
+ name: string;
7776
+ namespace?: string | null;
7777
+ displayName?: string | null;
7778
+ } | null;
7779
+ };
7780
+ baseModel: {
7781
+ __typename?: 'TypedObjectReference';
7782
+ kind: string;
7783
+ name: string;
7784
+ namespace?: string | null;
7785
+ displayName?: string | null;
7786
+ };
7787
+ };
7788
+ } | null;
7789
+ };
7790
+ export type DeleteSftMutationVariables = Exact<{
7791
+ input: DeleteCommonInput;
7792
+ }>;
7793
+ export type DeleteSftMutation = {
7794
+ __typename?: 'Mutation';
7795
+ SFT?: {
7796
+ __typename?: 'SFTMutation';
7797
+ deleteSFT?: any | null;
7798
+ } | null;
7799
+ };
7800
+ export type ExportSftMutationVariables = Exact<{
7801
+ name: Scalars['String']['input'];
7802
+ namespace: Scalars['String']['input'];
7803
+ }>;
7804
+ export type ExportSftMutation = {
7805
+ __typename?: 'Mutation';
7806
+ SFT?: {
7807
+ __typename?: 'SFTMutation';
7808
+ exportSFT?: any | null;
7809
+ } | null;
7810
+ };
7233
7811
  export type CreateVersionedDatasetMutationVariables = Exact<{
7234
7812
  input: CreateVersionedDatasetInput;
7235
7813
  }>;
@@ -7351,6 +7929,8 @@ export type GetVersionedDatasetQuery = {
7351
7929
  __typename?: 'RayCluster';
7352
7930
  } | {
7353
7931
  __typename?: 'Reranker';
7932
+ } | {
7933
+ __typename?: 'SFT';
7354
7934
  } | {
7355
7935
  __typename?: 'TuningDataSet';
7356
7936
  } | {
@@ -7420,6 +8000,8 @@ export type ListVersionedDatasetsQuery = {
7420
8000
  __typename?: 'RayCluster';
7421
8001
  } | {
7422
8002
  __typename?: 'Reranker';
8003
+ } | {
8004
+ __typename?: 'SFT';
7423
8005
  } | {
7424
8006
  __typename?: 'TuningDataSet';
7425
8007
  } | {
@@ -7494,6 +8076,8 @@ export type ListVersionedDatasetsQuery = {
7494
8076
  __typename?: 'RayCluster';
7495
8077
  } | {
7496
8078
  __typename?: 'Reranker';
8079
+ } | {
8080
+ __typename?: 'SFT';
7497
8081
  } | {
7498
8082
  __typename?: 'TuningDataSet';
7499
8083
  } | {
@@ -7567,6 +8151,8 @@ export type ListWorkersQuery = {
7567
8151
  __typename: 'RayCluster';
7568
8152
  } | {
7569
8153
  __typename: 'Reranker';
8154
+ } | {
8155
+ __typename: 'SFT';
7570
8156
  } | {
7571
8157
  __typename: 'TuningDataSet';
7572
8158
  } | {
@@ -7854,6 +8440,8 @@ export type ListWorkflowsQuery = {
7854
8440
  __typename: 'RayCluster';
7855
8441
  } | {
7856
8442
  __typename: 'Reranker';
8443
+ } | {
8444
+ __typename: 'SFT';
7857
8445
  } | {
7858
8446
  __typename: 'TuningDataSet';
7859
8447
  } | {
@@ -8088,6 +8676,12 @@ export declare const UpdateContentDocument: import("../node_modules/.pnpm/graphq
8088
8676
  export declare const DeleteContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8089
8677
  export declare const DeleteVersionAllContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8090
8678
  export declare const LoadVersionFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8679
+ export declare const ListSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8680
+ export declare const GetSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8681
+ export declare const CreateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8682
+ export declare const UpdateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8683
+ export declare const DeleteSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8684
+ export declare const ExportSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8091
8685
  export declare const CreateVersionedDatasetDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8092
8686
  export declare const UpdateVersionedDatasetDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8093
8687
  export declare const DeleteVersionedDatasetsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -8203,6 +8797,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
8203
8797
  deleteContent(variables?: DeleteContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteContentMutation>;
8204
8798
  deleteVersionAllContent(variables: DeleteVersionAllContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionAllContentMutation>;
8205
8799
  loadVersionFiles(variables: LoadVersionFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<LoadVersionFilesMutation>;
8800
+ listSFT(variables: ListSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListSftQuery>;
8801
+ getSFT(variables: GetSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetSftQuery>;
8802
+ createSFT(variables: CreateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateSftMutation>;
8803
+ updateSFT(variables: UpdateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateSftMutation>;
8804
+ deleteSFT(variables: DeleteSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteSftMutation>;
8805
+ exportSFT(variables: ExportSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<ExportSftMutation>;
8206
8806
  createVersionedDataset(variables: CreateVersionedDatasetMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateVersionedDatasetMutation>;
8207
8807
  updateVersionedDataset(variables: UpdateVersionedDatasetMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateVersionedDatasetMutation>;
8208
8808
  deleteVersionedDatasets(variables: DeleteVersionedDatasetsMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionedDatasetsMutation>;
@@ -8270,6 +8870,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
8270
8870
  useGetTuningDataSet(variables: GetTuningDataSetQueryVariables, config?: SWRConfigInterface<GetTuningDataSetQuery, ClientError>): import("./useSWR").SWRResponsePro<GetTuningDataSetQuery, ClientError>;
8271
8871
  useGetVersion(variables: GetVersionQueryVariables, config?: SWRConfigInterface<GetVersionQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionQuery, ClientError>;
8272
8872
  useGetVersionContent(variables: GetVersionContentQueryVariables, config?: SWRConfigInterface<GetVersionContentQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionContentQuery, ClientError>;
8873
+ useListSft(variables: ListSftQueryVariables, config?: SWRConfigInterface<ListSftQuery, ClientError>): import("./useSWR").SWRResponsePro<ListSftQuery, ClientError>;
8874
+ useGetSft(variables: GetSftQueryVariables, config?: SWRConfigInterface<GetSftQuery, ClientError>): import("./useSWR").SWRResponsePro<GetSftQuery, ClientError>;
8273
8875
  useGetVersionedDataset(variables: GetVersionedDatasetQueryVariables, config?: SWRConfigInterface<GetVersionedDatasetQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionedDatasetQuery, ClientError>;
8274
8876
  useListVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, config?: SWRConfigInterface<ListVersionedDatasetsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListVersionedDatasetsQuery, ClientError>;
8275
8877
  useListWorkers(variables: ListWorkersQueryVariables, config?: SWRConfigInterface<ListWorkersQuery, ClientError>): import("./useSWR").SWRResponsePro<ListWorkersQuery, ClientError>;
@@ -8599,6 +9201,26 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
8599
9201
  id: string;
8600
9202
  files?: InputMaybe<string | string[]> | undefined;
8601
9203
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<LoadVersionFilesMutation>;
9204
+ listSFT(variables: Exact<{
9205
+ input: ListCommonInput;
9206
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListSftQuery>;
9207
+ getSFT(variables: Exact<{
9208
+ name: string;
9209
+ namespace: string;
9210
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetSftQuery>;
9211
+ createSFT(variables: Exact<{
9212
+ input: CreateSftInput;
9213
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateSftMutation>;
9214
+ updateSFT(variables: Exact<{
9215
+ input: UpdateSftInput;
9216
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateSftMutation>;
9217
+ deleteSFT(variables: Exact<{
9218
+ input: DeleteCommonInput;
9219
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteSftMutation>;
9220
+ exportSFT(variables: Exact<{
9221
+ name: string;
9222
+ namespace: string;
9223
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ExportSftMutation>;
8602
9224
  createVersionedDataset(variables: Exact<{
8603
9225
  input: CreateVersionedDatasetInput;
8604
9226
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateVersionedDatasetMutation>;