@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.
- package/dist/sdk/__generated__/index.cjs +129 -0
- package/dist/sdk/__generated__/index.d.cts +560 -8
- package/dist/sdk/__generated__/index.d.cts.map +1 -1
- package/dist/sdk/__generated__/index.d.mts +560 -8
- package/dist/sdk/__generated__/index.d.mts.map +1 -1
- package/dist/sdk/__generated__/index.mjs +129 -0
- package/dist/sdk/__generated__/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/sdk/__generated__/index.ts +889 -4
|
@@ -379,7 +379,6 @@ export class Api<
|
|
|
379
379
|
* @pattern ^[a-z0-9_-]+$
|
|
380
380
|
*/
|
|
381
381
|
projectId: string;
|
|
382
|
-
plan: "free" | "pro";
|
|
383
382
|
},
|
|
384
383
|
params: RequestParams = {},
|
|
385
384
|
) =>
|
|
@@ -776,6 +775,7 @@ export class Api<
|
|
|
776
775
|
| "betaFeatures"
|
|
777
776
|
| "adminOptionsUi"
|
|
778
777
|
| "sharedPrompts"
|
|
778
|
+
| "langfuseRecordContent"
|
|
779
779
|
| "modelProviderOpenAI"
|
|
780
780
|
| "modelProviderGoogle"
|
|
781
781
|
| "modelProviderAnthropic"
|
|
@@ -815,6 +815,7 @@ export class Api<
|
|
|
815
815
|
| "betaFeatures"
|
|
816
816
|
| "adminOptionsUi"
|
|
817
817
|
| "sharedPrompts"
|
|
818
|
+
| "langfuseRecordContent"
|
|
818
819
|
| "modelProviderOpenAI"
|
|
819
820
|
| "modelProviderGoogle"
|
|
820
821
|
| "modelProviderAnthropic"
|
|
@@ -885,6 +886,7 @@ export class Api<
|
|
|
885
886
|
| "betaFeatures"
|
|
886
887
|
| "adminOptionsUi"
|
|
887
888
|
| "sharedPrompts"
|
|
889
|
+
| "langfuseRecordContent"
|
|
888
890
|
| "modelProviderOpenAI"
|
|
889
891
|
| "modelProviderGoogle"
|
|
890
892
|
| "modelProviderAnthropic"
|
|
@@ -944,6 +946,7 @@ export class Api<
|
|
|
944
946
|
| "betaFeatures"
|
|
945
947
|
| "adminOptionsUi"
|
|
946
948
|
| "sharedPrompts"
|
|
949
|
+
| "langfuseRecordContent"
|
|
947
950
|
| "modelProviderOpenAI"
|
|
948
951
|
| "modelProviderGoogle"
|
|
949
952
|
| "modelProviderAnthropic"
|
|
@@ -979,7 +982,7 @@ export class Api<
|
|
|
979
982
|
this.request<
|
|
980
983
|
{
|
|
981
984
|
userGroups: {
|
|
982
|
-
key: "developers" | "operations" | "testers";
|
|
985
|
+
key: "developers" | "operations" | "customers" | "testers";
|
|
983
986
|
name: string;
|
|
984
987
|
description: string;
|
|
985
988
|
members: {
|
|
@@ -1017,7 +1020,7 @@ export class Api<
|
|
|
1017
1020
|
data:
|
|
1018
1021
|
| {
|
|
1019
1022
|
type: "user";
|
|
1020
|
-
groupKey: "developers" | "operations" | "testers";
|
|
1023
|
+
groupKey: "developers" | "operations" | "customers" | "testers";
|
|
1021
1024
|
/** @minItems 1 */
|
|
1022
1025
|
userIds: string[];
|
|
1023
1026
|
}
|
|
@@ -1058,7 +1061,7 @@ export class Api<
|
|
|
1058
1061
|
data:
|
|
1059
1062
|
| {
|
|
1060
1063
|
type: "user";
|
|
1061
|
-
groupKey: "developers" | "operations" | "testers";
|
|
1064
|
+
groupKey: "developers" | "operations" | "customers" | "testers";
|
|
1062
1065
|
/** @minItems 1 */
|
|
1063
1066
|
userIds: string[];
|
|
1064
1067
|
}
|
|
@@ -1298,6 +1301,7 @@ export class Api<
|
|
|
1298
1301
|
generateImage?: boolean;
|
|
1299
1302
|
ecforceFaq?: boolean;
|
|
1300
1303
|
webSearch?: boolean;
|
|
1304
|
+
executeCode?: boolean;
|
|
1301
1305
|
};
|
|
1302
1306
|
interfaceFeatures: {
|
|
1303
1307
|
modelSelection?: boolean;
|
|
@@ -1482,6 +1486,7 @@ export class Api<
|
|
|
1482
1486
|
generateImage?: boolean;
|
|
1483
1487
|
ecforceFaq?: boolean;
|
|
1484
1488
|
webSearch?: boolean;
|
|
1489
|
+
executeCode?: boolean;
|
|
1485
1490
|
};
|
|
1486
1491
|
interfaceFeatures: {
|
|
1487
1492
|
modelSelection?: boolean;
|
|
@@ -1586,6 +1591,156 @@ export class Api<
|
|
|
1586
1591
|
format: "json",
|
|
1587
1592
|
...params,
|
|
1588
1593
|
}),
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* @description グローバルエージェントのおすすめの質問一覧を取得する
|
|
1597
|
+
*
|
|
1598
|
+
* @tags internal, globalAgent, globalAgentSuggestedPrompt
|
|
1599
|
+
* @name ListGlobalAgentSuggestedPrompts
|
|
1600
|
+
* @summary listGlobalAgentSuggestedPrompts
|
|
1601
|
+
* @request GET:/v1/internal/global-agent/{agentId}/suggested-prompts
|
|
1602
|
+
* @secure
|
|
1603
|
+
*/
|
|
1604
|
+
listGlobalAgentSuggestedPrompts: (
|
|
1605
|
+
agentId: string,
|
|
1606
|
+
params: RequestParams = {},
|
|
1607
|
+
) =>
|
|
1608
|
+
this.request<
|
|
1609
|
+
{
|
|
1610
|
+
prompts: {
|
|
1611
|
+
id: string;
|
|
1612
|
+
agentId: string;
|
|
1613
|
+
title: string;
|
|
1614
|
+
promptText: string;
|
|
1615
|
+
}[];
|
|
1616
|
+
},
|
|
1617
|
+
any
|
|
1618
|
+
>({
|
|
1619
|
+
path: `/v1/internal/global-agent/${agentId}/suggested-prompts`,
|
|
1620
|
+
method: "GET",
|
|
1621
|
+
secure: true,
|
|
1622
|
+
format: "json",
|
|
1623
|
+
...params,
|
|
1624
|
+
}),
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* @description グローバルエージェントのおすすめの質問を作成する
|
|
1628
|
+
*
|
|
1629
|
+
* @tags internal, globalAgent, globalAgentSuggestedPrompt
|
|
1630
|
+
* @name CreateGlobalAgentSuggestedPrompt
|
|
1631
|
+
* @summary createGlobalAgentSuggestedPrompt
|
|
1632
|
+
* @request POST:/v1/internal/global-agent/{agentId}/suggested-prompts
|
|
1633
|
+
* @secure
|
|
1634
|
+
*/
|
|
1635
|
+
createGlobalAgentSuggestedPrompt: (
|
|
1636
|
+
agentId: string,
|
|
1637
|
+
data: {
|
|
1638
|
+
/**
|
|
1639
|
+
* @minLength 1
|
|
1640
|
+
* @maxLength 50
|
|
1641
|
+
*/
|
|
1642
|
+
title: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* @minLength 1
|
|
1645
|
+
* @maxLength 2000
|
|
1646
|
+
*/
|
|
1647
|
+
promptText: string;
|
|
1648
|
+
},
|
|
1649
|
+
params: RequestParams = {},
|
|
1650
|
+
) =>
|
|
1651
|
+
this.request<
|
|
1652
|
+
{
|
|
1653
|
+
prompt: {
|
|
1654
|
+
id: string;
|
|
1655
|
+
agentId: string;
|
|
1656
|
+
title: string;
|
|
1657
|
+
promptText: string;
|
|
1658
|
+
};
|
|
1659
|
+
},
|
|
1660
|
+
any
|
|
1661
|
+
>({
|
|
1662
|
+
path: `/v1/internal/global-agent/${agentId}/suggested-prompts`,
|
|
1663
|
+
method: "POST",
|
|
1664
|
+
body: data,
|
|
1665
|
+
secure: true,
|
|
1666
|
+
type: ContentType.Json,
|
|
1667
|
+
format: "json",
|
|
1668
|
+
...params,
|
|
1669
|
+
}),
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* @description グローバルエージェントのおすすめの質問を更新する
|
|
1673
|
+
*
|
|
1674
|
+
* @tags internal, globalAgent, globalAgentSuggestedPrompt
|
|
1675
|
+
* @name UpdateGlobalAgentSuggestedPrompt
|
|
1676
|
+
* @summary updateGlobalAgentSuggestedPrompt
|
|
1677
|
+
* @request PUT:/v1/internal/global-agent/suggested-prompts/{id}
|
|
1678
|
+
* @secure
|
|
1679
|
+
*/
|
|
1680
|
+
updateGlobalAgentSuggestedPrompt: (
|
|
1681
|
+
id: string,
|
|
1682
|
+
data: {
|
|
1683
|
+
/**
|
|
1684
|
+
* @minLength 1
|
|
1685
|
+
* @maxLength 50
|
|
1686
|
+
*/
|
|
1687
|
+
title: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* @minLength 1
|
|
1690
|
+
* @maxLength 2000
|
|
1691
|
+
*/
|
|
1692
|
+
promptText: string;
|
|
1693
|
+
},
|
|
1694
|
+
params: RequestParams = {},
|
|
1695
|
+
) =>
|
|
1696
|
+
this.request<
|
|
1697
|
+
{
|
|
1698
|
+
prompt: {
|
|
1699
|
+
id: string;
|
|
1700
|
+
agentId: string;
|
|
1701
|
+
title: string;
|
|
1702
|
+
promptText: string;
|
|
1703
|
+
};
|
|
1704
|
+
},
|
|
1705
|
+
any
|
|
1706
|
+
>({
|
|
1707
|
+
path: `/v1/internal/global-agent/suggested-prompts/${id}`,
|
|
1708
|
+
method: "PUT",
|
|
1709
|
+
body: data,
|
|
1710
|
+
secure: true,
|
|
1711
|
+
type: ContentType.Json,
|
|
1712
|
+
format: "json",
|
|
1713
|
+
...params,
|
|
1714
|
+
}),
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* @description グローバルエージェントのおすすめの質問を削除する
|
|
1718
|
+
*
|
|
1719
|
+
* @tags internal, globalAgent, globalAgentSuggestedPrompt
|
|
1720
|
+
* @name DeleteGlobalAgentSuggestedPrompt
|
|
1721
|
+
* @summary deleteGlobalAgentSuggestedPrompt
|
|
1722
|
+
* @request DELETE:/v1/internal/global-agent/suggested-prompts/{id}
|
|
1723
|
+
* @secure
|
|
1724
|
+
*/
|
|
1725
|
+
deleteGlobalAgentSuggestedPrompt: (
|
|
1726
|
+
id: string,
|
|
1727
|
+
data?: object,
|
|
1728
|
+
params: RequestParams = {},
|
|
1729
|
+
) =>
|
|
1730
|
+
this.request<
|
|
1731
|
+
{
|
|
1732
|
+
success: boolean;
|
|
1733
|
+
},
|
|
1734
|
+
any
|
|
1735
|
+
>({
|
|
1736
|
+
path: `/v1/internal/global-agent/suggested-prompts/${id}`,
|
|
1737
|
+
method: "DELETE",
|
|
1738
|
+
body: data,
|
|
1739
|
+
secure: true,
|
|
1740
|
+
type: ContentType.Json,
|
|
1741
|
+
format: "json",
|
|
1742
|
+
...params,
|
|
1743
|
+
}),
|
|
1589
1744
|
};
|
|
1590
1745
|
internalChat = {
|
|
1591
1746
|
/**
|
|
@@ -1651,6 +1806,7 @@ export class Api<
|
|
|
1651
1806
|
title: string | null;
|
|
1652
1807
|
pinnedAt: string | null;
|
|
1653
1808
|
activeStreamId: string | null;
|
|
1809
|
+
isBenchmark: boolean;
|
|
1654
1810
|
/** @format date-time */
|
|
1655
1811
|
createdAt: string;
|
|
1656
1812
|
/** @format date-time */
|
|
@@ -1671,6 +1827,7 @@ export class Api<
|
|
|
1671
1827
|
agentConfigId: string;
|
|
1672
1828
|
/** @maxLength 50 */
|
|
1673
1829
|
role: string;
|
|
1830
|
+
appName: string | null;
|
|
1674
1831
|
parts:
|
|
1675
1832
|
| (string | number | boolean | null)
|
|
1676
1833
|
| Record<string, any>
|
|
@@ -2144,6 +2301,7 @@ export class Api<
|
|
|
2144
2301
|
generateImage?: boolean;
|
|
2145
2302
|
ecforceFaq?: boolean;
|
|
2146
2303
|
webSearch?: boolean;
|
|
2304
|
+
executeCode?: boolean;
|
|
2147
2305
|
};
|
|
2148
2306
|
interfaceFeatures: {
|
|
2149
2307
|
modelSelection?: boolean;
|
|
@@ -2328,6 +2486,7 @@ export class Api<
|
|
|
2328
2486
|
generateImage?: boolean;
|
|
2329
2487
|
ecforceFaq?: boolean;
|
|
2330
2488
|
webSearch?: boolean;
|
|
2489
|
+
executeCode?: boolean;
|
|
2331
2490
|
};
|
|
2332
2491
|
interfaceFeatures: {
|
|
2333
2492
|
modelSelection?: boolean;
|
|
@@ -2482,6 +2641,79 @@ export class Api<
|
|
|
2482
2641
|
...params,
|
|
2483
2642
|
}),
|
|
2484
2643
|
|
|
2644
|
+
/**
|
|
2645
|
+
* @description エージェントで利用可能なモデル名エイリアス一覧を取得する(公開)
|
|
2646
|
+
*
|
|
2647
|
+
* @tags agent
|
|
2648
|
+
* @name GetAvailableModels
|
|
2649
|
+
* @summary getAvailableModels
|
|
2650
|
+
* @request GET:/v1/agent/available-models
|
|
2651
|
+
* @secure
|
|
2652
|
+
*/
|
|
2653
|
+
getAvailableModels: (
|
|
2654
|
+
query?: {
|
|
2655
|
+
id?: string;
|
|
2656
|
+
},
|
|
2657
|
+
params: RequestParams = {},
|
|
2658
|
+
) =>
|
|
2659
|
+
this.request<
|
|
2660
|
+
{
|
|
2661
|
+
defaultModel:
|
|
2662
|
+
| "gpt-5.2-high"
|
|
2663
|
+
| "gpt-5.2"
|
|
2664
|
+
| "gpt-5.1-high"
|
|
2665
|
+
| "gpt-5.1"
|
|
2666
|
+
| "gpt-4.1-mini"
|
|
2667
|
+
| "gpt-4.1-nano"
|
|
2668
|
+
| "gemini-3.1-pro"
|
|
2669
|
+
| "gemini-3-flash"
|
|
2670
|
+
| "gemini-2.5-pro"
|
|
2671
|
+
| "gemini-2.5-flash"
|
|
2672
|
+
| "claude-opus-4-6-thinking"
|
|
2673
|
+
| "claude-opus-4-6"
|
|
2674
|
+
| "claude-opus-4-5-thinking"
|
|
2675
|
+
| "claude-opus-4-5"
|
|
2676
|
+
| "claude-sonnet-4-6-thinking"
|
|
2677
|
+
| "claude-sonnet-4-6"
|
|
2678
|
+
| "claude-sonnet-4-5-thinking"
|
|
2679
|
+
| "claude-sonnet-4-5"
|
|
2680
|
+
| "claude-haiku-4-5-thinking"
|
|
2681
|
+
| "claude-haiku-4-5";
|
|
2682
|
+
models: {
|
|
2683
|
+
key:
|
|
2684
|
+
| "gpt-5.2-high"
|
|
2685
|
+
| "gpt-5.2"
|
|
2686
|
+
| "gpt-5.1-high"
|
|
2687
|
+
| "gpt-5.1"
|
|
2688
|
+
| "gpt-4.1-mini"
|
|
2689
|
+
| "gpt-4.1-nano"
|
|
2690
|
+
| "gemini-3.1-pro"
|
|
2691
|
+
| "gemini-3-flash"
|
|
2692
|
+
| "gemini-2.5-pro"
|
|
2693
|
+
| "gemini-2.5-flash"
|
|
2694
|
+
| "claude-opus-4-6-thinking"
|
|
2695
|
+
| "claude-opus-4-6"
|
|
2696
|
+
| "claude-opus-4-5-thinking"
|
|
2697
|
+
| "claude-opus-4-5"
|
|
2698
|
+
| "claude-sonnet-4-6-thinking"
|
|
2699
|
+
| "claude-sonnet-4-6"
|
|
2700
|
+
| "claude-sonnet-4-5-thinking"
|
|
2701
|
+
| "claude-sonnet-4-5"
|
|
2702
|
+
| "claude-haiku-4-5-thinking"
|
|
2703
|
+
| "claude-haiku-4-5";
|
|
2704
|
+
label: string;
|
|
2705
|
+
}[];
|
|
2706
|
+
},
|
|
2707
|
+
any
|
|
2708
|
+
>({
|
|
2709
|
+
path: `/v1/agent/available-models`,
|
|
2710
|
+
method: "GET",
|
|
2711
|
+
query: query,
|
|
2712
|
+
secure: true,
|
|
2713
|
+
format: "json",
|
|
2714
|
+
...params,
|
|
2715
|
+
}),
|
|
2716
|
+
|
|
2485
2717
|
/**
|
|
2486
2718
|
* @description エージェントのツール設定を取得する(公開)
|
|
2487
2719
|
*
|
|
@@ -2507,6 +2739,10 @@ export class Api<
|
|
|
2507
2739
|
type?: "native" | "mcp" | "client";
|
|
2508
2740
|
group?: string;
|
|
2509
2741
|
summary?: string;
|
|
2742
|
+
disabled?: boolean;
|
|
2743
|
+
disabledReason?: string;
|
|
2744
|
+
executionDisabled?: boolean;
|
|
2745
|
+
executionDisabledReason?: string;
|
|
2510
2746
|
}
|
|
2511
2747
|
>,
|
|
2512
2748
|
any
|
|
@@ -2545,6 +2781,10 @@ export class Api<
|
|
|
2545
2781
|
type?: "native" | "mcp" | "client";
|
|
2546
2782
|
group?: string;
|
|
2547
2783
|
summary?: string;
|
|
2784
|
+
disabled?: boolean;
|
|
2785
|
+
disabledReason?: string;
|
|
2786
|
+
executionDisabled?: boolean;
|
|
2787
|
+
executionDisabledReason?: string;
|
|
2548
2788
|
}
|
|
2549
2789
|
>,
|
|
2550
2790
|
any
|
|
@@ -2557,6 +2797,46 @@ export class Api<
|
|
|
2557
2797
|
format: "json",
|
|
2558
2798
|
...params,
|
|
2559
2799
|
}),
|
|
2800
|
+
|
|
2801
|
+
/**
|
|
2802
|
+
* @description エージェントのおすすめの質問をランダム取得する(公開)
|
|
2803
|
+
*
|
|
2804
|
+
* @tags agent
|
|
2805
|
+
* @name GetRandomSuggestedPrompts
|
|
2806
|
+
* @summary getRandomSuggestedPrompts
|
|
2807
|
+
* @request GET:/v1/agent/random-suggested-prompts
|
|
2808
|
+
* @secure
|
|
2809
|
+
*/
|
|
2810
|
+
getRandomSuggestedPrompts: (
|
|
2811
|
+
query?: {
|
|
2812
|
+
agentId?: string;
|
|
2813
|
+
/**
|
|
2814
|
+
* @min 1
|
|
2815
|
+
* @max 50
|
|
2816
|
+
* @default 3
|
|
2817
|
+
*/
|
|
2818
|
+
count?: number;
|
|
2819
|
+
},
|
|
2820
|
+
params: RequestParams = {},
|
|
2821
|
+
) =>
|
|
2822
|
+
this.request<
|
|
2823
|
+
{
|
|
2824
|
+
prompts: {
|
|
2825
|
+
id: string;
|
|
2826
|
+
agentId: string;
|
|
2827
|
+
title: string;
|
|
2828
|
+
promptText: string;
|
|
2829
|
+
}[];
|
|
2830
|
+
},
|
|
2831
|
+
any
|
|
2832
|
+
>({
|
|
2833
|
+
path: `/v1/agent/random-suggested-prompts`,
|
|
2834
|
+
method: "GET",
|
|
2835
|
+
query: query,
|
|
2836
|
+
secure: true,
|
|
2837
|
+
format: "json",
|
|
2838
|
+
...params,
|
|
2839
|
+
}),
|
|
2560
2840
|
};
|
|
2561
2841
|
apiKeys = {
|
|
2562
2842
|
/**
|
|
@@ -2762,6 +3042,7 @@ export class Api<
|
|
|
2762
3042
|
agentConfigId: string;
|
|
2763
3043
|
/** @maxLength 50 */
|
|
2764
3044
|
role: string;
|
|
3045
|
+
appName: string | null;
|
|
2765
3046
|
parts:
|
|
2766
3047
|
| (string | number | boolean | null)
|
|
2767
3048
|
| Record<string, any>
|
|
@@ -2822,6 +3103,7 @@ export class Api<
|
|
|
2822
3103
|
title: string | null;
|
|
2823
3104
|
pinnedAt: string | null;
|
|
2824
3105
|
activeStreamId: string | null;
|
|
3106
|
+
isBenchmark: boolean;
|
|
2825
3107
|
/** @format date-time */
|
|
2826
3108
|
createdAt: string;
|
|
2827
3109
|
/** @format date-time */
|
|
@@ -3725,6 +4007,14 @@ export class Api<
|
|
|
3725
4007
|
id: string;
|
|
3726
4008
|
name: string;
|
|
3727
4009
|
promptText: string;
|
|
4010
|
+
attachments:
|
|
4011
|
+
| {
|
|
4012
|
+
url: string;
|
|
4013
|
+
type: "file";
|
|
4014
|
+
filename?: string;
|
|
4015
|
+
mediaType: string;
|
|
4016
|
+
}[]
|
|
4017
|
+
| null;
|
|
3728
4018
|
visibility: "personal" | "shared";
|
|
3729
4019
|
createdBy: string;
|
|
3730
4020
|
createdByUser: {
|
|
@@ -3767,6 +4057,12 @@ export class Api<
|
|
|
3767
4057
|
* @maxLength 2000
|
|
3768
4058
|
*/
|
|
3769
4059
|
promptText: string;
|
|
4060
|
+
attachments: {
|
|
4061
|
+
url: string;
|
|
4062
|
+
type: "file";
|
|
4063
|
+
filename?: string;
|
|
4064
|
+
mediaType: string;
|
|
4065
|
+
}[];
|
|
3770
4066
|
},
|
|
3771
4067
|
params: RequestParams = {},
|
|
3772
4068
|
) =>
|
|
@@ -3783,6 +4079,13 @@ export class Api<
|
|
|
3783
4079
|
name: string;
|
|
3784
4080
|
/** @maxLength 65535 */
|
|
3785
4081
|
promptText: string;
|
|
4082
|
+
attachments:
|
|
4083
|
+
| (
|
|
4084
|
+
| (string | number | boolean | null)
|
|
4085
|
+
| Record<string, any>
|
|
4086
|
+
| null[]
|
|
4087
|
+
)
|
|
4088
|
+
| null;
|
|
3786
4089
|
/** @format date-time */
|
|
3787
4090
|
createdAt: string;
|
|
3788
4091
|
/** @format date-time */
|
|
@@ -3829,6 +4132,14 @@ export class Api<
|
|
|
3829
4132
|
id: string;
|
|
3830
4133
|
name: string;
|
|
3831
4134
|
} | null;
|
|
4135
|
+
attachments:
|
|
4136
|
+
| {
|
|
4137
|
+
url: string;
|
|
4138
|
+
type: "file";
|
|
4139
|
+
filename?: string;
|
|
4140
|
+
mediaType: string;
|
|
4141
|
+
}[]
|
|
4142
|
+
| null;
|
|
3832
4143
|
},
|
|
3833
4144
|
any
|
|
3834
4145
|
>({
|
|
@@ -3862,6 +4173,12 @@ export class Api<
|
|
|
3862
4173
|
* @maxLength 2000
|
|
3863
4174
|
*/
|
|
3864
4175
|
promptText: string;
|
|
4176
|
+
attachments: {
|
|
4177
|
+
url: string;
|
|
4178
|
+
type: "file";
|
|
4179
|
+
filename?: string;
|
|
4180
|
+
mediaType: string;
|
|
4181
|
+
}[];
|
|
3865
4182
|
},
|
|
3866
4183
|
params: RequestParams = {},
|
|
3867
4184
|
) =>
|
|
@@ -3878,6 +4195,13 @@ export class Api<
|
|
|
3878
4195
|
name: string;
|
|
3879
4196
|
/** @maxLength 65535 */
|
|
3880
4197
|
promptText: string;
|
|
4198
|
+
attachments:
|
|
4199
|
+
| (
|
|
4200
|
+
| (string | number | boolean | null)
|
|
4201
|
+
| Record<string, any>
|
|
4202
|
+
| null[]
|
|
4203
|
+
)
|
|
4204
|
+
| null;
|
|
3881
4205
|
/** @format date-time */
|
|
3882
4206
|
createdAt: string;
|
|
3883
4207
|
/** @format date-time */
|
|
@@ -4003,6 +4327,7 @@ export class Api<
|
|
|
4003
4327
|
this.request<
|
|
4004
4328
|
{
|
|
4005
4329
|
totalUsedCredits: number;
|
|
4330
|
+
totalMessages: number;
|
|
4006
4331
|
creditLimit: number;
|
|
4007
4332
|
remainingCredits: number | null;
|
|
4008
4333
|
billingPeriod: string;
|
|
@@ -4126,6 +4451,42 @@ export class Api<
|
|
|
4126
4451
|
...params,
|
|
4127
4452
|
}),
|
|
4128
4453
|
|
|
4454
|
+
/**
|
|
4455
|
+
* @description 無償版向け機能制限の到達状態を取得する
|
|
4456
|
+
*
|
|
4457
|
+
* @tags usage
|
|
4458
|
+
* @name FeatureLimitStatus
|
|
4459
|
+
* @summary featureLimitStatus
|
|
4460
|
+
* @request POST:/v1/usage/feature-limit-status
|
|
4461
|
+
* @secure
|
|
4462
|
+
*/
|
|
4463
|
+
featureLimitStatus: (
|
|
4464
|
+
data: {
|
|
4465
|
+
counterKeys?: string[];
|
|
4466
|
+
},
|
|
4467
|
+
params: RequestParams = {},
|
|
4468
|
+
) =>
|
|
4469
|
+
this.request<
|
|
4470
|
+
Record<
|
|
4471
|
+
string,
|
|
4472
|
+
{
|
|
4473
|
+
limited: boolean;
|
|
4474
|
+
reached: boolean;
|
|
4475
|
+
used: number;
|
|
4476
|
+
limit: number | null;
|
|
4477
|
+
}
|
|
4478
|
+
>,
|
|
4479
|
+
any
|
|
4480
|
+
>({
|
|
4481
|
+
path: `/v1/usage/feature-limit-status`,
|
|
4482
|
+
method: "POST",
|
|
4483
|
+
body: data,
|
|
4484
|
+
secure: true,
|
|
4485
|
+
type: ContentType.Json,
|
|
4486
|
+
format: "json",
|
|
4487
|
+
...params,
|
|
4488
|
+
}),
|
|
4489
|
+
|
|
4129
4490
|
/**
|
|
4130
4491
|
* @description 利用金額の上限を設定する
|
|
4131
4492
|
*
|
|
@@ -4160,4 +4521,528 @@ export class Api<
|
|
|
4160
4521
|
...params,
|
|
4161
4522
|
}),
|
|
4162
4523
|
};
|
|
4524
|
+
benchmarks = {
|
|
4525
|
+
/**
|
|
4526
|
+
* @description ベンチマークの一覧を取得する
|
|
4527
|
+
*
|
|
4528
|
+
* @tags agentBenchmark
|
|
4529
|
+
* @name List
|
|
4530
|
+
* @summary list
|
|
4531
|
+
* @request GET:/v1/benchmarks
|
|
4532
|
+
* @secure
|
|
4533
|
+
*/
|
|
4534
|
+
list: (
|
|
4535
|
+
query?: {
|
|
4536
|
+
q?: string;
|
|
4537
|
+
/**
|
|
4538
|
+
* @min 1
|
|
4539
|
+
* @max 9007199254740991
|
|
4540
|
+
* @default 1
|
|
4541
|
+
*/
|
|
4542
|
+
page?: number;
|
|
4543
|
+
/**
|
|
4544
|
+
* @min 1
|
|
4545
|
+
* @max 100
|
|
4546
|
+
* @default 20
|
|
4547
|
+
*/
|
|
4548
|
+
pageSize?: number;
|
|
4549
|
+
},
|
|
4550
|
+
params: RequestParams = {},
|
|
4551
|
+
) =>
|
|
4552
|
+
this.request<
|
|
4553
|
+
{
|
|
4554
|
+
items: {
|
|
4555
|
+
/** @maxLength 30 */
|
|
4556
|
+
id: string;
|
|
4557
|
+
/** @maxLength 255 */
|
|
4558
|
+
name: string;
|
|
4559
|
+
description: string | null;
|
|
4560
|
+
/** @maxLength 30 */
|
|
4561
|
+
authorId: string;
|
|
4562
|
+
/** @format date-time */
|
|
4563
|
+
createdAt: string;
|
|
4564
|
+
/** @format date-time */
|
|
4565
|
+
updatedAt: string;
|
|
4566
|
+
evaluationMetrics: Record<string, boolean>;
|
|
4567
|
+
author: {
|
|
4568
|
+
id: string;
|
|
4569
|
+
name: string | null;
|
|
4570
|
+
email: string;
|
|
4571
|
+
} | null;
|
|
4572
|
+
itemCount: number;
|
|
4573
|
+
}[];
|
|
4574
|
+
pagination: {
|
|
4575
|
+
page: number;
|
|
4576
|
+
pageSize: number;
|
|
4577
|
+
totalCount: number;
|
|
4578
|
+
totalPages: number;
|
|
4579
|
+
};
|
|
4580
|
+
},
|
|
4581
|
+
any
|
|
4582
|
+
>({
|
|
4583
|
+
path: `/v1/benchmarks`,
|
|
4584
|
+
method: "GET",
|
|
4585
|
+
query: query,
|
|
4586
|
+
secure: true,
|
|
4587
|
+
format: "json",
|
|
4588
|
+
...params,
|
|
4589
|
+
}),
|
|
4590
|
+
|
|
4591
|
+
/**
|
|
4592
|
+
* @description ベンチマークを作成する
|
|
4593
|
+
*
|
|
4594
|
+
* @tags agentBenchmark
|
|
4595
|
+
* @name Create
|
|
4596
|
+
* @summary create
|
|
4597
|
+
* @request POST:/v1/benchmarks
|
|
4598
|
+
* @secure
|
|
4599
|
+
*/
|
|
4600
|
+
create: (
|
|
4601
|
+
data: {
|
|
4602
|
+
name: string;
|
|
4603
|
+
description?: string;
|
|
4604
|
+
/** @default {} */
|
|
4605
|
+
evaluationMetrics?: Record<string, boolean>;
|
|
4606
|
+
/** @maxItems 50 */
|
|
4607
|
+
items: {
|
|
4608
|
+
id: string;
|
|
4609
|
+
input: {
|
|
4610
|
+
user: string;
|
|
4611
|
+
};
|
|
4612
|
+
/** @minLength 1 */
|
|
4613
|
+
expectedOutput: string;
|
|
4614
|
+
metadata?: Record<string, any>;
|
|
4615
|
+
}[];
|
|
4616
|
+
},
|
|
4617
|
+
params: RequestParams = {},
|
|
4618
|
+
) =>
|
|
4619
|
+
this.request<
|
|
4620
|
+
{
|
|
4621
|
+
id: string;
|
|
4622
|
+
datasetItemNumber: number;
|
|
4623
|
+
},
|
|
4624
|
+
any
|
|
4625
|
+
>({
|
|
4626
|
+
path: `/v1/benchmarks`,
|
|
4627
|
+
method: "POST",
|
|
4628
|
+
body: data,
|
|
4629
|
+
secure: true,
|
|
4630
|
+
type: ContentType.Json,
|
|
4631
|
+
format: "json",
|
|
4632
|
+
...params,
|
|
4633
|
+
}),
|
|
4634
|
+
|
|
4635
|
+
/**
|
|
4636
|
+
* @description ベンチマークアイテムを作成する
|
|
4637
|
+
*
|
|
4638
|
+
* @tags agentBenchmark
|
|
4639
|
+
* @name CreateItem
|
|
4640
|
+
* @summary createItem
|
|
4641
|
+
* @request POST:/v1/benchmarks/{datasetId}/items
|
|
4642
|
+
* @secure
|
|
4643
|
+
*/
|
|
4644
|
+
createItem: (
|
|
4645
|
+
datasetId: string,
|
|
4646
|
+
data: {
|
|
4647
|
+
/** @minLength 1 */
|
|
4648
|
+
input: string;
|
|
4649
|
+
/** @minLength 1 */
|
|
4650
|
+
expectedOutput: string;
|
|
4651
|
+
memo?: string;
|
|
4652
|
+
},
|
|
4653
|
+
params: RequestParams = {},
|
|
4654
|
+
) =>
|
|
4655
|
+
this.request<
|
|
4656
|
+
{
|
|
4657
|
+
/** @maxLength 30 */
|
|
4658
|
+
id: string;
|
|
4659
|
+
/** @maxLength 30 */
|
|
4660
|
+
datasetId: string;
|
|
4661
|
+
/** @maxLength 65535 */
|
|
4662
|
+
input: string;
|
|
4663
|
+
/** @maxLength 65535 */
|
|
4664
|
+
expectedOutput: string;
|
|
4665
|
+
memo: string | null;
|
|
4666
|
+
/**
|
|
4667
|
+
* @min -2147483648
|
|
4668
|
+
* @max 2147483647
|
|
4669
|
+
*/
|
|
4670
|
+
sortOrder: number;
|
|
4671
|
+
/** @format date-time */
|
|
4672
|
+
createdAt: string;
|
|
4673
|
+
/** @format date-time */
|
|
4674
|
+
updatedAt: string;
|
|
4675
|
+
deletedAt: string | null;
|
|
4676
|
+
deletedBy: string | null;
|
|
4677
|
+
},
|
|
4678
|
+
any
|
|
4679
|
+
>({
|
|
4680
|
+
path: `/v1/benchmarks/${datasetId}/items`,
|
|
4681
|
+
method: "POST",
|
|
4682
|
+
body: data,
|
|
4683
|
+
secure: true,
|
|
4684
|
+
type: ContentType.Json,
|
|
4685
|
+
format: "json",
|
|
4686
|
+
...params,
|
|
4687
|
+
}),
|
|
4688
|
+
|
|
4689
|
+
/**
|
|
4690
|
+
* @description ベンチマークのアイテム一覧を取得する
|
|
4691
|
+
*
|
|
4692
|
+
* @tags agentBenchmark
|
|
4693
|
+
* @name ListItems
|
|
4694
|
+
* @summary listItems
|
|
4695
|
+
* @request GET:/v1/benchmarks/{datasetId}/items
|
|
4696
|
+
* @secure
|
|
4697
|
+
*/
|
|
4698
|
+
listItems: (
|
|
4699
|
+
datasetId: string,
|
|
4700
|
+
query?: {
|
|
4701
|
+
/**
|
|
4702
|
+
* @min 1
|
|
4703
|
+
* @max 9007199254740991
|
|
4704
|
+
* @default 1
|
|
4705
|
+
*/
|
|
4706
|
+
page?: number;
|
|
4707
|
+
/**
|
|
4708
|
+
* @min 1
|
|
4709
|
+
* @max 200
|
|
4710
|
+
* @default 50
|
|
4711
|
+
*/
|
|
4712
|
+
pageSize?: number;
|
|
4713
|
+
},
|
|
4714
|
+
params: RequestParams = {},
|
|
4715
|
+
) =>
|
|
4716
|
+
this.request<
|
|
4717
|
+
{
|
|
4718
|
+
items: {
|
|
4719
|
+
/** @maxLength 30 */
|
|
4720
|
+
id: string;
|
|
4721
|
+
/** @maxLength 30 */
|
|
4722
|
+
datasetId: string;
|
|
4723
|
+
/** @maxLength 65535 */
|
|
4724
|
+
input: string;
|
|
4725
|
+
/** @maxLength 65535 */
|
|
4726
|
+
expectedOutput: string;
|
|
4727
|
+
memo: string | null;
|
|
4728
|
+
/**
|
|
4729
|
+
* @min -2147483648
|
|
4730
|
+
* @max 2147483647
|
|
4731
|
+
*/
|
|
4732
|
+
sortOrder: number;
|
|
4733
|
+
/** @format date-time */
|
|
4734
|
+
createdAt: string;
|
|
4735
|
+
/** @format date-time */
|
|
4736
|
+
updatedAt: string;
|
|
4737
|
+
deletedAt: string | null;
|
|
4738
|
+
deletedBy: string | null;
|
|
4739
|
+
}[];
|
|
4740
|
+
pagination: {
|
|
4741
|
+
page: number;
|
|
4742
|
+
pageSize: number;
|
|
4743
|
+
totalCount: number;
|
|
4744
|
+
totalPages: number;
|
|
4745
|
+
};
|
|
4746
|
+
},
|
|
4747
|
+
any
|
|
4748
|
+
>({
|
|
4749
|
+
path: `/v1/benchmarks/${datasetId}/items`,
|
|
4750
|
+
method: "GET",
|
|
4751
|
+
query: query,
|
|
4752
|
+
secure: true,
|
|
4753
|
+
format: "json",
|
|
4754
|
+
...params,
|
|
4755
|
+
}),
|
|
4756
|
+
|
|
4757
|
+
/**
|
|
4758
|
+
* @description ベンチマーク実行レコードを作成し、サーバー側でチャット+評価を非同期並列実行する
|
|
4759
|
+
*
|
|
4760
|
+
* @tags agentBenchmark
|
|
4761
|
+
* @name ExecuteRun
|
|
4762
|
+
* @summary executeRun
|
|
4763
|
+
* @request POST:/v1/benchmarks/{datasetId}/execute
|
|
4764
|
+
* @secure
|
|
4765
|
+
*/
|
|
4766
|
+
executeRun: (
|
|
4767
|
+
datasetId: string,
|
|
4768
|
+
data: {
|
|
4769
|
+
/** @minLength 1 */
|
|
4770
|
+
agentId: string;
|
|
4771
|
+
modelOverride?: string;
|
|
4772
|
+
},
|
|
4773
|
+
params: RequestParams = {},
|
|
4774
|
+
) =>
|
|
4775
|
+
this.request<
|
|
4776
|
+
{
|
|
4777
|
+
runId: string;
|
|
4778
|
+
},
|
|
4779
|
+
any
|
|
4780
|
+
>({
|
|
4781
|
+
path: `/v1/benchmarks/${datasetId}/execute`,
|
|
4782
|
+
method: "POST",
|
|
4783
|
+
body: data,
|
|
4784
|
+
secure: true,
|
|
4785
|
+
type: ContentType.Json,
|
|
4786
|
+
format: "json",
|
|
4787
|
+
...params,
|
|
4788
|
+
}),
|
|
4789
|
+
|
|
4790
|
+
/**
|
|
4791
|
+
* @description ベンチマーク実行の詳細を取得する
|
|
4792
|
+
*
|
|
4793
|
+
* @tags agentBenchmark
|
|
4794
|
+
* @name GetRun
|
|
4795
|
+
* @summary getRun
|
|
4796
|
+
* @request GET:/v1/benchmarks/runs/{runId}
|
|
4797
|
+
* @secure
|
|
4798
|
+
*/
|
|
4799
|
+
getRun: (runId: string, params: RequestParams = {}) =>
|
|
4800
|
+
this.request<
|
|
4801
|
+
{
|
|
4802
|
+
id: string;
|
|
4803
|
+
status: string;
|
|
4804
|
+
startedAt: string | null;
|
|
4805
|
+
completedAt: string | null;
|
|
4806
|
+
/** @format date-time */
|
|
4807
|
+
createdAt: string;
|
|
4808
|
+
averageScore: number | null;
|
|
4809
|
+
model: string | null;
|
|
4810
|
+
agentName: string | null;
|
|
4811
|
+
authorName: string | null;
|
|
4812
|
+
systemPrompt: string | null;
|
|
4813
|
+
dataset: {
|
|
4814
|
+
id: string;
|
|
4815
|
+
name: string;
|
|
4816
|
+
description: string | null;
|
|
4817
|
+
evaluationMetrics: Record<string, boolean>;
|
|
4818
|
+
};
|
|
4819
|
+
items: {
|
|
4820
|
+
id: string;
|
|
4821
|
+
status: string;
|
|
4822
|
+
chatId: string | null;
|
|
4823
|
+
actualOutput: string | null;
|
|
4824
|
+
scores: Record<string, number>;
|
|
4825
|
+
overallScore: number | null;
|
|
4826
|
+
cost: number | null;
|
|
4827
|
+
wallTimeMs: number | null;
|
|
4828
|
+
datasetItemId: string;
|
|
4829
|
+
input: string;
|
|
4830
|
+
expectedOutput: string | null;
|
|
4831
|
+
}[];
|
|
4832
|
+
},
|
|
4833
|
+
any
|
|
4834
|
+
>({
|
|
4835
|
+
path: `/v1/benchmarks/runs/${runId}`,
|
|
4836
|
+
method: "GET",
|
|
4837
|
+
secure: true,
|
|
4838
|
+
format: "json",
|
|
4839
|
+
...params,
|
|
4840
|
+
}),
|
|
4841
|
+
|
|
4842
|
+
/**
|
|
4843
|
+
* @description ベンチマークアイテムを削除する
|
|
4844
|
+
*
|
|
4845
|
+
* @tags agentBenchmark
|
|
4846
|
+
* @name DeleteItem
|
|
4847
|
+
* @summary deleteItem
|
|
4848
|
+
* @request DELETE:/v1/benchmarks/{datasetId}/items/{itemId}
|
|
4849
|
+
* @secure
|
|
4850
|
+
*/
|
|
4851
|
+
deleteItem: (
|
|
4852
|
+
datasetId: string,
|
|
4853
|
+
itemId: string,
|
|
4854
|
+
data?: object,
|
|
4855
|
+
params: RequestParams = {},
|
|
4856
|
+
) =>
|
|
4857
|
+
this.request<
|
|
4858
|
+
{
|
|
4859
|
+
id: string;
|
|
4860
|
+
},
|
|
4861
|
+
any
|
|
4862
|
+
>({
|
|
4863
|
+
path: `/v1/benchmarks/${datasetId}/items/${itemId}`,
|
|
4864
|
+
method: "DELETE",
|
|
4865
|
+
body: data,
|
|
4866
|
+
secure: true,
|
|
4867
|
+
type: ContentType.Json,
|
|
4868
|
+
format: "json",
|
|
4869
|
+
...params,
|
|
4870
|
+
}),
|
|
4871
|
+
|
|
4872
|
+
/**
|
|
4873
|
+
* @description ベンチマークのアイテムを更新する
|
|
4874
|
+
*
|
|
4875
|
+
* @tags agentBenchmark
|
|
4876
|
+
* @name UpdateItem
|
|
4877
|
+
* @summary updateItem
|
|
4878
|
+
* @request PATCH:/v1/benchmarks/{datasetId}/items/{itemId}
|
|
4879
|
+
* @secure
|
|
4880
|
+
*/
|
|
4881
|
+
updateItem: (
|
|
4882
|
+
datasetId: string,
|
|
4883
|
+
itemId: string,
|
|
4884
|
+
data: {
|
|
4885
|
+
memo?: string;
|
|
4886
|
+
items: {
|
|
4887
|
+
id: string;
|
|
4888
|
+
input: {
|
|
4889
|
+
user: string;
|
|
4890
|
+
};
|
|
4891
|
+
expectedOutput: string;
|
|
4892
|
+
metadata?: Record<string, any>;
|
|
4893
|
+
};
|
|
4894
|
+
},
|
|
4895
|
+
params: RequestParams = {},
|
|
4896
|
+
) =>
|
|
4897
|
+
this.request<
|
|
4898
|
+
{
|
|
4899
|
+
id: string;
|
|
4900
|
+
input: string;
|
|
4901
|
+
expectedOutput: string | null;
|
|
4902
|
+
updatedAt: string | null;
|
|
4903
|
+
/** @format date-time */
|
|
4904
|
+
createdAt: string;
|
|
4905
|
+
},
|
|
4906
|
+
any
|
|
4907
|
+
>({
|
|
4908
|
+
path: `/v1/benchmarks/${datasetId}/items/${itemId}`,
|
|
4909
|
+
method: "PATCH",
|
|
4910
|
+
body: data,
|
|
4911
|
+
secure: true,
|
|
4912
|
+
type: ContentType.Json,
|
|
4913
|
+
format: "json",
|
|
4914
|
+
...params,
|
|
4915
|
+
}),
|
|
4916
|
+
|
|
4917
|
+
/**
|
|
4918
|
+
* @description ベンチマークのメタデータを更新する
|
|
4919
|
+
*
|
|
4920
|
+
* @tags agentBenchmark
|
|
4921
|
+
* @name UpdateMetadata
|
|
4922
|
+
* @summary updateMetadata
|
|
4923
|
+
* @request PATCH:/v1/benchmarks/{id}
|
|
4924
|
+
* @secure
|
|
4925
|
+
*/
|
|
4926
|
+
updateMetadata: (
|
|
4927
|
+
id: string,
|
|
4928
|
+
data?: {
|
|
4929
|
+
/** @minLength 1 */
|
|
4930
|
+
name?: string;
|
|
4931
|
+
description?: string;
|
|
4932
|
+
evaluationMetrics?: Record<string, boolean>;
|
|
4933
|
+
},
|
|
4934
|
+
params: RequestParams = {},
|
|
4935
|
+
) =>
|
|
4936
|
+
this.request<
|
|
4937
|
+
{
|
|
4938
|
+
id: string;
|
|
4939
|
+
name: string;
|
|
4940
|
+
updatedAt: string | null;
|
|
4941
|
+
/** @format date-time */
|
|
4942
|
+
createdAt: string;
|
|
4943
|
+
createdByUser: {
|
|
4944
|
+
/** @maxLength 30 */
|
|
4945
|
+
id: string;
|
|
4946
|
+
/** @maxLength 255 */
|
|
4947
|
+
name: string;
|
|
4948
|
+
/** @maxLength 255 */
|
|
4949
|
+
email: string;
|
|
4950
|
+
} | null;
|
|
4951
|
+
updatedByUser: {
|
|
4952
|
+
/** @maxLength 30 */
|
|
4953
|
+
id: string;
|
|
4954
|
+
/** @maxLength 255 */
|
|
4955
|
+
name: string;
|
|
4956
|
+
/** @maxLength 255 */
|
|
4957
|
+
email: string;
|
|
4958
|
+
} | null;
|
|
4959
|
+
},
|
|
4960
|
+
any
|
|
4961
|
+
>({
|
|
4962
|
+
path: `/v1/benchmarks/${id}`,
|
|
4963
|
+
method: "PATCH",
|
|
4964
|
+
body: data,
|
|
4965
|
+
secure: true,
|
|
4966
|
+
type: ContentType.Json,
|
|
4967
|
+
format: "json",
|
|
4968
|
+
...params,
|
|
4969
|
+
}),
|
|
4970
|
+
|
|
4971
|
+
/**
|
|
4972
|
+
* @description ベンチマークの実行履歴一覧を取得する
|
|
4973
|
+
*
|
|
4974
|
+
* @tags agentBenchmark
|
|
4975
|
+
* @name ListRuns
|
|
4976
|
+
* @summary listRuns
|
|
4977
|
+
* @request GET:/v1/benchmarks/runs
|
|
4978
|
+
* @secure
|
|
4979
|
+
*/
|
|
4980
|
+
listRuns: (
|
|
4981
|
+
query?: {
|
|
4982
|
+
/** @minLength 1 */
|
|
4983
|
+
datasetId?: string;
|
|
4984
|
+
/**
|
|
4985
|
+
* @min 1
|
|
4986
|
+
* @max 9007199254740991
|
|
4987
|
+
* @default 1
|
|
4988
|
+
*/
|
|
4989
|
+
page?: number;
|
|
4990
|
+
/**
|
|
4991
|
+
* @min 1
|
|
4992
|
+
* @max 100
|
|
4993
|
+
* @default 20
|
|
4994
|
+
*/
|
|
4995
|
+
pageSize?: number;
|
|
4996
|
+
},
|
|
4997
|
+
params: RequestParams = {},
|
|
4998
|
+
) =>
|
|
4999
|
+
this.request<
|
|
5000
|
+
{
|
|
5001
|
+
items: {
|
|
5002
|
+
/** @maxLength 30 */
|
|
5003
|
+
id: string;
|
|
5004
|
+
/** @maxLength 30 */
|
|
5005
|
+
datasetVersionId: string;
|
|
5006
|
+
/** @maxLength 30 */
|
|
5007
|
+
datasetId: string;
|
|
5008
|
+
model: string | null;
|
|
5009
|
+
agentId: string | null;
|
|
5010
|
+
agentConfigId: string | null;
|
|
5011
|
+
/** @maxLength 20 */
|
|
5012
|
+
status: string;
|
|
5013
|
+
startedAt: string | null;
|
|
5014
|
+
completedAt: string | null;
|
|
5015
|
+
averageScore: number | null;
|
|
5016
|
+
/** @format date-time */
|
|
5017
|
+
createdAt: string;
|
|
5018
|
+
/** @format date-time */
|
|
5019
|
+
updatedAt: string;
|
|
5020
|
+
createdBy: string | null;
|
|
5021
|
+
updatedBy: string | null;
|
|
5022
|
+
agentName: string | null;
|
|
5023
|
+
agentModel: string | null;
|
|
5024
|
+
datasetName: string;
|
|
5025
|
+
itemCount: number;
|
|
5026
|
+
completedItemCount: number;
|
|
5027
|
+
authorName: string | null;
|
|
5028
|
+
totalCost: number | null;
|
|
5029
|
+
averageLatencyMs: number | null;
|
|
5030
|
+
}[];
|
|
5031
|
+
pagination: {
|
|
5032
|
+
page: number;
|
|
5033
|
+
pageSize: number;
|
|
5034
|
+
totalCount: number;
|
|
5035
|
+
totalPages: number;
|
|
5036
|
+
};
|
|
5037
|
+
},
|
|
5038
|
+
any
|
|
5039
|
+
>({
|
|
5040
|
+
path: `/v1/benchmarks/runs`,
|
|
5041
|
+
method: "GET",
|
|
5042
|
+
query: query,
|
|
5043
|
+
secure: true,
|
|
5044
|
+
format: "json",
|
|
5045
|
+
...params,
|
|
5046
|
+
}),
|
|
5047
|
+
};
|
|
4163
5048
|
}
|