honeyhive 0.3.0 → 0.3.5
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 +76 -14
- package/dist/internal/utils/requestbody.js +28 -18
- package/dist/internal/utils/utils.js +2 -4
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/models/operations/deletedatasetsname.d.ts +1 -1
- package/dist/sdk/models/operations/deletedatasetsname.js +1 -1
- package/dist/sdk/models/operations/deletemetrics.d.ts +1 -1
- package/dist/sdk/models/operations/deletemetrics.js +1 -1
- package/dist/sdk/models/operations/deletepromptsid.d.ts +1 -1
- package/dist/sdk/models/operations/deletepromptsid.js +1 -1
- package/dist/sdk/models/operations/deletetasks.d.ts +1 -1
- package/dist/sdk/models/operations/deletetasks.js +1 -1
- package/dist/sdk/models/operations/getdatasets.d.ts +5 -5
- package/dist/sdk/models/operations/getdatasets.js +5 -5
- package/dist/sdk/models/operations/getfinetunedmodels.d.ts +5 -5
- package/dist/sdk/models/operations/getfinetunedmodels.js +5 -5
- package/dist/sdk/models/operations/getfinetunedmodelsid.d.ts +1 -1
- package/dist/sdk/models/operations/getfinetunedmodelsid.js +1 -1
- package/dist/sdk/models/operations/getgenerations.d.ts +5 -5
- package/dist/sdk/models/operations/getgenerations.js +5 -5
- package/dist/sdk/models/operations/getmetrics.d.ts +5 -5
- package/dist/sdk/models/operations/getmetrics.js +5 -5
- package/dist/sdk/models/operations/getprompts.d.ts +5 -5
- package/dist/sdk/models/operations/getprompts.js +5 -5
- package/dist/sdk/models/operations/getsession.d.ts +6 -11
- package/dist/sdk/models/operations/getsession.js +7 -18
- package/dist/sdk/models/operations/getsessionsessionid.d.ts +1 -1
- package/dist/sdk/models/operations/getsessionsessionid.js +1 -1
- package/dist/sdk/models/operations/getsessionsessionidexport.d.ts +1 -1
- package/dist/sdk/models/operations/getsessionsessionidexport.js +1 -1
- package/dist/sdk/models/operations/gettasks.d.ts +2 -2
- package/dist/sdk/models/operations/gettasks.js +2 -2
- package/dist/sdk/models/operations/index.d.ts +1 -1
- package/dist/sdk/models/operations/index.js +1 -1
- package/dist/sdk/models/operations/postdatasets.d.ts +1 -1
- package/dist/sdk/models/operations/postdatasets.js +1 -1
- package/dist/sdk/models/operations/postevaluations.d.ts +1 -1
- package/dist/sdk/models/operations/postevaluations.js +1 -1
- package/dist/sdk/models/operations/postfeedback.d.ts +1 -1
- package/dist/sdk/models/operations/postfeedback.js +1 -1
- package/dist/sdk/models/operations/postgenerations.d.ts +1 -1
- package/dist/sdk/models/operations/postgenerations.js +1 -1
- package/dist/sdk/models/operations/postgenerationslog.d.ts +1 -1
- package/dist/sdk/models/operations/postgenerationslog.js +1 -1
- package/dist/sdk/models/operations/postmetrics.d.ts +1 -1
- package/dist/sdk/models/operations/postmetrics.js +1 -1
- package/dist/sdk/models/operations/postprompts.d.ts +1 -1
- package/dist/sdk/models/operations/postprompts.js +1 -1
- package/dist/sdk/models/operations/postsessionsessionidend.d.ts +1 -1
- package/dist/sdk/models/operations/postsessionsessionidend.js +1 -1
- package/dist/sdk/models/operations/postsessionsessionidevent.d.ts +1 -1
- package/dist/sdk/models/operations/postsessionsessionidevent.js +1 -1
- package/dist/sdk/models/operations/postsessionsessionidfeedback.d.ts +1 -1
- package/dist/sdk/models/operations/postsessionsessionidfeedback.js +1 -1
- package/dist/sdk/models/operations/postsessionsessionidtraces.d.ts +25 -0
- package/dist/sdk/models/operations/postsessionsessionidtraces.js +95 -0
- package/dist/sdk/models/operations/postsessionstart.d.ts +1 -1
- package/dist/sdk/models/operations/postsessionstart.js +1 -1
- package/dist/sdk/models/operations/posttasks.d.ts +1 -1
- package/dist/sdk/models/operations/posttasks.js +1 -1
- package/dist/sdk/models/operations/putpromptsid.d.ts +1 -1
- package/dist/sdk/models/operations/putpromptsid.js +1 -1
- package/dist/sdk/models/operations/puttasks.d.ts +1 -1
- package/dist/sdk/models/operations/puttasks.js +1 -1
- package/dist/sdk/models/shared/datasetresponse.d.ts +1 -3
- package/dist/sdk/models/shared/datasetresponse.js +2 -11
- package/dist/sdk/models/shared/evaluationloggingquery.d.ts +7 -21
- package/dist/sdk/models/shared/evaluationloggingquery.js +8 -71
- package/dist/sdk/models/shared/feedbackquery.d.ts +1 -6
- package/dist/sdk/models/shared/feedbackquery.js +2 -14
- package/dist/sdk/models/shared/feedbackresponse.d.ts +1 -6
- package/dist/sdk/models/shared/feedbackresponse.js +2 -14
- package/dist/sdk/models/shared/generatequery.d.ts +3 -18
- package/dist/sdk/models/shared/generatequery.js +4 -40
- package/dist/sdk/models/shared/generationloggingquery.d.ts +7 -32
- package/dist/sdk/models/shared/generationloggingquery.js +13 -73
- package/dist/sdk/models/shared/metricresponse.d.ts +1 -6
- package/dist/sdk/models/shared/metricresponse.js +2 -14
- package/dist/sdk/models/shared/promptcreationquery.d.ts +1 -3
- package/dist/sdk/models/shared/promptcreationquery.js +2 -11
- package/dist/sdk/models/shared/promptresponse.d.ts +1 -3
- package/dist/sdk/models/shared/promptresponse.js +2 -11
- package/dist/sdk/models/shared/promptupdatequery.d.ts +1 -3
- package/dist/sdk/models/shared/promptupdatequery.js +2 -11
- package/dist/sdk/models/shared/sessioneventquery.d.ts +33 -31
- package/dist/sdk/models/shared/sessioneventquery.js +40 -67
- package/dist/sdk/models/shared/sessionfeedback.d.ts +1 -6
- package/dist/sdk/models/shared/sessionfeedback.js +2 -14
- package/dist/sdk/models/shared/sessionstartquery.d.ts +1 -6
- package/dist/sdk/models/shared/sessionstartquery.js +2 -14
- package/dist/sdk/models/shared/uploaddataset.d.ts +1 -3
- package/dist/sdk/models/shared/uploaddataset.js +2 -11
- package/dist/sdk/sdk.d.ts +3 -3
- package/dist/sdk/sdk.js +24 -24
- package/dist/sdk/tracer.d.ts +140 -0
- package/dist/sdk/tracer.js +233 -0
- package/docs/models/operations/getdatasetsresponse.md +2 -2
- package/docs/models/operations/getfinetunedmodelsresponse.md +2 -2
- package/docs/models/operations/getgenerationsresponse.md +2 -2
- package/docs/models/operations/getmetricsresponse.md +2 -2
- package/docs/models/operations/getpromptsresponse.md +2 -2
- package/docs/models/operations/getsessionrequest.md +5 -5
- package/docs/models/operations/getsessionresponse.md +2 -2
- package/docs/models/operations/gettasksresponse.md +1 -1
- package/docs/models/operations/{postsessionssessionidtracesrequest.md → postsessionsessionidtracesrequest.md} +1 -1
- package/docs/models/operations/{postsessionssessionidtracesresponse.md → postsessionsessionidtracesresponse.md} +1 -1
- package/docs/models/shared/datasetresponse.md +1 -1
- package/docs/models/shared/evaluationloggingquery.md +16 -16
- package/docs/models/shared/feedbackquery.md +6 -6
- package/docs/models/shared/feedbackresponse.md +1 -1
- package/docs/models/shared/generatequery.md +14 -14
- package/docs/models/shared/generationloggingquery.md +16 -16
- package/docs/models/shared/{generatequerymetadata.md → metadata.md} +1 -1
- package/docs/models/shared/metricresponse.md +1 -1
- package/docs/models/shared/promptcreationquery.md +11 -11
- package/docs/models/shared/promptresponse.md +1 -1
- package/docs/models/shared/promptupdatequery.md +9 -9
- package/docs/models/shared/sessioneventquery.md +20 -14
- package/docs/models/shared/sessionfeedback.md +4 -4
- package/docs/models/shared/sessionstartquery.md +7 -7
- package/docs/models/shared/sessiontrace.md +3 -3
- package/docs/models/shared/taskcreationquery.md +4 -4
- package/docs/models/shared/taskresponse.md +4 -4
- package/docs/models/shared/taskupdatequery.md +9 -9
- package/docs/models/shared/uploaddataset.md +8 -8
- package/docs/sdks/honeyhive/README.md +313 -132
- package/package.json +7 -5
- package/docs/models/operations/getsessionquery.md +0 -9
- package/docs/models/shared/datasetresponsefile.md +0 -7
- package/docs/models/shared/evaluationloggingquerycomments.md +0 -7
- package/docs/models/shared/evaluationloggingquerydataset.md +0 -7
- package/docs/models/shared/evaluationloggingquerygenerations.md +0 -7
- package/docs/models/shared/evaluationloggingquerymetrics.md +0 -7
- package/docs/models/shared/evaluationloggingqueryprompts.md +0 -7
- package/docs/models/shared/evaluationloggingqueryresults.md +0 -7
- package/docs/models/shared/evaluationloggingquerysummary.md +0 -7
- package/docs/models/shared/feedbackqueryfeedbackjson.md +0 -9
- package/docs/models/shared/feedbackresponsefeedback.md +0 -9
- package/docs/models/shared/generatequeryinput.md +0 -9
- package/docs/models/shared/generatequeryuserproperties.md +0 -9
- package/docs/models/shared/generationloggingqueryfeedback.md +0 -9
- package/docs/models/shared/generationloggingqueryhyperparameters.md +0 -9
- package/docs/models/shared/generationloggingqueryinputs.md +0 -9
- package/docs/models/shared/generationloggingquerymetadata.md +0 -9
- package/docs/models/shared/generationloggingqueryusage.md +0 -9
- package/docs/models/shared/generationloggingqueryuserproperties.md +0 -9
- package/docs/models/shared/metricresponsethreshold.md +0 -9
- package/docs/models/shared/promptcreationqueryfewshotexamples.md +0 -7
- package/docs/models/shared/promptresponsefewshotexamples.md +0 -7
- package/docs/models/shared/promptupdatequeryfewshotexamples.md +0 -7
- package/docs/models/shared/sessioneventquerychildren.md +0 -7
- package/docs/models/shared/sessioneventqueryconfig.md +0 -9
- package/docs/models/shared/sessioneventqueryerror.md +0 -9
- package/docs/models/shared/sessioneventqueryinputs.md +0 -9
- package/docs/models/shared/sessioneventquerymetadata.md +0 -9
- package/docs/models/shared/sessionfeedbackfeedback.md +0 -9
- package/docs/models/shared/sessionstartqueryuserproperties.md +0 -9
- package/docs/models/shared/uploaddatasetfile.md +0 -7
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* [postSessionSessionIdEnd](#postsessionsessionidend) - End a session
|
|
31
31
|
* [postSessionSessionIdEvent](#postsessionsessionidevent) - Log an event
|
|
32
32
|
* [postSessionSessionIdFeedback](#postsessionsessionidfeedback) - Log session feedback
|
|
33
|
-
* [
|
|
33
|
+
* [postSessionSessionIdTraces](#postsessionsessionidtraces) - Log a trace
|
|
34
34
|
* [postTasks](#posttasks) - Create a task
|
|
35
35
|
* [putPromptsId](#putpromptsid) - Update a prompt
|
|
36
36
|
* [putTasks](#puttasks) - Update a task
|
|
@@ -42,18 +42,17 @@ Delete a dataset
|
|
|
42
42
|
### Example Usage
|
|
43
43
|
|
|
44
44
|
```typescript
|
|
45
|
-
import { HoneyHive } from "
|
|
45
|
+
import { HoneyHive } from "honeyhive";
|
|
46
46
|
|
|
47
47
|
(async() => {
|
|
48
48
|
const sdk = new HoneyHive({
|
|
49
49
|
bearerAuth: "",
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
const res = await sdk.
|
|
52
|
+
const res = await sdk.deleteDatasetsName({
|
|
53
53
|
name: "string",
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
|
|
57
56
|
if (res.statusCode == 200) {
|
|
58
57
|
// handle response
|
|
59
58
|
}
|
|
@@ -71,7 +70,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
71
70
|
### Response
|
|
72
71
|
|
|
73
72
|
**Promise<[operations.DeleteDatasetsNameResponse](../../models/operations/deletedatasetsnameresponse.md)>**
|
|
73
|
+
### Errors
|
|
74
74
|
|
|
75
|
+
| Error Object | Status Code | Content Type |
|
|
76
|
+
| --------------- | --------------- | --------------- |
|
|
77
|
+
| errors.SDKError | 400-600 | */* |
|
|
75
78
|
|
|
76
79
|
## deleteMetrics
|
|
77
80
|
|
|
@@ -80,20 +83,19 @@ Delete a metric
|
|
|
80
83
|
### Example Usage
|
|
81
84
|
|
|
82
85
|
```typescript
|
|
83
|
-
import { HoneyHive } from "
|
|
86
|
+
import { HoneyHive } from "honeyhive";
|
|
84
87
|
|
|
85
88
|
(async() => {
|
|
86
89
|
const sdk = new HoneyHive({
|
|
87
90
|
bearerAuth: "",
|
|
88
91
|
});
|
|
89
92
|
|
|
90
|
-
const res = await sdk.
|
|
93
|
+
const res = await sdk.deleteMetrics({
|
|
91
94
|
metricId: "string",
|
|
92
95
|
name: "string",
|
|
93
96
|
task: "string",
|
|
94
97
|
});
|
|
95
98
|
|
|
96
|
-
|
|
97
99
|
if (res.statusCode == 200) {
|
|
98
100
|
// handle response
|
|
99
101
|
}
|
|
@@ -111,7 +113,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
111
113
|
### Response
|
|
112
114
|
|
|
113
115
|
**Promise<[operations.DeleteMetricsResponse](../../models/operations/deletemetricsresponse.md)>**
|
|
116
|
+
### Errors
|
|
114
117
|
|
|
118
|
+
| Error Object | Status Code | Content Type |
|
|
119
|
+
| --------------- | --------------- | --------------- |
|
|
120
|
+
| errors.SDKError | 400-600 | */* |
|
|
115
121
|
|
|
116
122
|
## deletePromptsId
|
|
117
123
|
|
|
@@ -120,18 +126,17 @@ Delete a prompt
|
|
|
120
126
|
### Example Usage
|
|
121
127
|
|
|
122
128
|
```typescript
|
|
123
|
-
import { HoneyHive } from "
|
|
129
|
+
import { HoneyHive } from "honeyhive";
|
|
124
130
|
|
|
125
131
|
(async() => {
|
|
126
132
|
const sdk = new HoneyHive({
|
|
127
133
|
bearerAuth: "",
|
|
128
134
|
});
|
|
129
135
|
|
|
130
|
-
const res = await sdk.
|
|
136
|
+
const res = await sdk.deletePromptsId({
|
|
131
137
|
id: "<ID>",
|
|
132
138
|
});
|
|
133
139
|
|
|
134
|
-
|
|
135
140
|
if (res.statusCode == 200) {
|
|
136
141
|
// handle response
|
|
137
142
|
}
|
|
@@ -149,7 +154,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
149
154
|
### Response
|
|
150
155
|
|
|
151
156
|
**Promise<[operations.DeletePromptsIdResponse](../../models/operations/deletepromptsidresponse.md)>**
|
|
157
|
+
### Errors
|
|
152
158
|
|
|
159
|
+
| Error Object | Status Code | Content Type |
|
|
160
|
+
| --------------- | --------------- | --------------- |
|
|
161
|
+
| errors.SDKError | 400-600 | */* |
|
|
153
162
|
|
|
154
163
|
## deleteTasks
|
|
155
164
|
|
|
@@ -158,18 +167,17 @@ Delete a task
|
|
|
158
167
|
### Example Usage
|
|
159
168
|
|
|
160
169
|
```typescript
|
|
161
|
-
import { HoneyHive } from "
|
|
170
|
+
import { HoneyHive } from "honeyhive";
|
|
162
171
|
|
|
163
172
|
(async() => {
|
|
164
173
|
const sdk = new HoneyHive({
|
|
165
174
|
bearerAuth: "",
|
|
166
175
|
});
|
|
167
176
|
|
|
168
|
-
const res = await sdk.
|
|
177
|
+
const res = await sdk.deleteTasks({
|
|
169
178
|
name: "string",
|
|
170
179
|
});
|
|
171
180
|
|
|
172
|
-
|
|
173
181
|
if (res.statusCode == 200) {
|
|
174
182
|
// handle response
|
|
175
183
|
}
|
|
@@ -187,7 +195,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
187
195
|
### Response
|
|
188
196
|
|
|
189
197
|
**Promise<[operations.DeleteTasksResponse](../../models/operations/deletetasksresponse.md)>**
|
|
198
|
+
### Errors
|
|
190
199
|
|
|
200
|
+
| Error Object | Status Code | Content Type |
|
|
201
|
+
| --------------- | --------------- | --------------- |
|
|
202
|
+
| errors.SDKError | 400-600 | */* |
|
|
191
203
|
|
|
192
204
|
## getDatasets
|
|
193
205
|
|
|
@@ -196,15 +208,14 @@ Get datasets
|
|
|
196
208
|
### Example Usage
|
|
197
209
|
|
|
198
210
|
```typescript
|
|
199
|
-
import { HoneyHive } from "
|
|
211
|
+
import { HoneyHive } from "honeyhive";
|
|
200
212
|
|
|
201
213
|
(async() => {
|
|
202
214
|
const sdk = new HoneyHive({
|
|
203
215
|
bearerAuth: "",
|
|
204
216
|
});
|
|
205
217
|
|
|
206
|
-
const res = await sdk.
|
|
207
|
-
|
|
218
|
+
const res = await sdk.getDatasets({});
|
|
208
219
|
|
|
209
220
|
if (res.statusCode == 200) {
|
|
210
221
|
// handle response
|
|
@@ -223,7 +234,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
223
234
|
### Response
|
|
224
235
|
|
|
225
236
|
**Promise<[operations.GetDatasetsResponse](../../models/operations/getdatasetsresponse.md)>**
|
|
237
|
+
### Errors
|
|
226
238
|
|
|
239
|
+
| Error Object | Status Code | Content Type |
|
|
240
|
+
| --------------- | --------------- | --------------- |
|
|
241
|
+
| errors.SDKError | 400-600 | */* |
|
|
227
242
|
|
|
228
243
|
## getFineTunedModels
|
|
229
244
|
|
|
@@ -232,15 +247,14 @@ Get all fine-tuned models
|
|
|
232
247
|
### Example Usage
|
|
233
248
|
|
|
234
249
|
```typescript
|
|
235
|
-
import { HoneyHive } from "
|
|
250
|
+
import { HoneyHive } from "honeyhive";
|
|
236
251
|
|
|
237
252
|
(async() => {
|
|
238
253
|
const sdk = new HoneyHive({
|
|
239
254
|
bearerAuth: "",
|
|
240
255
|
});
|
|
241
256
|
|
|
242
|
-
const res = await sdk.
|
|
243
|
-
|
|
257
|
+
const res = await sdk.getFineTunedModels({});
|
|
244
258
|
|
|
245
259
|
if (res.statusCode == 200) {
|
|
246
260
|
// handle response
|
|
@@ -259,7 +273,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
259
273
|
### Response
|
|
260
274
|
|
|
261
275
|
**Promise<[operations.GetFineTunedModelsResponse](../../models/operations/getfinetunedmodelsresponse.md)>**
|
|
276
|
+
### Errors
|
|
262
277
|
|
|
278
|
+
| Error Object | Status Code | Content Type |
|
|
279
|
+
| --------------- | --------------- | --------------- |
|
|
280
|
+
| errors.SDKError | 400-600 | */* |
|
|
263
281
|
|
|
264
282
|
## getFineTunedModelsId
|
|
265
283
|
|
|
@@ -268,18 +286,17 @@ Get a fine-tuned model
|
|
|
268
286
|
### Example Usage
|
|
269
287
|
|
|
270
288
|
```typescript
|
|
271
|
-
import { HoneyHive } from "
|
|
289
|
+
import { HoneyHive } from "honeyhive";
|
|
272
290
|
|
|
273
291
|
(async() => {
|
|
274
292
|
const sdk = new HoneyHive({
|
|
275
293
|
bearerAuth: "",
|
|
276
294
|
});
|
|
277
295
|
|
|
278
|
-
const res = await sdk.
|
|
296
|
+
const res = await sdk.getFineTunedModelsId({
|
|
279
297
|
id: "<ID>",
|
|
280
298
|
});
|
|
281
299
|
|
|
282
|
-
|
|
283
300
|
if (res.statusCode == 200) {
|
|
284
301
|
// handle response
|
|
285
302
|
}
|
|
@@ -297,7 +314,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
297
314
|
### Response
|
|
298
315
|
|
|
299
316
|
**Promise<[operations.GetFineTunedModelsIdResponse](../../models/operations/getfinetunedmodelsidresponse.md)>**
|
|
317
|
+
### Errors
|
|
300
318
|
|
|
319
|
+
| Error Object | Status Code | Content Type |
|
|
320
|
+
| --------------- | --------------- | --------------- |
|
|
321
|
+
| errors.SDKError | 400-600 | */* |
|
|
301
322
|
|
|
302
323
|
## getGenerations
|
|
303
324
|
|
|
@@ -306,15 +327,14 @@ Get all generations
|
|
|
306
327
|
### Example Usage
|
|
307
328
|
|
|
308
329
|
```typescript
|
|
309
|
-
import { HoneyHive } from "
|
|
330
|
+
import { HoneyHive } from "honeyhive";
|
|
310
331
|
|
|
311
332
|
(async() => {
|
|
312
333
|
const sdk = new HoneyHive({
|
|
313
334
|
bearerAuth: "",
|
|
314
335
|
});
|
|
315
336
|
|
|
316
|
-
const res = await sdk.
|
|
317
|
-
|
|
337
|
+
const res = await sdk.getGenerations({});
|
|
318
338
|
|
|
319
339
|
if (res.statusCode == 200) {
|
|
320
340
|
// handle response
|
|
@@ -333,7 +353,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
333
353
|
### Response
|
|
334
354
|
|
|
335
355
|
**Promise<[operations.GetGenerationsResponse](../../models/operations/getgenerationsresponse.md)>**
|
|
356
|
+
### Errors
|
|
336
357
|
|
|
358
|
+
| Error Object | Status Code | Content Type |
|
|
359
|
+
| --------------- | --------------- | --------------- |
|
|
360
|
+
| errors.SDKError | 400-600 | */* |
|
|
337
361
|
|
|
338
362
|
## getMetrics
|
|
339
363
|
|
|
@@ -342,15 +366,14 @@ Get all metrics
|
|
|
342
366
|
### Example Usage
|
|
343
367
|
|
|
344
368
|
```typescript
|
|
345
|
-
import { HoneyHive } from "
|
|
369
|
+
import { HoneyHive } from "honeyhive";
|
|
346
370
|
|
|
347
371
|
(async() => {
|
|
348
372
|
const sdk = new HoneyHive({
|
|
349
373
|
bearerAuth: "",
|
|
350
374
|
});
|
|
351
375
|
|
|
352
|
-
const res = await sdk.
|
|
353
|
-
|
|
376
|
+
const res = await sdk.getMetrics({});
|
|
354
377
|
|
|
355
378
|
if (res.statusCode == 200) {
|
|
356
379
|
// handle response
|
|
@@ -369,7 +392,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
369
392
|
### Response
|
|
370
393
|
|
|
371
394
|
**Promise<[operations.GetMetricsResponse](../../models/operations/getmetricsresponse.md)>**
|
|
395
|
+
### Errors
|
|
372
396
|
|
|
397
|
+
| Error Object | Status Code | Content Type |
|
|
398
|
+
| --------------- | --------------- | --------------- |
|
|
399
|
+
| errors.SDKError | 400-600 | */* |
|
|
373
400
|
|
|
374
401
|
## getPrompts
|
|
375
402
|
|
|
@@ -378,15 +405,14 @@ Get all prompts
|
|
|
378
405
|
### Example Usage
|
|
379
406
|
|
|
380
407
|
```typescript
|
|
381
|
-
import { HoneyHive } from "
|
|
408
|
+
import { HoneyHive } from "honeyhive";
|
|
382
409
|
|
|
383
410
|
(async() => {
|
|
384
411
|
const sdk = new HoneyHive({
|
|
385
412
|
bearerAuth: "",
|
|
386
413
|
});
|
|
387
414
|
|
|
388
|
-
const res = await sdk.
|
|
389
|
-
|
|
415
|
+
const res = await sdk.getPrompts({});
|
|
390
416
|
|
|
391
417
|
if (res.statusCode == 200) {
|
|
392
418
|
// handle response
|
|
@@ -405,7 +431,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
405
431
|
### Response
|
|
406
432
|
|
|
407
433
|
**Promise<[operations.GetPromptsResponse](../../models/operations/getpromptsresponse.md)>**
|
|
434
|
+
### Errors
|
|
408
435
|
|
|
436
|
+
| Error Object | Status Code | Content Type |
|
|
437
|
+
| --------------- | --------------- | --------------- |
|
|
438
|
+
| errors.SDKError | 400-600 | */* |
|
|
409
439
|
|
|
410
440
|
## getSession
|
|
411
441
|
|
|
@@ -414,18 +444,19 @@ Get all sessions
|
|
|
414
444
|
### Example Usage
|
|
415
445
|
|
|
416
446
|
```typescript
|
|
417
|
-
import { HoneyHive } from "
|
|
447
|
+
import { HoneyHive } from "honeyhive";
|
|
418
448
|
|
|
419
449
|
(async() => {
|
|
420
450
|
const sdk = new HoneyHive({
|
|
421
451
|
bearerAuth: "",
|
|
422
452
|
});
|
|
423
453
|
|
|
424
|
-
const res = await sdk.
|
|
425
|
-
query: {
|
|
454
|
+
const res = await sdk.getSession({
|
|
455
|
+
query: {
|
|
456
|
+
"key": "string",
|
|
457
|
+
},
|
|
426
458
|
});
|
|
427
459
|
|
|
428
|
-
|
|
429
460
|
if (res.statusCode == 200) {
|
|
430
461
|
// handle response
|
|
431
462
|
}
|
|
@@ -443,7 +474,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
443
474
|
### Response
|
|
444
475
|
|
|
445
476
|
**Promise<[operations.GetSessionResponse](../../models/operations/getsessionresponse.md)>**
|
|
477
|
+
### Errors
|
|
446
478
|
|
|
479
|
+
| Error Object | Status Code | Content Type |
|
|
480
|
+
| --------------- | --------------- | --------------- |
|
|
481
|
+
| errors.SDKError | 400-600 | */* |
|
|
447
482
|
|
|
448
483
|
## getSessionSessionId
|
|
449
484
|
|
|
@@ -452,18 +487,17 @@ Get a session
|
|
|
452
487
|
### Example Usage
|
|
453
488
|
|
|
454
489
|
```typescript
|
|
455
|
-
import { HoneyHive } from "
|
|
490
|
+
import { HoneyHive } from "honeyhive";
|
|
456
491
|
|
|
457
492
|
(async() => {
|
|
458
493
|
const sdk = new HoneyHive({
|
|
459
494
|
bearerAuth: "",
|
|
460
495
|
});
|
|
461
496
|
|
|
462
|
-
const res = await sdk.
|
|
497
|
+
const res = await sdk.getSessionSessionId({
|
|
463
498
|
sessionId: "string",
|
|
464
499
|
});
|
|
465
500
|
|
|
466
|
-
|
|
467
501
|
if (res.statusCode == 200) {
|
|
468
502
|
// handle response
|
|
469
503
|
}
|
|
@@ -481,7 +515,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
481
515
|
### Response
|
|
482
516
|
|
|
483
517
|
**Promise<[operations.GetSessionSessionIdResponse](../../models/operations/getsessionsessionidresponse.md)>**
|
|
518
|
+
### Errors
|
|
484
519
|
|
|
520
|
+
| Error Object | Status Code | Content Type |
|
|
521
|
+
| --------------- | --------------- | --------------- |
|
|
522
|
+
| errors.SDKError | 400-600 | */* |
|
|
485
523
|
|
|
486
524
|
## getSessionSessionIdExport
|
|
487
525
|
|
|
@@ -490,18 +528,17 @@ Get a session in Trace Event format
|
|
|
490
528
|
### Example Usage
|
|
491
529
|
|
|
492
530
|
```typescript
|
|
493
|
-
import { HoneyHive } from "
|
|
531
|
+
import { HoneyHive } from "honeyhive";
|
|
494
532
|
|
|
495
533
|
(async() => {
|
|
496
534
|
const sdk = new HoneyHive({
|
|
497
535
|
bearerAuth: "",
|
|
498
536
|
});
|
|
499
537
|
|
|
500
|
-
const res = await sdk.
|
|
538
|
+
const res = await sdk.getSessionSessionIdExport({
|
|
501
539
|
sessionId: "string",
|
|
502
540
|
});
|
|
503
541
|
|
|
504
|
-
|
|
505
542
|
if (res.statusCode == 200) {
|
|
506
543
|
// handle response
|
|
507
544
|
}
|
|
@@ -519,7 +556,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
519
556
|
### Response
|
|
520
557
|
|
|
521
558
|
**Promise<[operations.GetSessionSessionIdExportResponse](../../models/operations/getsessionsessionidexportresponse.md)>**
|
|
559
|
+
### Errors
|
|
522
560
|
|
|
561
|
+
| Error Object | Status Code | Content Type |
|
|
562
|
+
| --------------- | --------------- | --------------- |
|
|
563
|
+
| errors.SDKError | 400-600 | */* |
|
|
523
564
|
|
|
524
565
|
## getTasks
|
|
525
566
|
|
|
@@ -528,15 +569,14 @@ Get all tasks
|
|
|
528
569
|
### Example Usage
|
|
529
570
|
|
|
530
571
|
```typescript
|
|
531
|
-
import { HoneyHive } from "
|
|
572
|
+
import { HoneyHive } from "honeyhive";
|
|
532
573
|
|
|
533
574
|
(async() => {
|
|
534
575
|
const sdk = new HoneyHive({
|
|
535
576
|
bearerAuth: "",
|
|
536
577
|
});
|
|
537
578
|
|
|
538
|
-
const res = await sdk.
|
|
539
|
-
|
|
579
|
+
const res = await sdk.getTasks({});
|
|
540
580
|
|
|
541
581
|
if (res.statusCode == 200) {
|
|
542
582
|
// handle response
|
|
@@ -555,7 +595,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
555
595
|
### Response
|
|
556
596
|
|
|
557
597
|
**Promise<[operations.GetTasksResponse](../../models/operations/gettasksresponse.md)>**
|
|
598
|
+
### Errors
|
|
558
599
|
|
|
600
|
+
| Error Object | Status Code | Content Type |
|
|
601
|
+
| --------------- | --------------- | --------------- |
|
|
602
|
+
| errors.SDKError | 400-600 | */* |
|
|
559
603
|
|
|
560
604
|
## postDatasets
|
|
561
605
|
|
|
@@ -564,20 +608,21 @@ Create a dataset
|
|
|
564
608
|
### Example Usage
|
|
565
609
|
|
|
566
610
|
```typescript
|
|
567
|
-
import { HoneyHive } from "
|
|
611
|
+
import { HoneyHive } from "honeyhive";
|
|
568
612
|
|
|
569
613
|
(async() => {
|
|
570
614
|
const sdk = new HoneyHive({
|
|
571
615
|
bearerAuth: "",
|
|
572
616
|
});
|
|
573
617
|
|
|
574
|
-
const res = await sdk.
|
|
618
|
+
const res = await sdk.postDatasets({
|
|
575
619
|
file: [
|
|
576
|
-
{
|
|
620
|
+
{
|
|
621
|
+
"key": "string",
|
|
622
|
+
},
|
|
577
623
|
],
|
|
578
624
|
});
|
|
579
625
|
|
|
580
|
-
|
|
581
626
|
if (res.statusCode == 200) {
|
|
582
627
|
// handle response
|
|
583
628
|
}
|
|
@@ -595,7 +640,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
595
640
|
### Response
|
|
596
641
|
|
|
597
642
|
**Promise<[operations.PostDatasetsResponse](../../models/operations/postdatasetsresponse.md)>**
|
|
643
|
+
### Errors
|
|
598
644
|
|
|
645
|
+
| Error Object | Status Code | Content Type |
|
|
646
|
+
| --------------- | --------------- | --------------- |
|
|
647
|
+
| errors.SDKError | 400-600 | */* |
|
|
599
648
|
|
|
600
649
|
## postEvaluations
|
|
601
650
|
|
|
@@ -604,43 +653,56 @@ Log an evaluation
|
|
|
604
653
|
### Example Usage
|
|
605
654
|
|
|
606
655
|
```typescript
|
|
607
|
-
import { HoneyHive } from "
|
|
656
|
+
import { HoneyHive } from "honeyhive";
|
|
608
657
|
|
|
609
658
|
(async() => {
|
|
610
659
|
const sdk = new HoneyHive({
|
|
611
660
|
bearerAuth: "",
|
|
612
661
|
});
|
|
613
662
|
|
|
614
|
-
const res = await sdk.
|
|
663
|
+
const res = await sdk.postEvaluations({
|
|
615
664
|
comments: [
|
|
616
|
-
{
|
|
665
|
+
{
|
|
666
|
+
"key": "string",
|
|
667
|
+
},
|
|
617
668
|
],
|
|
618
669
|
dataset: [
|
|
619
|
-
{
|
|
670
|
+
{
|
|
671
|
+
"key": "string",
|
|
672
|
+
},
|
|
620
673
|
],
|
|
621
674
|
generations: [
|
|
622
|
-
{
|
|
675
|
+
{
|
|
676
|
+
"key": "string",
|
|
677
|
+
},
|
|
623
678
|
],
|
|
624
679
|
metrics: [
|
|
625
680
|
[
|
|
626
|
-
{
|
|
681
|
+
{
|
|
682
|
+
"key": "string",
|
|
683
|
+
},
|
|
627
684
|
],
|
|
628
685
|
],
|
|
629
686
|
metricsToCompute: [
|
|
630
687
|
"string",
|
|
631
688
|
],
|
|
632
689
|
prompts: [
|
|
633
|
-
{
|
|
690
|
+
{
|
|
691
|
+
"key": "string",
|
|
692
|
+
},
|
|
634
693
|
],
|
|
635
694
|
results: [
|
|
636
|
-
{
|
|
695
|
+
{
|
|
696
|
+
"key": "string",
|
|
697
|
+
},
|
|
637
698
|
],
|
|
638
699
|
summary: [
|
|
639
|
-
{
|
|
700
|
+
{
|
|
701
|
+
"key": "string",
|
|
702
|
+
},
|
|
640
703
|
],
|
|
641
704
|
});
|
|
642
705
|
|
|
643
|
-
|
|
644
706
|
if (res.statusCode == 200) {
|
|
645
707
|
// handle response
|
|
646
708
|
}
|
|
@@ -658,7 +720,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
658
720
|
### Response
|
|
659
721
|
|
|
660
722
|
**Promise<[operations.PostEvaluationsResponse](../../models/operations/postevaluationsresponse.md)>**
|
|
723
|
+
### Errors
|
|
661
724
|
|
|
725
|
+
| Error Object | Status Code | Content Type |
|
|
726
|
+
| --------------- | --------------- | --------------- |
|
|
727
|
+
| errors.SDKError | 400-600 | */* |
|
|
662
728
|
|
|
663
729
|
## postFeedback
|
|
664
730
|
|
|
@@ -667,18 +733,19 @@ Send feedback
|
|
|
667
733
|
### Example Usage
|
|
668
734
|
|
|
669
735
|
```typescript
|
|
670
|
-
import { HoneyHive } from "
|
|
736
|
+
import { HoneyHive } from "honeyhive";
|
|
671
737
|
|
|
672
738
|
(async() => {
|
|
673
739
|
const sdk = new HoneyHive({
|
|
674
740
|
bearerAuth: "",
|
|
675
741
|
});
|
|
676
742
|
|
|
677
|
-
const res = await sdk.
|
|
678
|
-
feedbackJson: {
|
|
743
|
+
const res = await sdk.postFeedback({
|
|
744
|
+
feedbackJson: {
|
|
745
|
+
"key": "string",
|
|
746
|
+
},
|
|
679
747
|
});
|
|
680
748
|
|
|
681
|
-
|
|
682
749
|
if (res.statusCode == 200) {
|
|
683
750
|
// handle response
|
|
684
751
|
}
|
|
@@ -696,7 +763,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
696
763
|
### Response
|
|
697
764
|
|
|
698
765
|
**Promise<[operations.PostFeedbackResponse](../../models/operations/postfeedbackresponse.md)>**
|
|
766
|
+
### Errors
|
|
699
767
|
|
|
768
|
+
| Error Object | Status Code | Content Type |
|
|
769
|
+
| --------------- | --------------- | --------------- |
|
|
770
|
+
| errors.SDKError | 400-600 | */* |
|
|
700
771
|
|
|
701
772
|
## postGenerations
|
|
702
773
|
|
|
@@ -705,23 +776,28 @@ Generate a text
|
|
|
705
776
|
### Example Usage
|
|
706
777
|
|
|
707
778
|
```typescript
|
|
708
|
-
import { HoneyHive } from "
|
|
779
|
+
import { HoneyHive } from "honeyhive";
|
|
709
780
|
|
|
710
781
|
(async() => {
|
|
711
782
|
const sdk = new HoneyHive({
|
|
712
783
|
bearerAuth: "",
|
|
713
784
|
});
|
|
714
785
|
|
|
715
|
-
const res = await sdk.
|
|
716
|
-
input: {
|
|
717
|
-
|
|
786
|
+
const res = await sdk.postGenerations({
|
|
787
|
+
input: {
|
|
788
|
+
"key": "string",
|
|
789
|
+
},
|
|
790
|
+
metadata: {
|
|
791
|
+
"key": "string",
|
|
792
|
+
},
|
|
718
793
|
prompts: [
|
|
719
794
|
"string",
|
|
720
795
|
],
|
|
721
|
-
userProperties: {
|
|
796
|
+
userProperties: {
|
|
797
|
+
"key": "string",
|
|
798
|
+
},
|
|
722
799
|
});
|
|
723
800
|
|
|
724
|
-
|
|
725
801
|
if (res.statusCode == 200) {
|
|
726
802
|
// handle response
|
|
727
803
|
}
|
|
@@ -739,7 +815,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
739
815
|
### Response
|
|
740
816
|
|
|
741
817
|
**Promise<[operations.PostGenerationsResponse](../../models/operations/postgenerationsresponse.md)>**
|
|
818
|
+
### Errors
|
|
742
819
|
|
|
820
|
+
| Error Object | Status Code | Content Type |
|
|
821
|
+
| --------------- | --------------- | --------------- |
|
|
822
|
+
| errors.SDKError | 400-600 | */* |
|
|
743
823
|
|
|
744
824
|
## postGenerationsLog
|
|
745
825
|
|
|
@@ -748,23 +828,32 @@ Log a generation
|
|
|
748
828
|
### Example Usage
|
|
749
829
|
|
|
750
830
|
```typescript
|
|
751
|
-
import { HoneyHive } from "
|
|
831
|
+
import { HoneyHive } from "honeyhive";
|
|
752
832
|
|
|
753
833
|
(async() => {
|
|
754
834
|
const sdk = new HoneyHive({
|
|
755
835
|
bearerAuth: "",
|
|
756
836
|
});
|
|
757
837
|
|
|
758
|
-
const res = await sdk.
|
|
759
|
-
feedback: {
|
|
760
|
-
|
|
761
|
-
|
|
838
|
+
const res = await sdk.postGenerationsLog({
|
|
839
|
+
feedback: {
|
|
840
|
+
"key": "string",
|
|
841
|
+
},
|
|
842
|
+
hyperparameters: {
|
|
843
|
+
"key": "string",
|
|
844
|
+
},
|
|
845
|
+
inputs: {
|
|
846
|
+
"key": "string",
|
|
847
|
+
},
|
|
762
848
|
metadata: {},
|
|
763
|
-
usage: {
|
|
764
|
-
|
|
849
|
+
usage: {
|
|
850
|
+
"key": "string",
|
|
851
|
+
},
|
|
852
|
+
userProperties: {
|
|
853
|
+
"key": "string",
|
|
854
|
+
},
|
|
765
855
|
});
|
|
766
856
|
|
|
767
|
-
|
|
768
857
|
if (res.statusCode == 200) {
|
|
769
858
|
// handle response
|
|
770
859
|
}
|
|
@@ -782,7 +871,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
782
871
|
### Response
|
|
783
872
|
|
|
784
873
|
**Promise<[operations.PostGenerationsLogResponse](../../models/operations/postgenerationslogresponse.md)>**
|
|
874
|
+
### Errors
|
|
785
875
|
|
|
876
|
+
| Error Object | Status Code | Content Type |
|
|
877
|
+
| --------------- | --------------- | --------------- |
|
|
878
|
+
| errors.SDKError | 400-600 | */* |
|
|
786
879
|
|
|
787
880
|
## postMetrics
|
|
788
881
|
|
|
@@ -791,15 +884,14 @@ Create a metric
|
|
|
791
884
|
### Example Usage
|
|
792
885
|
|
|
793
886
|
```typescript
|
|
794
|
-
import { HoneyHive } from "
|
|
887
|
+
import { HoneyHive } from "honeyhive";
|
|
795
888
|
|
|
796
889
|
(async() => {
|
|
797
890
|
const sdk = new HoneyHive({
|
|
798
891
|
bearerAuth: "",
|
|
799
892
|
});
|
|
800
893
|
|
|
801
|
-
const res = await sdk.
|
|
802
|
-
|
|
894
|
+
const res = await sdk.postMetrics({});
|
|
803
895
|
|
|
804
896
|
if (res.statusCode == 200) {
|
|
805
897
|
// handle response
|
|
@@ -818,7 +910,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
818
910
|
### Response
|
|
819
911
|
|
|
820
912
|
**Promise<[operations.PostMetricsResponse](../../models/operations/postmetricsresponse.md)>**
|
|
913
|
+
### Errors
|
|
821
914
|
|
|
915
|
+
| Error Object | Status Code | Content Type |
|
|
916
|
+
| --------------- | --------------- | --------------- |
|
|
917
|
+
| errors.SDKError | 400-600 | */* |
|
|
822
918
|
|
|
823
919
|
## postPrompts
|
|
824
920
|
|
|
@@ -827,23 +923,24 @@ Create a prompt
|
|
|
827
923
|
### Example Usage
|
|
828
924
|
|
|
829
925
|
```typescript
|
|
830
|
-
import { HoneyHive } from "
|
|
926
|
+
import { HoneyHive } from "honeyhive";
|
|
831
927
|
|
|
832
928
|
(async() => {
|
|
833
929
|
const sdk = new HoneyHive({
|
|
834
930
|
bearerAuth: "",
|
|
835
931
|
});
|
|
836
932
|
|
|
837
|
-
const res = await sdk.
|
|
933
|
+
const res = await sdk.postPrompts({
|
|
838
934
|
fewShotExamples: [
|
|
839
|
-
{
|
|
935
|
+
{
|
|
936
|
+
"key": "string",
|
|
937
|
+
},
|
|
840
938
|
],
|
|
841
939
|
hyperparameters: {
|
|
842
940
|
"key": "string",
|
|
843
941
|
},
|
|
844
942
|
});
|
|
845
943
|
|
|
846
|
-
|
|
847
944
|
if (res.statusCode == 200) {
|
|
848
945
|
// handle response
|
|
849
946
|
}
|
|
@@ -861,7 +958,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
861
958
|
### Response
|
|
862
959
|
|
|
863
960
|
**Promise<[operations.PostPromptsResponse](../../models/operations/postpromptsresponse.md)>**
|
|
961
|
+
### Errors
|
|
864
962
|
|
|
963
|
+
| Error Object | Status Code | Content Type |
|
|
964
|
+
| --------------- | --------------- | --------------- |
|
|
965
|
+
| errors.SDKError | 400-600 | */* |
|
|
865
966
|
|
|
866
967
|
## postSessionStart
|
|
867
968
|
|
|
@@ -870,18 +971,19 @@ Start a session
|
|
|
870
971
|
### Example Usage
|
|
871
972
|
|
|
872
973
|
```typescript
|
|
873
|
-
import { HoneyHive } from "
|
|
974
|
+
import { HoneyHive } from "honeyhive";
|
|
874
975
|
|
|
875
976
|
(async() => {
|
|
876
977
|
const sdk = new HoneyHive({
|
|
877
978
|
bearerAuth: "",
|
|
878
979
|
});
|
|
879
980
|
|
|
880
|
-
const res = await sdk.
|
|
881
|
-
userProperties: {
|
|
981
|
+
const res = await sdk.postSessionStart({
|
|
982
|
+
userProperties: {
|
|
983
|
+
"key": "string",
|
|
984
|
+
},
|
|
882
985
|
});
|
|
883
986
|
|
|
884
|
-
|
|
885
987
|
if (res.statusCode == 200) {
|
|
886
988
|
// handle response
|
|
887
989
|
}
|
|
@@ -899,7 +1001,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
899
1001
|
### Response
|
|
900
1002
|
|
|
901
1003
|
**Promise<[operations.PostSessionStartResponse](../../models/operations/postsessionstartresponse.md)>**
|
|
1004
|
+
### Errors
|
|
902
1005
|
|
|
1006
|
+
| Error Object | Status Code | Content Type |
|
|
1007
|
+
| --------------- | --------------- | --------------- |
|
|
1008
|
+
| errors.SDKError | 400-600 | */* |
|
|
903
1009
|
|
|
904
1010
|
## postSessionSessionIdEnd
|
|
905
1011
|
|
|
@@ -908,18 +1014,17 @@ End a session
|
|
|
908
1014
|
### Example Usage
|
|
909
1015
|
|
|
910
1016
|
```typescript
|
|
911
|
-
import { HoneyHive } from "
|
|
1017
|
+
import { HoneyHive } from "honeyhive";
|
|
912
1018
|
|
|
913
1019
|
(async() => {
|
|
914
1020
|
const sdk = new HoneyHive({
|
|
915
1021
|
bearerAuth: "",
|
|
916
1022
|
});
|
|
917
1023
|
|
|
918
|
-
const res = await sdk.
|
|
1024
|
+
const res = await sdk.postSessionSessionIdEnd({
|
|
919
1025
|
sessionId: "string",
|
|
920
1026
|
});
|
|
921
1027
|
|
|
922
|
-
|
|
923
1028
|
if (res.statusCode == 200) {
|
|
924
1029
|
// handle response
|
|
925
1030
|
}
|
|
@@ -937,7 +1042,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
937
1042
|
### Response
|
|
938
1043
|
|
|
939
1044
|
**Promise<[operations.PostSessionSessionIdEndResponse](../../models/operations/postsessionsessionidendresponse.md)>**
|
|
1045
|
+
### Errors
|
|
940
1046
|
|
|
1047
|
+
| Error Object | Status Code | Content Type |
|
|
1048
|
+
| --------------- | --------------- | --------------- |
|
|
1049
|
+
| errors.SDKError | 400-600 | */* |
|
|
941
1050
|
|
|
942
1051
|
## postSessionSessionIdEvent
|
|
943
1052
|
|
|
@@ -946,27 +1055,45 @@ Log an event
|
|
|
946
1055
|
### Example Usage
|
|
947
1056
|
|
|
948
1057
|
```typescript
|
|
949
|
-
import { HoneyHive } from "
|
|
1058
|
+
import { HoneyHive } from "honeyhive";
|
|
950
1059
|
|
|
951
1060
|
(async() => {
|
|
952
1061
|
const sdk = new HoneyHive({
|
|
953
1062
|
bearerAuth: "",
|
|
954
1063
|
});
|
|
955
1064
|
|
|
956
|
-
const res = await sdk.
|
|
1065
|
+
const res = await sdk.postSessionSessionIdEvent({
|
|
957
1066
|
sessionEventQuery: {
|
|
958
1067
|
children: [
|
|
959
|
-
{
|
|
1068
|
+
{
|
|
1069
|
+
"key": "string",
|
|
1070
|
+
},
|
|
960
1071
|
],
|
|
961
|
-
config: {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1072
|
+
config: {
|
|
1073
|
+
"key": "string",
|
|
1074
|
+
},
|
|
1075
|
+
feedback: {
|
|
1076
|
+
"key": "string",
|
|
1077
|
+
},
|
|
1078
|
+
inputs: {
|
|
1079
|
+
"key": "string",
|
|
1080
|
+
},
|
|
1081
|
+
metadata: {
|
|
1082
|
+
"key": "string",
|
|
1083
|
+
},
|
|
1084
|
+
metrics: {
|
|
1085
|
+
"key": "string",
|
|
1086
|
+
},
|
|
1087
|
+
outputs: {
|
|
1088
|
+
"key": "string",
|
|
1089
|
+
},
|
|
1090
|
+
userProperties: {
|
|
1091
|
+
"key": "string",
|
|
1092
|
+
},
|
|
965
1093
|
},
|
|
966
1094
|
sessionId: "string",
|
|
967
1095
|
});
|
|
968
1096
|
|
|
969
|
-
|
|
970
1097
|
if (res.statusCode == 200) {
|
|
971
1098
|
// handle response
|
|
972
1099
|
}
|
|
@@ -984,7 +1111,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
984
1111
|
### Response
|
|
985
1112
|
|
|
986
1113
|
**Promise<[operations.PostSessionSessionIdEventResponse](../../models/operations/postsessionsessionideventresponse.md)>**
|
|
1114
|
+
### Errors
|
|
987
1115
|
|
|
1116
|
+
| Error Object | Status Code | Content Type |
|
|
1117
|
+
| --------------- | --------------- | --------------- |
|
|
1118
|
+
| errors.SDKError | 400-600 | */* |
|
|
988
1119
|
|
|
989
1120
|
## postSessionSessionIdFeedback
|
|
990
1121
|
|
|
@@ -993,21 +1124,22 @@ Log session feedback
|
|
|
993
1124
|
### Example Usage
|
|
994
1125
|
|
|
995
1126
|
```typescript
|
|
996
|
-
import { HoneyHive } from "
|
|
1127
|
+
import { HoneyHive } from "honeyhive";
|
|
997
1128
|
|
|
998
1129
|
(async() => {
|
|
999
1130
|
const sdk = new HoneyHive({
|
|
1000
1131
|
bearerAuth: "",
|
|
1001
1132
|
});
|
|
1002
1133
|
|
|
1003
|
-
const res = await sdk.
|
|
1134
|
+
const res = await sdk.postSessionSessionIdFeedback({
|
|
1004
1135
|
sessionFeedback: {
|
|
1005
|
-
feedback: {
|
|
1136
|
+
feedback: {
|
|
1137
|
+
"key": "string",
|
|
1138
|
+
},
|
|
1006
1139
|
},
|
|
1007
1140
|
sessionId: "string",
|
|
1008
1141
|
});
|
|
1009
1142
|
|
|
1010
|
-
|
|
1011
1143
|
if (res.statusCode == 200) {
|
|
1012
1144
|
// handle response
|
|
1013
1145
|
}
|
|
@@ -1025,40 +1157,62 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1025
1157
|
### Response
|
|
1026
1158
|
|
|
1027
1159
|
**Promise<[operations.PostSessionSessionIdFeedbackResponse](../../models/operations/postsessionsessionidfeedbackresponse.md)>**
|
|
1160
|
+
### Errors
|
|
1028
1161
|
|
|
1162
|
+
| Error Object | Status Code | Content Type |
|
|
1163
|
+
| --------------- | --------------- | --------------- |
|
|
1164
|
+
| errors.SDKError | 400-600 | */* |
|
|
1029
1165
|
|
|
1030
|
-
##
|
|
1166
|
+
## postSessionSessionIdTraces
|
|
1031
1167
|
|
|
1032
1168
|
Log a trace
|
|
1033
1169
|
|
|
1034
1170
|
### Example Usage
|
|
1035
1171
|
|
|
1036
1172
|
```typescript
|
|
1037
|
-
import { HoneyHive } from "
|
|
1173
|
+
import { HoneyHive } from "honeyhive";
|
|
1038
1174
|
|
|
1039
1175
|
(async() => {
|
|
1040
1176
|
const sdk = new HoneyHive({
|
|
1041
1177
|
bearerAuth: "",
|
|
1042
1178
|
});
|
|
1043
1179
|
|
|
1044
|
-
const res = await sdk.
|
|
1180
|
+
const res = await sdk.postSessionSessionIdTraces({
|
|
1045
1181
|
sessionTrace: {
|
|
1046
1182
|
logs: [
|
|
1047
1183
|
{
|
|
1048
1184
|
children: [
|
|
1049
|
-
{
|
|
1185
|
+
{
|
|
1186
|
+
"key": "string",
|
|
1187
|
+
},
|
|
1050
1188
|
],
|
|
1051
|
-
config: {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1189
|
+
config: {
|
|
1190
|
+
"key": "string",
|
|
1191
|
+
},
|
|
1192
|
+
feedback: {
|
|
1193
|
+
"key": "string",
|
|
1194
|
+
},
|
|
1195
|
+
inputs: {
|
|
1196
|
+
"key": "string",
|
|
1197
|
+
},
|
|
1198
|
+
metadata: {
|
|
1199
|
+
"key": "string",
|
|
1200
|
+
},
|
|
1201
|
+
metrics: {
|
|
1202
|
+
"key": "string",
|
|
1203
|
+
},
|
|
1204
|
+
outputs: {
|
|
1205
|
+
"key": "string",
|
|
1206
|
+
},
|
|
1207
|
+
userProperties: {
|
|
1208
|
+
"key": "string",
|
|
1209
|
+
},
|
|
1055
1210
|
},
|
|
1056
1211
|
],
|
|
1057
1212
|
},
|
|
1058
1213
|
sessionId: "string",
|
|
1059
1214
|
});
|
|
1060
1215
|
|
|
1061
|
-
|
|
1062
1216
|
if (res.statusCode == 200) {
|
|
1063
1217
|
// handle response
|
|
1064
1218
|
}
|
|
@@ -1067,16 +1221,20 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1067
1221
|
|
|
1068
1222
|
### Parameters
|
|
1069
1223
|
|
|
1070
|
-
| Parameter
|
|
1071
|
-
|
|
|
1072
|
-
| `request`
|
|
1073
|
-
| `config`
|
|
1224
|
+
| Parameter | Type | Required | Description |
|
|
1225
|
+
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
1226
|
+
| `request` | [operations.PostSessionSessionIdTracesRequest](../../models/operations/postsessionsessionidtracesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1227
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
1074
1228
|
|
|
1075
1229
|
|
|
1076
1230
|
### Response
|
|
1077
1231
|
|
|
1078
|
-
**Promise<[operations.
|
|
1232
|
+
**Promise<[operations.PostSessionSessionIdTracesResponse](../../models/operations/postsessionsessionidtracesresponse.md)>**
|
|
1233
|
+
### Errors
|
|
1079
1234
|
|
|
1235
|
+
| Error Object | Status Code | Content Type |
|
|
1236
|
+
| --------------- | --------------- | --------------- |
|
|
1237
|
+
| errors.SDKError | 400-600 | */* |
|
|
1080
1238
|
|
|
1081
1239
|
## postTasks
|
|
1082
1240
|
|
|
@@ -1085,18 +1243,20 @@ Create a task
|
|
|
1085
1243
|
### Example Usage
|
|
1086
1244
|
|
|
1087
1245
|
```typescript
|
|
1088
|
-
import { HoneyHive } from "
|
|
1246
|
+
import { HoneyHive } from "honeyhive";
|
|
1089
1247
|
|
|
1090
1248
|
(async() => {
|
|
1091
1249
|
const sdk = new HoneyHive({
|
|
1092
1250
|
bearerAuth: "",
|
|
1093
1251
|
});
|
|
1094
1252
|
|
|
1095
|
-
const res = await sdk.
|
|
1253
|
+
const res = await sdk.postTasks({
|
|
1096
1254
|
datasets: [
|
|
1097
1255
|
{
|
|
1098
1256
|
file: [
|
|
1099
|
-
{
|
|
1257
|
+
{
|
|
1258
|
+
"key": "string",
|
|
1259
|
+
},
|
|
1100
1260
|
],
|
|
1101
1261
|
},
|
|
1102
1262
|
],
|
|
@@ -1105,13 +1265,17 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1105
1265
|
],
|
|
1106
1266
|
metrics: [
|
|
1107
1267
|
{
|
|
1108
|
-
threshold: {
|
|
1268
|
+
threshold: {
|
|
1269
|
+
"key": "string",
|
|
1270
|
+
},
|
|
1109
1271
|
},
|
|
1110
1272
|
],
|
|
1111
1273
|
prompts: [
|
|
1112
1274
|
{
|
|
1113
1275
|
fewShotExamples: [
|
|
1114
|
-
{
|
|
1276
|
+
{
|
|
1277
|
+
"key": "string",
|
|
1278
|
+
},
|
|
1115
1279
|
],
|
|
1116
1280
|
hyperparameters: {
|
|
1117
1281
|
"key": "string",
|
|
@@ -1123,7 +1287,6 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1123
1287
|
],
|
|
1124
1288
|
});
|
|
1125
1289
|
|
|
1126
|
-
|
|
1127
1290
|
if (res.statusCode == 200) {
|
|
1128
1291
|
// handle response
|
|
1129
1292
|
}
|
|
@@ -1141,7 +1304,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1141
1304
|
### Response
|
|
1142
1305
|
|
|
1143
1306
|
**Promise<[operations.PostTasksResponse](../../models/operations/posttasksresponse.md)>**
|
|
1307
|
+
### Errors
|
|
1144
1308
|
|
|
1309
|
+
| Error Object | Status Code | Content Type |
|
|
1310
|
+
| --------------- | --------------- | --------------- |
|
|
1311
|
+
| errors.SDKError | 400-600 | */* |
|
|
1145
1312
|
|
|
1146
1313
|
## putPromptsId
|
|
1147
1314
|
|
|
@@ -1150,17 +1317,19 @@ Update a prompt
|
|
|
1150
1317
|
### Example Usage
|
|
1151
1318
|
|
|
1152
1319
|
```typescript
|
|
1153
|
-
import { HoneyHive } from "
|
|
1320
|
+
import { HoneyHive } from "honeyhive";
|
|
1154
1321
|
|
|
1155
1322
|
(async() => {
|
|
1156
1323
|
const sdk = new HoneyHive({
|
|
1157
1324
|
bearerAuth: "",
|
|
1158
1325
|
});
|
|
1159
1326
|
|
|
1160
|
-
const res = await sdk.
|
|
1327
|
+
const res = await sdk.putPromptsId({
|
|
1161
1328
|
promptUpdateQuery: {
|
|
1162
1329
|
fewShotExamples: [
|
|
1163
|
-
{
|
|
1330
|
+
{
|
|
1331
|
+
"key": "string",
|
|
1332
|
+
},
|
|
1164
1333
|
],
|
|
1165
1334
|
hyperparameters: {
|
|
1166
1335
|
"key": "string",
|
|
@@ -1172,7 +1341,6 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1172
1341
|
id: "<ID>",
|
|
1173
1342
|
});
|
|
1174
1343
|
|
|
1175
|
-
|
|
1176
1344
|
if (res.statusCode == 200) {
|
|
1177
1345
|
// handle response
|
|
1178
1346
|
}
|
|
@@ -1190,7 +1358,11 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1190
1358
|
### Response
|
|
1191
1359
|
|
|
1192
1360
|
**Promise<[operations.PutPromptsIdResponse](../../models/operations/putpromptsidresponse.md)>**
|
|
1361
|
+
### Errors
|
|
1193
1362
|
|
|
1363
|
+
| Error Object | Status Code | Content Type |
|
|
1364
|
+
| --------------- | --------------- | --------------- |
|
|
1365
|
+
| errors.SDKError | 400-600 | */* |
|
|
1194
1366
|
|
|
1195
1367
|
## putTasks
|
|
1196
1368
|
|
|
@@ -1199,18 +1371,20 @@ Update a task
|
|
|
1199
1371
|
### Example Usage
|
|
1200
1372
|
|
|
1201
1373
|
```typescript
|
|
1202
|
-
import { HoneyHive } from "
|
|
1374
|
+
import { HoneyHive } from "honeyhive";
|
|
1203
1375
|
|
|
1204
1376
|
(async() => {
|
|
1205
1377
|
const sdk = new HoneyHive({
|
|
1206
1378
|
bearerAuth: "",
|
|
1207
1379
|
});
|
|
1208
1380
|
|
|
1209
|
-
const res = await sdk.
|
|
1381
|
+
const res = await sdk.putTasks({
|
|
1210
1382
|
datasets: [
|
|
1211
1383
|
{
|
|
1212
1384
|
file: [
|
|
1213
|
-
{
|
|
1385
|
+
{
|
|
1386
|
+
"key": "string",
|
|
1387
|
+
},
|
|
1214
1388
|
],
|
|
1215
1389
|
},
|
|
1216
1390
|
],
|
|
@@ -1219,13 +1393,17 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1219
1393
|
],
|
|
1220
1394
|
metrics: [
|
|
1221
1395
|
{
|
|
1222
|
-
threshold: {
|
|
1396
|
+
threshold: {
|
|
1397
|
+
"key": "string",
|
|
1398
|
+
},
|
|
1223
1399
|
},
|
|
1224
1400
|
],
|
|
1225
1401
|
prompts: [
|
|
1226
1402
|
{
|
|
1227
1403
|
fewShotExamples: [
|
|
1228
|
-
{
|
|
1404
|
+
{
|
|
1405
|
+
"key": "string",
|
|
1406
|
+
},
|
|
1229
1407
|
],
|
|
1230
1408
|
hyperparameters: {
|
|
1231
1409
|
"key": "string",
|
|
@@ -1237,7 +1415,6 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1237
1415
|
],
|
|
1238
1416
|
});
|
|
1239
1417
|
|
|
1240
|
-
|
|
1241
1418
|
if (res.statusCode == 200) {
|
|
1242
1419
|
// handle response
|
|
1243
1420
|
}
|
|
@@ -1255,4 +1432,8 @@ import { HoneyHive } from "HoneyHive";
|
|
|
1255
1432
|
### Response
|
|
1256
1433
|
|
|
1257
1434
|
**Promise<[operations.PutTasksResponse](../../models/operations/puttasksresponse.md)>**
|
|
1435
|
+
### Errors
|
|
1258
1436
|
|
|
1437
|
+
| Error Object | Status Code | Content Type |
|
|
1438
|
+
| --------------- | --------------- | --------------- |
|
|
1439
|
+
| errors.SDKError | 400-600 | */* |
|