honeyhive 0.3.0 → 0.4.0
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 +6 -6
- package/docs/sdks/honeyhive/README.md +29 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
### NPM
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm add
|
|
15
|
+
npm add honeyhive
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
### Yarn
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
yarn add
|
|
21
|
+
yarn add honeyhive
|
|
22
22
|
```
|
|
23
23
|
<!-- End SDK Installation -->
|
|
24
24
|
|
|
25
25
|
## SDK Example Usage
|
|
26
26
|
<!-- Start SDK Example Usage -->
|
|
27
27
|
```typescript
|
|
28
|
-
import { HoneyHive } from "
|
|
28
|
+
import { HoneyHive } from "honeyhive";
|
|
29
29
|
|
|
30
30
|
(async () => {
|
|
31
31
|
const sdk = new HoneyHive({
|
|
@@ -105,7 +105,7 @@ For example:
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
```typescript
|
|
108
|
-
import { HoneyHive } from "
|
|
108
|
+
import { HoneyHive } from "honeyhive";
|
|
109
109
|
|
|
110
110
|
(async () => {
|
|
111
111
|
const sdk = new HoneyHive({
|
|
@@ -131,7 +131,7 @@ The default server can also be overridden globally by passing a URL to the `serv
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
```typescript
|
|
134
|
-
import { HoneyHive } from "
|
|
134
|
+
import { HoneyHive } from "honeyhive";
|
|
135
135
|
|
|
136
136
|
(async () => {
|
|
137
137
|
const sdk = new HoneyHive({
|
|
@@ -160,7 +160,7 @@ The Typescript SDK makes API calls using the (axios)[https://axios-http.com/docs
|
|
|
160
160
|
For example, you could specify a header for every request that your sdk makes as follows:
|
|
161
161
|
|
|
162
162
|
```typescript
|
|
163
|
-
from
|
|
163
|
+
from honeyhive import HoneyHive;
|
|
164
164
|
import axios;
|
|
165
165
|
|
|
166
166
|
const httpClient = axios.create({
|
|
@@ -42,7 +42,7 @@ 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({
|
|
@@ -80,7 +80,7 @@ Delete a metric
|
|
|
80
80
|
### Example Usage
|
|
81
81
|
|
|
82
82
|
```typescript
|
|
83
|
-
import { HoneyHive } from "
|
|
83
|
+
import { HoneyHive } from "honeyhive";
|
|
84
84
|
|
|
85
85
|
(async() => {
|
|
86
86
|
const sdk = new HoneyHive({
|
|
@@ -120,7 +120,7 @@ Delete a prompt
|
|
|
120
120
|
### Example Usage
|
|
121
121
|
|
|
122
122
|
```typescript
|
|
123
|
-
import { HoneyHive } from "
|
|
123
|
+
import { HoneyHive } from "honeyhive";
|
|
124
124
|
|
|
125
125
|
(async() => {
|
|
126
126
|
const sdk = new HoneyHive({
|
|
@@ -158,7 +158,7 @@ Delete a task
|
|
|
158
158
|
### Example Usage
|
|
159
159
|
|
|
160
160
|
```typescript
|
|
161
|
-
import { HoneyHive } from "
|
|
161
|
+
import { HoneyHive } from "honeyhive";
|
|
162
162
|
|
|
163
163
|
(async() => {
|
|
164
164
|
const sdk = new HoneyHive({
|
|
@@ -196,7 +196,7 @@ Get datasets
|
|
|
196
196
|
### Example Usage
|
|
197
197
|
|
|
198
198
|
```typescript
|
|
199
|
-
import { HoneyHive } from "
|
|
199
|
+
import { HoneyHive } from "honeyhive";
|
|
200
200
|
|
|
201
201
|
(async() => {
|
|
202
202
|
const sdk = new HoneyHive({
|
|
@@ -232,7 +232,7 @@ Get all fine-tuned models
|
|
|
232
232
|
### Example Usage
|
|
233
233
|
|
|
234
234
|
```typescript
|
|
235
|
-
import { HoneyHive } from "
|
|
235
|
+
import { HoneyHive } from "honeyhive";
|
|
236
236
|
|
|
237
237
|
(async() => {
|
|
238
238
|
const sdk = new HoneyHive({
|
|
@@ -268,7 +268,7 @@ Get a fine-tuned model
|
|
|
268
268
|
### Example Usage
|
|
269
269
|
|
|
270
270
|
```typescript
|
|
271
|
-
import { HoneyHive } from "
|
|
271
|
+
import { HoneyHive } from "honeyhive";
|
|
272
272
|
|
|
273
273
|
(async() => {
|
|
274
274
|
const sdk = new HoneyHive({
|
|
@@ -306,7 +306,7 @@ Get all generations
|
|
|
306
306
|
### Example Usage
|
|
307
307
|
|
|
308
308
|
```typescript
|
|
309
|
-
import { HoneyHive } from "
|
|
309
|
+
import { HoneyHive } from "honeyhive";
|
|
310
310
|
|
|
311
311
|
(async() => {
|
|
312
312
|
const sdk = new HoneyHive({
|
|
@@ -342,7 +342,7 @@ Get all metrics
|
|
|
342
342
|
### Example Usage
|
|
343
343
|
|
|
344
344
|
```typescript
|
|
345
|
-
import { HoneyHive } from "
|
|
345
|
+
import { HoneyHive } from "honeyhive";
|
|
346
346
|
|
|
347
347
|
(async() => {
|
|
348
348
|
const sdk = new HoneyHive({
|
|
@@ -378,7 +378,7 @@ Get all prompts
|
|
|
378
378
|
### Example Usage
|
|
379
379
|
|
|
380
380
|
```typescript
|
|
381
|
-
import { HoneyHive } from "
|
|
381
|
+
import { HoneyHive } from "honeyhive";
|
|
382
382
|
|
|
383
383
|
(async() => {
|
|
384
384
|
const sdk = new HoneyHive({
|
|
@@ -414,7 +414,7 @@ Get all sessions
|
|
|
414
414
|
### Example Usage
|
|
415
415
|
|
|
416
416
|
```typescript
|
|
417
|
-
import { HoneyHive } from "
|
|
417
|
+
import { HoneyHive } from "honeyhive";
|
|
418
418
|
|
|
419
419
|
(async() => {
|
|
420
420
|
const sdk = new HoneyHive({
|
|
@@ -452,7 +452,7 @@ Get a session
|
|
|
452
452
|
### Example Usage
|
|
453
453
|
|
|
454
454
|
```typescript
|
|
455
|
-
import { HoneyHive } from "
|
|
455
|
+
import { HoneyHive } from "honeyhive";
|
|
456
456
|
|
|
457
457
|
(async() => {
|
|
458
458
|
const sdk = new HoneyHive({
|
|
@@ -490,7 +490,7 @@ Get a session in Trace Event format
|
|
|
490
490
|
### Example Usage
|
|
491
491
|
|
|
492
492
|
```typescript
|
|
493
|
-
import { HoneyHive } from "
|
|
493
|
+
import { HoneyHive } from "honeyhive";
|
|
494
494
|
|
|
495
495
|
(async() => {
|
|
496
496
|
const sdk = new HoneyHive({
|
|
@@ -528,7 +528,7 @@ Get all tasks
|
|
|
528
528
|
### Example Usage
|
|
529
529
|
|
|
530
530
|
```typescript
|
|
531
|
-
import { HoneyHive } from "
|
|
531
|
+
import { HoneyHive } from "honeyhive";
|
|
532
532
|
|
|
533
533
|
(async() => {
|
|
534
534
|
const sdk = new HoneyHive({
|
|
@@ -564,7 +564,7 @@ Create a dataset
|
|
|
564
564
|
### Example Usage
|
|
565
565
|
|
|
566
566
|
```typescript
|
|
567
|
-
import { HoneyHive } from "
|
|
567
|
+
import { HoneyHive } from "honeyhive";
|
|
568
568
|
|
|
569
569
|
(async() => {
|
|
570
570
|
const sdk = new HoneyHive({
|
|
@@ -604,7 +604,7 @@ Log an evaluation
|
|
|
604
604
|
### Example Usage
|
|
605
605
|
|
|
606
606
|
```typescript
|
|
607
|
-
import { HoneyHive } from "
|
|
607
|
+
import { HoneyHive } from "honeyhive";
|
|
608
608
|
|
|
609
609
|
(async() => {
|
|
610
610
|
const sdk = new HoneyHive({
|
|
@@ -667,7 +667,7 @@ Send feedback
|
|
|
667
667
|
### Example Usage
|
|
668
668
|
|
|
669
669
|
```typescript
|
|
670
|
-
import { HoneyHive } from "
|
|
670
|
+
import { HoneyHive } from "honeyhive";
|
|
671
671
|
|
|
672
672
|
(async() => {
|
|
673
673
|
const sdk = new HoneyHive({
|
|
@@ -705,7 +705,7 @@ Generate a text
|
|
|
705
705
|
### Example Usage
|
|
706
706
|
|
|
707
707
|
```typescript
|
|
708
|
-
import { HoneyHive } from "
|
|
708
|
+
import { HoneyHive } from "honeyhive";
|
|
709
709
|
|
|
710
710
|
(async() => {
|
|
711
711
|
const sdk = new HoneyHive({
|
|
@@ -748,7 +748,7 @@ Log a generation
|
|
|
748
748
|
### Example Usage
|
|
749
749
|
|
|
750
750
|
```typescript
|
|
751
|
-
import { HoneyHive } from "
|
|
751
|
+
import { HoneyHive } from "honeyhive";
|
|
752
752
|
|
|
753
753
|
(async() => {
|
|
754
754
|
const sdk = new HoneyHive({
|
|
@@ -791,7 +791,7 @@ Create a metric
|
|
|
791
791
|
### Example Usage
|
|
792
792
|
|
|
793
793
|
```typescript
|
|
794
|
-
import { HoneyHive } from "
|
|
794
|
+
import { HoneyHive } from "honeyhive";
|
|
795
795
|
|
|
796
796
|
(async() => {
|
|
797
797
|
const sdk = new HoneyHive({
|
|
@@ -827,7 +827,7 @@ Create a prompt
|
|
|
827
827
|
### Example Usage
|
|
828
828
|
|
|
829
829
|
```typescript
|
|
830
|
-
import { HoneyHive } from "
|
|
830
|
+
import { HoneyHive } from "honeyhive";
|
|
831
831
|
|
|
832
832
|
(async() => {
|
|
833
833
|
const sdk = new HoneyHive({
|
|
@@ -870,7 +870,7 @@ Start a session
|
|
|
870
870
|
### Example Usage
|
|
871
871
|
|
|
872
872
|
```typescript
|
|
873
|
-
import { HoneyHive } from "
|
|
873
|
+
import { HoneyHive } from "honeyhive";
|
|
874
874
|
|
|
875
875
|
(async() => {
|
|
876
876
|
const sdk = new HoneyHive({
|
|
@@ -908,7 +908,7 @@ End a session
|
|
|
908
908
|
### Example Usage
|
|
909
909
|
|
|
910
910
|
```typescript
|
|
911
|
-
import { HoneyHive } from "
|
|
911
|
+
import { HoneyHive } from "honeyhive";
|
|
912
912
|
|
|
913
913
|
(async() => {
|
|
914
914
|
const sdk = new HoneyHive({
|
|
@@ -946,7 +946,7 @@ Log an event
|
|
|
946
946
|
### Example Usage
|
|
947
947
|
|
|
948
948
|
```typescript
|
|
949
|
-
import { HoneyHive } from "
|
|
949
|
+
import { HoneyHive } from "honeyhive";
|
|
950
950
|
|
|
951
951
|
(async() => {
|
|
952
952
|
const sdk = new HoneyHive({
|
|
@@ -993,7 +993,7 @@ Log session feedback
|
|
|
993
993
|
### Example Usage
|
|
994
994
|
|
|
995
995
|
```typescript
|
|
996
|
-
import { HoneyHive } from "
|
|
996
|
+
import { HoneyHive } from "honeyhive";
|
|
997
997
|
|
|
998
998
|
(async() => {
|
|
999
999
|
const sdk = new HoneyHive({
|
|
@@ -1034,7 +1034,7 @@ Log a trace
|
|
|
1034
1034
|
### Example Usage
|
|
1035
1035
|
|
|
1036
1036
|
```typescript
|
|
1037
|
-
import { HoneyHive } from "
|
|
1037
|
+
import { HoneyHive } from "honeyhive";
|
|
1038
1038
|
|
|
1039
1039
|
(async() => {
|
|
1040
1040
|
const sdk = new HoneyHive({
|
|
@@ -1085,7 +1085,7 @@ Create a task
|
|
|
1085
1085
|
### Example Usage
|
|
1086
1086
|
|
|
1087
1087
|
```typescript
|
|
1088
|
-
import { HoneyHive } from "
|
|
1088
|
+
import { HoneyHive } from "honeyhive";
|
|
1089
1089
|
|
|
1090
1090
|
(async() => {
|
|
1091
1091
|
const sdk = new HoneyHive({
|
|
@@ -1150,7 +1150,7 @@ Update a prompt
|
|
|
1150
1150
|
### Example Usage
|
|
1151
1151
|
|
|
1152
1152
|
```typescript
|
|
1153
|
-
import { HoneyHive } from "
|
|
1153
|
+
import { HoneyHive } from "honeyhive";
|
|
1154
1154
|
|
|
1155
1155
|
(async() => {
|
|
1156
1156
|
const sdk = new HoneyHive({
|
|
@@ -1199,7 +1199,7 @@ Update a task
|
|
|
1199
1199
|
### Example Usage
|
|
1200
1200
|
|
|
1201
1201
|
```typescript
|
|
1202
|
-
import { HoneyHive } from "
|
|
1202
|
+
import { HoneyHive } from "honeyhive";
|
|
1203
1203
|
|
|
1204
1204
|
(async() => {
|
|
1205
1205
|
const sdk = new HoneyHive({
|