scorecard-ai 0.6.0 → 0.6.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/README.md +9 -9
- package/api/resources/prompt/client/Client.d.ts +27 -8
- package/api/resources/prompt/client/Client.js +126 -15
- package/api/resources/prompt/client/requests/PromptCreateParams.d.ts +8 -2
- package/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +4 -0
- package/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +21 -0
- package/api/resources/prompt/client/requests/PromptListPromptsRequest.js +5 -0
- package/api/resources/prompt/client/requests/index.d.ts +1 -0
- package/api/resources/run/client/Client.js +3 -3
- package/api/resources/runMetric/client/Client.js +1 -1
- package/api/resources/score/client/Client.js +2 -2
- package/api/resources/scoringConfig/client/Client.d.ts +17 -1
- package/api/resources/scoringConfig/client/Client.js +90 -3
- package/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +3 -1
- package/api/resources/testcase/client/Client.d.ts +1 -1
- package/api/resources/testcase/client/Client.js +7 -7
- package/api/resources/testrecord/client/Client.js +2 -2
- package/api/resources/testset/client/Client.d.ts +4 -4
- package/api/resources/testset/client/Client.js +21 -12
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -0
- package/api/resources/testset/client/requests/TestsetGetRequest.d.ts +11 -0
- package/api/resources/testset/client/requests/TestsetGetRequest.js +5 -0
- package/api/resources/testset/client/requests/index.d.ts +1 -0
- package/api/resources/tracing/client/Client.js +3 -3
- package/api/types/Prompt.d.ts +2 -0
- package/api/types/PromptCursorPage.d.ts +17 -0
- package/api/types/PromptCursorPage.js +5 -0
- package/api/types/ScoringConfig.d.ts +2 -0
- package/api/types/Testset.d.ts +2 -0
- package/api/types/TestsetCursorPage.d.ts +17 -0
- package/api/types/TestsetCursorPage.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/prompt/client/Client.d.ts +27 -8
- package/dist/api/resources/prompt/client/Client.js +126 -15
- package/dist/api/resources/prompt/client/requests/PromptCreateParams.d.ts +8 -2
- package/dist/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +4 -0
- package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +21 -0
- package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.js +5 -0
- package/dist/api/resources/prompt/client/requests/index.d.ts +1 -0
- package/dist/api/resources/run/client/Client.js +3 -3
- package/dist/api/resources/runMetric/client/Client.js +1 -1
- package/dist/api/resources/score/client/Client.js +2 -2
- package/dist/api/resources/scoringConfig/client/Client.d.ts +17 -1
- package/dist/api/resources/scoringConfig/client/Client.js +90 -3
- package/dist/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +3 -1
- package/dist/api/resources/testcase/client/Client.d.ts +1 -1
- package/dist/api/resources/testcase/client/Client.js +7 -7
- package/dist/api/resources/testrecord/client/Client.js +2 -2
- package/dist/api/resources/testset/client/Client.d.ts +4 -4
- package/dist/api/resources/testset/client/Client.js +21 -12
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -0
- package/dist/api/resources/testset/client/requests/TestsetGetRequest.d.ts +11 -0
- package/dist/api/resources/testset/client/requests/TestsetGetRequest.js +5 -0
- package/dist/api/resources/testset/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tracing/client/Client.js +3 -3
- package/dist/api/types/Prompt.d.ts +2 -0
- package/dist/api/types/PromptCursorPage.d.ts +17 -0
- package/dist/api/types/PromptCursorPage.js +5 -0
- package/dist/api/types/ScoringConfig.d.ts +2 -0
- package/dist/api/types/Testset.d.ts +2 -0
- package/dist/api/types/TestsetCursorPage.d.ts +17 -0
- package/dist/api/types/TestsetCursorPage.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +2 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.js +2 -0
- package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +1 -0
- package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +1 -0
- package/dist/serialization/resources/testcase/client/batchCopy.d.ts +11 -0
- package/dist/serialization/resources/testcase/client/batchCopy.js +32 -0
- package/dist/serialization/resources/testcase/client/index.d.ts +1 -0
- package/dist/serialization/resources/testcase/client/index.js +14 -0
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -0
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +1 -0
- package/dist/serialization/types/Prompt.d.ts +1 -0
- package/dist/serialization/types/Prompt.js +1 -0
- package/dist/serialization/types/PromptCursorPage.d.ts +18 -0
- package/dist/serialization/types/PromptCursorPage.js +39 -0
- package/dist/serialization/types/ScoringConfig.d.ts +1 -0
- package/dist/serialization/types/ScoringConfig.js +1 -0
- package/dist/serialization/types/Testset.d.ts +1 -0
- package/dist/serialization/types/Testset.js +1 -0
- package/dist/serialization/types/TestsetCursorPage.d.ts +18 -0
- package/dist/serialization/types/TestsetCursorPage.js +39 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/package.json +1 -1
- package/reference.md +140 -11
- package/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +2 -0
- package/serialization/resources/prompt/client/requests/PromptCreateParams.js +2 -0
- package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +1 -0
- package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +1 -0
- package/serialization/resources/testcase/client/batchCopy.d.ts +11 -0
- package/serialization/resources/testcase/client/batchCopy.js +32 -0
- package/serialization/resources/testcase/client/index.d.ts +1 -0
- package/serialization/resources/testcase/client/index.js +14 -0
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -0
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +1 -0
- package/serialization/types/Prompt.d.ts +1 -0
- package/serialization/types/Prompt.js +1 -0
- package/serialization/types/PromptCursorPage.d.ts +18 -0
- package/serialization/types/PromptCursorPage.js +39 -0
- package/serialization/types/ScoringConfig.d.ts +1 -0
- package/serialization/types/ScoringConfig.js +1 -0
- package/serialization/types/Testset.d.ts +1 -0
- package/serialization/types/Testset.js +1 -0
- package/serialization/types/TestsetCursorPage.d.ts +18 -0
- package/serialization/types/TestsetCursorPage.js +39 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
|
@@ -12,6 +12,7 @@ export * from "./NotFoundErrorBody";
|
|
|
12
12
|
export * from "./PaginatedTestcaseResponse";
|
|
13
13
|
export * from "./PromptModelParamsValue";
|
|
14
14
|
export * from "./Prompt";
|
|
15
|
+
export * from "./PromptCursorPage";
|
|
15
16
|
export * from "./RoleEnum";
|
|
16
17
|
export * from "./Run";
|
|
17
18
|
export * from "./RunMetric";
|
|
@@ -31,6 +32,7 @@ export * from "./TestrecordModelParamsValue";
|
|
|
31
32
|
export * from "./TestrecordModelDebugInfoValue";
|
|
32
33
|
export * from "./Testrecord";
|
|
33
34
|
export * from "./Testset";
|
|
35
|
+
export * from "./TestsetCursorPage";
|
|
34
36
|
export * from "./Trace";
|
|
35
37
|
export * from "./UnauthenticatedError";
|
|
36
38
|
export * from "./UnauthorizedErrorBody";
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
28
28
|
__exportStar(require("./PaginatedTestcaseResponse"), exports);
|
|
29
29
|
__exportStar(require("./PromptModelParamsValue"), exports);
|
|
30
30
|
__exportStar(require("./Prompt"), exports);
|
|
31
|
+
__exportStar(require("./PromptCursorPage"), exports);
|
|
31
32
|
__exportStar(require("./RoleEnum"), exports);
|
|
32
33
|
__exportStar(require("./Run"), exports);
|
|
33
34
|
__exportStar(require("./RunMetric"), exports);
|
|
@@ -47,6 +48,7 @@ __exportStar(require("./TestrecordModelParamsValue"), exports);
|
|
|
47
48
|
__exportStar(require("./TestrecordModelDebugInfoValue"), exports);
|
|
48
49
|
__exportStar(require("./Testrecord"), exports);
|
|
49
50
|
__exportStar(require("./Testset"), exports);
|
|
51
|
+
__exportStar(require("./TestsetCursorPage"), exports);
|
|
50
52
|
__exportStar(require("./Trace"), exports);
|
|
51
53
|
__exportStar(require("./UnauthenticatedError"), exports);
|
|
52
54
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Testset
|
|
4
4
|
|
|
5
|
-
<details><summary><code>client.testset.<a href="/src/api/resources/testset/client/Client.ts">get</a>(
|
|
5
|
+
<details><summary><code>client.testset.<a href="/src/api/resources/testset/client/Client.ts">get</a>({ ...params }) -> Scorecard.TestsetCursorPage</code></summary>
|
|
6
6
|
<dl>
|
|
7
7
|
<dd>
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<dl>
|
|
15
15
|
<dd>
|
|
16
16
|
|
|
17
|
-
Retrieve
|
|
17
|
+
Retrieve all Testsets with cursor-based pagination
|
|
18
18
|
|
|
19
19
|
</dd>
|
|
20
20
|
</dl>
|
|
@@ -30,7 +30,7 @@ Retrieve Testset metadata without Testcase data
|
|
|
30
30
|
<dd>
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
await client.testset.get(
|
|
33
|
+
await client.testset.get();
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
</dd>
|
|
@@ -46,7 +46,7 @@ await client.testset.get(1);
|
|
|
46
46
|
<dl>
|
|
47
47
|
<dd>
|
|
48
48
|
|
|
49
|
-
**
|
|
49
|
+
**request:** `Scorecard.TestsetGetRequest`
|
|
50
50
|
|
|
51
51
|
</dd>
|
|
52
52
|
</dl>
|
|
@@ -692,7 +692,7 @@ await client.testcase.update(1, 1);
|
|
|
692
692
|
</dl>
|
|
693
693
|
</details>
|
|
694
694
|
|
|
695
|
-
<details><summary><code>client.testcase.<a href="/src/api/resources/testcase/client/Client.ts">batchCopy</a>(testsetId, { ...params }) -> Scorecard.TestCase</code></summary>
|
|
695
|
+
<details><summary><code>client.testcase.<a href="/src/api/resources/testcase/client/Client.ts">batchCopy</a>(testsetId, { ...params }) -> Scorecard.TestCase[]</code></summary>
|
|
696
696
|
<dl>
|
|
697
697
|
<dd>
|
|
698
698
|
|
|
@@ -1617,7 +1617,7 @@ await client.tracing.span("trace_id", "span_id");
|
|
|
1617
1617
|
<dl>
|
|
1618
1618
|
<dd>
|
|
1619
1619
|
|
|
1620
|
-
Retrieve a
|
|
1620
|
+
Retrieve a prompt by name, defaulting to the production prompt, unless a tag to select the prompt by is specified
|
|
1621
1621
|
|
|
1622
1622
|
</dd>
|
|
1623
1623
|
</dl>
|
|
@@ -1682,11 +1682,11 @@ await client.prompt.getByName({
|
|
|
1682
1682
|
<dl>
|
|
1683
1683
|
<dd>
|
|
1684
1684
|
|
|
1685
|
-
Two types of prompts can be created - a root prompt or a child prompt (aka Prompt Version in app).
|
|
1685
|
+
Two types of prompts can be created - a root prompt or a child prompt (aka Prompt Version in the app).
|
|
1686
1686
|
|
|
1687
|
-
A root prompt can be created by providing the `name` param, and it will always be tagged as
|
|
1687
|
+
A root prompt can be created by providing the `name` param, and it will always be tagged as production.
|
|
1688
1688
|
|
|
1689
|
-
A child prompt can be created by providing the `parent_id` param. Note that the `name` param in this case will be ignored as all
|
|
1689
|
+
A child prompt can be created by providing the `parent_id` param. Note that the `name` param in this case will be ignored as all descendants from a root prompt would share the root's name. `is_prod` can also be provided to configure whether a child should be tagged as production.
|
|
1690
1690
|
|
|
1691
1691
|
</dd>
|
|
1692
1692
|
</dl>
|
|
@@ -1713,6 +1713,8 @@ await client.prompt.create({
|
|
|
1713
1713
|
param3: 100,
|
|
1714
1714
|
param4: true,
|
|
1715
1715
|
},
|
|
1716
|
+
tag: "1.0",
|
|
1717
|
+
projectId: 1,
|
|
1716
1718
|
});
|
|
1717
1719
|
```
|
|
1718
1720
|
|
|
@@ -1748,6 +1750,69 @@ await client.prompt.create({
|
|
|
1748
1750
|
</dl>
|
|
1749
1751
|
</details>
|
|
1750
1752
|
|
|
1753
|
+
<details><summary><code>client.prompt.<a href="/src/api/resources/prompt/client/Client.ts">listPrompts</a>({ ...params }) -> Scorecard.PromptCursorPage</code></summary>
|
|
1754
|
+
<dl>
|
|
1755
|
+
<dd>
|
|
1756
|
+
|
|
1757
|
+
#### 📝 Description
|
|
1758
|
+
|
|
1759
|
+
<dl>
|
|
1760
|
+
<dd>
|
|
1761
|
+
|
|
1762
|
+
<dl>
|
|
1763
|
+
<dd>
|
|
1764
|
+
|
|
1765
|
+
List all prompts with cursor-based pagination
|
|
1766
|
+
|
|
1767
|
+
</dd>
|
|
1768
|
+
</dl>
|
|
1769
|
+
</dd>
|
|
1770
|
+
</dl>
|
|
1771
|
+
|
|
1772
|
+
#### 🔌 Usage
|
|
1773
|
+
|
|
1774
|
+
<dl>
|
|
1775
|
+
<dd>
|
|
1776
|
+
|
|
1777
|
+
<dl>
|
|
1778
|
+
<dd>
|
|
1779
|
+
|
|
1780
|
+
```typescript
|
|
1781
|
+
await client.prompt.listPrompts();
|
|
1782
|
+
```
|
|
1783
|
+
|
|
1784
|
+
</dd>
|
|
1785
|
+
</dl>
|
|
1786
|
+
</dd>
|
|
1787
|
+
</dl>
|
|
1788
|
+
|
|
1789
|
+
#### ⚙️ Parameters
|
|
1790
|
+
|
|
1791
|
+
<dl>
|
|
1792
|
+
<dd>
|
|
1793
|
+
|
|
1794
|
+
<dl>
|
|
1795
|
+
<dd>
|
|
1796
|
+
|
|
1797
|
+
**request:** `Scorecard.PromptListPromptsRequest`
|
|
1798
|
+
|
|
1799
|
+
</dd>
|
|
1800
|
+
</dl>
|
|
1801
|
+
|
|
1802
|
+
<dl>
|
|
1803
|
+
<dd>
|
|
1804
|
+
|
|
1805
|
+
**requestOptions:** `Prompt.RequestOptions`
|
|
1806
|
+
|
|
1807
|
+
</dd>
|
|
1808
|
+
</dl>
|
|
1809
|
+
</dd>
|
|
1810
|
+
</dl>
|
|
1811
|
+
|
|
1812
|
+
</dd>
|
|
1813
|
+
</dl>
|
|
1814
|
+
</details>
|
|
1815
|
+
|
|
1751
1816
|
<details><summary><code>client.prompt.<a href="/src/api/resources/prompt/client/Client.ts">get</a>(id) -> Scorecard.Prompt</code></summary>
|
|
1752
1817
|
<dl>
|
|
1753
1818
|
<dd>
|
|
@@ -1823,7 +1888,7 @@ await client.prompt.get("id");
|
|
|
1823
1888
|
<dl>
|
|
1824
1889
|
<dd>
|
|
1825
1890
|
|
|
1826
|
-
Delete a
|
|
1891
|
+
Delete a root prompt and all of its children.
|
|
1827
1892
|
|
|
1828
1893
|
</dd>
|
|
1829
1894
|
</dl>
|
|
@@ -1855,7 +1920,7 @@ await client.prompt.delete("id");
|
|
|
1855
1920
|
<dl>
|
|
1856
1921
|
<dd>
|
|
1857
1922
|
|
|
1858
|
-
**id:** `string` — The id of the
|
|
1923
|
+
**id:** `string` — The id of the root prompt to delete.
|
|
1859
1924
|
|
|
1860
1925
|
</dd>
|
|
1861
1926
|
</dl>
|
|
@@ -1983,6 +2048,7 @@ await client.scoringConfig.create({
|
|
|
1983
2048
|
name: "Scoring Config Name",
|
|
1984
2049
|
description: "Description of the scoring config",
|
|
1985
2050
|
metrics: [1, 2, 3],
|
|
2051
|
+
projectId: 1,
|
|
1986
2052
|
});
|
|
1987
2053
|
```
|
|
1988
2054
|
|
|
@@ -2080,3 +2146,66 @@ await client.scoringConfig.get("id");
|
|
|
2080
2146
|
</dd>
|
|
2081
2147
|
</dl>
|
|
2082
2148
|
</details>
|
|
2149
|
+
|
|
2150
|
+
<details><summary><code>client.scoringConfig.<a href="/src/api/resources/scoringConfig/client/Client.ts">delete</a>(id) -> unknown</code></summary>
|
|
2151
|
+
<dl>
|
|
2152
|
+
<dd>
|
|
2153
|
+
|
|
2154
|
+
#### 📝 Description
|
|
2155
|
+
|
|
2156
|
+
<dl>
|
|
2157
|
+
<dd>
|
|
2158
|
+
|
|
2159
|
+
<dl>
|
|
2160
|
+
<dd>
|
|
2161
|
+
|
|
2162
|
+
Delete a scoring config.
|
|
2163
|
+
|
|
2164
|
+
</dd>
|
|
2165
|
+
</dl>
|
|
2166
|
+
</dd>
|
|
2167
|
+
</dl>
|
|
2168
|
+
|
|
2169
|
+
#### 🔌 Usage
|
|
2170
|
+
|
|
2171
|
+
<dl>
|
|
2172
|
+
<dd>
|
|
2173
|
+
|
|
2174
|
+
<dl>
|
|
2175
|
+
<dd>
|
|
2176
|
+
|
|
2177
|
+
```typescript
|
|
2178
|
+
await client.scoringConfig.delete("id");
|
|
2179
|
+
```
|
|
2180
|
+
|
|
2181
|
+
</dd>
|
|
2182
|
+
</dl>
|
|
2183
|
+
</dd>
|
|
2184
|
+
</dl>
|
|
2185
|
+
|
|
2186
|
+
#### ⚙️ Parameters
|
|
2187
|
+
|
|
2188
|
+
<dl>
|
|
2189
|
+
<dd>
|
|
2190
|
+
|
|
2191
|
+
<dl>
|
|
2192
|
+
<dd>
|
|
2193
|
+
|
|
2194
|
+
**id:** `string` — The id of the scoring config to delete.
|
|
2195
|
+
|
|
2196
|
+
</dd>
|
|
2197
|
+
</dl>
|
|
2198
|
+
|
|
2199
|
+
<dl>
|
|
2200
|
+
<dd>
|
|
2201
|
+
|
|
2202
|
+
**requestOptions:** `ScoringConfig.RequestOptions`
|
|
2203
|
+
|
|
2204
|
+
</dd>
|
|
2205
|
+
</dl>
|
|
2206
|
+
</dd>
|
|
2207
|
+
</dl>
|
|
2208
|
+
|
|
2209
|
+
</dd>
|
|
2210
|
+
</dl>
|
|
2211
|
+
</details>
|
|
@@ -13,6 +13,8 @@ export declare namespace PromptCreateParams {
|
|
|
13
13
|
parent_id?: string | null;
|
|
14
14
|
description?: string | null;
|
|
15
15
|
model_params?: Record<string, PromptCreateParamsModelParamsValue.Raw | null | undefined> | null;
|
|
16
|
+
tag?: string | null;
|
|
16
17
|
is_prod?: boolean | null;
|
|
18
|
+
project_id?: number | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -35,5 +35,7 @@ exports.PromptCreateParams = core.serialization.object({
|
|
|
35
35
|
parentId: core.serialization.property("parent_id", core.serialization.string().optional()),
|
|
36
36
|
description: core.serialization.string().optional(),
|
|
37
37
|
modelParams: core.serialization.property("model_params", core.serialization.record(core.serialization.string(), PromptCreateParamsModelParamsValue_1.PromptCreateParamsModelParamsValue.optional()).optional()),
|
|
38
|
+
tag: core.serialization.string().optional(),
|
|
38
39
|
isProd: core.serialization.property("is_prod", core.serialization.boolean().optional()),
|
|
40
|
+
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
39
41
|
});
|
|
@@ -32,4 +32,5 @@ exports.ScoringConfigCreateParams = core.serialization.object({
|
|
|
32
32
|
name: core.serialization.string().optional(),
|
|
33
33
|
description: core.serialization.string().optional(),
|
|
34
34
|
metrics: core.serialization.list(core.serialization.number()).optional(),
|
|
35
|
+
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
35
36
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Scorecard from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { TestCase } from "../../../types/TestCase";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.testcase.batchCopy.Response.Raw, Scorecard.TestCase[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = TestCase.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const TestCase_1 = require("../../../types/TestCase");
|
|
32
|
+
exports.Response = core.serialization.list(TestCase_1.TestCase);
|
|
@@ -10,8 +10,22 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
13
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
27
|
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.batchCopy = void 0;
|
|
30
|
+
exports.batchCopy = __importStar(require("./batchCopy"));
|
|
17
31
|
__exportStar(require("./requests"), exports);
|
|
@@ -38,4 +38,5 @@ exports.TestsetCreateParams = core.serialization.object({
|
|
|
38
38
|
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
39
39
|
ingestionMethod: core.serialization.property("ingestion_method", IngestionMethod_1.IngestionMethod.optional()),
|
|
40
40
|
published: core.serialization.boolean().optional(),
|
|
41
|
+
createdByPlayground: core.serialization.property("created_by_playground", core.serialization.boolean().optional()),
|
|
41
42
|
});
|
|
@@ -42,4 +42,5 @@ exports.Prompt = core.serialization.object({
|
|
|
42
42
|
parentId: core.serialization.property("parent_id", core.serialization.string().optional()),
|
|
43
43
|
mergeParentId: core.serialization.property("merge_parent_id", core.serialization.string().optional()),
|
|
44
44
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
45
|
+
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
45
46
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Scorecard from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Prompt } from "./Prompt";
|
|
8
|
+
export declare const PromptCursorPage: core.serialization.ObjectSchema<serializers.PromptCursorPage.Raw, Scorecard.PromptCursorPage>;
|
|
9
|
+
export declare namespace PromptCursorPage {
|
|
10
|
+
interface Raw {
|
|
11
|
+
items: Prompt.Raw[];
|
|
12
|
+
total?: number | null;
|
|
13
|
+
current_page?: string | null;
|
|
14
|
+
current_page_backwards?: string | null;
|
|
15
|
+
previous_page?: string | null;
|
|
16
|
+
next_page?: string | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptCursorPage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Prompt_1 = require("./Prompt");
|
|
32
|
+
exports.PromptCursorPage = core.serialization.object({
|
|
33
|
+
items: core.serialization.list(Prompt_1.Prompt),
|
|
34
|
+
total: core.serialization.number().optional(),
|
|
35
|
+
currentPage: core.serialization.property("current_page", core.serialization.string().optional()),
|
|
36
|
+
currentPageBackwards: core.serialization.property("current_page_backwards", core.serialization.string().optional()),
|
|
37
|
+
previousPage: core.serialization.property("previous_page", core.serialization.string().optional()),
|
|
38
|
+
nextPage: core.serialization.property("next_page", core.serialization.string().optional()),
|
|
39
|
+
});
|
|
@@ -38,4 +38,5 @@ exports.ScoringConfig = core.serialization.object({
|
|
|
38
38
|
isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
|
|
39
39
|
metrics: core.serialization.list(core.serialization.number()).optional(),
|
|
40
40
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
41
|
+
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
41
42
|
});
|
|
@@ -42,4 +42,5 @@ exports.Testset = core.serialization.object({
|
|
|
42
42
|
isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
|
|
43
43
|
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
44
44
|
customSchema: core.serialization.property("custom_schema", CustomSchema_1.CustomSchema.optional()),
|
|
45
|
+
createdByPlayground: core.serialization.property("created_by_playground", core.serialization.boolean().optional()),
|
|
45
46
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Scorecard from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Testset } from "./Testset";
|
|
8
|
+
export declare const TestsetCursorPage: core.serialization.ObjectSchema<serializers.TestsetCursorPage.Raw, Scorecard.TestsetCursorPage>;
|
|
9
|
+
export declare namespace TestsetCursorPage {
|
|
10
|
+
interface Raw {
|
|
11
|
+
items: Testset.Raw[];
|
|
12
|
+
total?: number | null;
|
|
13
|
+
current_page?: string | null;
|
|
14
|
+
current_page_backwards?: string | null;
|
|
15
|
+
previous_page?: string | null;
|
|
16
|
+
next_page?: string | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestsetCursorPage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Testset_1 = require("./Testset");
|
|
32
|
+
exports.TestsetCursorPage = core.serialization.object({
|
|
33
|
+
items: core.serialization.list(Testset_1.Testset),
|
|
34
|
+
total: core.serialization.number().optional(),
|
|
35
|
+
currentPage: core.serialization.property("current_page", core.serialization.string().optional()),
|
|
36
|
+
currentPageBackwards: core.serialization.property("current_page_backwards", core.serialization.string().optional()),
|
|
37
|
+
previousPage: core.serialization.property("previous_page", core.serialization.string().optional()),
|
|
38
|
+
nextPage: core.serialization.property("next_page", core.serialization.string().optional()),
|
|
39
|
+
});
|
|
@@ -12,6 +12,7 @@ export * from "./NotFoundErrorBody";
|
|
|
12
12
|
export * from "./PaginatedTestcaseResponse";
|
|
13
13
|
export * from "./PromptModelParamsValue";
|
|
14
14
|
export * from "./Prompt";
|
|
15
|
+
export * from "./PromptCursorPage";
|
|
15
16
|
export * from "./RoleEnum";
|
|
16
17
|
export * from "./Run";
|
|
17
18
|
export * from "./RunMetric";
|
|
@@ -31,6 +32,7 @@ export * from "./TestrecordModelParamsValue";
|
|
|
31
32
|
export * from "./TestrecordModelDebugInfoValue";
|
|
32
33
|
export * from "./Testrecord";
|
|
33
34
|
export * from "./Testset";
|
|
35
|
+
export * from "./TestsetCursorPage";
|
|
34
36
|
export * from "./Trace";
|
|
35
37
|
export * from "./UnauthenticatedError";
|
|
36
38
|
export * from "./UnauthorizedErrorBody";
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
|
|
|
28
28
|
__exportStar(require("./PaginatedTestcaseResponse"), exports);
|
|
29
29
|
__exportStar(require("./PromptModelParamsValue"), exports);
|
|
30
30
|
__exportStar(require("./Prompt"), exports);
|
|
31
|
+
__exportStar(require("./PromptCursorPage"), exports);
|
|
31
32
|
__exportStar(require("./RoleEnum"), exports);
|
|
32
33
|
__exportStar(require("./Run"), exports);
|
|
33
34
|
__exportStar(require("./RunMetric"), exports);
|
|
@@ -47,6 +48,7 @@ __exportStar(require("./TestrecordModelParamsValue"), exports);
|
|
|
47
48
|
__exportStar(require("./TestrecordModelDebugInfoValue"), exports);
|
|
48
49
|
__exportStar(require("./Testrecord"), exports);
|
|
49
50
|
__exportStar(require("./Testset"), exports);
|
|
51
|
+
__exportStar(require("./TestsetCursorPage"), exports);
|
|
50
52
|
__exportStar(require("./Trace"), exports);
|
|
51
53
|
__exportStar(require("./UnauthenticatedError"), exports);
|
|
52
54
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|