honeyhive 0.3.0 → 0.4.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 CHANGED
@@ -12,27 +12,27 @@
12
12
  ### NPM
13
13
 
14
14
  ```bash
15
- npm add HoneyHive
15
+ npm add honeyhive
16
16
  ```
17
17
 
18
18
  ### Yarn
19
19
 
20
20
  ```bash
21
- yarn add HoneyHive
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 "HoneyHive";
28
+ import { HoneyHive } from "honeyhive";
29
29
 
30
30
  (async () => {
31
31
  const sdk = new HoneyHive({
32
32
  bearerAuth: "",
33
33
  });
34
34
 
35
- const res = await sdk.honeyHive.deleteDatasetsName({
35
+ const res = await sdk.deleteDatasetsName({
36
36
  name: "string",
37
37
  });
38
38
 
@@ -105,7 +105,7 @@ For example:
105
105
 
106
106
 
107
107
  ```typescript
108
- import { HoneyHive } from "HoneyHive";
108
+ import { HoneyHive } from "honeyhive";
109
109
 
110
110
  (async () => {
111
111
  const sdk = new HoneyHive({
@@ -113,7 +113,7 @@ import { HoneyHive } from "HoneyHive";
113
113
  serverIdx: 0,
114
114
  });
115
115
 
116
- const res = await sdk.honeyHive.deleteDatasetsName({
116
+ const res = await sdk.deleteDatasetsName({
117
117
  name: "string",
118
118
  });
119
119
 
@@ -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 "HoneyHive";
134
+ import { HoneyHive } from "honeyhive";
135
135
 
136
136
  (async () => {
137
137
  const sdk = new HoneyHive({
@@ -139,7 +139,7 @@ import { HoneyHive } from "HoneyHive";
139
139
  serverURL: "https://api.honeyhive.ai",
140
140
  });
141
141
 
142
- const res = await sdk.honeyHive.deleteDatasetsName({
142
+ const res = await sdk.deleteDatasetsName({
143
143
  name: "string",
144
144
  });
145
145
 
@@ -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 HoneyHive import HoneyHive;
163
+ from honeyhive import HoneyHive;
164
164
  import axios;
165
165
 
166
166
  const httpClient = axios.create({
@@ -42,14 +42,14 @@ Delete a dataset
42
42
  ### Example Usage
43
43
 
44
44
  ```typescript
45
- import { HoneyHive } from "HoneyHive";
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.honeyHive.deleteDatasetsName({
52
+ const res = await sdk.deleteDatasetsName({
53
53
  name: "string",
54
54
  });
55
55
 
@@ -80,14 +80,14 @@ Delete a metric
80
80
  ### Example Usage
81
81
 
82
82
  ```typescript
83
- import { HoneyHive } from "HoneyHive";
83
+ import { HoneyHive } from "honeyhive";
84
84
 
85
85
  (async() => {
86
86
  const sdk = new HoneyHive({
87
87
  bearerAuth: "",
88
88
  });
89
89
 
90
- const res = await sdk.honeyHive.deleteMetrics({
90
+ const res = await sdk.deleteMetrics({
91
91
  metricId: "string",
92
92
  name: "string",
93
93
  task: "string",
@@ -120,14 +120,14 @@ Delete a prompt
120
120
  ### Example Usage
121
121
 
122
122
  ```typescript
123
- import { HoneyHive } from "HoneyHive";
123
+ import { HoneyHive } from "honeyhive";
124
124
 
125
125
  (async() => {
126
126
  const sdk = new HoneyHive({
127
127
  bearerAuth: "",
128
128
  });
129
129
 
130
- const res = await sdk.honeyHive.deletePromptsId({
130
+ const res = await sdk.deletePromptsId({
131
131
  id: "<ID>",
132
132
  });
133
133
 
@@ -158,14 +158,14 @@ Delete a task
158
158
  ### Example Usage
159
159
 
160
160
  ```typescript
161
- import { HoneyHive } from "HoneyHive";
161
+ import { HoneyHive } from "honeyhive";
162
162
 
163
163
  (async() => {
164
164
  const sdk = new HoneyHive({
165
165
  bearerAuth: "",
166
166
  });
167
167
 
168
- const res = await sdk.honeyHive.deleteTasks({
168
+ const res = await sdk.deleteTasks({
169
169
  name: "string",
170
170
  });
171
171
 
@@ -196,14 +196,14 @@ Get datasets
196
196
  ### Example Usage
197
197
 
198
198
  ```typescript
199
- import { HoneyHive } from "HoneyHive";
199
+ import { HoneyHive } from "honeyhive";
200
200
 
201
201
  (async() => {
202
202
  const sdk = new HoneyHive({
203
203
  bearerAuth: "",
204
204
  });
205
205
 
206
- const res = await sdk.honeyHive.getDatasets({});
206
+ const res = await sdk.getDatasets({});
207
207
 
208
208
 
209
209
  if (res.statusCode == 200) {
@@ -232,14 +232,14 @@ Get all fine-tuned models
232
232
  ### Example Usage
233
233
 
234
234
  ```typescript
235
- import { HoneyHive } from "HoneyHive";
235
+ import { HoneyHive } from "honeyhive";
236
236
 
237
237
  (async() => {
238
238
  const sdk = new HoneyHive({
239
239
  bearerAuth: "",
240
240
  });
241
241
 
242
- const res = await sdk.honeyHive.getFineTunedModels({});
242
+ const res = await sdk.getFineTunedModels({});
243
243
 
244
244
 
245
245
  if (res.statusCode == 200) {
@@ -268,14 +268,14 @@ Get a fine-tuned model
268
268
  ### Example Usage
269
269
 
270
270
  ```typescript
271
- import { HoneyHive } from "HoneyHive";
271
+ import { HoneyHive } from "honeyhive";
272
272
 
273
273
  (async() => {
274
274
  const sdk = new HoneyHive({
275
275
  bearerAuth: "",
276
276
  });
277
277
 
278
- const res = await sdk.honeyHive.getFineTunedModelsId({
278
+ const res = await sdk.getFineTunedModelsId({
279
279
  id: "<ID>",
280
280
  });
281
281
 
@@ -306,14 +306,14 @@ Get all generations
306
306
  ### Example Usage
307
307
 
308
308
  ```typescript
309
- import { HoneyHive } from "HoneyHive";
309
+ import { HoneyHive } from "honeyhive";
310
310
 
311
311
  (async() => {
312
312
  const sdk = new HoneyHive({
313
313
  bearerAuth: "",
314
314
  });
315
315
 
316
- const res = await sdk.honeyHive.getGenerations({});
316
+ const res = await sdk.getGenerations({});
317
317
 
318
318
 
319
319
  if (res.statusCode == 200) {
@@ -342,14 +342,14 @@ Get all metrics
342
342
  ### Example Usage
343
343
 
344
344
  ```typescript
345
- import { HoneyHive } from "HoneyHive";
345
+ import { HoneyHive } from "honeyhive";
346
346
 
347
347
  (async() => {
348
348
  const sdk = new HoneyHive({
349
349
  bearerAuth: "",
350
350
  });
351
351
 
352
- const res = await sdk.honeyHive.getMetrics({});
352
+ const res = await sdk.getMetrics({});
353
353
 
354
354
 
355
355
  if (res.statusCode == 200) {
@@ -378,14 +378,14 @@ Get all prompts
378
378
  ### Example Usage
379
379
 
380
380
  ```typescript
381
- import { HoneyHive } from "HoneyHive";
381
+ import { HoneyHive } from "honeyhive";
382
382
 
383
383
  (async() => {
384
384
  const sdk = new HoneyHive({
385
385
  bearerAuth: "",
386
386
  });
387
387
 
388
- const res = await sdk.honeyHive.getPrompts({});
388
+ const res = await sdk.getPrompts({});
389
389
 
390
390
 
391
391
  if (res.statusCode == 200) {
@@ -414,14 +414,14 @@ Get all sessions
414
414
  ### Example Usage
415
415
 
416
416
  ```typescript
417
- import { HoneyHive } from "HoneyHive";
417
+ import { HoneyHive } from "honeyhive";
418
418
 
419
419
  (async() => {
420
420
  const sdk = new HoneyHive({
421
421
  bearerAuth: "",
422
422
  });
423
423
 
424
- const res = await sdk.honeyHive.getSession({
424
+ const res = await sdk.getSession({
425
425
  query: {},
426
426
  });
427
427
 
@@ -452,14 +452,14 @@ Get a session
452
452
  ### Example Usage
453
453
 
454
454
  ```typescript
455
- import { HoneyHive } from "HoneyHive";
455
+ import { HoneyHive } from "honeyhive";
456
456
 
457
457
  (async() => {
458
458
  const sdk = new HoneyHive({
459
459
  bearerAuth: "",
460
460
  });
461
461
 
462
- const res = await sdk.honeyHive.getSessionSessionId({
462
+ const res = await sdk.getSessionSessionId({
463
463
  sessionId: "string",
464
464
  });
465
465
 
@@ -490,14 +490,14 @@ Get a session in Trace Event format
490
490
  ### Example Usage
491
491
 
492
492
  ```typescript
493
- import { HoneyHive } from "HoneyHive";
493
+ import { HoneyHive } from "honeyhive";
494
494
 
495
495
  (async() => {
496
496
  const sdk = new HoneyHive({
497
497
  bearerAuth: "",
498
498
  });
499
499
 
500
- const res = await sdk.honeyHive.getSessionSessionIdExport({
500
+ const res = await sdk.getSessionSessionIdExport({
501
501
  sessionId: "string",
502
502
  });
503
503
 
@@ -528,14 +528,14 @@ Get all tasks
528
528
  ### Example Usage
529
529
 
530
530
  ```typescript
531
- import { HoneyHive } from "HoneyHive";
531
+ import { HoneyHive } from "honeyhive";
532
532
 
533
533
  (async() => {
534
534
  const sdk = new HoneyHive({
535
535
  bearerAuth: "",
536
536
  });
537
537
 
538
- const res = await sdk.honeyHive.getTasks({});
538
+ const res = await sdk.getTasks({});
539
539
 
540
540
 
541
541
  if (res.statusCode == 200) {
@@ -564,14 +564,14 @@ Create a dataset
564
564
  ### Example Usage
565
565
 
566
566
  ```typescript
567
- import { HoneyHive } from "HoneyHive";
567
+ import { HoneyHive } from "honeyhive";
568
568
 
569
569
  (async() => {
570
570
  const sdk = new HoneyHive({
571
571
  bearerAuth: "",
572
572
  });
573
573
 
574
- const res = await sdk.honeyHive.postDatasets({
574
+ const res = await sdk.postDatasets({
575
575
  file: [
576
576
  {},
577
577
  ],
@@ -604,14 +604,14 @@ Log an evaluation
604
604
  ### Example Usage
605
605
 
606
606
  ```typescript
607
- import { HoneyHive } from "HoneyHive";
607
+ import { HoneyHive } from "honeyhive";
608
608
 
609
609
  (async() => {
610
610
  const sdk = new HoneyHive({
611
611
  bearerAuth: "",
612
612
  });
613
613
 
614
- const res = await sdk.honeyHive.postEvaluations({
614
+ const res = await sdk.postEvaluations({
615
615
  comments: [
616
616
  {},
617
617
  ],
@@ -667,14 +667,14 @@ Send feedback
667
667
  ### Example Usage
668
668
 
669
669
  ```typescript
670
- import { HoneyHive } from "HoneyHive";
670
+ import { HoneyHive } from "honeyhive";
671
671
 
672
672
  (async() => {
673
673
  const sdk = new HoneyHive({
674
674
  bearerAuth: "",
675
675
  });
676
676
 
677
- const res = await sdk.honeyHive.postFeedback({
677
+ const res = await sdk.postFeedback({
678
678
  feedbackJson: {},
679
679
  });
680
680
 
@@ -705,14 +705,14 @@ Generate a text
705
705
  ### Example Usage
706
706
 
707
707
  ```typescript
708
- import { HoneyHive } from "HoneyHive";
708
+ import { HoneyHive } from "honeyhive";
709
709
 
710
710
  (async() => {
711
711
  const sdk = new HoneyHive({
712
712
  bearerAuth: "",
713
713
  });
714
714
 
715
- const res = await sdk.honeyHive.postGenerations({
715
+ const res = await sdk.postGenerations({
716
716
  input: {},
717
717
  metadata: {},
718
718
  prompts: [
@@ -748,14 +748,14 @@ Log a generation
748
748
  ### Example Usage
749
749
 
750
750
  ```typescript
751
- import { HoneyHive } from "HoneyHive";
751
+ import { HoneyHive } from "honeyhive";
752
752
 
753
753
  (async() => {
754
754
  const sdk = new HoneyHive({
755
755
  bearerAuth: "",
756
756
  });
757
757
 
758
- const res = await sdk.honeyHive.postGenerationsLog({
758
+ const res = await sdk.postGenerationsLog({
759
759
  feedback: {},
760
760
  hyperparameters: {},
761
761
  inputs: {},
@@ -791,14 +791,14 @@ Create a metric
791
791
  ### Example Usage
792
792
 
793
793
  ```typescript
794
- import { HoneyHive } from "HoneyHive";
794
+ import { HoneyHive } from "honeyhive";
795
795
 
796
796
  (async() => {
797
797
  const sdk = new HoneyHive({
798
798
  bearerAuth: "",
799
799
  });
800
800
 
801
- const res = await sdk.honeyHive.postMetrics({});
801
+ const res = await sdk.postMetrics({});
802
802
 
803
803
 
804
804
  if (res.statusCode == 200) {
@@ -827,14 +827,14 @@ Create a prompt
827
827
  ### Example Usage
828
828
 
829
829
  ```typescript
830
- import { HoneyHive } from "HoneyHive";
830
+ import { HoneyHive } from "honeyhive";
831
831
 
832
832
  (async() => {
833
833
  const sdk = new HoneyHive({
834
834
  bearerAuth: "",
835
835
  });
836
836
 
837
- const res = await sdk.honeyHive.postPrompts({
837
+ const res = await sdk.postPrompts({
838
838
  fewShotExamples: [
839
839
  {},
840
840
  ],
@@ -870,14 +870,14 @@ Start a session
870
870
  ### Example Usage
871
871
 
872
872
  ```typescript
873
- import { HoneyHive } from "HoneyHive";
873
+ import { HoneyHive } from "honeyhive";
874
874
 
875
875
  (async() => {
876
876
  const sdk = new HoneyHive({
877
877
  bearerAuth: "",
878
878
  });
879
879
 
880
- const res = await sdk.honeyHive.postSessionStart({
880
+ const res = await sdk.postSessionStart({
881
881
  userProperties: {},
882
882
  });
883
883
 
@@ -908,14 +908,14 @@ End a session
908
908
  ### Example Usage
909
909
 
910
910
  ```typescript
911
- import { HoneyHive } from "HoneyHive";
911
+ import { HoneyHive } from "honeyhive";
912
912
 
913
913
  (async() => {
914
914
  const sdk = new HoneyHive({
915
915
  bearerAuth: "",
916
916
  });
917
917
 
918
- const res = await sdk.honeyHive.postSessionSessionIdEnd({
918
+ const res = await sdk.postSessionSessionIdEnd({
919
919
  sessionId: "string",
920
920
  });
921
921
 
@@ -946,14 +946,14 @@ Log an event
946
946
  ### Example Usage
947
947
 
948
948
  ```typescript
949
- import { HoneyHive } from "HoneyHive";
949
+ import { HoneyHive } from "honeyhive";
950
950
 
951
951
  (async() => {
952
952
  const sdk = new HoneyHive({
953
953
  bearerAuth: "",
954
954
  });
955
955
 
956
- const res = await sdk.honeyHive.postSessionSessionIdEvent({
956
+ const res = await sdk.postSessionSessionIdEvent({
957
957
  sessionEventQuery: {
958
958
  children: [
959
959
  {},
@@ -993,14 +993,14 @@ Log session feedback
993
993
  ### Example Usage
994
994
 
995
995
  ```typescript
996
- import { HoneyHive } from "HoneyHive";
996
+ import { HoneyHive } from "honeyhive";
997
997
 
998
998
  (async() => {
999
999
  const sdk = new HoneyHive({
1000
1000
  bearerAuth: "",
1001
1001
  });
1002
1002
 
1003
- const res = await sdk.honeyHive.postSessionSessionIdFeedback({
1003
+ const res = await sdk.postSessionSessionIdFeedback({
1004
1004
  sessionFeedback: {
1005
1005
  feedback: {},
1006
1006
  },
@@ -1034,14 +1034,14 @@ Log a trace
1034
1034
  ### Example Usage
1035
1035
 
1036
1036
  ```typescript
1037
- import { HoneyHive } from "HoneyHive";
1037
+ import { HoneyHive } from "honeyhive";
1038
1038
 
1039
1039
  (async() => {
1040
1040
  const sdk = new HoneyHive({
1041
1041
  bearerAuth: "",
1042
1042
  });
1043
1043
 
1044
- const res = await sdk.honeyHive.postSessionsSessionIdTraces({
1044
+ const res = await sdk.postSessionsSessionIdTraces({
1045
1045
  sessionTrace: {
1046
1046
  logs: [
1047
1047
  {
@@ -1085,14 +1085,14 @@ Create a task
1085
1085
  ### Example Usage
1086
1086
 
1087
1087
  ```typescript
1088
- import { HoneyHive } from "HoneyHive";
1088
+ import { HoneyHive } from "honeyhive";
1089
1089
 
1090
1090
  (async() => {
1091
1091
  const sdk = new HoneyHive({
1092
1092
  bearerAuth: "",
1093
1093
  });
1094
1094
 
1095
- const res = await sdk.honeyHive.postTasks({
1095
+ const res = await sdk.postTasks({
1096
1096
  datasets: [
1097
1097
  {
1098
1098
  file: [
@@ -1150,14 +1150,14 @@ Update a prompt
1150
1150
  ### Example Usage
1151
1151
 
1152
1152
  ```typescript
1153
- import { HoneyHive } from "HoneyHive";
1153
+ import { HoneyHive } from "honeyhive";
1154
1154
 
1155
1155
  (async() => {
1156
1156
  const sdk = new HoneyHive({
1157
1157
  bearerAuth: "",
1158
1158
  });
1159
1159
 
1160
- const res = await sdk.honeyHive.putPromptsId({
1160
+ const res = await sdk.putPromptsId({
1161
1161
  promptUpdateQuery: {
1162
1162
  fewShotExamples: [
1163
1163
  {},
@@ -1199,14 +1199,14 @@ Update a task
1199
1199
  ### Example Usage
1200
1200
 
1201
1201
  ```typescript
1202
- import { HoneyHive } from "HoneyHive";
1202
+ import { HoneyHive } from "honeyhive";
1203
1203
 
1204
1204
  (async() => {
1205
1205
  const sdk = new HoneyHive({
1206
1206
  bearerAuth: "",
1207
1207
  });
1208
1208
 
1209
- const res = await sdk.honeyHive.putTasks({
1209
+ const res = await sdk.putTasks({
1210
1210
  datasets: [
1211
1211
  {
1212
1212
  file: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "honeyhive",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "author": "HoneyHive",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",