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
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `datapoints`
|
|
9
|
-
| `description`
|
|
10
|
-
| `linkedEvals`
|
|
11
|
-
| `metadata`
|
|
12
|
-
| `name`
|
|
13
|
-
| `pipelineType`
|
|
14
|
-
| `project`
|
|
15
|
-
| `saved`
|
|
16
|
-
| `type`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
|
8
|
+
| `datapoints` | *string*[] | :heavy_minus_sign: | List of unique datapoint ids to be included in this dataset |
|
|
9
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `linkedEvals` | *string*[] | :heavy_minus_sign: | List of unique evaluation run ids to be associated with this dataset |
|
|
11
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Any helpful metadata to track for the dataset |
|
|
12
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
13
|
+
| `pipelineType` | [components.PipelineType](../../models/components/pipelinetype.md) | :heavy_minus_sign: | The type of data included in the dataset - "event" or "session" |
|
|
14
|
+
| `project` | *string* | :heavy_check_mark: | UUID of the project associated with this dataset |
|
|
15
|
+
| `saved` | *boolean* | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `type` | [components.CreateDatasetRequestType](../../models/components/createdatasetrequesttype.md) | :heavy_minus_sign: | What the dataset is to be used for - "evaluation" or "fine-tuning" |
|
|
@@ -3,22 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `childrenIds`
|
|
9
|
-
| `config`
|
|
10
|
-
| `duration`
|
|
11
|
-
| `endTime`
|
|
12
|
-
| `error`
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
8
|
+
| `childrenIds` | *string*[] | :heavy_minus_sign: | Id of events that are nested within the event |
|
|
9
|
+
| `config` | Record<string, *any*> | :heavy_minus_sign: | Associated configuration JSON for the event - model name, vector index name, etc |
|
|
10
|
+
| `duration` | *number* | :heavy_minus_sign: | How long the event took in milliseconds |
|
|
11
|
+
| `endTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the event end |
|
|
12
|
+
| `error` | *string* | :heavy_minus_sign: | Any error description if event failed |
|
|
13
|
+
| `eventId` | *string* | :heavy_minus_sign: | Unique id of the event, if not set, it will be auto-generated |
|
|
14
|
+
| `eventName` | *string* | :heavy_check_mark: | Name of the event |
|
|
15
|
+
| `eventType` | [components.EventType](../../models/components/eventtype.md) | :heavy_check_mark: | Specify whether the event is of "model", "tool" or "chain" type |
|
|
16
|
+
| `feedback` | Record<string, *any*> | :heavy_minus_sign: | Any user feedback provided for the event output |
|
|
17
|
+
| `inputs` | Record<string, *any*> | :heavy_minus_sign: | Input JSON given to the event - prompt, chunks, etc |
|
|
18
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Any system or application metadata associated with the event |
|
|
19
|
+
| `metrics` | Record<string, *any*> | :heavy_minus_sign: | Any values computed over the output of the event |
|
|
20
|
+
| `outputs` | Record<string, *any*> | :heavy_minus_sign: | Final output JSON of the event |
|
|
21
|
+
| `parentId` | *string* | :heavy_minus_sign: | Id of the parent event if nested |
|
|
22
|
+
| `project` | *string* | :heavy_check_mark: | Project associated with the event |
|
|
23
|
+
| `sessionId` | *string* | :heavy_minus_sign: | Unique id of the session associated with the event, if not set, it will be auto-generated |
|
|
24
|
+
| `source` | *string* | :heavy_check_mark: | Source of the event - production, staging, etc |
|
|
25
|
+
| `startTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the event start |
|
|
26
|
+
| `userProperties` | Record<string, *any*> | :heavy_minus_sign: | Any user properties associated with the event |
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `description`
|
|
9
|
-
| `name`
|
|
10
|
-
| `type` | [components.CreateProjectRequestType](../../models/components/createprojectrequesttype.md) | :heavy_minus_sign: | N/A |
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
8
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
9
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CreateToolRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
8
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
9
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
10
|
+
| `parameters` | Record<string, *any*> | :heavy_check_mark: | These can be function call params or plugin call params |
|
|
11
|
+
| `task` | *string* | :heavy_check_mark: | Name of the project associated with this tool |
|
|
12
|
+
| `type` | [components.CreateToolRequestType](../../models/components/createtoolrequesttype.md) | :heavy_check_mark: | N/A |
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| `linkedDatasets` | *string*[] | :heavy_minus_sign: | Ids of all datasets that include the datapoint |
|
|
13
13
|
| `linkedEvals` | *string*[] | :heavy_minus_sign: | Ids of evaluations where the datapoint is included |
|
|
14
14
|
| `linkedEvent` | *string* | :heavy_minus_sign: | Event id for the event from which the datapoint was created |
|
|
15
|
-
| `metadata` |
|
|
15
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
16
16
|
| `projectId` | *string* | :heavy_minus_sign: | N/A |
|
|
17
17
|
| `saved` | *boolean* | :heavy_minus_sign: | N/A |
|
|
18
18
|
| `tenant` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `datapoints`
|
|
9
|
-
| `datasetId`
|
|
10
|
-
| `description`
|
|
11
|
-
| `linkedEvals`
|
|
12
|
-
| `metadata`
|
|
13
|
-
| `name`
|
|
14
|
-
| `numPoints`
|
|
15
|
-
| `saved`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
8
|
+
| `datapoints` | *string*[] | :heavy_minus_sign: | Updated list of datapoint ids for the dataset |
|
|
9
|
+
| `datasetId` | *string* | :heavy_check_mark: | The unique identifier of the dataset being updated |
|
|
10
|
+
| `description` | *string* | :heavy_minus_sign: | Updated description for the dataset |
|
|
11
|
+
| `linkedEvals` | *string*[] | :heavy_minus_sign: | Updated list of unique evaluation run ids to be associated with this dataset |
|
|
12
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Updated metadata to track for the dataset |
|
|
13
|
+
| `name` | *string* | :heavy_minus_sign: | Updated name for the dataset |
|
|
14
|
+
| `numPoints` | *number* | :heavy_minus_sign: | N/A |
|
|
15
|
+
| `saved` | *boolean* | :heavy_minus_sign: | N/A |
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `childrenIds`
|
|
9
|
-
| `config`
|
|
10
|
-
| `duration`
|
|
11
|
-
| `endTime`
|
|
12
|
-
| `error`
|
|
13
|
-
| `eventId`
|
|
14
|
-
| `eventName`
|
|
15
|
-
| `eventType`
|
|
16
|
-
| `feedback`
|
|
17
|
-
| `inputs`
|
|
18
|
-
| `metadata`
|
|
19
|
-
| `metrics`
|
|
20
|
-
| `outputs`
|
|
21
|
-
| `parentId`
|
|
22
|
-
| `project`
|
|
23
|
-
| `sessionId`
|
|
24
|
-
| `source`
|
|
25
|
-
| `startTime`
|
|
26
|
-
| `userProperties`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
8
|
+
| `childrenIds` | *string*[] | :heavy_minus_sign: | Id of events that are nested within the event |
|
|
9
|
+
| `config` | Record<string, *any*> | :heavy_minus_sign: | Associated configuration for the event - model, provider, etc |
|
|
10
|
+
| `duration` | *number* | :heavy_minus_sign: | How long the event took in milliseconds |
|
|
11
|
+
| `endTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the event end |
|
|
12
|
+
| `error` | *string* | :heavy_minus_sign: | Any error description if the event failed |
|
|
13
|
+
| `eventId` | *string* | :heavy_minus_sign: | Unique id of the event, if not set, it will be auto-generated |
|
|
14
|
+
| `eventName` | *string* | :heavy_minus_sign: | Name of the event |
|
|
15
|
+
| `eventType` | [components.EventEventType](../../models/components/eventeventtype.md) | :heavy_minus_sign: | Specify whether the event is of "model", "tool", "session" or "chain" type |
|
|
16
|
+
| `feedback` | Record<string, *any*> | :heavy_minus_sign: | Any user feedback provided for the event output |
|
|
17
|
+
| `inputs` | Record<string, *any*> | :heavy_minus_sign: | Input object passed to the event - user query, text blob, etc |
|
|
18
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Any system or application metadata associated with the event |
|
|
19
|
+
| `metrics` | Record<string, *any*> | :heavy_minus_sign: | Any values computed over the output of the event |
|
|
20
|
+
| `outputs` | Record<string, *any*> | :heavy_minus_sign: | Final output of the event - completion, chunks, etc |
|
|
21
|
+
| `parentId` | *string* | :heavy_minus_sign: | Id of the parent event if nested |
|
|
22
|
+
| `project` | *string* | :heavy_minus_sign: | Project associated with the event |
|
|
23
|
+
| `sessionId` | *string* | :heavy_minus_sign: | Unique id of the session associated with the event |
|
|
24
|
+
| `source` | *string* | :heavy_minus_sign: | Source of the event - production, staging, etc |
|
|
25
|
+
| `startTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the event start |
|
|
26
|
+
| `userProperties` | Record<string, *any*> | :heavy_minus_sign: | Any user properties associated with the event |
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
8
8
|
| `id` | *string* | :heavy_minus_sign: | Unique idenitifier |
|
|
9
9
|
| `codeSnippet` | *string* | :heavy_minus_sign: | Associated code block for the metric |
|
|
10
|
+
| `criteria` | *string* | :heavy_minus_sign: | Criteria for human metrics |
|
|
10
11
|
| `description` | *string* | :heavy_check_mark: | Short description of what the metric does |
|
|
11
12
|
| `enabledInProd` | *boolean* | :heavy_minus_sign: | Whether to compute on all production events automatically |
|
|
12
13
|
| `eventName` | *string* | :heavy_minus_sign: | Name of event that the metric is set to be computed on |
|
|
@@ -18,4 +19,4 @@
|
|
|
18
19
|
| `returnType` | [components.ReturnTypeT](../../models/components/returntypet.md) | :heavy_check_mark: | The data type of the metric value - "boolean", "float", "string" |
|
|
19
20
|
| `task` | *string* | :heavy_check_mark: | Name of the project associated with metric |
|
|
20
21
|
| `threshold` | [components.Threshold](../../models/components/threshold.md) | :heavy_minus_sign: | Threshold for numeric metrics to decide passing or failing in tests |
|
|
21
|
-
| `type` | [components.MetricType](../../models/components/metrictype.md) | :heavy_check_mark: | Type of the metric - "custom" or "
|
|
22
|
+
| `type` | [components.MetricType](../../models/components/metrictype.md) | :heavy_check_mark: | Type of the metric - "custom", "model" or "human" |
|
|
@@ -6,15 +6,16 @@
|
|
|
6
6
|
| Field | Type | Required | Description |
|
|
7
7
|
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
8
8
|
| `codeSnippet` | *string* | :heavy_minus_sign: | Updated code block for the metric |
|
|
9
|
+
| `criteria` | *string* | :heavy_minus_sign: | Criteria for human metrics |
|
|
9
10
|
| `description` | *string* | :heavy_minus_sign: | Short description of what the metric does |
|
|
10
11
|
| `enabledInProd` | *boolean* | :heavy_minus_sign: | Whether to compute on all production events automatically |
|
|
11
12
|
| `eventName` | *string* | :heavy_minus_sign: | Name of event that the metric is set to be computed on |
|
|
12
13
|
| `eventType` | [components.MetricEditEventType](../../models/components/metricediteventtype.md) | :heavy_minus_sign: | Type of event that the metric is set to be computed on |
|
|
13
|
-
| `metricId` | *string* | :
|
|
14
|
+
| `metricId` | *string* | :heavy_check_mark: | Unique identifier of the metric |
|
|
14
15
|
| `name` | *string* | :heavy_minus_sign: | Updated name of the metric |
|
|
15
16
|
| `needsGroundTruth` | *boolean* | :heavy_minus_sign: | Whether a ground truth (on metadata) is required to compute it |
|
|
16
17
|
| `passWhen` | *boolean* | :heavy_minus_sign: | Threshold for boolean metrics to decide passing or failing in tests |
|
|
17
18
|
| `prompt` | *string* | :heavy_minus_sign: | Updated Evaluator prompt for the metric |
|
|
18
19
|
| `returnType` | [components.MetricEditReturnType](../../models/components/metriceditreturntype.md) | :heavy_minus_sign: | The data type of the metric value - "boolean", "float", "string" |
|
|
19
20
|
| `threshold` | [components.MetricEditThreshold](../../models/components/metriceditthreshold.md) | :heavy_minus_sign: | Threshold for numeric metrics to decide passing or failing in tests |
|
|
20
|
-
| `type` | [components.MetricEditType](../../models/components/metricedittype.md) | :heavy_minus_sign: | Type of the metric - "custom" or "
|
|
21
|
+
| `type` | [components.MetricEditType](../../models/components/metricedittype.md) | :heavy_minus_sign: | Type of the metric - "custom", "model" or "human" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MetricEditType
|
|
2
2
|
|
|
3
|
-
Type of the metric - "custom" or "
|
|
3
|
+
Type of the metric - "custom", "model" or "human"
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Values
|
|
@@ -8,4 +8,5 @@ Type of the metric - "custom" or "model"
|
|
|
8
8
|
| Name | Value |
|
|
9
9
|
| -------- | -------- |
|
|
10
10
|
| `Custom` | custom |
|
|
11
|
-
| `Model` | model |
|
|
11
|
+
| `Model` | model |
|
|
12
|
+
| `Human` | human |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MetricType
|
|
2
2
|
|
|
3
|
-
Type of the metric - "custom" or "
|
|
3
|
+
Type of the metric - "custom", "model" or "human"
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Values
|
|
@@ -8,4 +8,5 @@ Type of the metric - "custom" or "model"
|
|
|
8
8
|
| Name | Value |
|
|
9
9
|
| -------- | -------- |
|
|
10
10
|
| `Custom` | custom |
|
|
11
|
-
| `Model` | model |
|
|
11
|
+
| `Model` | model |
|
|
12
|
+
| `Human` | human |
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `description`
|
|
9
|
-
| `id`
|
|
10
|
-
| `name`
|
|
11
|
-
| `type` | [components.ProjectType](../../models/components/projecttype.md) | :heavy_check_mark: | N/A |
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
8
|
+
| `description` | *string* | :heavy_check_mark: | N/A |
|
|
9
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `childrenIds`
|
|
9
|
-
| `config`
|
|
10
|
-
| `duration`
|
|
11
|
-
| `endTime`
|
|
12
|
-
| `error`
|
|
13
|
-
| `feedback`
|
|
14
|
-
| `inputs`
|
|
15
|
-
| `metadata`
|
|
16
|
-
| `metrics`
|
|
17
|
-
| `outputs`
|
|
18
|
-
| `project`
|
|
19
|
-
| `sessionId`
|
|
20
|
-
| `sessionName`
|
|
21
|
-
| `source`
|
|
22
|
-
| `startTime`
|
|
23
|
-
| `userProperties`
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
8
|
+
| `childrenIds` | *string*[] | :heavy_minus_sign: | Id of events that are nested within the session |
|
|
9
|
+
| `config` | Record<string, *any*> | :heavy_minus_sign: | Associated configuration for the session |
|
|
10
|
+
| `duration` | *number* | :heavy_minus_sign: | How long the session took in milliseconds |
|
|
11
|
+
| `endTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the session end |
|
|
12
|
+
| `error` | *string* | :heavy_minus_sign: | Any error description if session failed |
|
|
13
|
+
| `feedback` | Record<string, *any*> | :heavy_minus_sign: | Any user feedback provided for the session output |
|
|
14
|
+
| `inputs` | Record<string, *any*> | :heavy_minus_sign: | Input object passed to the session - user query, text blob, etc |
|
|
15
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Any system or application metadata associated with the session |
|
|
16
|
+
| `metrics` | Record<string, *any*> | :heavy_minus_sign: | Any values computed over the output of the session |
|
|
17
|
+
| `outputs` | Record<string, *any*> | :heavy_minus_sign: | Final output of the session - completion, chunks, etc |
|
|
18
|
+
| `project` | *string* | :heavy_check_mark: | Project name associated with the session |
|
|
19
|
+
| `sessionId` | *string* | :heavy_minus_sign: | Unique id of the session, if not set, it will be auto-generated |
|
|
20
|
+
| `sessionName` | *string* | :heavy_check_mark: | Name of the session |
|
|
21
|
+
| `source` | *string* | :heavy_check_mark: | Source of the session - production, staging, etc |
|
|
22
|
+
| `startTime` | *number* | :heavy_minus_sign: | UTC timestamp (in milliseconds) for the session start |
|
|
23
|
+
| `userProperties` | Record<string, *any*> | :heavy_minus_sign: | Any user properties associated with the session |
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
|
-
| Field
|
|
7
|
-
|
|
|
8
|
-
| `id`
|
|
9
|
-
| `description`
|
|
10
|
-
| `name`
|
|
11
|
-
| `parameters`
|
|
12
|
-
| `task`
|
|
13
|
-
| `
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
|
|
8
|
+
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
9
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
11
|
+
| `parameters` | Record<string, *any*> | :heavy_check_mark: | These can be function call params or plugin call params |
|
|
12
|
+
| `task` | *string* | :heavy_check_mark: | Name of the project associated with this tool |
|
|
13
|
+
| `toolType` | [components.ToolType](../../models/components/tooltype.md) | :heavy_check_mark: | N/A |
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
|
8
8
|
| `groundTruth` | Record<string, *any*> | :heavy_minus_sign: | Expected output JSON object for the datapoint |
|
|
9
9
|
| `history` | [components.UpdateDatapointRequestHistory](../../models/components/updatedatapointrequesthistory.md)[] | :heavy_minus_sign: | Update history for the datapoint |
|
|
10
|
-
| `inputs` |
|
|
10
|
+
| `inputs` | Record<string, *any*> | :heavy_minus_sign: | Arbitrary JSON object containing the inputs for the datapoint |
|
|
11
11
|
| `linkedDatasets` | *string*[] | :heavy_minus_sign: | Ids of all datasets that include the datapoint |
|
|
12
12
|
| `linkedEvals` | *string*[] | :heavy_minus_sign: | Ids of evaluations where the datapoint is included |
|
|
13
|
-
| `metadata` |
|
|
13
|
+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | Any additional metadata for the datapoint |
|
|
14
14
|
| `saved` | *boolean* | :heavy_minus_sign: | Whether the datapoint is saved or detected |
|
|
15
15
|
| `type` | *string* | :heavy_minus_sign: | evaluation or event - specify the type of usage |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UpdateProjectRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
8
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
9
|
+
| `name` | *string* | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `projectId` | *string* | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# UpdateToolRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Fields
|
|
5
|
+
|
|
6
|
+
| Field | Type | Required | Description |
|
|
7
|
+
| --------------------- | --------------------- | --------------------- | --------------------- |
|
|
8
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
9
|
+
| `id` | *string* | :heavy_check_mark: | N/A |
|
|
10
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
11
|
+
| `parameters` | Record<string, *any*> | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CreateDatasetResponse
|
|
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.CreateDatasetResponseBody](../../models/operations/createdatasetresponsebody.md) | :heavy_minus_sign: | Successful creation |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CreateDatasetResponseBody
|
|
2
|
+
|
|
3
|
+
Successful creation
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Fields
|
|
7
|
+
|
|
8
|
+
| Field | Type | Required | Description |
|
|
9
|
+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
10
|
+
| `inserted` | *boolean* | :heavy_minus_sign: | N/A |
|
|
11
|
+
| `result` | [operations.CreateDatasetResult](../../models/operations/createdatasetresult.md) | :heavy_minus_sign: | N/A |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreateDatasetResult
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Fields
|
|
5
5
|
|
|
6
6
|
| Field | Type | Required | Description |
|
|
7
7
|
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
8
|
-
| `
|
|
8
|
+
| `insertedId` | *string* | :heavy_minus_sign: | N/A |
|