@yuntijs/arcadia-bff-sdk 1.2.111 → 1.2.112

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.
@@ -48,6 +48,13 @@ export declare const sdk: {
48
48
  namespace: string;
49
49
  redirectURL: string;
50
50
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError>;
51
+ useListAgentInvocationLogs(variables: import("./sdk").Exact<{
52
+ name: string;
53
+ namespace: string;
54
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
55
+ page?: import("./sdk").InputMaybe<number> | undefined;
56
+ size?: import("./sdk").InputMaybe<number> | undefined;
57
+ }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError>;
51
58
  useAllDataProcessListByPage(variables: import("./sdk").Exact<{
52
59
  input: import("./sdk").AllDataProcessListByPageInput;
53
60
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError>;
@@ -340,6 +347,13 @@ export declare const sdk: {
340
347
  namespace: string;
341
348
  redirectURL: string;
342
349
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWeiXinAuthorizerUrlQuery>;
350
+ listAgentInvocationLogs(variables: import("./sdk").Exact<{
351
+ name: string;
352
+ namespace: string;
353
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
354
+ page?: import("./sdk").InputMaybe<number> | undefined;
355
+ size?: import("./sdk").InputMaybe<number> | undefined;
356
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListAgentInvocationLogsQuery>;
343
357
  allDataProcessListByPage(variables: import("./sdk").Exact<{
344
358
  input: import("./sdk").AllDataProcessListByPageInput;
345
359
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AllDataProcessListByPageQuery>;
@@ -841,6 +855,13 @@ export declare const initSdk: (options?: SdkOptions) => {
841
855
  namespace: string;
842
856
  redirectURL: string;
843
857
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWeiXinAuthorizerUrlQuery>;
858
+ listAgentInvocationLogs(variables: import("./sdk").Exact<{
859
+ name: string;
860
+ namespace: string;
861
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
862
+ page?: import("./sdk").InputMaybe<number> | undefined;
863
+ size?: import("./sdk").InputMaybe<number> | undefined;
864
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListAgentInvocationLogsQuery>;
844
865
  allDataProcessListByPage(variables: import("./sdk").Exact<{
845
866
  input: import("./sdk").AllDataProcessListByPageInput;
846
867
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AllDataProcessListByPageQuery>;
@@ -1267,6 +1288,13 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
1267
1288
  namespace: string;
1268
1289
  redirectURL: string;
1269
1290
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError>;
1291
+ useListAgentInvocationLogs(variables: import("./sdk").Exact<{
1292
+ name: string;
1293
+ namespace: string;
1294
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
1295
+ page?: import("./sdk").InputMaybe<number> | undefined;
1296
+ size?: import("./sdk").InputMaybe<number> | undefined;
1297
+ }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError>;
1270
1298
  useAllDataProcessListByPage(variables: import("./sdk").Exact<{
1271
1299
  input: import("./sdk").AllDataProcessListByPageInput;
1272
1300
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError>;
@@ -1559,6 +1587,13 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
1559
1587
  namespace: string;
1560
1588
  redirectURL: string;
1561
1589
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWeiXinAuthorizerUrlQuery>;
1590
+ listAgentInvocationLogs(variables: import("./sdk").Exact<{
1591
+ name: string;
1592
+ namespace: string;
1593
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
1594
+ page?: import("./sdk").InputMaybe<number> | undefined;
1595
+ size?: import("./sdk").InputMaybe<number> | undefined;
1596
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListAgentInvocationLogsQuery>;
1562
1597
  allDataProcessListByPage(variables: import("./sdk").Exact<{
1563
1598
  input: import("./sdk").AllDataProcessListByPageInput;
1564
1599
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AllDataProcessListByPageQuery>;
@@ -1985,6 +2020,13 @@ export declare const useSdk: (options?: SdkOptions) => {
1985
2020
  namespace: string;
1986
2021
  redirectURL: string;
1987
2022
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWeiXinAuthorizerUrlQuery, import("graphql-request/src/types").ClientError>;
2023
+ useListAgentInvocationLogs(variables: import("./sdk").Exact<{
2024
+ name: string;
2025
+ namespace: string;
2026
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
2027
+ page?: import("./sdk").InputMaybe<number> | undefined;
2028
+ size?: import("./sdk").InputMaybe<number> | undefined;
2029
+ }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListAgentInvocationLogsQuery, import("graphql-request/src/types").ClientError>;
1988
2030
  useAllDataProcessListByPage(variables: import("./sdk").Exact<{
1989
2031
  input: import("./sdk").AllDataProcessListByPageInput;
1990
2032
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").AllDataProcessListByPageQuery, import("graphql-request/src/types").ClientError>;
@@ -2277,6 +2319,13 @@ export declare const useSdk: (options?: SdkOptions) => {
2277
2319
  namespace: string;
2278
2320
  redirectURL: string;
2279
2321
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWeiXinAuthorizerUrlQuery>;
2322
+ listAgentInvocationLogs(variables: import("./sdk").Exact<{
2323
+ name: string;
2324
+ namespace: string;
2325
+ platform?: import("./sdk").InputMaybe<import("./sdk").InputMaybe<string> | import("./sdk").InputMaybe<string>[]> | undefined;
2326
+ page?: import("./sdk").InputMaybe<number> | undefined;
2327
+ size?: import("./sdk").InputMaybe<number> | undefined;
2328
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListAgentInvocationLogsQuery>;
2280
2329
  allDataProcessListByPage(variables: import("./sdk").Exact<{
2281
2330
  input: import("./sdk").AllDataProcessListByPageInput;
2282
2331
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AllDataProcessListByPageQuery>;
package/dist/cjs/sdk.d.ts CHANGED
@@ -148,6 +148,29 @@ export type Agent = {
148
148
  /** workflows 使用的工作流列表 */
149
149
  workflows?: Maybe<Array<Maybe<Workflow>>>;
150
150
  };
151
+ /**
152
+ * Agent
153
+ * 调用日志
154
+ */
155
+ export type AgentInvocationLog = {
156
+ __typename?: 'AgentInvocationLog';
157
+ /** 会话 id */
158
+ conversationId?: Maybe<Scalars['String']['output']>;
159
+ /** 创建时间 */
160
+ createdAt?: Maybe<Scalars['Time']['output']>;
161
+ /** 请求方式 */
162
+ func: Scalars['String']['output'];
163
+ /** 消息 id(Message ID) */
164
+ id: Scalars['String']['output'];
165
+ /** 回复延迟 */
166
+ latency: Scalars['Int64']['output'];
167
+ /** 消息所在平台 */
168
+ platform?: Maybe<Scalars['String']['output']>;
169
+ /** 请求内容 */
170
+ request: Scalars['String']['output'];
171
+ /** 回复内容 */
172
+ response: Scalars['String']['output'];
173
+ };
151
174
  /**
152
175
  * Agent
153
176
  * 应用 Metadata
@@ -334,6 +357,7 @@ export type AgentQuery = {
334
357
  getAgentReleaseHistory: PaginatedResult;
335
358
  getGPTStore: GptStore;
336
359
  getWeiXinAuthorizerURL: Scalars['String']['output'];
360
+ listAgentInvocationLogs: PaginatedResult;
337
361
  listAgentMetadata: PaginatedResult;
338
362
  listAgentPrompt: PaginatedResult;
339
363
  /** migrated from GPT */
@@ -358,6 +382,13 @@ export type AgentQueryGetWeiXinAuthorizerUrlArgs = {
358
382
  namespace: Scalars['String']['input'];
359
383
  redirectURL: Scalars['String']['input'];
360
384
  };
385
+ export type AgentQueryListAgentInvocationLogsArgs = {
386
+ name: Scalars['String']['input'];
387
+ namespace: Scalars['String']['input'];
388
+ page?: InputMaybe<Scalars['Int']['input']>;
389
+ platform?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
390
+ size?: InputMaybe<Scalars['Int']['input']>;
391
+ };
361
392
  export type AgentQueryListAgentMetadataArgs = {
362
393
  input: ListCommonInput;
363
394
  };
@@ -2337,7 +2368,7 @@ export type OssInput = {
2337
2368
  bucket: Scalars['String']['input'];
2338
2369
  object?: InputMaybe<Scalars['String']['input']>;
2339
2370
  };
2340
- export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | KnowledgeBaseStructuredFileChunk | Llm | Model | ModelService | Node | Plugin | PrecisionTestingRecord | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
2371
+ export type PageNode = AgentInvocationLog | AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | KnowledgeBaseStructuredFileChunk | Llm | Model | ModelService | Node | Plugin | PrecisionTestingRecord | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
2341
2372
  export type PaginatedDataProcessItem = {
2342
2373
  __typename?: 'PaginatedDataProcessItem';
2343
2374
  data?: Maybe<Array<DataProcessItem>>;
@@ -4363,6 +4394,8 @@ export type GetAgentLatestReleaseInEachPlatformQuery = {
4363
4394
  hasNextPage: boolean;
4364
4395
  totalCount: number;
4365
4396
  nodes?: Array<{
4397
+ __typename?: 'AgentInvocationLog';
4398
+ } | {
4366
4399
  __typename?: 'AgentMetadata';
4367
4400
  } | {
4368
4401
  __typename?: 'AgentPrompt';
@@ -4448,6 +4481,8 @@ export type GetAgentReleaseHistoryQuery = {
4448
4481
  hasNextPage: boolean;
4449
4482
  totalCount: number;
4450
4483
  nodes?: Array<{
4484
+ __typename?: 'AgentInvocationLog';
4485
+ } | {
4451
4486
  __typename?: 'AgentMetadata';
4452
4487
  } | {
4453
4488
  __typename?: 'AgentPrompt';
@@ -4537,6 +4572,8 @@ export type ListAgentsQuery = {
4537
4572
  totalCount: number;
4538
4573
  hasNextPage: boolean;
4539
4574
  nodes?: Array<{
4575
+ __typename?: 'AgentInvocationLog';
4576
+ } | {
4540
4577
  __typename?: 'AgentMetadata';
4541
4578
  name: string;
4542
4579
  namespace: string;
@@ -4639,6 +4676,8 @@ export type ListAgentPromptQuery = {
4639
4676
  page?: number | null;
4640
4677
  pageSize?: number | null;
4641
4678
  nodes?: Array<{
4679
+ __typename?: 'AgentInvocationLog';
4680
+ } | {
4642
4681
  __typename?: 'AgentMetadata';
4643
4682
  } | {
4644
4683
  __typename?: 'AgentPrompt';
@@ -4746,6 +4785,94 @@ export type GetWeiXinAuthorizerUrlQuery = {
4746
4785
  getWeiXinAuthorizerURL: string;
4747
4786
  } | null;
4748
4787
  };
4788
+ export type ListAgentInvocationLogsQueryVariables = Exact<{
4789
+ name: Scalars['String']['input'];
4790
+ namespace: Scalars['String']['input'];
4791
+ platform?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
4792
+ page?: InputMaybe<Scalars['Int']['input']>;
4793
+ size?: InputMaybe<Scalars['Int']['input']>;
4794
+ }>;
4795
+ export type ListAgentInvocationLogsQuery = {
4796
+ __typename?: 'Query';
4797
+ Agent?: {
4798
+ __typename?: 'AgentQuery';
4799
+ listAgentInvocationLogs: {
4800
+ __typename?: 'PaginatedResult';
4801
+ totalCount: number;
4802
+ page?: number | null;
4803
+ pageSize?: number | null;
4804
+ nodes?: Array<{
4805
+ __typename?: 'AgentInvocationLog';
4806
+ id: string;
4807
+ conversationId?: string | null;
4808
+ platform?: string | null;
4809
+ request: string;
4810
+ func: string;
4811
+ response: string;
4812
+ latency: any;
4813
+ createdAt?: any | null;
4814
+ } | {
4815
+ __typename?: 'AgentMetadata';
4816
+ } | {
4817
+ __typename?: 'AgentPrompt';
4818
+ } | {
4819
+ __typename?: 'AgentRelease';
4820
+ } | {
4821
+ __typename?: 'AgentReleaseHistory';
4822
+ } | {
4823
+ __typename?: 'Dataset';
4824
+ } | {
4825
+ __typename?: 'Datasource';
4826
+ } | {
4827
+ __typename?: 'Embedder';
4828
+ } | {
4829
+ __typename?: 'F';
4830
+ } | {
4831
+ __typename?: 'KnowledgeBase';
4832
+ } | {
4833
+ __typename?: 'KnowledgeBaseFile';
4834
+ } | {
4835
+ __typename?: 'KnowledgeBaseFileChunk';
4836
+ } | {
4837
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4838
+ } | {
4839
+ __typename?: 'LLM';
4840
+ } | {
4841
+ __typename?: 'Model';
4842
+ } | {
4843
+ __typename?: 'ModelService';
4844
+ } | {
4845
+ __typename?: 'Node';
4846
+ } | {
4847
+ __typename?: 'Plugin';
4848
+ } | {
4849
+ __typename?: 'PrecisionTestingRecord';
4850
+ } | {
4851
+ __typename?: 'RAG';
4852
+ } | {
4853
+ __typename?: 'RayCluster';
4854
+ } | {
4855
+ __typename?: 'Reranker';
4856
+ } | {
4857
+ __typename?: 'SFT';
4858
+ } | {
4859
+ __typename?: 'TuningDataSet';
4860
+ } | {
4861
+ __typename?: 'TuningVersionedDataset';
4862
+ } | {
4863
+ __typename?: 'TuningVersionedDatasetContent';
4864
+ } | {
4865
+ __typename?: 'TuningVersionedDatasetFiles';
4866
+ } | {
4867
+ __typename?: 'VersionedDataset';
4868
+ } | {
4869
+ __typename?: 'Worker';
4870
+ } | {
4871
+ __typename?: 'Workflow';
4872
+ }> | null;
4873
+ };
4874
+ } | null;
4875
+ };
4749
4876
  export type AllDataProcessListByPageQueryVariables = Exact<{
4750
4877
  input: AllDataProcessListByPageInput;
4751
4878
  }>;
@@ -5024,6 +5151,8 @@ export type ListDatasetsQuery = {
5024
5151
  totalCount: number;
5025
5152
  hasNextPage: boolean;
5026
5153
  nodes?: Array<{
5154
+ __typename?: 'AgentInvocationLog';
5155
+ } | {
5027
5156
  __typename?: 'AgentMetadata';
5028
5157
  } | {
5029
5158
  __typename?: 'AgentPrompt';
@@ -5046,6 +5175,8 @@ export type ListDatasetsQuery = {
5046
5175
  totalCount: number;
5047
5176
  hasNextPage: boolean;
5048
5177
  nodes?: Array<{
5178
+ __typename?: 'AgentInvocationLog';
5179
+ } | {
5049
5180
  __typename?: 'AgentMetadata';
5050
5181
  } | {
5051
5182
  __typename?: 'AgentPrompt';
@@ -5195,6 +5326,8 @@ export type GetDatasetQuery = {
5195
5326
  totalCount: number;
5196
5327
  hasNextPage: boolean;
5197
5328
  nodes?: Array<{
5329
+ __typename?: 'AgentInvocationLog';
5330
+ } | {
5198
5331
  __typename?: 'AgentMetadata';
5199
5332
  } | {
5200
5333
  __typename?: 'AgentPrompt';
@@ -5424,6 +5557,8 @@ export type ListDatasourcesQuery = {
5424
5557
  totalCount: number;
5425
5558
  hasNextPage: boolean;
5426
5559
  nodes?: Array<{
5560
+ __typename: 'AgentInvocationLog';
5561
+ } | {
5427
5562
  __typename: 'AgentMetadata';
5428
5563
  } | {
5429
5564
  __typename: 'AgentPrompt';
@@ -5594,6 +5729,8 @@ export type ListEmbeddersQuery = {
5594
5729
  totalCount: number;
5595
5730
  hasNextPage: boolean;
5596
5731
  nodes?: Array<{
5732
+ __typename?: 'AgentInvocationLog';
5733
+ } | {
5597
5734
  __typename?: 'AgentMetadata';
5598
5735
  } | {
5599
5736
  __typename?: 'AgentPrompt';
@@ -5704,6 +5841,8 @@ export type ListKnowledgeBasesQuery = {
5704
5841
  totalCount: number;
5705
5842
  hasNextPage: boolean;
5706
5843
  nodes?: Array<{
5844
+ __typename?: 'AgentInvocationLog';
5845
+ } | {
5707
5846
  __typename?: 'AgentMetadata';
5708
5847
  } | {
5709
5848
  __typename?: 'AgentPrompt';
@@ -6006,6 +6145,8 @@ export type ListKnowledgeBaseFilesQuery = {
6006
6145
  totalCount: number;
6007
6146
  hasNextPage: boolean;
6008
6147
  nodes?: Array<{
6148
+ __typename?: 'AgentInvocationLog';
6149
+ } | {
6009
6150
  __typename?: 'AgentMetadata';
6010
6151
  } | {
6011
6152
  __typename?: 'AgentPrompt';
@@ -6123,6 +6264,8 @@ export type ListKnowledgeBaseFileChunksQuery = {
6123
6264
  totalCount: number;
6124
6265
  hasNextPage: boolean;
6125
6266
  nodes?: Array<{
6267
+ __typename?: 'AgentInvocationLog';
6268
+ } | {
6126
6269
  __typename?: 'AgentMetadata';
6127
6270
  } | {
6128
6271
  __typename?: 'AgentPrompt';
@@ -6264,6 +6407,8 @@ export type ListKnowledgeBaseStructuredFileChunksQuery = {
6264
6407
  totalCount: number;
6265
6408
  hasNextPage: boolean;
6266
6409
  nodes?: Array<{
6410
+ __typename?: 'AgentInvocationLog';
6411
+ } | {
6267
6412
  __typename?: 'AgentMetadata';
6268
6413
  } | {
6269
6414
  __typename?: 'AgentPrompt';
@@ -6422,6 +6567,8 @@ export type ListKnowledgeBasePrecisionTestingQuery = {
6422
6567
  totalCount: number;
6423
6568
  hasNextPage: boolean;
6424
6569
  nodes?: Array<{
6570
+ __typename?: 'AgentInvocationLog';
6571
+ } | {
6425
6572
  __typename?: 'AgentMetadata';
6426
6573
  } | {
6427
6574
  __typename?: 'AgentPrompt';
@@ -6513,6 +6660,8 @@ export type ListLlMsQuery = {
6513
6660
  totalCount: number;
6514
6661
  hasNextPage: boolean;
6515
6662
  nodes?: Array<{
6663
+ __typename?: 'AgentInvocationLog';
6664
+ } | {
6516
6665
  __typename?: 'AgentMetadata';
6517
6666
  } | {
6518
6667
  __typename?: 'AgentPrompt';
@@ -6626,6 +6775,8 @@ export type ListModelsQuery = {
6626
6775
  totalCount: number;
6627
6776
  hasNextPage: boolean;
6628
6777
  nodes?: Array<{
6778
+ __typename: 'AgentInvocationLog';
6779
+ } | {
6629
6780
  __typename: 'AgentMetadata';
6630
6781
  } | {
6631
6782
  __typename: 'AgentPrompt';
@@ -6676,6 +6827,8 @@ export type ListModelsQuery = {
6676
6827
  totalCount: number;
6677
6828
  hasNextPage: boolean;
6678
6829
  nodes?: Array<{
6830
+ __typename?: 'AgentInvocationLog';
6831
+ } | {
6679
6832
  __typename?: 'AgentMetadata';
6680
6833
  } | {
6681
6834
  __typename?: 'AgentPrompt';
@@ -6809,6 +6962,8 @@ export type GetModelQuery = {
6809
6962
  totalCount: number;
6810
6963
  hasNextPage: boolean;
6811
6964
  nodes?: Array<{
6965
+ __typename?: 'AgentInvocationLog';
6966
+ } | {
6812
6967
  __typename?: 'AgentMetadata';
6813
6968
  } | {
6814
6969
  __typename?: 'AgentPrompt';
@@ -7066,6 +7221,8 @@ export type ListModelServicesQuery = {
7066
7221
  totalCount: number;
7067
7222
  hasNextPage: boolean;
7068
7223
  nodes?: Array<{
7224
+ __typename: 'AgentInvocationLog';
7225
+ } | {
7069
7226
  __typename: 'AgentMetadata';
7070
7227
  } | {
7071
7228
  __typename: 'AgentPrompt';
@@ -7195,6 +7352,8 @@ export type ListNodesQuery = {
7195
7352
  totalCount: number;
7196
7353
  hasNextPage: boolean;
7197
7354
  nodes?: Array<{
7355
+ __typename: 'AgentInvocationLog';
7356
+ } | {
7198
7357
  __typename: 'AgentMetadata';
7199
7358
  } | {
7200
7359
  __typename: 'AgentPrompt';
@@ -7270,6 +7429,8 @@ export type ListPluginsQuery = {
7270
7429
  totalCount: number;
7271
7430
  hasNextPage: boolean;
7272
7431
  nodes?: Array<{
7432
+ __typename: 'AgentInvocationLog';
7433
+ } | {
7273
7434
  __typename: 'AgentMetadata';
7274
7435
  } | {
7275
7436
  __typename: 'AgentPrompt';
@@ -7497,6 +7658,8 @@ export type ListRagQuery = {
7497
7658
  totalCount: number;
7498
7659
  hasNextPage: boolean;
7499
7660
  nodes?: Array<{
7661
+ __typename?: 'AgentInvocationLog';
7662
+ } | {
7500
7663
  __typename?: 'AgentMetadata';
7501
7664
  } | {
7502
7665
  __typename?: 'AgentPrompt';
@@ -7925,6 +8088,8 @@ export type ListRayClustersQuery = {
7925
8088
  totalCount: number;
7926
8089
  hasNextPage: boolean;
7927
8090
  nodes?: Array<{
8091
+ __typename: 'AgentInvocationLog';
8092
+ } | {
7928
8093
  __typename: 'AgentMetadata';
7929
8094
  } | {
7930
8095
  __typename: 'AgentPrompt';
@@ -8003,6 +8168,8 @@ export type ListRerankersQuery = {
8003
8168
  totalCount: number;
8004
8169
  hasNextPage: boolean;
8005
8170
  nodes?: Array<{
8171
+ __typename?: 'AgentInvocationLog';
8172
+ } | {
8006
8173
  __typename?: 'AgentMetadata';
8007
8174
  } | {
8008
8175
  __typename?: 'AgentPrompt';
@@ -8113,6 +8280,8 @@ export type ListTuningDataSetQuery = {
8113
8280
  __typename?: 'PaginatedResult';
8114
8281
  totalCount: number;
8115
8282
  nodes?: Array<{
8283
+ __typename?: 'AgentInvocationLog';
8284
+ } | {
8116
8285
  __typename?: 'AgentMetadata';
8117
8286
  } | {
8118
8287
  __typename?: 'AgentPrompt';
@@ -8170,6 +8339,8 @@ export type ListTuningDataSetQuery = {
8170
8339
  __typename?: 'PaginatedResult';
8171
8340
  totalCount: number;
8172
8341
  nodes?: Array<{
8342
+ __typename?: 'AgentInvocationLog';
8343
+ } | {
8173
8344
  __typename?: 'AgentMetadata';
8174
8345
  } | {
8175
8346
  __typename?: 'AgentPrompt';
@@ -8273,6 +8444,8 @@ export type GetTuningDataSetQuery = {
8273
8444
  __typename?: 'PaginatedResult';
8274
8445
  totalCount: number;
8275
8446
  nodes?: Array<{
8447
+ __typename?: 'AgentInvocationLog';
8448
+ } | {
8276
8449
  __typename?: 'AgentMetadata';
8277
8450
  } | {
8278
8451
  __typename?: 'AgentPrompt';
@@ -8362,6 +8535,8 @@ export type GetVersionQuery = {
8362
8535
  __typename?: 'PaginatedResult';
8363
8536
  totalCount: number;
8364
8537
  nodes?: Array<{
8538
+ __typename?: 'AgentInvocationLog';
8539
+ } | {
8365
8540
  __typename?: 'AgentMetadata';
8366
8541
  } | {
8367
8542
  __typename?: 'AgentPrompt';
@@ -8444,6 +8619,8 @@ export type GetVersionContentQuery = {
8444
8619
  __typename?: 'PaginatedResult';
8445
8620
  totalCount: number;
8446
8621
  nodes?: Array<{
8622
+ __typename?: 'AgentInvocationLog';
8623
+ } | {
8447
8624
  __typename?: 'AgentMetadata';
8448
8625
  } | {
8449
8626
  __typename?: 'AgentPrompt';
@@ -8664,6 +8841,8 @@ export type ListSftQuery = {
8664
8841
  totalCount: number;
8665
8842
  hasNextPage: boolean;
8666
8843
  nodes?: Array<{
8844
+ __typename?: 'AgentInvocationLog';
8845
+ } | {
8667
8846
  __typename?: 'AgentMetadata';
8668
8847
  } | {
8669
8848
  __typename?: 'AgentPrompt';
@@ -9373,6 +9552,8 @@ export type GetVersionedDatasetQuery = {
9373
9552
  totalCount: number;
9374
9553
  hasNextPage: boolean;
9375
9554
  nodes?: Array<{
9555
+ __typename?: 'AgentInvocationLog';
9556
+ } | {
9376
9557
  __typename?: 'AgentMetadata';
9377
9558
  } | {
9378
9559
  __typename?: 'AgentPrompt';
@@ -9456,6 +9637,8 @@ export type ListVersionedDatasetsQuery = {
9456
9637
  totalCount: number;
9457
9638
  hasNextPage: boolean;
9458
9639
  nodes?: Array<{
9640
+ __typename?: 'AgentInvocationLog';
9641
+ } | {
9459
9642
  __typename?: 'AgentMetadata';
9460
9643
  } | {
9461
9644
  __typename?: 'AgentPrompt';
@@ -9528,6 +9711,8 @@ export type ListVersionedDatasetsQuery = {
9528
9711
  totalCount: number;
9529
9712
  hasNextPage: boolean;
9530
9713
  nodes?: Array<{
9714
+ __typename?: 'AgentInvocationLog';
9715
+ } | {
9531
9716
  __typename?: 'AgentMetadata';
9532
9717
  } | {
9533
9718
  __typename?: 'AgentPrompt';
@@ -9615,6 +9800,8 @@ export type ListWorkersQuery = {
9615
9800
  totalCount: number;
9616
9801
  hasNextPage: boolean;
9617
9802
  nodes?: Array<{
9803
+ __typename: 'AgentInvocationLog';
9804
+ } | {
9618
9805
  __typename: 'AgentMetadata';
9619
9806
  } | {
9620
9807
  __typename: 'AgentPrompt';
@@ -9908,6 +10095,8 @@ export type ListWorkflowsQuery = {
9908
10095
  totalCount: number;
9909
10096
  hasNextPage: boolean;
9910
10097
  nodes?: Array<{
10098
+ __typename: 'AgentInvocationLog';
10099
+ } | {
9911
10100
  __typename: 'AgentMetadata';
9912
10101
  } | {
9913
10102
  __typename: 'AgentPrompt';
@@ -10114,6 +10303,7 @@ export declare const ListAgentPromptDocument: import("../node_modules/.pnpm/grap
10114
10303
  export declare const ListGptCategoryDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10115
10304
  export declare const GetGptStoreDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10116
10305
  export declare const GetWeiXinAuthorizerUrlDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10306
+ export declare const ListAgentInvocationLogsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10117
10307
  export declare const AllDataProcessListByPageDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10118
10308
  export declare const AllDataProcessListByCountDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
10119
10309
  export declare const DataProcessSupportTypeDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -10259,6 +10449,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
10259
10449
  listGPTCategory(variables?: ListGptCategoryQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListGptCategoryQuery>;
10260
10450
  getGPTStore(variables?: GetGptStoreQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetGptStoreQuery>;
10261
10451
  getWeiXinAuthorizerURL(variables: GetWeiXinAuthorizerUrlQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetWeiXinAuthorizerUrlQuery>;
10452
+ listAgentInvocationLogs(variables: ListAgentInvocationLogsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListAgentInvocationLogsQuery>;
10262
10453
  allDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<AllDataProcessListByPageQuery>;
10263
10454
  allDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<AllDataProcessListByCountQuery>;
10264
10455
  dataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<DataProcessSupportTypeQuery>;
@@ -10388,6 +10579,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
10388
10579
  useListGptCategory(variables?: ListGptCategoryQueryVariables, config?: SWRConfigInterface<ListGptCategoryQuery, ClientError>): import("./useSWR").SWRResponsePro<ListGptCategoryQuery, ClientError>;
10389
10580
  useGetGptStore(variables?: GetGptStoreQueryVariables, config?: SWRConfigInterface<GetGptStoreQuery, ClientError>): import("./useSWR").SWRResponsePro<GetGptStoreQuery, ClientError>;
10390
10581
  useGetWeiXinAuthorizerUrl(variables: GetWeiXinAuthorizerUrlQueryVariables, config?: SWRConfigInterface<GetWeiXinAuthorizerUrlQuery, ClientError>): import("./useSWR").SWRResponsePro<GetWeiXinAuthorizerUrlQuery, ClientError>;
10582
+ useListAgentInvocationLogs(variables: ListAgentInvocationLogsQueryVariables, config?: SWRConfigInterface<ListAgentInvocationLogsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListAgentInvocationLogsQuery, ClientError>;
10391
10583
  useAllDataProcessListByPage(variables: AllDataProcessListByPageQueryVariables, config?: SWRConfigInterface<AllDataProcessListByPageQuery, ClientError>): import("./useSWR").SWRResponsePro<AllDataProcessListByPageQuery, ClientError>;
10392
10584
  useAllDataProcessListByCount(variables: AllDataProcessListByCountQueryVariables, config?: SWRConfigInterface<AllDataProcessListByCountQuery, ClientError>): import("./useSWR").SWRResponsePro<AllDataProcessListByCountQuery, ClientError>;
10393
10585
  useDataProcessSupportType(variables?: DataProcessSupportTypeQueryVariables, config?: SWRConfigInterface<DataProcessSupportTypeQuery, ClientError>): import("./useSWR").SWRResponsePro<DataProcessSupportTypeQuery, ClientError>;
@@ -10539,6 +10731,13 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
10539
10731
  namespace: string;
10540
10732
  redirectURL: string;
10541
10733
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetWeiXinAuthorizerUrlQuery>;
10734
+ listAgentInvocationLogs(variables: Exact<{
10735
+ name: string;
10736
+ namespace: string;
10737
+ platform?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined;
10738
+ page?: InputMaybe<number> | undefined;
10739
+ size?: InputMaybe<number> | undefined;
10740
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListAgentInvocationLogsQuery>;
10542
10741
  allDataProcessListByPage(variables: Exact<{
10543
10742
  input: AllDataProcessListByPageInput;
10544
10743
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<AllDataProcessListByPageQuery>;
package/dist/cjs/sdk.js CHANGED
@@ -117,6 +117,7 @@ __export(sdk_exports, {
117
117
  GetWeiXinAuthorizerUrlDocument: () => GetWeiXinAuthorizerUrlDocument,
118
118
  GetWorkerDocument: () => GetWorkerDocument,
119
119
  GetWorkflowDocument: () => GetWorkflowDocument,
120
+ ListAgentInvocationLogsDocument: () => ListAgentInvocationLogsDocument,
120
121
  ListAgentPromptDocument: () => ListAgentPromptDocument,
121
122
  ListAgentsDocument: () => ListAgentsDocument,
122
123
  ListDatasetsDocument: () => ListDatasetsDocument,
@@ -627,6 +628,35 @@ var GetWeiXinAuthorizerUrlDocument = import_graphql_tag.default`
627
628
  }
628
629
  }
629
630
  `;
631
+ var ListAgentInvocationLogsDocument = import_graphql_tag.default`
632
+ query listAgentInvocationLogs($name: String!, $namespace: String!, $platform: [String], $page: Int, $size: Int) {
633
+ Agent {
634
+ listAgentInvocationLogs(
635
+ name: $name
636
+ namespace: $namespace
637
+ platform: $platform
638
+ page: $page
639
+ size: $size
640
+ ) {
641
+ totalCount
642
+ page
643
+ pageSize
644
+ nodes {
645
+ ... on AgentInvocationLog {
646
+ id
647
+ conversationId
648
+ platform
649
+ request
650
+ func
651
+ response
652
+ latency
653
+ createdAt
654
+ }
655
+ }
656
+ }
657
+ }
658
+ }
659
+ `;
630
660
  var AllDataProcessListByPageDocument = import_graphql_tag.default`
631
661
  query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {
632
662
  dataProcess {
@@ -3736,6 +3766,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
3736
3766
  getWeiXinAuthorizerURL(variables, requestHeaders) {
3737
3767
  return withWrapper((wrappedRequestHeaders) => client.request(GetWeiXinAuthorizerUrlDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getWeiXinAuthorizerURL", "query", variables);
3738
3768
  },
3769
+ listAgentInvocationLogs(variables, requestHeaders) {
3770
+ return withWrapper((wrappedRequestHeaders) => client.request(ListAgentInvocationLogsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "listAgentInvocationLogs", "query", variables);
3771
+ },
3739
3772
  allDataProcessListByPage(variables, requestHeaders) {
3740
3773
  return withWrapper((wrappedRequestHeaders) => client.request(AllDataProcessListByPageDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "allDataProcessListByPage", "query", variables);
3741
3774
  },
@@ -4121,6 +4154,9 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
4121
4154
  useGetWeiXinAuthorizerUrl(variables, config) {
4122
4155
  return (0, import_useSWR.default)(genKey("GetWeiXinAuthorizerUrl", variables), () => sdk.getWeiXinAuthorizerURL(variables), config);
4123
4156
  },
4157
+ useListAgentInvocationLogs(variables, config) {
4158
+ return (0, import_useSWR.default)(genKey("ListAgentInvocationLogs", variables), () => sdk.listAgentInvocationLogs(variables), config);
4159
+ },
4124
4160
  useAllDataProcessListByPage(variables, config) {
4125
4161
  return (0, import_useSWR.default)(genKey("AllDataProcessListByPage", variables), () => sdk.allDataProcessListByPage(variables), config);
4126
4162
  },
@@ -4384,6 +4420,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
4384
4420
  GetWeiXinAuthorizerUrlDocument,
4385
4421
  GetWorkerDocument,
4386
4422
  GetWorkflowDocument,
4423
+ ListAgentInvocationLogsDocument,
4387
4424
  ListAgentPromptDocument,
4388
4425
  ListAgentsDocument,
4389
4426
  ListDatasetsDocument,