honeyhive 0.3.13 → 0.3.14
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 +35 -47
- package/dist/models/components/configuration.d.ts +17 -73
- package/dist/models/components/configuration.js +22 -115
- package/dist/models/components/createdatapointrequest.d.ts +2 -12
- package/dist/models/components/createdatapointrequest.js +3 -27
- package/dist/models/components/createdatasetrequest.d.ts +1 -6
- package/dist/models/components/createdatasetrequest.js +2 -14
- package/dist/models/components/createeventrequest.d.ts +15 -42
- package/dist/models/components/createeventrequest.js +18 -92
- package/dist/models/components/createprojectrequest.d.ts +0 -5
- package/dist/models/components/createprojectrequest.js +1 -11
- package/dist/models/components/createtoolrequest.d.ts +18 -0
- package/dist/models/components/createtoolrequest.js +70 -0
- package/dist/models/components/datapoint.d.ts +1 -3
- package/dist/models/components/datapoint.js +2 -11
- package/dist/models/components/datasetupdate.d.ts +1 -6
- package/dist/models/components/datasetupdate.js +2 -14
- package/dist/models/components/event.d.ts +7 -42
- package/dist/models/components/event.js +8 -92
- package/dist/models/components/index.d.ts +3 -1
- package/dist/models/components/index.js +3 -1
- package/dist/models/components/metric.d.ts +8 -3
- package/dist/models/components/metric.js +7 -1
- package/dist/models/components/metricedit.d.ts +9 -4
- package/dist/models/components/metricedit.js +7 -1
- package/dist/models/components/project.d.ts +0 -5
- package/dist/models/components/project.js +1 -11
- package/dist/models/components/sessionstartrequest.d.ts +7 -42
- package/dist/models/components/sessionstartrequest.js +8 -92
- package/dist/models/components/tool.d.ts +2 -7
- package/dist/models/components/tool.js +4 -16
- package/dist/models/components/updatedatapointrequest.d.ts +2 -12
- package/dist/models/components/updatedatapointrequest.js +3 -27
- package/dist/models/components/updateprojectrequest.d.ts +6 -0
- package/dist/models/components/updateprojectrequest.js +55 -0
- package/dist/models/components/updatetoolrequest.d.ts +7 -0
- package/dist/models/components/updatetoolrequest.js +60 -0
- package/dist/models/operations/createdataset.d.ts +12 -3
- package/dist/models/operations/createdataset.js +39 -27
- package/dist/models/operations/createevent.d.ts +31 -0
- package/dist/models/operations/createevent.js +115 -0
- package/dist/models/operations/createmetric.d.ts +16 -0
- package/dist/models/operations/createmetric.js +51 -0
- package/dist/models/operations/createtool.d.ts +12 -2
- package/dist/models/operations/createtool.js +31 -10
- package/dist/models/operations/deletedataset.d.ts +4 -11
- package/dist/models/operations/deletedataset.js +3 -24
- package/dist/models/operations/deleteevent.d.ts +20 -0
- package/dist/models/operations/deleteevent.js +67 -0
- package/dist/models/operations/deletemetric.d.ts +19 -0
- package/dist/models/operations/deletemetric.js +63 -0
- package/dist/models/operations/getconfigurations.d.ts +19 -3
- package/dist/models/operations/getconfigurations.js +19 -2
- package/dist/models/operations/getdatapoint.d.ts +7 -1
- package/dist/models/operations/getdatapoint.js +21 -3
- package/dist/models/operations/getdatasets.d.ts +1 -1
- package/dist/models/operations/getdatasets.js +2 -2
- package/dist/models/operations/gettools.d.ts +0 -3
- package/dist/models/operations/gettools.js +1 -15
- package/dist/models/operations/index.d.ts +9 -9
- package/dist/models/operations/index.js +9 -9
- package/dist/models/operations/updatedataset.d.ts +0 -9
- package/dist/models/operations/updatedataset.js +1 -45
- package/dist/models/operations/updateevent.d.ts +23 -0
- package/dist/models/operations/updateevent.js +85 -0
- package/dist/models/operations/updatemetric.d.ts +16 -0
- package/dist/models/operations/updatemetric.js +51 -0
- package/dist/models/operations/updateproject.d.ts +0 -5
- package/dist/models/operations/updateproject.js +0 -28
- package/dist/models/operations/updatetool.d.ts +0 -3
- package/dist/models/operations/updatetool.js +1 -15
- package/dist/sdk/configurations.d.ts +1 -1
- package/dist/sdk/configurations.js +3 -1
- package/dist/sdk/datapoints.js +1 -1
- package/dist/sdk/datasets.d.ts +3 -3
- package/dist/sdk/datasets.js +8 -8
- package/dist/sdk/events.d.ts +3 -3
- package/dist/sdk/events.js +10 -10
- package/dist/sdk/metrics.d.ts +3 -3
- package/dist/sdk/metrics.js +7 -7
- package/dist/sdk/projects.d.ts +1 -1
- package/dist/sdk/projects.js +4 -11
- package/dist/sdk/sdk.js +3 -3
- package/dist/sdk/tools.d.ts +3 -3
- package/dist/sdk/tools.js +50 -22
- package/dist/sdk/tracer.d.ts +18 -1
- package/dist/sdk/tracer.js +176 -16
- package/docs/models/components/configuration.md +10 -8
- package/docs/models/components/createdatapointrequest.md +11 -11
- package/docs/models/components/createdatasetrequest.md +11 -11
- package/docs/models/components/createeventrequest.md +21 -19
- package/docs/models/components/createprojectrequest.md +4 -5
- package/docs/models/components/createtoolrequest.md +12 -0
- package/docs/models/components/createtoolrequesttype.md +9 -0
- package/docs/models/components/datapoint.md +1 -1
- package/docs/models/components/datasetupdate.md +10 -10
- package/docs/models/components/env.md +10 -0
- package/docs/models/components/event.md +21 -21
- package/docs/models/components/metric.md +2 -1
- package/docs/models/components/metricedit.md +3 -2
- package/docs/models/components/metricedittype.md +3 -2
- package/docs/models/components/metrictype.md +3 -2
- package/docs/models/components/project.md +5 -6
- package/docs/models/components/sessionstartrequest.md +18 -18
- package/docs/models/components/tool.md +8 -8
- package/docs/models/components/updatedatapointrequest.md +2 -2
- package/docs/models/components/updateprojectrequest.md +10 -0
- package/docs/models/components/updatetoolrequest.md +11 -0
- package/docs/models/operations/createdatasetresponse.md +11 -0
- package/docs/models/operations/createdatasetresponsebody.md +11 -0
- package/docs/models/operations/{createtoolsecurity.md → createdatasetresult.md} +2 -2
- package/docs/models/operations/{posteventsrequestbody.md → createeventrequestbody.md} +1 -1
- package/docs/models/operations/createeventresponse.md +11 -0
- package/docs/models/operations/{posteventsresponsebody.md → createeventresponsebody.md} +1 -1
- package/docs/models/operations/{postmetricsresponse.md → createmetricresponse.md} +1 -1
- package/docs/models/operations/createtoolresponse.md +6 -5
- package/docs/models/operations/createtoolresponsebody.md +10 -0
- package/docs/models/operations/{postdatasetsresult.md → createtoolresult.md} +1 -1
- package/docs/models/operations/{deletedatasetsrequest.md → deletedatasetrequest.md} +1 -1
- package/docs/models/operations/{deletemetricsresponse.md → deletedatasetresponse.md} +1 -1
- package/docs/models/operations/{deleteeventseventidrequest.md → deleteeventrequest.md} +1 -1
- package/docs/models/operations/{putmetricsresponse.md → deleteeventresponse.md} +1 -1
- package/docs/models/operations/{deletemetricsrequest.md → deletemetricrequest.md} +1 -1
- package/docs/models/operations/{puteventsresponse.md → deletemetricresponse.md} +1 -1
- package/docs/models/operations/env.md +12 -0
- package/docs/models/operations/getconfigurationsrequest.md +6 -4
- package/docs/models/operations/getdatapointresponse.md +6 -6
- package/docs/models/operations/getdatapointresponsebody.md +10 -0
- package/docs/models/operations/getdatasetsresponsebody.md +1 -1
- package/docs/models/operations/typet.md +1 -1
- package/docs/models/operations/updatedatasetresponse.md +10 -0
- package/docs/models/operations/updateeventrequestbody.md +12 -0
- package/docs/models/operations/{putdatasetsresponse.md → updateeventresponse.md} +1 -1
- package/docs/models/operations/updatemetricresponse.md +10 -0
- package/docs/models/operations/updateprojectresponse.md +5 -6
- package/docs/sdks/configurations/README.md +35 -52
- package/docs/sdks/datapoints/README.md +23 -20
- package/docs/sdks/datasets/README.md +25 -21
- package/docs/sdks/events/README.md +59 -37
- package/docs/sdks/metrics/README.md +24 -23
- package/docs/sdks/projects/README.md +11 -15
- package/docs/sdks/session/README.md +28 -14
- package/docs/sdks/tools/README.md +37 -35
- package/package.json +1 -1
- package/docs/models/components/calltype.md +0 -11
- package/docs/models/components/config.md +0 -9
- package/docs/models/components/createdatapointrequestinputs.md +0 -9
- package/docs/models/components/createdatapointrequestmetadata.md +0 -9
- package/docs/models/components/createdatasetrequestmetadata.md +0 -9
- package/docs/models/components/createeventrequestinputs.md +0 -9
- package/docs/models/components/createeventrequestmetadata.md +0 -9
- package/docs/models/components/createeventrequestuserproperties.md +0 -9
- package/docs/models/components/createprojectrequesttype.md +0 -9
- package/docs/models/components/datasetupdatemetadata.md +0 -9
- package/docs/models/components/eventconfig.md +0 -9
- package/docs/models/components/eventfeedback.md +0 -9
- package/docs/models/components/eventinputs.md +0 -9
- package/docs/models/components/eventmetadata.md +0 -9
- package/docs/models/components/eventmetrics.md +0 -9
- package/docs/models/components/eventoutputs.md +0 -9
- package/docs/models/components/eventuserproperties.md +0 -9
- package/docs/models/components/feedback.md +0 -9
- package/docs/models/components/functioncallparams.md +0 -12
- package/docs/models/components/hyperparameters.md +0 -9
- package/docs/models/components/metadata.md +0 -7
- package/docs/models/components/metrics.md +0 -9
- package/docs/models/components/outputs.md +0 -9
- package/docs/models/components/parameterst.md +0 -13
- package/docs/models/components/projecttype.md +0 -9
- package/docs/models/components/selectedfunctions.md +0 -11
- package/docs/models/components/sessionstartrequestconfig.md +0 -9
- package/docs/models/components/sessionstartrequestfeedback.md +0 -9
- package/docs/models/components/sessionstartrequestinputs.md +0 -9
- package/docs/models/components/sessionstartrequestmetadata.md +0 -9
- package/docs/models/components/sessionstartrequestmetrics.md +0 -9
- package/docs/models/components/sessionstartrequestoutputs.md +0 -9
- package/docs/models/components/sessionstartrequestuserproperties.md +0 -9
- package/docs/models/components/toolparameters.md +0 -9
- package/docs/models/components/toolupdate.md +0 -11
- package/docs/models/components/toolupdateparameters.md +0 -7
- package/docs/models/components/updatedatapointrequestinputs.md +0 -9
- package/docs/models/components/updatedatapointrequestmetadata.md +0 -9
- package/docs/models/components/userproperties.md +0 -9
- package/docs/models/operations/deletedatasetsresponse.md +0 -10
- package/docs/models/operations/deleteeventseventidresponse.md +0 -10
- package/docs/models/operations/feedback.md +0 -7
- package/docs/models/operations/gettoolssecurity.md +0 -8
- package/docs/models/operations/metadata.md +0 -7
- package/docs/models/operations/metrics.md +0 -7
- package/docs/models/operations/outputs.md +0 -7
- package/docs/models/operations/postdatasetsresponse.md +0 -11
- package/docs/models/operations/postdatasetsresponsebody.md +0 -11
- package/docs/models/operations/posteventsresponse.md +0 -11
- package/docs/models/operations/puteventsrequestbody.md +0 -12
- package/docs/models/operations/updatetoolsecurity.md +0 -8
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CreateEventResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `object` | [operations.CreateEventResponseBody](../../models/operations/createeventresponsebody.md) | :heavy_minus_sign: | Event created |
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `contentType`
|
|
9
|
-
| `statusCode`
|
|
10
|
-
| `rawResponse`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `object` | [operations.CreateToolResponseBody](../../models/operations/createtoolresponsebody.md) | :heavy_minus_sign: | Tool successfully created |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CreateToolResponseBody
|
|
2
|
+
|
|
3
|
+
Tool successfully created
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
10
|
+
| `result` | [operations.CreateToolResult](../../models/operations/createtoolresult.md) | :heavy_minus_sign: | N/A |
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `projectName`
|
|
9
|
-
| `type`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
|
8
|
+
| `projectName` | *string* | :heavy_check_mark: | Project name for configuration |
|
|
9
|
+
| `type` | [operations.TypeT](../../models/operations/typet.md) | :heavy_minus_sign: | Configuration type - "LLM" or "pipeline" - default is "LLM" |
|
|
10
|
+
| `env` | [operations.Env](../../models/operations/env.md) | :heavy_minus_sign: | Environment - "dev", "staging" or "prod" |
|
|
11
|
+
| `name` | *string* | :heavy_minus_sign: | The name of the configuration |
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `contentType`
|
|
9
|
-
| `statusCode`
|
|
10
|
-
| `rawResponse`
|
|
11
|
-
| `
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
+
| `object` | [operations.GetDatapointResponseBody](../../models/operations/getdatapointresponsebody.md) | :heavy_minus_sign: | Successful response |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# GetDatapointResponseBody
|
|
2
|
+
|
|
3
|
+
Successful response
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
10
|
+
| `datapoint` | [components.Datapoint](../../models/components/datapoint.md)[] | :heavy_minus_sign: | N/A |
|
|
@@ -7,4 +7,4 @@ Successful response
|
|
|
7
7
|
|
|
8
8
|
| Field | Type | Required | Description |
|
|
9
9
|
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
|
|
10
|
-
| `
|
|
10
|
+
| `testcases` | [components.Dataset](../../models/components/dataset.md)[] | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UpdateDatasetResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UpdateEventRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------- | --------------------- | --------------------- | --------------------- |
|
|
8
|
+
| `eventId` | *string* | :heavy_check_mark: | N/A |
|
|
9
|
+
| `feedback` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
11
|
+
| `metrics` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
12
|
+
| `outputs` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UpdateMetricResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `contentType`
|
|
9
|
-
| `statusCode`
|
|
10
|
-
| `rawResponse`
|
|
11
|
-
| `project` | [components.Project](../../models/components/project.md) | :heavy_minus_sign: | Project updated |
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
|
8
|
+
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
|
+
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
|
+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
@@ -15,8 +15,8 @@ Retrieve a list of configurations
|
|
|
15
15
|
### Example Usage
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { HoneyHive } from "
|
|
19
|
-
import { GetConfigurationsRequest, TypeT } from "
|
|
18
|
+
import { HoneyHive } from "honeyhive";
|
|
19
|
+
import { Env, GetConfigurationsRequest, TypeT } from "honeyhive/dist/models/operations";
|
|
20
20
|
|
|
21
21
|
async function run() {
|
|
22
22
|
const sdk = new HoneyHive({
|
|
@@ -24,8 +24,10 @@ async function run() {
|
|
|
24
24
|
});
|
|
25
25
|
const projectName: string = "<value>";
|
|
26
26
|
const type: TypeT = TypeT.Llm;
|
|
27
|
+
const env: Env = Env.Prod;
|
|
28
|
+
const name: string = "<value>";
|
|
27
29
|
|
|
28
|
-
const res = await sdk.configurations.getConfigurations(projectName, type);
|
|
30
|
+
const res = await sdk.configurations.getConfigurations(projectName, type, env, name);
|
|
29
31
|
|
|
30
32
|
if (res.statusCode == 200) {
|
|
31
33
|
// handle response
|
|
@@ -40,7 +42,9 @@ run();
|
|
|
40
42
|
| Parameter | Type | Required | Description |
|
|
41
43
|
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
42
44
|
| `projectName` | *string* | :heavy_check_mark: | Project name for configuration |
|
|
43
|
-
| `type` | [operations.TypeT](../../models/operations/typet.md) | :
|
|
45
|
+
| `type` | [operations.TypeT](../../models/operations/typet.md) | :heavy_minus_sign: | Configuration type - "LLM" or "pipeline" - default is "LLM" |
|
|
46
|
+
| `env` | [operations.Env](../../models/operations/env.md) | :heavy_minus_sign: | Environment - "dev", "staging" or "prod" |
|
|
47
|
+
| `name` | *string* | :heavy_minus_sign: | The name of the configuration |
|
|
44
48
|
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
45
49
|
|
|
46
50
|
|
|
@@ -60,8 +64,8 @@ Create a new configuration
|
|
|
60
64
|
### Example Usage
|
|
61
65
|
|
|
62
66
|
```typescript
|
|
63
|
-
import { HoneyHive } from "
|
|
64
|
-
import {
|
|
67
|
+
import { HoneyHive } from "honeyhive";
|
|
68
|
+
import { Env, TypeT } from "honeyhive/dist/models/components";
|
|
65
69
|
|
|
66
70
|
async function run() {
|
|
67
71
|
const sdk = new HoneyHive({
|
|
@@ -69,25 +73,19 @@ async function run() {
|
|
|
69
73
|
});
|
|
70
74
|
|
|
71
75
|
const res = await sdk.configurations.createConfiguration({
|
|
72
|
-
|
|
76
|
+
env: [
|
|
77
|
+
Env.Dev,
|
|
78
|
+
],
|
|
73
79
|
name: "<value>",
|
|
74
|
-
provider: "<value>",
|
|
75
80
|
parameters: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
forceFunction: {
|
|
87
|
-
"key": "<value>",
|
|
88
|
-
},
|
|
81
|
+
"key": "<value>",
|
|
82
|
+
},
|
|
83
|
+
project: "<value>",
|
|
84
|
+
provider: "<value>",
|
|
85
|
+
type: TypeT.Llm,
|
|
86
|
+
userProperties: {
|
|
87
|
+
"key": "<value>",
|
|
89
88
|
},
|
|
90
|
-
userProperties: {},
|
|
91
89
|
});
|
|
92
90
|
|
|
93
91
|
if (res.statusCode == 200) {
|
|
@@ -122,8 +120,8 @@ Delete a configuration
|
|
|
122
120
|
### Example Usage
|
|
123
121
|
|
|
124
122
|
```typescript
|
|
125
|
-
import { HoneyHive } from "
|
|
126
|
-
import { DeleteConfigurationRequest } from "
|
|
123
|
+
import { HoneyHive } from "honeyhive";
|
|
124
|
+
import { DeleteConfigurationRequest } from "honeyhive/dist/models/operations";
|
|
127
125
|
|
|
128
126
|
async function run() {
|
|
129
127
|
const sdk = new HoneyHive({
|
|
@@ -165,18 +163,9 @@ Update an existing configuration
|
|
|
165
163
|
### Example Usage
|
|
166
164
|
|
|
167
165
|
```typescript
|
|
168
|
-
import { HoneyHive } from "
|
|
169
|
-
import {
|
|
170
|
-
|
|
171
|
-
Configuration,
|
|
172
|
-
FunctionCallParams,
|
|
173
|
-
Hyperparameters,
|
|
174
|
-
ParametersT,
|
|
175
|
-
SelectedFunctions,
|
|
176
|
-
TypeT,
|
|
177
|
-
UserProperties,
|
|
178
|
-
} from "HoneyHive/dist/models/components";
|
|
179
|
-
import { UpdateConfigurationRequest } from "HoneyHive/dist/models/operations";
|
|
166
|
+
import { HoneyHive } from "honeyhive";
|
|
167
|
+
import { Configuration, Env, TypeT } from "honeyhive/dist/models/components";
|
|
168
|
+
import { UpdateConfigurationRequest } from "honeyhive/dist/models/operations";
|
|
180
169
|
|
|
181
170
|
async function run() {
|
|
182
171
|
const sdk = new HoneyHive({
|
|
@@ -184,25 +173,19 @@ async function run() {
|
|
|
184
173
|
});
|
|
185
174
|
const id: string = "<value>";
|
|
186
175
|
const configuration: Configuration = {
|
|
187
|
-
|
|
176
|
+
env: [
|
|
177
|
+
Env.Dev,
|
|
178
|
+
],
|
|
188
179
|
name: "<value>",
|
|
189
|
-
provider: "<value>",
|
|
190
180
|
parameters: {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
forceFunction: {
|
|
202
|
-
"key": "<value>",
|
|
203
|
-
},
|
|
181
|
+
"key": "<value>",
|
|
182
|
+
},
|
|
183
|
+
project: "<value>",
|
|
184
|
+
provider: "<value>",
|
|
185
|
+
type: TypeT.Llm,
|
|
186
|
+
userProperties: {
|
|
187
|
+
"key": "<value>",
|
|
204
188
|
},
|
|
205
|
-
userProperties: {},
|
|
206
189
|
};
|
|
207
190
|
|
|
208
191
|
const res = await sdk.configurations.updateConfiguration(id, configuration);
|
|
@@ -16,8 +16,8 @@ Retrieve a list of datapoints
|
|
|
16
16
|
### Example Usage
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import { HoneyHive } from "
|
|
20
|
-
import { GetDatapointsRequest, QueryParamType } from "
|
|
19
|
+
import { HoneyHive } from "honeyhive";
|
|
20
|
+
import { GetDatapointsRequest, QueryParamType } from "honeyhive/dist/models/operations";
|
|
21
21
|
|
|
22
22
|
async function run() {
|
|
23
23
|
const sdk = new HoneyHive({
|
|
@@ -65,8 +65,8 @@ Create a new datapoint
|
|
|
65
65
|
### Example Usage
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
|
-
import { HoneyHive } from "
|
|
69
|
-
import { CreateDatapointRequestType } from "
|
|
68
|
+
import { HoneyHive } from "honeyhive";
|
|
69
|
+
import { CreateDatapointRequestType } from "honeyhive/dist/models/components";
|
|
70
70
|
|
|
71
71
|
async function run() {
|
|
72
72
|
const sdk = new HoneyHive({
|
|
@@ -77,14 +77,18 @@ async function run() {
|
|
|
77
77
|
groundTruth: {
|
|
78
78
|
"key": "<value>",
|
|
79
79
|
},
|
|
80
|
-
inputs: {
|
|
80
|
+
inputs: {
|
|
81
|
+
"key": "<value>",
|
|
82
|
+
},
|
|
81
83
|
linkedDatasets: [
|
|
82
84
|
"<value>",
|
|
83
85
|
],
|
|
84
86
|
linkedEvals: [
|
|
85
87
|
"<value>",
|
|
86
88
|
],
|
|
87
|
-
metadata: {
|
|
89
|
+
metadata: {
|
|
90
|
+
"key": "<value>",
|
|
91
|
+
},
|
|
88
92
|
project: "<value>",
|
|
89
93
|
type: CreateDatapointRequestType.Evaluation,
|
|
90
94
|
});
|
|
@@ -121,14 +125,9 @@ Update a specific datapoint
|
|
|
121
125
|
### Example Usage
|
|
122
126
|
|
|
123
127
|
```typescript
|
|
124
|
-
import { HoneyHive } from "
|
|
125
|
-
import {
|
|
126
|
-
|
|
127
|
-
UpdateDatapointRequestHistory,
|
|
128
|
-
UpdateDatapointRequestInputs,
|
|
129
|
-
UpdateDatapointRequestMetadata,
|
|
130
|
-
} from "HoneyHive/dist/models/components";
|
|
131
|
-
import { UpdateDatapointRequest } from "HoneyHive/dist/models/operations";
|
|
128
|
+
import { HoneyHive } from "honeyhive";
|
|
129
|
+
import { UpdateDatapointRequest, UpdateDatapointRequestHistory } from "honeyhive/dist/models/components";
|
|
130
|
+
import { UpdateDatapointRequest } from "honeyhive/dist/models/operations";
|
|
132
131
|
|
|
133
132
|
async function run() {
|
|
134
133
|
const sdk = new HoneyHive({
|
|
@@ -142,14 +141,18 @@ const updateDatapointRequest: UpdateDatapointRequest = {
|
|
|
142
141
|
history: [
|
|
143
142
|
{},
|
|
144
143
|
],
|
|
145
|
-
inputs: {
|
|
144
|
+
inputs: {
|
|
145
|
+
"key": "<value>",
|
|
146
|
+
},
|
|
146
147
|
linkedDatasets: [
|
|
147
148
|
"<value>",
|
|
148
149
|
],
|
|
149
150
|
linkedEvals: [
|
|
150
151
|
"<value>",
|
|
151
152
|
],
|
|
152
|
-
metadata: {
|
|
153
|
+
metadata: {
|
|
154
|
+
"key": "<value>",
|
|
155
|
+
},
|
|
153
156
|
};
|
|
154
157
|
|
|
155
158
|
const res = await sdk.datapoints.updateDatapoint(datapointId, updateDatapointRequest);
|
|
@@ -187,8 +190,8 @@ Delete a specific datapoint
|
|
|
187
190
|
### Example Usage
|
|
188
191
|
|
|
189
192
|
```typescript
|
|
190
|
-
import { HoneyHive } from "
|
|
191
|
-
import { DeleteDatapointRequest } from "
|
|
193
|
+
import { HoneyHive } from "honeyhive";
|
|
194
|
+
import { DeleteDatapointRequest } from "honeyhive/dist/models/operations";
|
|
192
195
|
|
|
193
196
|
async function run() {
|
|
194
197
|
const sdk = new HoneyHive({
|
|
@@ -230,8 +233,8 @@ Retrieve a specific datapoint
|
|
|
230
233
|
### Example Usage
|
|
231
234
|
|
|
232
235
|
```typescript
|
|
233
|
-
import { HoneyHive } from "
|
|
234
|
-
import { GetDatapointRequest } from "
|
|
236
|
+
import { HoneyHive } from "honeyhive";
|
|
237
|
+
import { GetDatapointRequest } from "honeyhive/dist/models/operations";
|
|
235
238
|
|
|
236
239
|
async function run() {
|
|
237
240
|
const sdk = new HoneyHive({
|