@super_studio/ecforce-ai-agent-server 1.3.0 → 1.4.0-canary.1

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.
@@ -155,7 +155,6 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
155
155
  * @pattern ^[a-z0-9_-]+$
156
156
  */
157
157
  projectId: string;
158
- plan: "free" | "pro";
159
158
  }, params?: RequestParams) => Promise<{
160
159
  account: {
161
160
  id: string;
@@ -413,7 +412,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
413
412
  * @secure
414
413
  */
415
414
  getOverrides: (params?: RequestParams) => Promise<{
416
- overrides: Record<"adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp", boolean>;
415
+ overrides: Record<"adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "langfuseRecordContent" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp", boolean>;
417
416
  }>;
418
417
  /**
419
418
  * @description 現在のユーザーのフィーチャー上書きを設定または解除
@@ -425,7 +424,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
425
424
  * @secure
426
425
  */
427
426
  setOverride: (data: {
428
- featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
427
+ featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "langfuseRecordContent" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
429
428
  enabled: boolean | null;
430
429
  }, params?: RequestParams) => Promise<{
431
430
  success: boolean;
@@ -453,7 +452,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
453
452
  * @secure
454
453
  */
455
454
  updateConditions: (data: {
456
- featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
455
+ featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "langfuseRecordContent" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
457
456
  defaultValue: boolean;
458
457
  conditions: {
459
458
  rules: {
@@ -476,7 +475,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
476
475
  * @secure
477
476
  */
478
477
  resetConditions: (data: {
479
- featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
478
+ featureKey: "adminSettings" | "accountManagement" | "featureOverrides" | "accountSettings" | "spstBillingExclusion" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "adminOptionsUi" | "sharedPrompts" | "langfuseRecordContent" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "customMcp";
480
479
  }, params?: RequestParams) => Promise<{
481
480
  success: boolean;
482
481
  }>;
@@ -491,7 +490,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
491
490
  */
492
491
  listGroups: (params?: RequestParams) => Promise<{
493
492
  userGroups: {
494
- key: "developers" | "operations" | "testers";
493
+ key: "developers" | "operations" | "customers" | "testers";
495
494
  name: string;
496
495
  description: string;
497
496
  members: {
@@ -518,7 +517,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
518
517
  */
519
518
  addGroupMember: (data: {
520
519
  type: "user";
521
- groupKey: "developers" | "operations" | "testers";
520
+ groupKey: "developers" | "operations" | "customers" | "testers";
522
521
  /** @minItems 1 */
523
522
  userIds: string[];
524
523
  } | {
@@ -541,7 +540,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
541
540
  */
542
541
  removeGroupMember: (data: {
543
542
  type: "user";
544
- groupKey: "developers" | "operations" | "testers";
543
+ groupKey: "developers" | "operations" | "customers" | "testers";
545
544
  /** @minItems 1 */
546
545
  userIds: string[];
547
546
  } | {
@@ -714,6 +713,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
714
713
  generateImage?: boolean;
715
714
  ecforceFaq?: boolean;
716
715
  webSearch?: boolean;
716
+ executeCode?: boolean;
717
717
  };
718
718
  interfaceFeatures: {
719
719
  modelSelection?: boolean;
@@ -844,6 +844,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
844
844
  generateImage?: boolean;
845
845
  ecforceFaq?: boolean;
846
846
  webSearch?: boolean;
847
+ executeCode?: boolean;
847
848
  };
848
849
  interfaceFeatures: {
849
850
  modelSelection?: boolean;
@@ -914,6 +915,91 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
914
915
  deleteGlobalAgent: (id: string, data?: object, params?: RequestParams) => Promise<{
915
916
  success: boolean;
916
917
  }>;
918
+ /**
919
+ * @description グローバルエージェントのおすすめの質問一覧を取得する
920
+ *
921
+ * @tags internal, globalAgent, globalAgentSuggestedPrompt
922
+ * @name ListGlobalAgentSuggestedPrompts
923
+ * @summary listGlobalAgentSuggestedPrompts
924
+ * @request GET:/v1/internal/global-agent/{agentId}/suggested-prompts
925
+ * @secure
926
+ */
927
+ listGlobalAgentSuggestedPrompts: (agentId: string, params?: RequestParams) => Promise<{
928
+ prompts: {
929
+ id: string;
930
+ agentId: string;
931
+ title: string;
932
+ promptText: string;
933
+ }[];
934
+ }>;
935
+ /**
936
+ * @description グローバルエージェントのおすすめの質問を作成する
937
+ *
938
+ * @tags internal, globalAgent, globalAgentSuggestedPrompt
939
+ * @name CreateGlobalAgentSuggestedPrompt
940
+ * @summary createGlobalAgentSuggestedPrompt
941
+ * @request POST:/v1/internal/global-agent/{agentId}/suggested-prompts
942
+ * @secure
943
+ */
944
+ createGlobalAgentSuggestedPrompt: (agentId: string, data: {
945
+ /**
946
+ * @minLength 1
947
+ * @maxLength 50
948
+ */
949
+ title: string;
950
+ /**
951
+ * @minLength 1
952
+ * @maxLength 2000
953
+ */
954
+ promptText: string;
955
+ }, params?: RequestParams) => Promise<{
956
+ prompt: {
957
+ id: string;
958
+ agentId: string;
959
+ title: string;
960
+ promptText: string;
961
+ };
962
+ }>;
963
+ /**
964
+ * @description グローバルエージェントのおすすめの質問を更新する
965
+ *
966
+ * @tags internal, globalAgent, globalAgentSuggestedPrompt
967
+ * @name UpdateGlobalAgentSuggestedPrompt
968
+ * @summary updateGlobalAgentSuggestedPrompt
969
+ * @request PUT:/v1/internal/global-agent/suggested-prompts/{id}
970
+ * @secure
971
+ */
972
+ updateGlobalAgentSuggestedPrompt: (id: string, data: {
973
+ /**
974
+ * @minLength 1
975
+ * @maxLength 50
976
+ */
977
+ title: string;
978
+ /**
979
+ * @minLength 1
980
+ * @maxLength 2000
981
+ */
982
+ promptText: string;
983
+ }, params?: RequestParams) => Promise<{
984
+ prompt: {
985
+ id: string;
986
+ agentId: string;
987
+ title: string;
988
+ promptText: string;
989
+ };
990
+ }>;
991
+ /**
992
+ * @description グローバルエージェントのおすすめの質問を削除する
993
+ *
994
+ * @tags internal, globalAgent, globalAgentSuggestedPrompt
995
+ * @name DeleteGlobalAgentSuggestedPrompt
996
+ * @summary deleteGlobalAgentSuggestedPrompt
997
+ * @request DELETE:/v1/internal/global-agent/suggested-prompts/{id}
998
+ * @secure
999
+ */
1000
+ deleteGlobalAgentSuggestedPrompt: (id: string, data?: object, params?: RequestParams) => Promise<{
1001
+ success: boolean;
1002
+ }>;
917
1003
  };
918
1004
  internalChat: {
919
1005
  /**
@@ -958,6 +1044,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
958
1044
  title: string | null;
959
1045
  pinnedAt: string | null;
960
1046
  activeStreamId: string | null;
1047
+ isBenchmark: boolean;
961
1048
  /** @format date-time */
962
1049
  createdAt: string;
963
1050
  /** @format date-time */
@@ -978,6 +1065,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
978
1065
  agentConfigId: string;
979
1066
  /** @maxLength 50 */
980
1067
  role: string;
1068
+ appName: string | null;
981
1069
  parts: (string | number | boolean | null) | Record<string, any> | null[];
982
1070
  attachments: ((string | number | boolean | null) | Record<string, any> | null[]) | null;
983
1071
  traceId: string | null;
@@ -1293,6 +1381,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1293
1381
  generateImage?: boolean;
1294
1382
  ecforceFaq?: boolean;
1295
1383
  webSearch?: boolean;
1384
+ executeCode?: boolean;
1296
1385
  };
1297
1386
  interfaceFeatures: {
1298
1387
  modelSelection?: boolean;
@@ -1423,6 +1512,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1423
1512
  generateImage?: boolean;
1424
1513
  ecforceFaq?: boolean;
1425
1514
  webSearch?: boolean;
1515
+ executeCode?: boolean;
1426
1516
  };
1427
1517
  interfaceFeatures: {
1428
1518
  modelSelection?: boolean;
@@ -1511,6 +1601,24 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1511
1601
  };
1512
1602
  defaultModel: "gpt-5.2-high" | "gpt-5.2" | "gpt-5.1-high" | "gpt-5.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gemini-3.1-pro" | "gemini-3-flash" | "gemini-2.5-pro" | "gemini-2.5-flash" | "claude-opus-4-6-thinking" | "claude-opus-4-6" | "claude-opus-4-5-thinking" | "claude-opus-4-5" | "claude-sonnet-4-6-thinking" | "claude-sonnet-4-6" | "claude-sonnet-4-5-thinking" | "claude-sonnet-4-5" | "claude-haiku-4-5-thinking" | "claude-haiku-4-5";
1513
1603
  }>;
1604
+ /**
1605
+ * @description エージェントで利用可能なモデル名エイリアス一覧を取得する(公開)
1606
+ *
1607
+ * @tags agent
1608
+ * @name GetAvailableModels
1609
+ * @summary getAvailableModels
1610
+ * @request GET:/v1/agent/available-models
1611
+ * @secure
1612
+ */
1613
+ getAvailableModels: (query?: {
1614
+ id?: string;
1615
+ }, params?: RequestParams) => Promise<{
1616
+ defaultModel: "gpt-5.2-high" | "gpt-5.2" | "gpt-5.1-high" | "gpt-5.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gemini-3.1-pro" | "gemini-3-flash" | "gemini-2.5-pro" | "gemini-2.5-flash" | "claude-opus-4-6-thinking" | "claude-opus-4-6" | "claude-opus-4-5-thinking" | "claude-opus-4-5" | "claude-sonnet-4-6-thinking" | "claude-sonnet-4-6" | "claude-sonnet-4-5-thinking" | "claude-sonnet-4-5" | "claude-haiku-4-5-thinking" | "claude-haiku-4-5";
1617
+ models: {
1618
+ key: "gpt-5.2-high" | "gpt-5.2" | "gpt-5.1-high" | "gpt-5.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gemini-3.1-pro" | "gemini-3-flash" | "gemini-2.5-pro" | "gemini-2.5-flash" | "claude-opus-4-6-thinking" | "claude-opus-4-6" | "claude-opus-4-5-thinking" | "claude-opus-4-5" | "claude-sonnet-4-6-thinking" | "claude-sonnet-4-6" | "claude-sonnet-4-5-thinking" | "claude-sonnet-4-5" | "claude-haiku-4-5-thinking" | "claude-haiku-4-5";
1619
+ label: string;
1620
+ }[];
1621
+ }>;
1514
1622
  /**
1515
1623
  * @description エージェントのツール設定を取得する(公開)
1516
1624
  *
@@ -1529,6 +1637,10 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1529
1637
  type?: "native" | "mcp" | "client";
1530
1638
  group?: string;
1531
1639
  summary?: string;
1640
+ disabled?: boolean;
1641
+ disabledReason?: string;
1642
+ executionDisabled?: boolean;
1643
+ executionDisabledReason?: string;
1532
1644
  }>>;
1533
1645
  /**
1534
1646
  * @description 指定MCPのツール一覧を取得する
@@ -1548,7 +1660,36 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1548
1660
  type?: "native" | "mcp" | "client";
1549
1661
  group?: string;
1550
1662
  summary?: string;
1663
+ disabled?: boolean;
1664
+ disabledReason?: string;
1665
+ executionDisabled?: boolean;
1666
+ executionDisabledReason?: string;
1551
1667
  }>>;
1668
+ /**
1669
+ * @description エージェントのおすすめの質問をランダム取得する(公開)
1670
+ *
1671
+ * @tags agent
1672
+ * @name GetRandomSuggestedPrompts
1673
+ * @summary getRandomSuggestedPrompts
1674
+ * @request GET:/v1/agent/random-suggested-prompts
1675
+ * @secure
1676
+ */
1677
+ getRandomSuggestedPrompts: (query?: {
1678
+ agentId?: string;
1679
+ /**
1680
+ * @min 1
1681
+ * @max 50
1682
+ * @default 3
1683
+ */
1684
+ count?: number;
1685
+ }, params?: RequestParams) => Promise<{
1686
+ prompts: {
1687
+ id: string;
1688
+ agentId: string;
1689
+ title: string;
1690
+ promptText: string;
1691
+ }[];
1692
+ }>;
1552
1693
  };
1553
1694
  apiKeys: {
1554
1695
  /**
@@ -1693,6 +1834,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1693
1834
  agentConfigId: string;
1694
1835
  /** @maxLength 50 */
1695
1836
  role: string;
1837
+ appName: string | null;
1696
1838
  parts: (string | number | boolean | null) | Record<string, any> | null[];
1697
1839
  attachments: ((string | number | boolean | null) | Record<string, any> | null[]) | null;
1698
1840
  traceId: string | null;
@@ -1731,6 +1873,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1731
1873
  title: string | null;
1732
1874
  pinnedAt: string | null;
1733
1875
  activeStreamId: string | null;
1876
+ isBenchmark: boolean;
1734
1877
  /** @format date-time */
1735
1878
  createdAt: string;
1736
1879
  /** @format date-time */
@@ -2309,6 +2452,12 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2309
2452
  id: string;
2310
2453
  name: string;
2311
2454
  promptText: string;
2455
+ attachments: {
2456
+ url: string;
2457
+ type: "file";
2458
+ filename?: string;
2459
+ mediaType: string;
2460
+ }[] | null;
2312
2461
  visibility: "personal" | "shared";
2313
2462
  createdBy: string;
2314
2463
  createdByUser: {
@@ -2341,6 +2490,12 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2341
2490
  * @maxLength 2000
2342
2491
  */
2343
2492
  promptText: string;
2493
+ attachments: {
2494
+ url: string;
2495
+ type: "file";
2496
+ filename?: string;
2497
+ mediaType: string;
2498
+ }[];
2344
2499
  }, params?: RequestParams) => Promise<{
2345
2500
  item: {
2346
2501
  /** @maxLength 30 */
@@ -2353,6 +2508,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2353
2508
  name: string;
2354
2509
  /** @maxLength 65535 */
2355
2510
  promptText: string;
2511
+ attachments: ((string | number | boolean | null) | Record<string, any> | null[]) | null;
2356
2512
  /** @format date-time */
2357
2513
  createdAt: string;
2358
2514
  /** @format date-time */
@@ -2386,6 +2542,12 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2386
2542
  id: string;
2387
2543
  name: string;
2388
2544
  } | null;
2545
+ attachments: {
2546
+ url: string;
2547
+ type: "file";
2548
+ filename?: string;
2549
+ mediaType: string;
2550
+ }[] | null;
2389
2551
  }>;
2390
2552
  /**
2391
2553
  * @description プロンプトを更新
@@ -2408,6 +2570,12 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2408
2570
  * @maxLength 2000
2409
2571
  */
2410
2572
  promptText: string;
2573
+ attachments: {
2574
+ url: string;
2575
+ type: "file";
2576
+ filename?: string;
2577
+ mediaType: string;
2578
+ }[];
2411
2579
  }, params?: RequestParams) => Promise<{
2412
2580
  item: {
2413
2581
  /** @maxLength 30 */
@@ -2420,6 +2588,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2420
2588
  name: string;
2421
2589
  /** @maxLength 65535 */
2422
2590
  promptText: string;
2591
+ attachments: ((string | number | boolean | null) | Record<string, any> | null[]) | null;
2423
2592
  /** @format date-time */
2424
2593
  createdAt: string;
2425
2594
  /** @format date-time */
@@ -2496,6 +2665,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2496
2665
  granularity?: "month" | "day";
2497
2666
  }, params?: RequestParams) => Promise<{
2498
2667
  totalUsedCredits: number;
2668
+ totalMessages: number;
2499
2669
  creditLimit: number;
2500
2670
  remainingCredits: number | null;
2501
2671
  billingPeriod: string;
@@ -2564,6 +2734,23 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2564
2734
  messageCount: number;
2565
2735
  }[];
2566
2736
  }>;
2737
+ /**
2738
+ * @description 無償版向け機能制限の到達状態を取得する
2739
+ *
2740
+ * @tags usage
2741
+ * @name FeatureLimitStatus
2742
+ * @summary featureLimitStatus
2743
+ * @request POST:/v1/usage/feature-limit-status
2744
+ * @secure
2745
+ */
2746
+ featureLimitStatus: (data: {
2747
+ counterKeys?: string[];
2748
+ }, params?: RequestParams) => Promise<Record<string, {
2749
+ limited: boolean;
2750
+ reached: boolean;
2751
+ used: number;
2752
+ limit: number | null;
2753
+ }>>;
2567
2754
  /**
2568
2755
  * @description 利用金額の上限を設定する
2569
2756
  *
@@ -2583,6 +2770,371 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
2583
2770
  creditLimit: number;
2584
2771
  }>;
2585
2772
  };
2773
+ benchmarks: {
2774
+ /**
2775
+ * @description ベンチマークの一覧を取得する
2776
+ *
2777
+ * @tags agentBenchmark
2778
+ * @name List
2779
+ * @summary list
2780
+ * @request GET:/v1/benchmarks
2781
+ * @secure
2782
+ */
2783
+ list: (query?: {
2784
+ q?: string;
2785
+ /**
2786
+ * @min 1
2787
+ * @max 9007199254740991
2788
+ * @default 1
2789
+ */
2790
+ page?: number;
2791
+ /**
2792
+ * @min 1
2793
+ * @max 100
2794
+ * @default 20
2795
+ */
2796
+ pageSize?: number;
2797
+ }, params?: RequestParams) => Promise<{
2798
+ items: {
2799
+ /** @maxLength 30 */
2800
+ id: string;
2801
+ /** @maxLength 255 */
2802
+ name: string;
2803
+ description: string | null;
2804
+ /** @maxLength 30 */
2805
+ authorId: string;
2806
+ /** @format date-time */
2807
+ createdAt: string;
2808
+ /** @format date-time */
2809
+ updatedAt: string;
2810
+ evaluationMetrics: Record<string, boolean>;
2811
+ author: {
2812
+ id: string;
2813
+ name: string | null;
2814
+ email: string;
2815
+ } | null;
2816
+ itemCount: number;
2817
+ }[];
2818
+ pagination: {
2819
+ page: number;
2820
+ pageSize: number;
2821
+ totalCount: number;
2822
+ totalPages: number;
2823
+ };
2824
+ }>;
2825
+ /**
2826
+ * @description ベンチマークを作成する
2827
+ *
2828
+ * @tags agentBenchmark
2829
+ * @name Create
2830
+ * @summary create
2831
+ * @request POST:/v1/benchmarks
2832
+ * @secure
2833
+ */
2834
+ create: (data: {
2835
+ name: string;
2836
+ description?: string;
2837
+ /** @default {} */
2838
+ evaluationMetrics?: Record<string, boolean>;
2839
+ /** @maxItems 50 */
2840
+ items: {
2841
+ id: string;
2842
+ input: {
2843
+ user: string;
2844
+ };
2845
+ /** @minLength 1 */
2846
+ expectedOutput: string;
2847
+ metadata?: Record<string, any>;
2848
+ }[];
2849
+ }, params?: RequestParams) => Promise<{
2850
+ id: string;
2851
+ datasetItemNumber: number;
2852
+ }>;
2853
+ /**
2854
+ * @description ベンチマークアイテムを作成する
2855
+ *
2856
+ * @tags agentBenchmark
2857
+ * @name CreateItem
2858
+ * @summary createItem
2859
+ * @request POST:/v1/benchmarks/{datasetId}/items
2860
+ * @secure
2861
+ */
2862
+ createItem: (datasetId: string, data: {
2863
+ /** @minLength 1 */
2864
+ input: string;
2865
+ /** @minLength 1 */
2866
+ expectedOutput: string;
2867
+ memo?: string;
2868
+ }, params?: RequestParams) => Promise<{
2869
+ /** @maxLength 30 */
2870
+ id: string;
2871
+ /** @maxLength 30 */
2872
+ datasetId: string;
2873
+ /** @maxLength 65535 */
2874
+ input: string;
2875
+ /** @maxLength 65535 */
2876
+ expectedOutput: string;
2877
+ memo: string | null;
2878
+ /**
2879
+ * @min -2147483648
2880
+ * @max 2147483647
2881
+ */
2882
+ sortOrder: number;
2883
+ /** @format date-time */
2884
+ createdAt: string;
2885
+ /** @format date-time */
2886
+ updatedAt: string;
2887
+ deletedAt: string | null;
2888
+ deletedBy: string | null;
2889
+ }>;
2890
+ /**
2891
+ * @description ベンチマークのアイテム一覧を取得する
2892
+ *
2893
+ * @tags agentBenchmark
2894
+ * @name ListItems
2895
+ * @summary listItems
2896
+ * @request GET:/v1/benchmarks/{datasetId}/items
2897
+ * @secure
2898
+ */
2899
+ listItems: (datasetId: string, query?: {
2900
+ /**
2901
+ * @min 1
2902
+ * @max 9007199254740991
2903
+ * @default 1
2904
+ */
2905
+ page?: number;
2906
+ /**
2907
+ * @min 1
2908
+ * @max 200
2909
+ * @default 50
2910
+ */
2911
+ pageSize?: number;
2912
+ }, params?: RequestParams) => Promise<{
2913
+ items: {
2914
+ /** @maxLength 30 */
2915
+ id: string;
2916
+ /** @maxLength 30 */
2917
+ datasetId: string;
2918
+ /** @maxLength 65535 */
2919
+ input: string;
2920
+ /** @maxLength 65535 */
2921
+ expectedOutput: string;
2922
+ memo: string | null;
2923
+ /**
2924
+ * @min -2147483648
2925
+ * @max 2147483647
2926
+ */
2927
+ sortOrder: number;
2928
+ /** @format date-time */
2929
+ createdAt: string;
2930
+ /** @format date-time */
2931
+ updatedAt: string;
2932
+ deletedAt: string | null;
2933
+ deletedBy: string | null;
2934
+ }[];
2935
+ pagination: {
2936
+ page: number;
2937
+ pageSize: number;
2938
+ totalCount: number;
2939
+ totalPages: number;
2940
+ };
2941
+ }>;
2942
+ /**
2943
+ * @description ベンチマーク実行レコードを作成し、サーバー側でチャット+評価を非同期並列実行する
2944
+ *
2945
+ * @tags agentBenchmark
2946
+ * @name ExecuteRun
2947
+ * @summary executeRun
2948
+ * @request POST:/v1/benchmarks/{datasetId}/execute
2949
+ * @secure
2950
+ */
2951
+ executeRun: (datasetId: string, data: {
2952
+ /** @minLength 1 */
2953
+ agentId: string;
2954
+ modelOverride?: string;
2955
+ }, params?: RequestParams) => Promise<{
2956
+ runId: string;
2957
+ }>;
2958
+ /**
2959
+ * @description ベンチマーク実行の詳細を取得する
2960
+ *
2961
+ * @tags agentBenchmark
2962
+ * @name GetRun
2963
+ * @summary getRun
2964
+ * @request GET:/v1/benchmarks/runs/{runId}
2965
+ * @secure
2966
+ */
2967
+ getRun: (runId: string, params?: RequestParams) => Promise<{
2968
+ id: string;
2969
+ status: string;
2970
+ startedAt: string | null;
2971
+ completedAt: string | null;
2972
+ /** @format date-time */
2973
+ createdAt: string;
2974
+ averageScore: number | null;
2975
+ model: string | null;
2976
+ agentName: string | null;
2977
+ authorName: string | null;
2978
+ systemPrompt: string | null;
2979
+ dataset: {
2980
+ id: string;
2981
+ name: string;
2982
+ description: string | null;
2983
+ evaluationMetrics: Record<string, boolean>;
2984
+ };
2985
+ items: {
2986
+ id: string;
2987
+ status: string;
2988
+ chatId: string | null;
2989
+ actualOutput: string | null;
2990
+ scores: Record<string, number>;
2991
+ overallScore: number | null;
2992
+ cost: number | null;
2993
+ wallTimeMs: number | null;
2994
+ datasetItemId: string;
2995
+ input: string;
2996
+ expectedOutput: string | null;
2997
+ }[];
2998
+ }>;
2999
+ /**
3000
+ * @description ベンチマークアイテムを削除する
3001
+ *
3002
+ * @tags agentBenchmark
3003
+ * @name DeleteItem
3004
+ * @summary deleteItem
3005
+ * @request DELETE:/v1/benchmarks/{datasetId}/items/{itemId}
3006
+ * @secure
3007
+ */
3008
+ deleteItem: (datasetId: string, itemId: string, data?: object, params?: RequestParams) => Promise<{
3009
+ id: string;
3010
+ }>;
3011
+ /**
3012
+ * @description ベンチマークのアイテムを更新する
3013
+ *
3014
+ * @tags agentBenchmark
3015
+ * @name UpdateItem
3016
+ * @summary updateItem
3017
+ * @request PATCH:/v1/benchmarks/{datasetId}/items/{itemId}
3018
+ * @secure
3019
+ */
3020
+ updateItem: (datasetId: string, itemId: string, data: {
3021
+ memo?: string;
3022
+ items: {
3023
+ id: string;
3024
+ input: {
3025
+ user: string;
3026
+ };
3027
+ expectedOutput: string;
3028
+ metadata?: Record<string, any>;
3029
+ };
3030
+ }, params?: RequestParams) => Promise<{
3031
+ id: string;
3032
+ input: string;
3033
+ expectedOutput: string | null;
3034
+ updatedAt: string | null;
3035
+ /** @format date-time */
3036
+ createdAt: string;
3037
+ }>;
3038
+ /**
3039
+ * @description ベンチマークのメタデータを更新する
3040
+ *
3041
+ * @tags agentBenchmark
3042
+ * @name UpdateMetadata
3043
+ * @summary updateMetadata
3044
+ * @request PATCH:/v1/benchmarks/{id}
3045
+ * @secure
3046
+ */
3047
+ updateMetadata: (id: string, data?: {
3048
+ /** @minLength 1 */
3049
+ name?: string;
3050
+ description?: string;
3051
+ evaluationMetrics?: Record<string, boolean>;
3052
+ }, params?: RequestParams) => Promise<{
3053
+ id: string;
3054
+ name: string;
3055
+ updatedAt: string | null;
3056
+ /** @format date-time */
3057
+ createdAt: string;
3058
+ createdByUser: {
3059
+ /** @maxLength 30 */
3060
+ id: string;
3061
+ /** @maxLength 255 */
3062
+ name: string;
3063
+ /** @maxLength 255 */
3064
+ email: string;
3065
+ } | null;
3066
+ updatedByUser: {
3067
+ /** @maxLength 30 */
3068
+ id: string;
3069
+ /** @maxLength 255 */
3070
+ name: string;
3071
+ /** @maxLength 255 */
3072
+ email: string;
3073
+ } | null;
3074
+ }>;
3075
+ /**
3076
+ * @description ベンチマークの実行履歴一覧を取得する
3077
+ *
3078
+ * @tags agentBenchmark
3079
+ * @name ListRuns
3080
+ * @summary listRuns
3081
+ * @request GET:/v1/benchmarks/runs
3082
+ * @secure
3083
+ */
3084
+ listRuns: (query?: {
3085
+ /** @minLength 1 */
3086
+ datasetId?: string;
3087
+ /**
3088
+ * @min 1
3089
+ * @max 9007199254740991
3090
+ * @default 1
3091
+ */
3092
+ page?: number;
3093
+ /**
3094
+ * @min 1
3095
+ * @max 100
3096
+ * @default 20
3097
+ */
3098
+ pageSize?: number;
3099
+ }, params?: RequestParams) => Promise<{
3100
+ items: {
3101
+ /** @maxLength 30 */
3102
+ id: string;
3103
+ /** @maxLength 30 */
3104
+ datasetVersionId: string;
3105
+ /** @maxLength 30 */
3106
+ datasetId: string;
3107
+ model: string | null;
3108
+ agentId: string | null;
3109
+ agentConfigId: string | null;
3110
+ /** @maxLength 20 */
3111
+ status: string;
3112
+ startedAt: string | null;
3113
+ completedAt: string | null;
3114
+ averageScore: number | null;
3115
+ /** @format date-time */
3116
+ createdAt: string;
3117
+ /** @format date-time */
3118
+ updatedAt: string;
3119
+ createdBy: string | null;
3120
+ updatedBy: string | null;
3121
+ agentName: string | null;
3122
+ agentModel: string | null;
3123
+ datasetName: string;
3124
+ itemCount: number;
3125
+ completedItemCount: number;
3126
+ authorName: string | null;
3127
+ totalCost: number | null;
3128
+ averageLatencyMs: number | null;
3129
+ }[];
3130
+ pagination: {
3131
+ page: number;
3132
+ pageSize: number;
3133
+ totalCount: number;
3134
+ totalPages: number;
3135
+ };
3136
+ }>;
3137
+ };
2586
3138
  }
2587
3139
  //#endregion
2588
3140
  export { Api, ApiConfig, ContentType, FullRequestParams, HttpClient, HttpResponse, QueryParamsType, RequestParams, ResponseFormat };