honeyhive 1.0.21 → 1.0.25
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/.DS_Store +0 -0
- package/.cursor/rules/typescript.mdc +45 -0
- package/.env +2 -0
- package/.eslintrc.cjs +28 -0
- package/.genignore +8 -0
- package/.gitattributes +2 -0
- package/.github/workflows/sdk_generation.yaml +26 -0
- package/.github/workflows/sdk_publish.yaml +23 -0
- package/.github/workflows/speakeasy_sdk_generation.yml +47 -0
- package/.gitignore +32 -0
- package/.npmignore +10 -0
- package/.prettierrc +9 -0
- package/.speakeasy/gen.lock +635 -0
- package/.speakeasy/workflow.lock +36 -0
- package/.speakeasy/workflow.yaml +19 -0
- package/.tsbuildinfo +1 -0
- package/CONTRIBUTING.md +26 -0
- package/FUNCTIONS.md +150 -0
- package/Makefile +18 -0
- package/README.md +139 -68
- package/RELEASES.md +153 -0
- package/RUNTIMES.md +22 -0
- package/USAGE.md +60 -0
- package/codeSamples.yaml +1570 -0
- package/docs/lib/utils/retryconfig.md +24 -0
- package/docs/models/components/calltype.md +17 -0
- package/docs/models/components/configuration.md +88 -0
- package/docs/models/components/configurationtype.md +17 -0
- package/docs/models/components/createdatapointrequest.md +53 -0
- package/docs/models/components/createdatasetrequest.md +39 -0
- package/docs/models/components/createdatasetrequestpipelinetype.md +17 -0
- package/docs/models/components/createdatasetrequesttype.md +17 -0
- package/docs/models/components/createeventrequest.md +114 -0
- package/docs/models/components/createeventrequesteventtype.md +17 -0
- package/docs/models/components/createmodelevent.md +109 -0
- package/docs/models/components/createprojectrequest.md +18 -0
- package/docs/models/components/createrunrequest.md +28 -0
- package/docs/models/components/createrunresponse.md +16 -0
- package/docs/models/components/createtoolrequest.md +26 -0
- package/docs/models/components/createtoolrequesttype.md +15 -0
- package/docs/models/components/datapoint.md +69 -0
- package/docs/models/components/datapoints.md +18 -0
- package/docs/models/components/dataset.md +41 -0
- package/docs/models/components/datasettype.md +17 -0
- package/docs/models/components/datasetupdate.md +34 -0
- package/docs/models/components/deleterunresponse.md +16 -0
- package/docs/models/components/details.md +21 -0
- package/docs/models/components/env.md +15 -0
- package/docs/models/components/evaluationrun.md +25 -0
- package/docs/models/components/evaluationrunstatus.md +15 -0
- package/docs/models/components/evaluators.md +14 -0
- package/docs/models/components/event.md +114 -0
- package/docs/models/components/eventdetails.md +17 -0
- package/docs/models/components/eventfilter.md +23 -0
- package/docs/models/components/eventtype.md +17 -0
- package/docs/models/components/experimentcomparisonresponse.md +19 -0
- package/docs/models/components/experimentcomparisonresponseconfiguration.md +14 -0
- package/docs/models/components/experimentcomparisonresponseevaluators.md +14 -0
- package/docs/models/components/experimentcomparisonresponsemetadata.md +14 -0
- package/docs/models/components/experimentcomparisonresponsemetrics.md +29 -0
- package/docs/models/components/experimentcomparisonresponsepassingranges.md +14 -0
- package/docs/models/components/experimentcomparisonresponseresults.md +14 -0
- package/docs/models/components/experimentcomparisonresponseschemasconfiguration.md +14 -0
- package/docs/models/components/experimentcomparisonresponseschemasresults.md +14 -0
- package/docs/models/components/experimentresultresponse.md +20 -0
- package/docs/models/components/experimentresultresponsedatapoints.md +16 -0
- package/docs/models/components/experimentresultresponsemetrics.md +19 -0
- package/docs/models/components/functioncallparams.md +17 -0
- package/docs/models/components/getrunresponse.md +15 -0
- package/docs/models/components/getrunsresponse.md +15 -0
- package/docs/models/components/metadata.md +14 -0
- package/docs/models/components/metric.md +38 -0
- package/docs/models/components/metricedit.md +33 -0
- package/docs/models/components/metricediteventtype.md +17 -0
- package/docs/models/components/metriceditreturntype.md +17 -0
- package/docs/models/components/metriceditthreshold.md +18 -0
- package/docs/models/components/metricedittype.md +17 -0
- package/docs/models/components/metrics.md +16 -0
- package/docs/models/components/metrictype.md +17 -0
- package/docs/models/components/newrun.md +30 -0
- package/docs/models/components/newvalues.md +17 -0
- package/docs/models/components/oldrun.md +30 -0
- package/docs/models/components/oldvalues.md +17 -0
- package/docs/models/components/operator.md +17 -0
- package/docs/models/components/parameterst.md +25 -0
- package/docs/models/components/passingranges.md +14 -0
- package/docs/models/components/pipelinetype.md +17 -0
- package/docs/models/components/postconfigurationrequest.md +83 -0
- package/docs/models/components/postconfigurationrequestcalltype.md +17 -0
- package/docs/models/components/postconfigurationrequestenv.md +15 -0
- package/docs/models/components/postconfigurationrequestfunctioncallparams.md +17 -0
- package/docs/models/components/postconfigurationrequestparameters.md +25 -0
- package/docs/models/components/postconfigurationrequestresponseformat.md +16 -0
- package/docs/models/components/postconfigurationrequestselectedfunctions.md +18 -0
- package/docs/models/components/project.md +20 -0
- package/docs/models/components/putconfigurationrequest.md +86 -0
- package/docs/models/components/putconfigurationrequestcalltype.md +17 -0
- package/docs/models/components/putconfigurationrequestenv.md +15 -0
- package/docs/models/components/putconfigurationrequestfunctioncallparams.md +17 -0
- package/docs/models/components/putconfigurationrequestparameters.md +25 -0
- package/docs/models/components/putconfigurationrequestresponseformat.md +16 -0
- package/docs/models/components/putconfigurationrequestselectedfunctions.md +18 -0
- package/docs/models/components/putconfigurationrequesttype.md +17 -0
- package/docs/models/components/responseformat.md +16 -0
- package/docs/models/components/results.md +16 -0
- package/docs/models/components/returntypet.md +17 -0
- package/docs/models/components/security.md +17 -0
- package/docs/models/components/selectedfunctions.md +18 -0
- package/docs/models/components/sessionpropertiesbatch.md +56 -0
- package/docs/models/components/sessionstartrequest.md +68 -0
- package/docs/models/components/status.md +17 -0
- package/docs/models/components/threshold.md +18 -0
- package/docs/models/components/tool.md +27 -0
- package/docs/models/components/tooltype.md +15 -0
- package/docs/models/components/type.md +17 -0
- package/docs/models/components/updatedatapointrequest.md +51 -0
- package/docs/models/components/updateprojectrequest.md +19 -0
- package/docs/models/components/updaterunrequest.md +21 -0
- package/docs/models/components/updaterunrequeststatus.md +15 -0
- package/docs/models/components/updaterunresponse.md +16 -0
- package/docs/models/components/updatetoolrequest.md +24 -0
- package/docs/models/components/value.md +17 -0
- package/docs/models/components/values.md +17 -0
- package/docs/models/errors/createeventbatchresponsebody.md +19 -0
- package/docs/models/errors/createmodeleventbatchresponsebody.md +19 -0
- package/docs/models/operations/adddatapointsrequest.md +37 -0
- package/docs/models/operations/adddatapointsrequestbody.md +35 -0
- package/docs/models/operations/adddatapointsresponsebody.md +18 -0
- package/docs/models/operations/aggregatefunction.md +15 -0
- package/docs/models/operations/createdatapointresponsebody.md +17 -0
- package/docs/models/operations/createdatapointresult.md +15 -0
- package/docs/models/operations/createdatasetresponsebody.md +18 -0
- package/docs/models/operations/createdatasetresult.md +15 -0
- package/docs/models/operations/createeventbatchrequestbody.md +140 -0
- package/docs/models/operations/createeventbatchresponsebody.md +26 -0
- package/docs/models/operations/createeventrequestbody.md +98 -0
- package/docs/models/operations/createeventresponsebody.md +21 -0
- package/docs/models/operations/createmodeleventbatchrequestbody.md +137 -0
- package/docs/models/operations/createmodeleventbatchresponsebody.md +24 -0
- package/docs/models/operations/createmodeleventrequestbody.md +95 -0
- package/docs/models/operations/createmodeleventresponsebody.md +21 -0
- package/docs/models/operations/createtoolresponsebody.md +17 -0
- package/docs/models/operations/daterange.md +16 -0
- package/docs/models/operations/deleteconfigurationrequest.md +17 -0
- package/docs/models/operations/deletedatapointrequest.md +17 -0
- package/docs/models/operations/deletedatapointresponsebody.md +17 -0
- package/docs/models/operations/deletedatasetrequest.md +17 -0
- package/docs/models/operations/deletemetricrequest.md +17 -0
- package/docs/models/operations/deleteprojectrequest.md +17 -0
- package/docs/models/operations/deleterunrequest.md +17 -0
- package/docs/models/operations/deletetoolrequest.md +17 -0
- package/docs/models/operations/env.md +17 -0
- package/docs/models/operations/getconfigurationsrequest.md +19 -0
- package/docs/models/operations/getdatapointrequest.md +17 -0
- package/docs/models/operations/getdatapointresponsebody.md +62 -0
- package/docs/models/operations/getdatapointsrequest.md +19 -0
- package/docs/models/operations/getdatapointsresponsebody.md +62 -0
- package/docs/models/operations/getdatasetsrequest.md +19 -0
- package/docs/models/operations/getdatasetsresponsebody.md +37 -0
- package/docs/models/operations/geteventsrequestbody.md +30 -0
- package/docs/models/operations/geteventsresponsebody.md +103 -0
- package/docs/models/operations/getexperimentcomparisonrequest.md +22 -0
- package/docs/models/operations/getexperimentresultrequest.md +20 -0
- package/docs/models/operations/getmetricsrequest.md +17 -0
- package/docs/models/operations/getprojectsrequest.md +15 -0
- package/docs/models/operations/getrunrequest.md +17 -0
- package/docs/models/operations/getrunsrequest.md +15 -0
- package/docs/models/operations/getsessionrequest.md +17 -0
- package/docs/models/operations/mapping.md +29 -0
- package/docs/models/operations/queryparamaggregatefunction.md +15 -0
- package/docs/models/operations/result.md +15 -0
- package/docs/models/operations/startsessionrequestbody.md +55 -0
- package/docs/models/operations/startsessionresponsebody.md +17 -0
- package/docs/models/operations/type.md +17 -0
- package/docs/models/operations/updateconfigurationrequest.md +84 -0
- package/docs/models/operations/updatedatapointrequest.md +50 -0
- package/docs/models/operations/updateeventrequestbody.md +24 -0
- package/docs/models/operations/updaterunrequest.md +19 -0
- package/docs/sdks/configurations/README.md +20 -20
- package/docs/sdks/datapoints/README.md +6 -6
- package/docs/sdks/datasets/README.md +6 -6
- package/docs/sdks/events/README.md +38 -38
- package/docs/sdks/experiments/README.md +6 -6
- package/docs/sdks/metrics/README.md +6 -6
- package/docs/sdks/projects/README.md +2 -2
- package/docs/sdks/session/README.md +8 -8
- package/docs/sdks/tools/README.md +2 -2
- package/files.gen +232 -0
- package/funcs/configurationsCreateConfiguration.d.ts.map +1 -1
- package/funcs/configurationsCreateConfiguration.js +21 -15
- package/funcs/configurationsCreateConfiguration.js.map +1 -1
- package/funcs/configurationsDeleteConfiguration.d.ts.map +1 -1
- package/funcs/configurationsDeleteConfiguration.js +21 -15
- package/funcs/configurationsDeleteConfiguration.js.map +1 -1
- package/funcs/configurationsGetConfigurations.d.ts.map +1 -1
- package/funcs/configurationsGetConfigurations.js +21 -15
- package/funcs/configurationsGetConfigurations.js.map +1 -1
- package/funcs/configurationsUpdateConfiguration.d.ts.map +1 -1
- package/funcs/configurationsUpdateConfiguration.js +21 -15
- package/funcs/configurationsUpdateConfiguration.js.map +1 -1
- package/funcs/datapointsCreateDatapoint.d.ts.map +1 -1
- package/funcs/datapointsCreateDatapoint.js +21 -15
- package/funcs/datapointsCreateDatapoint.js.map +1 -1
- package/funcs/datapointsDeleteDatapoint.d.ts.map +1 -1
- package/funcs/datapointsDeleteDatapoint.js +21 -15
- package/funcs/datapointsDeleteDatapoint.js.map +1 -1
- package/funcs/datapointsGetDatapoint.d.ts.map +1 -1
- package/funcs/datapointsGetDatapoint.js +21 -15
- package/funcs/datapointsGetDatapoint.js.map +1 -1
- package/funcs/datapointsGetDatapoints.d.ts.map +1 -1
- package/funcs/datapointsGetDatapoints.js +21 -15
- package/funcs/datapointsGetDatapoints.js.map +1 -1
- package/funcs/datapointsUpdateDatapoint.d.ts.map +1 -1
- package/funcs/datapointsUpdateDatapoint.js +21 -15
- package/funcs/datapointsUpdateDatapoint.js.map +1 -1
- package/funcs/datasetsAddDatapoints.d.ts.map +1 -1
- package/funcs/datasetsAddDatapoints.js +21 -15
- package/funcs/datasetsAddDatapoints.js.map +1 -1
- package/funcs/datasetsCreateDataset.d.ts.map +1 -1
- package/funcs/datasetsCreateDataset.js +21 -15
- package/funcs/datasetsCreateDataset.js.map +1 -1
- package/funcs/datasetsDeleteDataset.d.ts.map +1 -1
- package/funcs/datasetsDeleteDataset.js +21 -15
- package/funcs/datasetsDeleteDataset.js.map +1 -1
- package/funcs/datasetsGetDatasets.d.ts.map +1 -1
- package/funcs/datasetsGetDatasets.js +21 -15
- package/funcs/datasetsGetDatasets.js.map +1 -1
- package/funcs/datasetsUpdateDataset.d.ts.map +1 -1
- package/funcs/datasetsUpdateDataset.js +21 -15
- package/funcs/datasetsUpdateDataset.js.map +1 -1
- package/funcs/eventsCreateEvent.d.ts.map +1 -1
- package/funcs/eventsCreateEvent.js +21 -15
- package/funcs/eventsCreateEvent.js.map +1 -1
- package/funcs/eventsCreateEventBatch.d.ts.map +1 -1
- package/funcs/eventsCreateEventBatch.js +21 -15
- package/funcs/eventsCreateEventBatch.js.map +1 -1
- package/funcs/eventsCreateModelEvent.d.ts.map +1 -1
- package/funcs/eventsCreateModelEvent.js +21 -15
- package/funcs/eventsCreateModelEvent.js.map +1 -1
- package/funcs/eventsCreateModelEventBatch.d.ts.map +1 -1
- package/funcs/eventsCreateModelEventBatch.js +21 -15
- package/funcs/eventsCreateModelEventBatch.js.map +1 -1
- package/funcs/eventsGetEvents.d.ts.map +1 -1
- package/funcs/eventsGetEvents.js +21 -15
- package/funcs/eventsGetEvents.js.map +1 -1
- package/funcs/eventsUpdateEvent.d.ts.map +1 -1
- package/funcs/eventsUpdateEvent.js +21 -15
- package/funcs/eventsUpdateEvent.js.map +1 -1
- package/funcs/experimentsCreateRun.d.ts.map +1 -1
- package/funcs/experimentsCreateRun.js +21 -15
- package/funcs/experimentsCreateRun.js.map +1 -1
- package/funcs/experimentsDeleteRun.d.ts.map +1 -1
- package/funcs/experimentsDeleteRun.js +21 -15
- package/funcs/experimentsDeleteRun.js.map +1 -1
- package/funcs/experimentsGetExperimentComparison.d.ts.map +1 -1
- package/funcs/experimentsGetExperimentComparison.js +21 -15
- package/funcs/experimentsGetExperimentComparison.js.map +1 -1
- package/funcs/experimentsGetExperimentResult.d.ts.map +1 -1
- package/funcs/experimentsGetExperimentResult.js +21 -15
- package/funcs/experimentsGetExperimentResult.js.map +1 -1
- package/funcs/experimentsGetRun.d.ts.map +1 -1
- package/funcs/experimentsGetRun.js +21 -15
- package/funcs/experimentsGetRun.js.map +1 -1
- package/funcs/experimentsGetRuns.d.ts.map +1 -1
- package/funcs/experimentsGetRuns.js +21 -15
- package/funcs/experimentsGetRuns.js.map +1 -1
- package/funcs/experimentsUpdateRun.d.ts.map +1 -1
- package/funcs/experimentsUpdateRun.js +21 -15
- package/funcs/experimentsUpdateRun.js.map +1 -1
- package/funcs/metricsCreateMetric.d.ts.map +1 -1
- package/funcs/metricsCreateMetric.js +21 -15
- package/funcs/metricsCreateMetric.js.map +1 -1
- package/funcs/metricsDeleteMetric.d.ts.map +1 -1
- package/funcs/metricsDeleteMetric.js +21 -15
- package/funcs/metricsDeleteMetric.js.map +1 -1
- package/funcs/metricsGetMetrics.d.ts.map +1 -1
- package/funcs/metricsGetMetrics.js +21 -15
- package/funcs/metricsGetMetrics.js.map +1 -1
- package/funcs/metricsUpdateMetric.d.ts.map +1 -1
- package/funcs/metricsUpdateMetric.js +21 -15
- package/funcs/metricsUpdateMetric.js.map +1 -1
- package/funcs/projectsCreateProject.d.ts.map +1 -1
- package/funcs/projectsCreateProject.js +21 -15
- package/funcs/projectsCreateProject.js.map +1 -1
- package/funcs/projectsDeleteProject.d.ts.map +1 -1
- package/funcs/projectsDeleteProject.js +21 -15
- package/funcs/projectsDeleteProject.js.map +1 -1
- package/funcs/projectsGetProjects.d.ts.map +1 -1
- package/funcs/projectsGetProjects.js +21 -15
- package/funcs/projectsGetProjects.js.map +1 -1
- package/funcs/projectsUpdateProject.d.ts.map +1 -1
- package/funcs/projectsUpdateProject.js +21 -15
- package/funcs/projectsUpdateProject.js.map +1 -1
- package/funcs/runsCreateRun.d.ts.map +1 -1
- package/funcs/runsCreateRun.js +1 -2
- package/funcs/runsCreateRun.js.map +1 -1
- package/funcs/runsUpdateRun.d.ts +1 -1
- package/funcs/runsUpdateRun.d.ts.map +1 -1
- package/funcs/runsUpdateRun.js +2 -2
- package/funcs/runsUpdateRun.js.map +1 -1
- package/funcs/sessionGetSession.d.ts.map +1 -1
- package/funcs/sessionGetSession.js +21 -15
- package/funcs/sessionGetSession.js.map +1 -1
- package/funcs/sessionStartSession.d.ts.map +1 -1
- package/funcs/sessionStartSession.js +21 -15
- package/funcs/sessionStartSession.js.map +1 -1
- package/funcs/toolsCreateTool.d.ts.map +1 -1
- package/funcs/toolsCreateTool.js +21 -15
- package/funcs/toolsCreateTool.js.map +1 -1
- package/funcs/toolsDeleteTool.d.ts.map +1 -1
- package/funcs/toolsDeleteTool.js +21 -15
- package/funcs/toolsDeleteTool.js.map +1 -1
- package/funcs/toolsGetTools.d.ts.map +1 -1
- package/funcs/toolsGetTools.js +21 -15
- package/funcs/toolsGetTools.js.map +1 -1
- package/funcs/toolsUpdateTool.d.ts.map +1 -1
- package/funcs/toolsUpdateTool.js +21 -15
- package/funcs/toolsUpdateTool.js.map +1 -1
- package/gen.yaml +61 -0
- package/hooks/types.d.ts +0 -4
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +17 -10
- package/index.js.map +1 -1
- package/jsr.json +27 -0
- package/lib/base64.d.ts +2 -2
- package/lib/base64.d.ts.map +1 -1
- package/lib/base64.js +17 -7
- package/lib/base64.js.map +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/primitives.d.ts +0 -4
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +0 -12
- package/lib/primitives.js.map +1 -1
- package/lib/retries.d.ts +0 -20
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +26 -51
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +2 -2
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +12 -14
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +1 -20
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -11
- package/lib/security.js.map +1 -1
- package/mcp-server/build.d.mts +2 -0
- package/mcp-server/build.d.mts.map +1 -0
- package/mcp-server/build.mjs +14 -0
- package/mcp-server/build.mjs.map +1 -0
- package/mcp-server/cli/start/command.d.ts +2 -0
- package/mcp-server/cli/start/command.d.ts.map +1 -0
- package/mcp-server/cli/start/command.js +138 -0
- package/mcp-server/cli/start/command.js.map +1 -0
- package/mcp-server/cli/start/impl.d.ts +18 -0
- package/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/mcp-server/cli/start/impl.js +104 -0
- package/mcp-server/cli/start/impl.js.map +1 -0
- package/mcp-server/cli.d.ts +6 -0
- package/mcp-server/cli.d.ts.map +1 -0
- package/mcp-server/cli.js +10 -0
- package/mcp-server/cli.js.map +1 -0
- package/mcp-server/console-logger.d.ts +7 -0
- package/mcp-server/console-logger.d.ts.map +1 -0
- package/mcp-server/console-logger.js +59 -0
- package/mcp-server/console-logger.js.map +1 -0
- package/mcp-server/extensions.d.ts +9 -0
- package/mcp-server/extensions.d.ts.map +1 -0
- package/mcp-server/extensions.js +6 -0
- package/mcp-server/extensions.js.map +1 -0
- package/mcp-server/mcp-server.d.ts +2 -0
- package/mcp-server/mcp-server.d.ts.map +1 -0
- package/mcp-server/mcp-server.js +29 -0
- package/mcp-server/mcp-server.js.map +1 -0
- package/mcp-server/resources.d.ts +32 -0
- package/mcp-server/resources.d.ts.map +1 -0
- package/mcp-server/resources.js +78 -0
- package/mcp-server/resources.js.map +1 -0
- package/mcp-server/scopes.d.ts +3 -0
- package/mcp-server/scopes.d.ts.map +1 -0
- package/mcp-server/scopes.js +8 -0
- package/mcp-server/scopes.js.map +1 -0
- package/mcp-server/server.d.ts +12 -0
- package/mcp-server/server.d.ts.map +1 -0
- package/mcp-server/server.js +113 -0
- package/mcp-server/server.js.map +1 -0
- package/mcp-server/shared.d.ts +7 -0
- package/mcp-server/shared.d.ts.map +1 -0
- package/mcp-server/shared.js +98 -0
- package/mcp-server/shared.js.map +1 -0
- package/mcp-server/tools/configurationsCreateConfiguration.d.ts +8 -0
- package/mcp-server/tools/configurationsCreateConfiguration.d.ts.map +1 -0
- package/mcp-server/tools/configurationsCreateConfiguration.js +61 -0
- package/mcp-server/tools/configurationsCreateConfiguration.js.map +1 -0
- package/mcp-server/tools/configurationsDeleteConfiguration.d.ts +8 -0
- package/mcp-server/tools/configurationsDeleteConfiguration.d.ts.map +1 -0
- package/mcp-server/tools/configurationsDeleteConfiguration.js +61 -0
- package/mcp-server/tools/configurationsDeleteConfiguration.js.map +1 -0
- package/mcp-server/tools/configurationsGetConfigurations.d.ts +14 -0
- package/mcp-server/tools/configurationsGetConfigurations.d.ts.map +1 -0
- package/mcp-server/tools/configurationsGetConfigurations.js +65 -0
- package/mcp-server/tools/configurationsGetConfigurations.js.map +1 -0
- package/mcp-server/tools/configurationsUpdateConfiguration.d.ts +10 -0
- package/mcp-server/tools/configurationsUpdateConfiguration.d.ts.map +1 -0
- package/mcp-server/tools/configurationsUpdateConfiguration.js +63 -0
- package/mcp-server/tools/configurationsUpdateConfiguration.js.map +1 -0
- package/mcp-server/tools/datapointsCreateDatapoint.d.ts +8 -0
- package/mcp-server/tools/datapointsCreateDatapoint.d.ts.map +1 -0
- package/mcp-server/tools/datapointsCreateDatapoint.js +62 -0
- package/mcp-server/tools/datapointsCreateDatapoint.js.map +1 -0
- package/mcp-server/tools/datapointsDeleteDatapoint.d.ts +8 -0
- package/mcp-server/tools/datapointsDeleteDatapoint.d.ts.map +1 -0
- package/mcp-server/tools/datapointsDeleteDatapoint.js +62 -0
- package/mcp-server/tools/datapointsDeleteDatapoint.js.map +1 -0
- package/mcp-server/tools/datapointsGetDatapoint.d.ts +8 -0
- package/mcp-server/tools/datapointsGetDatapoint.d.ts.map +1 -0
- package/mcp-server/tools/datapointsGetDatapoint.js +62 -0
- package/mcp-server/tools/datapointsGetDatapoint.js.map +1 -0
- package/mcp-server/tools/datapointsGetDatapoints.d.ts +10 -0
- package/mcp-server/tools/datapointsGetDatapoints.d.ts.map +1 -0
- package/mcp-server/tools/datapointsGetDatapoints.js +64 -0
- package/mcp-server/tools/datapointsGetDatapoints.js.map +1 -0
- package/mcp-server/tools/datapointsUpdateDatapoint.d.ts +10 -0
- package/mcp-server/tools/datapointsUpdateDatapoint.d.ts.map +1 -0
- package/mcp-server/tools/datapointsUpdateDatapoint.js +63 -0
- package/mcp-server/tools/datapointsUpdateDatapoint.js.map +1 -0
- package/mcp-server/tools/datasetsAddDatapoints.d.ts +10 -0
- package/mcp-server/tools/datasetsAddDatapoints.d.ts.map +1 -0
- package/mcp-server/tools/datasetsAddDatapoints.js +64 -0
- package/mcp-server/tools/datasetsAddDatapoints.js.map +1 -0
- package/mcp-server/tools/datasetsCreateDataset.d.ts +8 -0
- package/mcp-server/tools/datasetsCreateDataset.d.ts.map +1 -0
- package/mcp-server/tools/datasetsCreateDataset.js +62 -0
- package/mcp-server/tools/datasetsCreateDataset.js.map +1 -0
- package/mcp-server/tools/datasetsDeleteDataset.d.ts +8 -0
- package/mcp-server/tools/datasetsDeleteDataset.d.ts.map +1 -0
- package/mcp-server/tools/datasetsDeleteDataset.js +61 -0
- package/mcp-server/tools/datasetsDeleteDataset.js.map +1 -0
- package/mcp-server/tools/datasetsGetDatasets.d.ts +13 -0
- package/mcp-server/tools/datasetsGetDatasets.d.ts.map +1 -0
- package/mcp-server/tools/datasetsGetDatasets.js +65 -0
- package/mcp-server/tools/datasetsGetDatasets.js.map +1 -0
- package/mcp-server/tools/datasetsUpdateDataset.d.ts +8 -0
- package/mcp-server/tools/datasetsUpdateDataset.d.ts.map +1 -0
- package/mcp-server/tools/datasetsUpdateDataset.js +61 -0
- package/mcp-server/tools/datasetsUpdateDataset.js.map +1 -0
- package/mcp-server/tools/eventsCreateEvent.d.ts +8 -0
- package/mcp-server/tools/eventsCreateEvent.d.ts.map +1 -0
- package/mcp-server/tools/eventsCreateEvent.js +64 -0
- package/mcp-server/tools/eventsCreateEvent.js.map +1 -0
- package/mcp-server/tools/eventsCreateEventBatch.d.ts +8 -0
- package/mcp-server/tools/eventsCreateEventBatch.d.ts.map +1 -0
- package/mcp-server/tools/eventsCreateEventBatch.js +64 -0
- package/mcp-server/tools/eventsCreateEventBatch.js.map +1 -0
- package/mcp-server/tools/eventsCreateModelEvent.d.ts +8 -0
- package/mcp-server/tools/eventsCreateModelEvent.d.ts.map +1 -0
- package/mcp-server/tools/eventsCreateModelEvent.js +64 -0
- package/mcp-server/tools/eventsCreateModelEvent.js.map +1 -0
- package/mcp-server/tools/eventsCreateModelEventBatch.d.ts +8 -0
- package/mcp-server/tools/eventsCreateModelEventBatch.d.ts.map +1 -0
- package/mcp-server/tools/eventsCreateModelEventBatch.js +64 -0
- package/mcp-server/tools/eventsCreateModelEventBatch.js.map +1 -0
- package/mcp-server/tools/eventsGetEvents.d.ts +8 -0
- package/mcp-server/tools/eventsGetEvents.d.ts.map +1 -0
- package/mcp-server/tools/eventsGetEvents.js +62 -0
- package/mcp-server/tools/eventsGetEvents.js.map +1 -0
- package/mcp-server/tools/eventsUpdateEvent.d.ts +8 -0
- package/mcp-server/tools/eventsUpdateEvent.d.ts.map +1 -0
- package/mcp-server/tools/eventsUpdateEvent.js +61 -0
- package/mcp-server/tools/eventsUpdateEvent.js.map +1 -0
- package/mcp-server/tools/experimentsCreateRun.d.ts +8 -0
- package/mcp-server/tools/experimentsCreateRun.d.ts.map +1 -0
- package/mcp-server/tools/experimentsCreateRun.js +62 -0
- package/mcp-server/tools/experimentsCreateRun.js.map +1 -0
- package/mcp-server/tools/experimentsDeleteRun.d.ts +8 -0
- package/mcp-server/tools/experimentsDeleteRun.d.ts.map +1 -0
- package/mcp-server/tools/experimentsDeleteRun.js +62 -0
- package/mcp-server/tools/experimentsDeleteRun.js.map +1 -0
- package/mcp-server/tools/experimentsGetExperimentComparison.d.ts +21 -0
- package/mcp-server/tools/experimentsGetExperimentComparison.d.ts.map +1 -0
- package/mcp-server/tools/experimentsGetExperimentComparison.js +67 -0
- package/mcp-server/tools/experimentsGetExperimentComparison.js.map +1 -0
- package/mcp-server/tools/experimentsGetExperimentResult.d.ts +20 -0
- package/mcp-server/tools/experimentsGetExperimentResult.d.ts.map +1 -0
- package/mcp-server/tools/experimentsGetExperimentResult.js +65 -0
- package/mcp-server/tools/experimentsGetExperimentResult.js.map +1 -0
- package/mcp-server/tools/experimentsGetRun.d.ts +8 -0
- package/mcp-server/tools/experimentsGetRun.d.ts.map +1 -0
- package/mcp-server/tools/experimentsGetRun.js +62 -0
- package/mcp-server/tools/experimentsGetRun.js.map +1 -0
- package/mcp-server/tools/experimentsGetRuns.d.ts +8 -0
- package/mcp-server/tools/experimentsGetRuns.d.ts.map +1 -0
- package/mcp-server/tools/experimentsGetRuns.js +62 -0
- package/mcp-server/tools/experimentsGetRuns.js.map +1 -0
- package/mcp-server/tools/experimentsUpdateRun.d.ts +10 -0
- package/mcp-server/tools/experimentsUpdateRun.d.ts.map +1 -0
- package/mcp-server/tools/experimentsUpdateRun.js +64 -0
- package/mcp-server/tools/experimentsUpdateRun.js.map +1 -0
- package/mcp-server/tools/metricsCreateMetric.d.ts +8 -0
- package/mcp-server/tools/metricsCreateMetric.d.ts.map +1 -0
- package/mcp-server/tools/metricsCreateMetric.js +63 -0
- package/mcp-server/tools/metricsCreateMetric.js.map +1 -0
- package/mcp-server/tools/metricsDeleteMetric.d.ts +8 -0
- package/mcp-server/tools/metricsDeleteMetric.d.ts.map +1 -0
- package/mcp-server/tools/metricsDeleteMetric.js +63 -0
- package/mcp-server/tools/metricsDeleteMetric.js.map +1 -0
- package/mcp-server/tools/metricsGetMetrics.d.ts +8 -0
- package/mcp-server/tools/metricsGetMetrics.d.ts.map +1 -0
- package/mcp-server/tools/metricsGetMetrics.js +64 -0
- package/mcp-server/tools/metricsGetMetrics.js.map +1 -0
- package/mcp-server/tools/metricsUpdateMetric.d.ts +8 -0
- package/mcp-server/tools/metricsUpdateMetric.d.ts.map +1 -0
- package/mcp-server/tools/metricsUpdateMetric.js +63 -0
- package/mcp-server/tools/metricsUpdateMetric.js.map +1 -0
- package/mcp-server/tools/projectsCreateProject.d.ts +8 -0
- package/mcp-server/tools/projectsCreateProject.d.ts.map +1 -0
- package/mcp-server/tools/projectsCreateProject.js +62 -0
- package/mcp-server/tools/projectsCreateProject.js.map +1 -0
- package/mcp-server/tools/projectsDeleteProject.d.ts +8 -0
- package/mcp-server/tools/projectsDeleteProject.d.ts.map +1 -0
- package/mcp-server/tools/projectsDeleteProject.js +61 -0
- package/mcp-server/tools/projectsDeleteProject.js.map +1 -0
- package/mcp-server/tools/projectsGetProjects.d.ts +8 -0
- package/mcp-server/tools/projectsGetProjects.d.ts.map +1 -0
- package/mcp-server/tools/projectsGetProjects.js +62 -0
- package/mcp-server/tools/projectsGetProjects.js.map +1 -0
- package/mcp-server/tools/projectsUpdateProject.d.ts +8 -0
- package/mcp-server/tools/projectsUpdateProject.d.ts.map +1 -0
- package/mcp-server/tools/projectsUpdateProject.js +61 -0
- package/mcp-server/tools/projectsUpdateProject.js.map +1 -0
- package/mcp-server/tools/sessionGetSession.d.ts +8 -0
- package/mcp-server/tools/sessionGetSession.d.ts.map +1 -0
- package/mcp-server/tools/sessionGetSession.js +62 -0
- package/mcp-server/tools/sessionGetSession.js.map +1 -0
- package/mcp-server/tools/sessionStartSession.d.ts +8 -0
- package/mcp-server/tools/sessionStartSession.d.ts.map +1 -0
- package/mcp-server/tools/sessionStartSession.js +62 -0
- package/mcp-server/tools/sessionStartSession.js.map +1 -0
- package/mcp-server/tools/toolsCreateTool.d.ts +8 -0
- package/mcp-server/tools/toolsCreateTool.d.ts.map +1 -0
- package/mcp-server/tools/toolsCreateTool.js +62 -0
- package/mcp-server/tools/toolsCreateTool.js.map +1 -0
- package/mcp-server/tools/toolsDeleteTool.d.ts +8 -0
- package/mcp-server/tools/toolsDeleteTool.d.ts.map +1 -0
- package/mcp-server/tools/toolsDeleteTool.js +61 -0
- package/mcp-server/tools/toolsDeleteTool.js.map +1 -0
- package/mcp-server/tools/toolsGetTools.d.ts +3 -0
- package/mcp-server/tools/toolsGetTools.d.ts.map +1 -0
- package/mcp-server/tools/toolsGetTools.js +24 -0
- package/mcp-server/tools/toolsGetTools.js.map +1 -0
- package/mcp-server/tools/toolsUpdateTool.d.ts +8 -0
- package/mcp-server/tools/toolsUpdateTool.d.ts.map +1 -0
- package/mcp-server/tools/toolsUpdateTool.js +61 -0
- package/mcp-server/tools/toolsUpdateTool.js.map +1 -0
- package/mcp-server/tools.d.ts +25 -0
- package/mcp-server/tools.d.ts.map +1 -0
- package/mcp-server/tools.js +77 -0
- package/mcp-server/tools.js.map +1 -0
- package/models/components/configuration.js +17 -7
- package/models/components/configuration.js.map +1 -1
- package/models/components/createdatapointrequest.js +17 -7
- package/models/components/createdatapointrequest.js.map +1 -1
- package/models/components/createdatasetrequest.js +17 -7
- package/models/components/createdatasetrequest.js.map +1 -1
- package/models/components/createeventrequest.js +17 -7
- package/models/components/createeventrequest.js.map +1 -1
- package/models/components/createmodelevent.js +17 -7
- package/models/components/createmodelevent.js.map +1 -1
- package/models/components/createprojectrequest.js +17 -7
- package/models/components/createprojectrequest.js.map +1 -1
- package/models/components/createrunrequest.js +17 -7
- package/models/components/createrunrequest.js.map +1 -1
- package/models/components/createrunresponse.js +17 -7
- package/models/components/createrunresponse.js.map +1 -1
- package/models/components/createtoolrequest.js +17 -7
- package/models/components/createtoolrequest.js.map +1 -1
- package/models/components/datapoint.js +17 -7
- package/models/components/datapoint.js.map +1 -1
- package/models/components/dataset.js +17 -7
- package/models/components/dataset.js.map +1 -1
- package/models/components/datasetupdate.js +17 -7
- package/models/components/datasetupdate.js.map +1 -1
- package/models/components/deleterunresponse.js +17 -7
- package/models/components/deleterunresponse.js.map +1 -1
- package/models/components/evaluationrun.js +17 -7
- package/models/components/evaluationrun.js.map +1 -1
- package/models/components/event.js +17 -7
- package/models/components/event.js.map +1 -1
- package/models/components/eventfilter.js +17 -7
- package/models/components/eventfilter.js.map +1 -1
- package/models/components/experimentcomparisonresponse.js +17 -7
- package/models/components/experimentcomparisonresponse.js.map +1 -1
- package/models/components/experimentresultresponse.js +17 -7
- package/models/components/experimentresultresponse.js.map +1 -1
- package/models/components/getrunresponse.js +17 -7
- package/models/components/getrunresponse.js.map +1 -1
- package/models/components/getrunsresponse.js +17 -7
- package/models/components/getrunsresponse.js.map +1 -1
- package/models/components/metric.d.ts +10 -0
- package/models/components/metric.d.ts.map +1 -1
- package/models/components/metric.js +25 -7
- package/models/components/metric.js.map +1 -1
- package/models/components/metricedit.d.ts +10 -0
- package/models/components/metricedit.d.ts.map +1 -1
- package/models/components/metricedit.js +25 -7
- package/models/components/metricedit.js.map +1 -1
- package/models/components/postconfigurationrequest.js +17 -7
- package/models/components/postconfigurationrequest.js.map +1 -1
- package/models/components/project.js +17 -7
- package/models/components/project.js.map +1 -1
- package/models/components/putconfigurationrequest.js +17 -7
- package/models/components/putconfigurationrequest.js.map +1 -1
- package/models/components/security.js +17 -7
- package/models/components/security.js.map +1 -1
- package/models/components/sessionpropertiesbatch.js +17 -7
- package/models/components/sessionpropertiesbatch.js.map +1 -1
- package/models/components/sessionstartrequest.js +17 -7
- package/models/components/sessionstartrequest.js.map +1 -1
- package/models/components/tool.js +17 -7
- package/models/components/tool.js.map +1 -1
- package/models/components/updatedatapointrequest.js +17 -7
- package/models/components/updatedatapointrequest.js.map +1 -1
- package/models/components/updateprojectrequest.js +17 -7
- package/models/components/updateprojectrequest.js.map +1 -1
- package/models/components/updaterunrequest.js +17 -7
- package/models/components/updaterunrequest.js.map +1 -1
- package/models/components/updaterunresponse.js +17 -7
- package/models/components/updaterunresponse.js.map +1 -1
- package/models/components/updatetoolrequest.js +17 -7
- package/models/components/updatetoolrequest.js.map +1 -1
- package/models/errors/createeventbatch.js +17 -7
- package/models/errors/createeventbatch.js.map +1 -1
- package/models/errors/createmodeleventbatch.js +17 -7
- package/models/errors/createmodeleventbatch.js.map +1 -1
- package/models/errors/sdkvalidationerror.js +17 -7
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/operations/adddatapoints.js +17 -7
- package/models/operations/adddatapoints.js.map +1 -1
- package/models/operations/createdatapoint.js +17 -7
- package/models/operations/createdatapoint.js.map +1 -1
- package/models/operations/createdataset.js +17 -7
- package/models/operations/createdataset.js.map +1 -1
- package/models/operations/createevent.js +17 -7
- package/models/operations/createevent.js.map +1 -1
- package/models/operations/createeventbatch.js +17 -7
- package/models/operations/createeventbatch.js.map +1 -1
- package/models/operations/createmodelevent.js +17 -7
- package/models/operations/createmodelevent.js.map +1 -1
- package/models/operations/createmodeleventbatch.js +17 -7
- package/models/operations/createmodeleventbatch.js.map +1 -1
- package/models/operations/createtool.js +17 -7
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteconfiguration.js +17 -7
- package/models/operations/deleteconfiguration.js.map +1 -1
- package/models/operations/deletedatapoint.js +17 -7
- package/models/operations/deletedatapoint.js.map +1 -1
- package/models/operations/deletedataset.js +17 -7
- package/models/operations/deletedataset.js.map +1 -1
- package/models/operations/deletemetric.js +17 -7
- package/models/operations/deletemetric.js.map +1 -1
- package/models/operations/deleteproject.js +17 -7
- package/models/operations/deleteproject.js.map +1 -1
- package/models/operations/deleterun.js +17 -7
- package/models/operations/deleterun.js.map +1 -1
- package/models/operations/deletetool.js +17 -7
- package/models/operations/deletetool.js.map +1 -1
- package/models/operations/getconfigurations.js +17 -7
- package/models/operations/getconfigurations.js.map +1 -1
- package/models/operations/getdatapoint.js +17 -7
- package/models/operations/getdatapoint.js.map +1 -1
- package/models/operations/getdatapoints.js +17 -7
- package/models/operations/getdatapoints.js.map +1 -1
- package/models/operations/getdatasets.js +17 -7
- package/models/operations/getdatasets.js.map +1 -1
- package/models/operations/getevents.js +17 -7
- package/models/operations/getevents.js.map +1 -1
- package/models/operations/getexperimentcomparison.js +17 -7
- package/models/operations/getexperimentcomparison.js.map +1 -1
- package/models/operations/getexperimentresult.js +17 -7
- package/models/operations/getexperimentresult.js.map +1 -1
- package/models/operations/getmetrics.js +17 -7
- package/models/operations/getmetrics.js.map +1 -1
- package/models/operations/getprojects.js +17 -7
- package/models/operations/getprojects.js.map +1 -1
- package/models/operations/getrun.js +17 -7
- package/models/operations/getrun.js.map +1 -1
- package/models/operations/getruns.js +17 -7
- package/models/operations/getruns.js.map +1 -1
- package/models/operations/getsession.js +17 -7
- package/models/operations/getsession.js.map +1 -1
- package/models/operations/startsession.js +17 -7
- package/models/operations/startsession.js.map +1 -1
- package/models/operations/updateconfiguration.js +17 -7
- package/models/operations/updateconfiguration.js.map +1 -1
- package/models/operations/updatedatapoint.js +17 -7
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updateevent.js +17 -7
- package/models/operations/updateevent.js.map +1 -1
- package/models/operations/updaterun.js +17 -7
- package/models/operations/updaterun.js.map +1 -1
- package/openapi.yaml +3226 -0
- package/package.json +21 -18
- package/sdk/evaluation.d.ts +15 -6
- package/sdk/evaluation.d.ts.map +1 -1
- package/sdk/evaluation.js +45 -18
- package/sdk/evaluation.js.map +1 -1
- package/sdk/index.d.ts +0 -3
- package/sdk/index.d.ts.map +1 -1
- package/sdk/index.js +1 -4
- package/sdk/index.js.map +1 -1
- package/sdk/lc_tracer.d.ts +7 -6
- package/sdk/lc_tracer.d.ts.map +1 -1
- package/sdk/lc_tracer.js +43 -26
- package/sdk/lc_tracer.js.map +1 -1
- package/sdk/runs.d.ts +1 -1
- package/sdk/runs.d.ts.map +1 -1
- package/sdk/runs.js +2 -2
- package/sdk/runs.js.map +1 -1
- package/sdk/telemetry.d.ts.map +1 -1
- package/sdk/telemetry.js +18 -9
- package/sdk/telemetry.js.map +1 -1
- package/sdk/tracer.d.ts +131 -24
- package/sdk/tracer.d.ts.map +1 -1
- package/sdk/tracer.js +315 -137
- package/sdk/tracer.js.map +1 -1
- package/src/funcs/configurationsCreateConfiguration.ts +4 -11
- package/src/funcs/configurationsDeleteConfiguration.ts +4 -11
- package/src/funcs/configurationsGetConfigurations.ts +4 -11
- package/src/funcs/configurationsUpdateConfiguration.ts +4 -11
- package/src/funcs/datapointsCreateDatapoint.ts +4 -11
- package/src/funcs/datapointsDeleteDatapoint.ts +4 -11
- package/src/funcs/datapointsGetDatapoint.ts +4 -11
- package/src/funcs/datapointsGetDatapoints.ts +4 -11
- package/src/funcs/datapointsUpdateDatapoint.ts +4 -11
- package/src/funcs/datasetsAddDatapoints.ts +4 -11
- package/src/funcs/datasetsCreateDataset.ts +4 -11
- package/src/funcs/datasetsDeleteDataset.ts +4 -11
- package/src/funcs/datasetsGetDatasets.ts +4 -11
- package/src/funcs/datasetsUpdateDataset.ts +4 -11
- package/src/funcs/eventsCreateEvent.ts +4 -11
- package/src/funcs/eventsCreateEventBatch.ts +4 -11
- package/src/funcs/eventsCreateModelEvent.ts +4 -11
- package/src/funcs/eventsCreateModelEventBatch.ts +4 -11
- package/src/funcs/eventsGetEvents.ts +4 -11
- package/src/funcs/eventsUpdateEvent.ts +4 -11
- package/src/funcs/experimentsCreateRun.ts +4 -11
- package/src/funcs/experimentsDeleteRun.ts +4 -11
- package/src/funcs/experimentsGetExperimentComparison.ts +4 -11
- package/src/funcs/experimentsGetExperimentResult.ts +4 -11
- package/src/funcs/experimentsGetRun.ts +4 -11
- package/src/funcs/experimentsGetRuns.ts +4 -11
- package/src/funcs/experimentsUpdateRun.ts +4 -11
- package/src/funcs/metricsCreateMetric.ts +4 -11
- package/src/funcs/metricsDeleteMetric.ts +4 -11
- package/src/funcs/metricsGetMetrics.ts +4 -11
- package/src/funcs/metricsUpdateMetric.ts +4 -11
- package/src/funcs/projectsCreateProject.ts +4 -11
- package/src/funcs/projectsDeleteProject.ts +4 -11
- package/src/funcs/projectsGetProjects.ts +4 -11
- package/src/funcs/projectsUpdateProject.ts +4 -11
- package/src/funcs/sessionGetSession.ts +4 -11
- package/src/funcs/sessionStartSession.ts +4 -11
- package/src/funcs/toolsCreateTool.ts +4 -11
- package/src/funcs/toolsDeleteTool.ts +4 -11
- package/src/funcs/toolsGetTools.ts +4 -11
- package/src/funcs/toolsUpdateTool.ts +4 -11
- package/src/hooks/types.ts +0 -4
- package/src/index.ts +0 -4
- package/src/lib/config.ts +4 -4
- package/src/lib/primitives.ts +0 -20
- package/src/lib/retries.ts +31 -63
- package/src/lib/sdks.ts +15 -19
- package/src/lib/security.ts +3 -39
- package/src/models/components/metric.ts +18 -0
- package/src/models/components/metricedit.ts +18 -0
- package/src/sdk/evaluation.ts +52 -23
- package/src/sdk/index.ts +1 -4
- package/src/sdk/lc_tracer.ts +64 -44
- package/src/sdk/telemetry.ts +2 -3
- package/src/sdk/tracer.ts +407 -169
- package/tsconfig.json +40 -0
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
- package/types/blobs.js +17 -7
- package/types/blobs.js.map +1 -1
- package/types/constdatetime.js +17 -7
- package/types/constdatetime.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -20
- package/dist/internal/utils/contenttype.d.ts +0 -1
- package/dist/internal/utils/contenttype.js +0 -33
- package/dist/internal/utils/headers.d.ts +0 -4
- package/dist/internal/utils/headers.js +0 -92
- package/dist/internal/utils/index.d.ts +0 -8
- package/dist/internal/utils/index.js +0 -27
- package/dist/internal/utils/pathparams.d.ts +0 -2
- package/dist/internal/utils/pathparams.js +0 -53
- package/dist/internal/utils/queryparams.d.ts +0 -2
- package/dist/internal/utils/queryparams.js +0 -182
- package/dist/internal/utils/requestbody.d.ts +0 -2
- package/dist/internal/utils/requestbody.js +0 -328
- package/dist/internal/utils/retries.d.ts +0 -20
- package/dist/internal/utils/retries.js +0 -250
- package/dist/internal/utils/security.d.ts +0 -5
- package/dist/internal/utils/security.js +0 -196
- package/dist/internal/utils/utils.d.ts +0 -37
- package/dist/internal/utils/utils.js +0 -368
- package/dist/models/components/configuration.d.ts +0 -44
- package/dist/models/components/configuration.js +0 -94
- package/dist/models/components/createdatapointrequest.d.ts +0 -31
- package/dist/models/components/createdatapointrequest.js +0 -75
- package/dist/models/components/createdatasetrequest.d.ts +0 -50
- package/dist/models/components/createdatasetrequest.js +0 -101
- package/dist/models/components/createeventrequest.d.ts +0 -87
- package/dist/models/components/createeventrequest.js +0 -144
- package/dist/models/components/createmodelevent.d.ts +0 -71
- package/dist/models/components/createmodelevent.js +0 -125
- package/dist/models/components/createprojectrequest.d.ts +0 -5
- package/dist/models/components/createprojectrequest.js +0 -50
- package/dist/models/components/createrunrequest.d.ts +0 -42
- package/dist/models/components/createrunrequest.js +0 -88
- package/dist/models/components/createrunresponse.d.ts +0 -6
- package/dist/models/components/createrunresponse.js +0 -52
- package/dist/models/components/createtoolrequest.d.ts +0 -18
- package/dist/models/components/createtoolrequest.js +0 -70
- package/dist/models/components/datapoint.d.ts +0 -41
- package/dist/models/components/datapoint.js +0 -118
- package/dist/models/components/dataset.d.ts +0 -58
- package/dist/models/components/dataset.js +0 -119
- package/dist/models/components/datasetupdate.d.ts +0 -27
- package/dist/models/components/datasetupdate.js +0 -70
- package/dist/models/components/deleterunresponse.d.ts +0 -5
- package/dist/models/components/deleterunresponse.js +0 -50
- package/dist/models/components/evaluationrun.d.ts +0 -50
- package/dist/models/components/evaluationrun.js +0 -116
- package/dist/models/components/event.d.ts +0 -88
- package/dist/models/components/event.js +0 -145
- package/dist/models/components/eventfilter.d.ts +0 -38
- package/dist/models/components/eventfilter.js +0 -81
- package/dist/models/components/getrunresponse.d.ts +0 -5
- package/dist/models/components/getrunresponse.js +0 -47
- package/dist/models/components/getrunsresponse.d.ts +0 -5
- package/dist/models/components/getrunsresponse.js +0 -47
- package/dist/models/components/index.d.ts +0 -31
- package/dist/models/components/index.js +0 -50
- package/dist/models/components/metric.d.ts +0 -86
- package/dist/models/components/metric.js +0 -155
- package/dist/models/components/metricedit.d.ts +0 -91
- package/dist/models/components/metricedit.js +0 -160
- package/dist/models/components/postconfigurationrequest.d.ts +0 -29
- package/dist/models/components/postconfigurationrequest.js +0 -76
- package/dist/models/components/project.d.ts +0 -6
- package/dist/models/components/project.js +0 -55
- package/dist/models/components/putconfigurationrequest.d.ts +0 -40
- package/dist/models/components/putconfigurationrequest.js +0 -89
- package/dist/models/components/security.d.ts +0 -4
- package/dist/models/components/security.js +0 -45
- package/dist/models/components/sessionstartrequest.d.ts +0 -67
- package/dist/models/components/sessionstartrequest.js +0 -120
- package/dist/models/components/tool.d.ts +0 -19
- package/dist/models/components/tool.js +0 -75
- package/dist/models/components/updatedatapointrequest.d.ts +0 -27
- package/dist/models/components/updatedatapointrequest.js +0 -70
- package/dist/models/components/updateprojectrequest.d.ts +0 -6
- package/dist/models/components/updateprojectrequest.js +0 -55
- package/dist/models/components/updaterunrequest.d.ts +0 -32
- package/dist/models/components/updaterunrequest.js +0 -80
- package/dist/models/components/updaterunresponse.d.ts +0 -11
- package/dist/models/components/updaterunresponse.js +0 -50
- package/dist/models/components/updatetoolrequest.d.ts +0 -7
- package/dist/models/components/updatetoolrequest.js +0 -60
- package/dist/models/errors/createeventbatch.d.ts +0 -14
- package/dist/models/errors/createeventbatch.js +0 -70
- package/dist/models/errors/createmodeleventbatch.d.ts +0 -14
- package/dist/models/errors/createmodeleventbatch.js +0 -70
- package/dist/models/errors/index.d.ts +0 -3
- package/dist/models/errors/index.js +0 -22
- package/dist/models/errors/sdkerror.d.ts +0 -7
- package/dist/models/errors/sdkerror.js +0 -40
- package/dist/models/operations/adddatapoints.d.ts +0 -68
- package/dist/models/operations/adddatapoints.js +0 -143
- package/dist/models/operations/createconfiguration.d.ts +0 -16
- package/dist/models/operations/createconfiguration.js +0 -51
- package/dist/models/operations/createdatapoint.d.ts +0 -29
- package/dist/models/operations/createdatapoint.js +0 -86
- package/dist/models/operations/createdataset.d.ts +0 -33
- package/dist/models/operations/createdataset.js +0 -91
- package/dist/models/operations/createevent.d.ts +0 -31
- package/dist/models/operations/createevent.js +0 -115
- package/dist/models/operations/createeventbatch.d.ts +0 -36
- package/dist/models/operations/createeventbatch.js +0 -125
- package/dist/models/operations/createmetric.d.ts +0 -16
- package/dist/models/operations/createmetric.js +0 -51
- package/dist/models/operations/createmodelevent.d.ts +0 -31
- package/dist/models/operations/createmodelevent.js +0 -115
- package/dist/models/operations/createmodeleventbatch.d.ts +0 -31
- package/dist/models/operations/createmodeleventbatch.js +0 -115
- package/dist/models/operations/createproject.d.ts +0 -21
- package/dist/models/operations/createproject.js +0 -79
- package/dist/models/operations/createrun.d.ts +0 -21
- package/dist/models/operations/createrun.js +0 -79
- package/dist/models/operations/createtool.d.ts +0 -29
- package/dist/models/operations/createtool.js +0 -86
- package/dist/models/operations/deleteconfiguration.d.ts +0 -22
- package/dist/models/operations/deleteconfiguration.js +0 -63
- package/dist/models/operations/deletedatapoint.d.ts +0 -32
- package/dist/models/operations/deletedatapoint.js +0 -84
- package/dist/models/operations/deletedataset.d.ts +0 -22
- package/dist/models/operations/deletedataset.js +0 -63
- package/dist/models/operations/deletemetric.d.ts +0 -19
- package/dist/models/operations/deletemetric.js +0 -63
- package/dist/models/operations/deleteproject.d.ts +0 -19
- package/dist/models/operations/deleteproject.js +0 -63
- package/dist/models/operations/deleterun.d.ts +0 -24
- package/dist/models/operations/deleterun.js +0 -91
- package/dist/models/operations/deletetool.d.ts +0 -19
- package/dist/models/operations/deletetool.js +0 -63
- package/dist/models/operations/getconfigurations.d.ts +0 -43
- package/dist/models/operations/getconfigurations.js +0 -108
- package/dist/models/operations/getdatapoint.d.ts +0 -33
- package/dist/models/operations/getdatapoint.js +0 -109
- package/dist/models/operations/getdatapoints.d.ts +0 -41
- package/dist/models/operations/getdatapoints.js +0 -117
- package/dist/models/operations/getdatasets.d.ts +0 -48
- package/dist/models/operations/getdatasets.js +0 -125
- package/dist/models/operations/getevents.d.ts +0 -57
- package/dist/models/operations/getevents.js +0 -155
- package/dist/models/operations/getmetrics.d.ts +0 -27
- package/dist/models/operations/getmetrics.js +0 -91
- package/dist/models/operations/getprojects.d.ts +0 -24
- package/dist/models/operations/getprojects.js +0 -91
- package/dist/models/operations/getrun.d.ts +0 -24
- package/dist/models/operations/getrun.js +0 -91
- package/dist/models/operations/getruns.d.ts +0 -24
- package/dist/models/operations/getruns.js +0 -91
- package/dist/models/operations/getsession.d.ts +0 -24
- package/dist/models/operations/getsession.js +0 -91
- package/dist/models/operations/gettools.d.ts +0 -21
- package/dist/models/operations/gettools.js +0 -79
- package/dist/models/operations/index.d.ts +0 -39
- package/dist/models/operations/index.js +0 -58
- package/dist/models/operations/startsession.d.ts +0 -30
- package/dist/models/operations/startsession.js +0 -110
- package/dist/models/operations/updateconfiguration.d.ts +0 -24
- package/dist/models/operations/updateconfiguration.js +0 -91
- package/dist/models/operations/updatedatapoint.d.ts +0 -24
- package/dist/models/operations/updatedatapoint.js +0 -91
- package/dist/models/operations/updatedataset.d.ts +0 -16
- package/dist/models/operations/updatedataset.js +0 -51
- package/dist/models/operations/updateevent.d.ts +0 -26
- package/dist/models/operations/updateevent.js +0 -100
- package/dist/models/operations/updatemetric.d.ts +0 -16
- package/dist/models/operations/updatemetric.js +0 -51
- package/dist/models/operations/updateproject.d.ts +0 -16
- package/dist/models/operations/updateproject.js +0 -51
- package/dist/models/operations/updaterun.d.ts +0 -25
- package/dist/models/operations/updaterun.js +0 -95
- package/dist/models/operations/updatetool.d.ts +0 -16
- package/dist/models/operations/updatetool.js +0 -51
- package/dist/sdk/configurations.d.ts +0 -24
- package/dist/sdk/configurations.js +0 -356
- package/dist/sdk/datapoints.d.ts +0 -28
- package/dist/sdk/datapoints.js +0 -430
- package/dist/sdk/datasets.d.ts +0 -28
- package/dist/sdk/datasets.js +0 -435
- package/dist/sdk/events.d.ts +0 -43
- package/dist/sdk/events.js +0 -567
- package/dist/sdk/index.d.ts +0 -2
- package/dist/sdk/index.js +0 -21
- package/dist/sdk/metrics.d.ts +0 -36
- package/dist/sdk/metrics.js +0 -366
- package/dist/sdk/projects.d.ts +0 -24
- package/dist/sdk/projects.js +0 -361
- package/dist/sdk/runs.d.ts +0 -28
- package/dist/sdk/runs.js +0 -439
- package/dist/sdk/sdk.d.ts +0 -64
- package/dist/sdk/sdk.js +0 -90
- package/dist/sdk/session.d.ts +0 -15
- package/dist/sdk/session.js +0 -237
- package/dist/sdk/telemetry.d.ts +0 -21
- package/dist/sdk/telemetry.js +0 -243
- package/dist/sdk/tools.d.ts +0 -24
- package/dist/sdk/tools.js +0 -357
- package/dist/sdk/tracer.d.ts +0 -26
- package/dist/sdk/tracer.js +0 -308
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -20
- package/dist/types/rfcdate.d.ts +0 -9
- package/dist/types/rfcdate.js +0 -59
- package/tests/agent_script.ts +0 -127
- package/tests/enrich_span.ts +0 -111
- package/tests/jest.config.js +0 -6
- package/tests/openai_test.ts +0 -72
- package/tests/tracer.test.ts +0 -74
- package/tests/tracer_script.ts +0 -71
package/openapi.yaml
ADDED
|
@@ -0,0 +1,3226 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: HoneyHive API
|
|
4
|
+
version: 1.0.21
|
|
5
|
+
servers:
|
|
6
|
+
- url: https://api.honeyhive.ai
|
|
7
|
+
paths:
|
|
8
|
+
/session/start:
|
|
9
|
+
post:
|
|
10
|
+
summary: Start a new session
|
|
11
|
+
operationId: startSession
|
|
12
|
+
tags:
|
|
13
|
+
- Session
|
|
14
|
+
requestBody:
|
|
15
|
+
required: true
|
|
16
|
+
content:
|
|
17
|
+
application/json:
|
|
18
|
+
schema:
|
|
19
|
+
type: object
|
|
20
|
+
properties:
|
|
21
|
+
session:
|
|
22
|
+
$ref: '#/components/schemas/SessionStartRequest'
|
|
23
|
+
responses:
|
|
24
|
+
'200':
|
|
25
|
+
description: Session successfully started
|
|
26
|
+
content:
|
|
27
|
+
application/json:
|
|
28
|
+
schema:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
session_id:
|
|
32
|
+
type: string
|
|
33
|
+
/session/{session_id}:
|
|
34
|
+
get:
|
|
35
|
+
summary: Retrieve a session
|
|
36
|
+
operationId: getSession
|
|
37
|
+
tags:
|
|
38
|
+
- Session
|
|
39
|
+
parameters:
|
|
40
|
+
- name: session_id
|
|
41
|
+
in: path
|
|
42
|
+
required: true
|
|
43
|
+
schema:
|
|
44
|
+
type: string
|
|
45
|
+
responses:
|
|
46
|
+
'200':
|
|
47
|
+
description: Session details
|
|
48
|
+
content:
|
|
49
|
+
application/json:
|
|
50
|
+
schema:
|
|
51
|
+
$ref: '#/components/schemas/Event'
|
|
52
|
+
/events:
|
|
53
|
+
post:
|
|
54
|
+
tags:
|
|
55
|
+
- Events
|
|
56
|
+
operationId: createEvent
|
|
57
|
+
summary: Create a new event
|
|
58
|
+
description: Please refer to our instrumentation guide for detailed information
|
|
59
|
+
requestBody:
|
|
60
|
+
required: true
|
|
61
|
+
content:
|
|
62
|
+
application/json:
|
|
63
|
+
schema:
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
event:
|
|
67
|
+
$ref: '#/components/schemas/CreateEventRequest'
|
|
68
|
+
responses:
|
|
69
|
+
'200':
|
|
70
|
+
description: Event created
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
type: object
|
|
75
|
+
properties:
|
|
76
|
+
event_id:
|
|
77
|
+
type: string
|
|
78
|
+
success:
|
|
79
|
+
type: boolean
|
|
80
|
+
example:
|
|
81
|
+
event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
82
|
+
success: true
|
|
83
|
+
put:
|
|
84
|
+
tags:
|
|
85
|
+
- Events
|
|
86
|
+
operationId: updateEvent
|
|
87
|
+
summary: Update an event
|
|
88
|
+
requestBody:
|
|
89
|
+
required: true
|
|
90
|
+
content:
|
|
91
|
+
application/json:
|
|
92
|
+
schema:
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
event_id:
|
|
96
|
+
type: string
|
|
97
|
+
metadata:
|
|
98
|
+
type: object
|
|
99
|
+
additionalProperties: true
|
|
100
|
+
feedback:
|
|
101
|
+
type: object
|
|
102
|
+
additionalProperties: true
|
|
103
|
+
metrics:
|
|
104
|
+
type: object
|
|
105
|
+
additionalProperties: true
|
|
106
|
+
outputs:
|
|
107
|
+
type: object
|
|
108
|
+
additionalProperties: true
|
|
109
|
+
config:
|
|
110
|
+
type: object
|
|
111
|
+
additionalProperties: true
|
|
112
|
+
user_properties:
|
|
113
|
+
type: object
|
|
114
|
+
additionalProperties: true
|
|
115
|
+
duration:
|
|
116
|
+
type: number
|
|
117
|
+
required:
|
|
118
|
+
- event_id
|
|
119
|
+
example:
|
|
120
|
+
event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
121
|
+
metadata:
|
|
122
|
+
cost: 8.0e-05
|
|
123
|
+
completion_tokens: 23
|
|
124
|
+
prompt_tokens: 35
|
|
125
|
+
total_tokens: 58
|
|
126
|
+
feedback:
|
|
127
|
+
rating: 5
|
|
128
|
+
metrics:
|
|
129
|
+
num_words: 2
|
|
130
|
+
outputs:
|
|
131
|
+
role: assistant
|
|
132
|
+
content: Hello world
|
|
133
|
+
config:
|
|
134
|
+
template:
|
|
135
|
+
- role: system
|
|
136
|
+
content: Hello, {{ name }}!
|
|
137
|
+
user_properties:
|
|
138
|
+
user_id: 691b1f94-d38c-4e92-b051-5e03fee9ff86
|
|
139
|
+
duration: 42
|
|
140
|
+
responses:
|
|
141
|
+
'200':
|
|
142
|
+
description: Event updated
|
|
143
|
+
'400':
|
|
144
|
+
description: Bad request
|
|
145
|
+
/events/export:
|
|
146
|
+
post:
|
|
147
|
+
tags:
|
|
148
|
+
- Events
|
|
149
|
+
operationId: getEvents
|
|
150
|
+
summary: Retrieve events based on filters
|
|
151
|
+
requestBody:
|
|
152
|
+
required: true
|
|
153
|
+
content:
|
|
154
|
+
application/json:
|
|
155
|
+
schema:
|
|
156
|
+
type: object
|
|
157
|
+
properties:
|
|
158
|
+
project:
|
|
159
|
+
type: string
|
|
160
|
+
description: Name of the project associated with the event like
|
|
161
|
+
`New Project`
|
|
162
|
+
filters:
|
|
163
|
+
type: array
|
|
164
|
+
items:
|
|
165
|
+
$ref: '#/components/schemas/EventFilter'
|
|
166
|
+
dateRange:
|
|
167
|
+
type: object
|
|
168
|
+
properties:
|
|
169
|
+
$gte:
|
|
170
|
+
type: string
|
|
171
|
+
description: ISO String for start of date time filter like `2024-04-01T22:38:19.000Z`
|
|
172
|
+
$lte:
|
|
173
|
+
type: string
|
|
174
|
+
description: ISO String for end of date time filter like `2024-04-01T22:38:19.000Z`
|
|
175
|
+
projections:
|
|
176
|
+
type: array
|
|
177
|
+
items:
|
|
178
|
+
type: string
|
|
179
|
+
description: Fields to include in the response
|
|
180
|
+
limit:
|
|
181
|
+
type: number
|
|
182
|
+
description: Limit number of results to speed up query (default
|
|
183
|
+
is 1000, max is 7500)
|
|
184
|
+
page:
|
|
185
|
+
type: number
|
|
186
|
+
description: Page number of results (default is 1)
|
|
187
|
+
required:
|
|
188
|
+
- project
|
|
189
|
+
- filters
|
|
190
|
+
responses:
|
|
191
|
+
'200':
|
|
192
|
+
description: Success
|
|
193
|
+
content:
|
|
194
|
+
application/json:
|
|
195
|
+
schema:
|
|
196
|
+
type: object
|
|
197
|
+
properties:
|
|
198
|
+
events:
|
|
199
|
+
type: array
|
|
200
|
+
items:
|
|
201
|
+
$ref: '#/components/schemas/Event'
|
|
202
|
+
totalEvents:
|
|
203
|
+
type: number
|
|
204
|
+
description: Total number of events in the specified filter
|
|
205
|
+
/events/model:
|
|
206
|
+
post:
|
|
207
|
+
tags:
|
|
208
|
+
- Events
|
|
209
|
+
operationId: createModelEvent
|
|
210
|
+
summary: Create a new model event
|
|
211
|
+
description: Please refer to our instrumentation guide for detailed information
|
|
212
|
+
requestBody:
|
|
213
|
+
required: true
|
|
214
|
+
content:
|
|
215
|
+
application/json:
|
|
216
|
+
schema:
|
|
217
|
+
type: object
|
|
218
|
+
properties:
|
|
219
|
+
model_event:
|
|
220
|
+
$ref: '#/components/schemas/CreateModelEvent'
|
|
221
|
+
responses:
|
|
222
|
+
'200':
|
|
223
|
+
description: Model event created
|
|
224
|
+
content:
|
|
225
|
+
application/json:
|
|
226
|
+
schema:
|
|
227
|
+
type: object
|
|
228
|
+
properties:
|
|
229
|
+
event_id:
|
|
230
|
+
type: string
|
|
231
|
+
success:
|
|
232
|
+
type: boolean
|
|
233
|
+
example:
|
|
234
|
+
event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
235
|
+
success: true
|
|
236
|
+
/events/batch:
|
|
237
|
+
post:
|
|
238
|
+
tags:
|
|
239
|
+
- Events
|
|
240
|
+
operationId: createEventBatch
|
|
241
|
+
summary: Create a batch of events
|
|
242
|
+
description: Please refer to our instrumentation guide for detailed information
|
|
243
|
+
requestBody:
|
|
244
|
+
required: true
|
|
245
|
+
content:
|
|
246
|
+
application/json:
|
|
247
|
+
schema:
|
|
248
|
+
type: object
|
|
249
|
+
properties:
|
|
250
|
+
events:
|
|
251
|
+
type: array
|
|
252
|
+
items:
|
|
253
|
+
$ref: '#/components/schemas/CreateEventRequest'
|
|
254
|
+
is_single_session:
|
|
255
|
+
type: boolean
|
|
256
|
+
description: Default is false. If true, all events will be associated
|
|
257
|
+
with the same session
|
|
258
|
+
session_properties:
|
|
259
|
+
$ref: '#/components/schemas/SessionPropertiesBatch'
|
|
260
|
+
required:
|
|
261
|
+
- events
|
|
262
|
+
responses:
|
|
263
|
+
'200':
|
|
264
|
+
description: Events created
|
|
265
|
+
content:
|
|
266
|
+
application/json:
|
|
267
|
+
schema:
|
|
268
|
+
type: object
|
|
269
|
+
properties:
|
|
270
|
+
event_ids:
|
|
271
|
+
type: array
|
|
272
|
+
items:
|
|
273
|
+
type: string
|
|
274
|
+
session_id:
|
|
275
|
+
type: string
|
|
276
|
+
success:
|
|
277
|
+
type: boolean
|
|
278
|
+
example:
|
|
279
|
+
event_ids:
|
|
280
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
281
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b67
|
|
282
|
+
session_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
283
|
+
success: true
|
|
284
|
+
'500':
|
|
285
|
+
description: Events partially created
|
|
286
|
+
content:
|
|
287
|
+
application/json:
|
|
288
|
+
schema:
|
|
289
|
+
type: object
|
|
290
|
+
properties:
|
|
291
|
+
event_ids:
|
|
292
|
+
type: array
|
|
293
|
+
items:
|
|
294
|
+
type: string
|
|
295
|
+
errors:
|
|
296
|
+
type: array
|
|
297
|
+
items:
|
|
298
|
+
type: string
|
|
299
|
+
description: Any failure messages for events that could not
|
|
300
|
+
be created
|
|
301
|
+
success:
|
|
302
|
+
type: boolean
|
|
303
|
+
example:
|
|
304
|
+
event_ids:
|
|
305
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
306
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b67
|
|
307
|
+
errors:
|
|
308
|
+
- Could not create event due to missing inputs
|
|
309
|
+
- Could not create event due to missing source
|
|
310
|
+
success: true
|
|
311
|
+
/events/model/batch:
|
|
312
|
+
post:
|
|
313
|
+
tags:
|
|
314
|
+
- Events
|
|
315
|
+
operationId: createModelEventBatch
|
|
316
|
+
summary: Create a batch of model events
|
|
317
|
+
description: Please refer to our instrumentation guide for detailed information
|
|
318
|
+
requestBody:
|
|
319
|
+
required: true
|
|
320
|
+
content:
|
|
321
|
+
application/json:
|
|
322
|
+
schema:
|
|
323
|
+
type: object
|
|
324
|
+
properties:
|
|
325
|
+
model_events:
|
|
326
|
+
type: array
|
|
327
|
+
items:
|
|
328
|
+
$ref: '#/components/schemas/CreateModelEvent'
|
|
329
|
+
is_single_session:
|
|
330
|
+
type: boolean
|
|
331
|
+
description: Default is false. If true, all events will be associated
|
|
332
|
+
with the same session
|
|
333
|
+
session_properties:
|
|
334
|
+
$ref: '#/components/schemas/SessionPropertiesBatch'
|
|
335
|
+
responses:
|
|
336
|
+
'200':
|
|
337
|
+
description: Model events created
|
|
338
|
+
content:
|
|
339
|
+
application/json:
|
|
340
|
+
schema:
|
|
341
|
+
type: object
|
|
342
|
+
properties:
|
|
343
|
+
event_ids:
|
|
344
|
+
type: array
|
|
345
|
+
items:
|
|
346
|
+
type: string
|
|
347
|
+
success:
|
|
348
|
+
type: boolean
|
|
349
|
+
example:
|
|
350
|
+
event_ids:
|
|
351
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
352
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b67
|
|
353
|
+
success: true
|
|
354
|
+
'500':
|
|
355
|
+
description: Model events partially created
|
|
356
|
+
content:
|
|
357
|
+
application/json:
|
|
358
|
+
schema:
|
|
359
|
+
type: object
|
|
360
|
+
properties:
|
|
361
|
+
event_ids:
|
|
362
|
+
type: array
|
|
363
|
+
items:
|
|
364
|
+
type: string
|
|
365
|
+
errors:
|
|
366
|
+
type: array
|
|
367
|
+
items:
|
|
368
|
+
type: string
|
|
369
|
+
description: Any failure messages for events that could not
|
|
370
|
+
be created
|
|
371
|
+
success:
|
|
372
|
+
type: boolean
|
|
373
|
+
example:
|
|
374
|
+
event_ids:
|
|
375
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
376
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b67
|
|
377
|
+
errors:
|
|
378
|
+
- Could not create event due to missing model
|
|
379
|
+
- Could not create event due to missing provider
|
|
380
|
+
success: true
|
|
381
|
+
/metrics:
|
|
382
|
+
get:
|
|
383
|
+
tags:
|
|
384
|
+
- Metrics
|
|
385
|
+
operationId: getMetrics
|
|
386
|
+
summary: Get all metrics
|
|
387
|
+
description: Retrieve a list of all metrics
|
|
388
|
+
parameters:
|
|
389
|
+
- name: project_name
|
|
390
|
+
in: query
|
|
391
|
+
required: true
|
|
392
|
+
schema:
|
|
393
|
+
type: string
|
|
394
|
+
description: Project name associated with metrics
|
|
395
|
+
responses:
|
|
396
|
+
'200':
|
|
397
|
+
description: A list of metrics
|
|
398
|
+
content:
|
|
399
|
+
application/json:
|
|
400
|
+
schema:
|
|
401
|
+
type: array
|
|
402
|
+
items:
|
|
403
|
+
$ref: '#/components/schemas/Metric'
|
|
404
|
+
post:
|
|
405
|
+
tags:
|
|
406
|
+
- Metrics
|
|
407
|
+
operationId: createMetric
|
|
408
|
+
summary: Create a new metric
|
|
409
|
+
description: Add a new metric
|
|
410
|
+
requestBody:
|
|
411
|
+
required: true
|
|
412
|
+
content:
|
|
413
|
+
application/json:
|
|
414
|
+
schema:
|
|
415
|
+
$ref: '#/components/schemas/Metric'
|
|
416
|
+
responses:
|
|
417
|
+
'200':
|
|
418
|
+
description: Metric created successfully
|
|
419
|
+
put:
|
|
420
|
+
tags:
|
|
421
|
+
- Metrics
|
|
422
|
+
operationId: updateMetric
|
|
423
|
+
summary: Update an existing metric
|
|
424
|
+
description: Edit a metric
|
|
425
|
+
requestBody:
|
|
426
|
+
required: true
|
|
427
|
+
content:
|
|
428
|
+
application/json:
|
|
429
|
+
schema:
|
|
430
|
+
$ref: '#/components/schemas/MetricEdit'
|
|
431
|
+
responses:
|
|
432
|
+
'200':
|
|
433
|
+
description: Metric updated successfully
|
|
434
|
+
delete:
|
|
435
|
+
tags:
|
|
436
|
+
- Metrics
|
|
437
|
+
operationId: deleteMetric
|
|
438
|
+
summary: Delete a metric
|
|
439
|
+
description: Remove a metric
|
|
440
|
+
parameters:
|
|
441
|
+
- name: metric_id
|
|
442
|
+
in: query
|
|
443
|
+
required: true
|
|
444
|
+
schema:
|
|
445
|
+
type: string
|
|
446
|
+
description: Unique identifier of the metric
|
|
447
|
+
responses:
|
|
448
|
+
'200':
|
|
449
|
+
description: Metric deleted successfully
|
|
450
|
+
/tools:
|
|
451
|
+
get:
|
|
452
|
+
tags:
|
|
453
|
+
- Tools
|
|
454
|
+
summary: Retrieve a list of tools
|
|
455
|
+
operationId: getTools
|
|
456
|
+
responses:
|
|
457
|
+
'200':
|
|
458
|
+
description: Successfully retrieved the list of tools
|
|
459
|
+
content:
|
|
460
|
+
application/json:
|
|
461
|
+
schema:
|
|
462
|
+
type: array
|
|
463
|
+
items:
|
|
464
|
+
$ref: '#/components/schemas/Tool'
|
|
465
|
+
post:
|
|
466
|
+
tags:
|
|
467
|
+
- Tools
|
|
468
|
+
summary: Create a new tool
|
|
469
|
+
operationId: createTool
|
|
470
|
+
requestBody:
|
|
471
|
+
required: true
|
|
472
|
+
content:
|
|
473
|
+
application/json:
|
|
474
|
+
schema:
|
|
475
|
+
$ref: '#/components/schemas/CreateToolRequest'
|
|
476
|
+
responses:
|
|
477
|
+
'200':
|
|
478
|
+
description: Tool successfully created
|
|
479
|
+
content:
|
|
480
|
+
application/json:
|
|
481
|
+
schema:
|
|
482
|
+
type: object
|
|
483
|
+
properties:
|
|
484
|
+
result:
|
|
485
|
+
type: object
|
|
486
|
+
properties:
|
|
487
|
+
insertedId:
|
|
488
|
+
type: string
|
|
489
|
+
put:
|
|
490
|
+
tags:
|
|
491
|
+
- Tools
|
|
492
|
+
summary: Update an existing tool
|
|
493
|
+
operationId: updateTool
|
|
494
|
+
requestBody:
|
|
495
|
+
required: true
|
|
496
|
+
content:
|
|
497
|
+
application/json:
|
|
498
|
+
schema:
|
|
499
|
+
$ref: '#/components/schemas/UpdateToolRequest'
|
|
500
|
+
responses:
|
|
501
|
+
'200':
|
|
502
|
+
description: Successfully updated the tool
|
|
503
|
+
delete:
|
|
504
|
+
tags:
|
|
505
|
+
- Tools
|
|
506
|
+
summary: Delete a tool
|
|
507
|
+
operationId: deleteTool
|
|
508
|
+
parameters:
|
|
509
|
+
- name: function_id
|
|
510
|
+
in: query
|
|
511
|
+
required: true
|
|
512
|
+
schema:
|
|
513
|
+
type: string
|
|
514
|
+
responses:
|
|
515
|
+
'200':
|
|
516
|
+
description: Successfully deleted the tool
|
|
517
|
+
/datapoints:
|
|
518
|
+
get:
|
|
519
|
+
summary: Retrieve a list of datapoints
|
|
520
|
+
operationId: getDatapoints
|
|
521
|
+
tags:
|
|
522
|
+
- Datapoints
|
|
523
|
+
parameters:
|
|
524
|
+
- name: project
|
|
525
|
+
in: query
|
|
526
|
+
required: true
|
|
527
|
+
schema:
|
|
528
|
+
type: string
|
|
529
|
+
description: Project name to filter datapoints
|
|
530
|
+
- name: datapoint_ids
|
|
531
|
+
in: query
|
|
532
|
+
required: false
|
|
533
|
+
schema:
|
|
534
|
+
type: array
|
|
535
|
+
items:
|
|
536
|
+
type: string
|
|
537
|
+
description: List of datapoint ids to fetch
|
|
538
|
+
- name: dataset_name
|
|
539
|
+
in: query
|
|
540
|
+
required: false
|
|
541
|
+
schema:
|
|
542
|
+
type: string
|
|
543
|
+
description: Name of the dataset to get datapoints from
|
|
544
|
+
responses:
|
|
545
|
+
'200':
|
|
546
|
+
description: Successful response
|
|
547
|
+
content:
|
|
548
|
+
application/json:
|
|
549
|
+
schema:
|
|
550
|
+
type: object
|
|
551
|
+
properties:
|
|
552
|
+
datapoints:
|
|
553
|
+
type: array
|
|
554
|
+
items:
|
|
555
|
+
$ref: '#/components/schemas/Datapoint'
|
|
556
|
+
post:
|
|
557
|
+
summary: Create a new datapoint
|
|
558
|
+
operationId: createDatapoint
|
|
559
|
+
tags:
|
|
560
|
+
- Datapoints
|
|
561
|
+
requestBody:
|
|
562
|
+
required: true
|
|
563
|
+
content:
|
|
564
|
+
application/json:
|
|
565
|
+
schema:
|
|
566
|
+
$ref: '#/components/schemas/CreateDatapointRequest'
|
|
567
|
+
responses:
|
|
568
|
+
'200':
|
|
569
|
+
description: Datapoint successfully created
|
|
570
|
+
content:
|
|
571
|
+
application/json:
|
|
572
|
+
schema:
|
|
573
|
+
type: object
|
|
574
|
+
properties:
|
|
575
|
+
result:
|
|
576
|
+
type: object
|
|
577
|
+
properties:
|
|
578
|
+
insertedId:
|
|
579
|
+
type: string
|
|
580
|
+
/datapoints/{id}:
|
|
581
|
+
get:
|
|
582
|
+
summary: Retrieve a specific datapoint
|
|
583
|
+
operationId: getDatapoint
|
|
584
|
+
tags:
|
|
585
|
+
- Datapoints
|
|
586
|
+
parameters:
|
|
587
|
+
- name: id
|
|
588
|
+
in: path
|
|
589
|
+
required: true
|
|
590
|
+
schema:
|
|
591
|
+
type: string
|
|
592
|
+
description: Datapoint ID like `65c13dbbd65fb876b7886cdb`
|
|
593
|
+
responses:
|
|
594
|
+
'200':
|
|
595
|
+
content:
|
|
596
|
+
application/json:
|
|
597
|
+
schema:
|
|
598
|
+
type: object
|
|
599
|
+
properties:
|
|
600
|
+
datapoint:
|
|
601
|
+
type: array
|
|
602
|
+
items:
|
|
603
|
+
$ref: '#/components/schemas/Datapoint'
|
|
604
|
+
description: Successful response
|
|
605
|
+
put:
|
|
606
|
+
summary: Update a specific datapoint
|
|
607
|
+
parameters:
|
|
608
|
+
- name: id
|
|
609
|
+
in: path
|
|
610
|
+
required: true
|
|
611
|
+
schema:
|
|
612
|
+
type: string
|
|
613
|
+
description: ID of datapoint to update
|
|
614
|
+
operationId: updateDatapoint
|
|
615
|
+
tags:
|
|
616
|
+
- Datapoints
|
|
617
|
+
requestBody:
|
|
618
|
+
required: true
|
|
619
|
+
content:
|
|
620
|
+
application/json:
|
|
621
|
+
schema:
|
|
622
|
+
$ref: '#/components/schemas/UpdateDatapointRequest'
|
|
623
|
+
responses:
|
|
624
|
+
'200':
|
|
625
|
+
description: Datapoint successfully updated
|
|
626
|
+
'400':
|
|
627
|
+
description: Error updating datapoint
|
|
628
|
+
delete:
|
|
629
|
+
summary: Delete a specific datapoint
|
|
630
|
+
operationId: deleteDatapoint
|
|
631
|
+
tags:
|
|
632
|
+
- Datapoints
|
|
633
|
+
parameters:
|
|
634
|
+
- name: id
|
|
635
|
+
in: path
|
|
636
|
+
required: true
|
|
637
|
+
schema:
|
|
638
|
+
type: string
|
|
639
|
+
description: Datapoint ID like `65c13dbbd65fb876b7886cdb`
|
|
640
|
+
responses:
|
|
641
|
+
'200':
|
|
642
|
+
content:
|
|
643
|
+
application/json:
|
|
644
|
+
schema:
|
|
645
|
+
type: object
|
|
646
|
+
properties:
|
|
647
|
+
deleted:
|
|
648
|
+
type: boolean
|
|
649
|
+
example:
|
|
650
|
+
deleted: true
|
|
651
|
+
description: Datapoint successfully deleted
|
|
652
|
+
/datasets:
|
|
653
|
+
get:
|
|
654
|
+
tags:
|
|
655
|
+
- Datasets
|
|
656
|
+
summary: Get datasets
|
|
657
|
+
operationId: getDatasets
|
|
658
|
+
parameters:
|
|
659
|
+
- in: query
|
|
660
|
+
name: project
|
|
661
|
+
required: true
|
|
662
|
+
schema:
|
|
663
|
+
type: string
|
|
664
|
+
description: Project Name associated with the datasets like `New Project`
|
|
665
|
+
- in: query
|
|
666
|
+
name: type
|
|
667
|
+
schema:
|
|
668
|
+
type: string
|
|
669
|
+
enum:
|
|
670
|
+
- evaluation
|
|
671
|
+
- fine-tuning
|
|
672
|
+
description: Type of the dataset - "evaluation" or "fine-tuning"
|
|
673
|
+
- in: query
|
|
674
|
+
name: dataset_id
|
|
675
|
+
schema:
|
|
676
|
+
type: string
|
|
677
|
+
description: Unique dataset ID for filtering specific dataset like `663876ec4611c47f4970f0c3`
|
|
678
|
+
responses:
|
|
679
|
+
'200':
|
|
680
|
+
description: Successful response
|
|
681
|
+
content:
|
|
682
|
+
application/json:
|
|
683
|
+
schema:
|
|
684
|
+
type: object
|
|
685
|
+
properties:
|
|
686
|
+
testcases:
|
|
687
|
+
type: array
|
|
688
|
+
items:
|
|
689
|
+
$ref: '#/components/schemas/Dataset'
|
|
690
|
+
post:
|
|
691
|
+
tags:
|
|
692
|
+
- Datasets
|
|
693
|
+
operationId: createDataset
|
|
694
|
+
summary: Create a dataset
|
|
695
|
+
requestBody:
|
|
696
|
+
required: true
|
|
697
|
+
content:
|
|
698
|
+
application/json:
|
|
699
|
+
schema:
|
|
700
|
+
$ref: '#/components/schemas/CreateDatasetRequest'
|
|
701
|
+
responses:
|
|
702
|
+
'200':
|
|
703
|
+
description: Successful creation
|
|
704
|
+
content:
|
|
705
|
+
application/json:
|
|
706
|
+
schema:
|
|
707
|
+
type: object
|
|
708
|
+
properties:
|
|
709
|
+
inserted:
|
|
710
|
+
type: boolean
|
|
711
|
+
result:
|
|
712
|
+
type: object
|
|
713
|
+
properties:
|
|
714
|
+
insertedId:
|
|
715
|
+
type: string
|
|
716
|
+
description: UUID for the created dataset
|
|
717
|
+
put:
|
|
718
|
+
tags:
|
|
719
|
+
- Datasets
|
|
720
|
+
operationId: updateDataset
|
|
721
|
+
summary: Update a dataset
|
|
722
|
+
requestBody:
|
|
723
|
+
required: true
|
|
724
|
+
content:
|
|
725
|
+
application/json:
|
|
726
|
+
schema:
|
|
727
|
+
$ref: '#/components/schemas/DatasetUpdate'
|
|
728
|
+
responses:
|
|
729
|
+
'200':
|
|
730
|
+
description: Successful update
|
|
731
|
+
delete:
|
|
732
|
+
tags:
|
|
733
|
+
- Datasets
|
|
734
|
+
operationId: deleteDataset
|
|
735
|
+
summary: Delete a dataset
|
|
736
|
+
parameters:
|
|
737
|
+
- in: query
|
|
738
|
+
name: dataset_id
|
|
739
|
+
required: true
|
|
740
|
+
schema:
|
|
741
|
+
type: string
|
|
742
|
+
description: The unique identifier of the dataset to be deleted like `663876ec4611c47f4970f0c3`
|
|
743
|
+
responses:
|
|
744
|
+
'200':
|
|
745
|
+
description: Successful delete
|
|
746
|
+
/datasets/{dataset_id}/datapoints:
|
|
747
|
+
post:
|
|
748
|
+
tags:
|
|
749
|
+
- Datasets
|
|
750
|
+
summary: Add datapoints to a dataset
|
|
751
|
+
operationId: addDatapoints
|
|
752
|
+
parameters:
|
|
753
|
+
- in: path
|
|
754
|
+
name: dataset_id
|
|
755
|
+
required: true
|
|
756
|
+
schema:
|
|
757
|
+
type: string
|
|
758
|
+
description: The unique identifier of the dataset to add datapoints to like `663876ec4611c47f4970f0c3`
|
|
759
|
+
requestBody:
|
|
760
|
+
required: true
|
|
761
|
+
content:
|
|
762
|
+
application/json:
|
|
763
|
+
schema:
|
|
764
|
+
type: object
|
|
765
|
+
properties:
|
|
766
|
+
project:
|
|
767
|
+
type: string
|
|
768
|
+
description: Name of the project associated with this dataset like
|
|
769
|
+
`New Project`
|
|
770
|
+
data:
|
|
771
|
+
type: array
|
|
772
|
+
items:
|
|
773
|
+
type: object
|
|
774
|
+
additionalProperties: true
|
|
775
|
+
description: List of JSON objects to be added as datapoints
|
|
776
|
+
mapping:
|
|
777
|
+
description: Mapping of keys in the data object to be used as inputs,
|
|
778
|
+
ground truth, and history, everything else goes into metadata
|
|
779
|
+
type: object
|
|
780
|
+
properties:
|
|
781
|
+
inputs:
|
|
782
|
+
type: array
|
|
783
|
+
items:
|
|
784
|
+
type: string
|
|
785
|
+
description: List of keys in the data object to be used as inputs
|
|
786
|
+
ground_truth:
|
|
787
|
+
type: array
|
|
788
|
+
items:
|
|
789
|
+
type: string
|
|
790
|
+
description: List of keys in the data object to be used as ground
|
|
791
|
+
truth
|
|
792
|
+
history:
|
|
793
|
+
type: array
|
|
794
|
+
items:
|
|
795
|
+
type: string
|
|
796
|
+
description: List of keys in the data object to be used as chat
|
|
797
|
+
history, can be empty list if not needed
|
|
798
|
+
required:
|
|
799
|
+
- inputs
|
|
800
|
+
- ground_truth
|
|
801
|
+
- history
|
|
802
|
+
required:
|
|
803
|
+
- project
|
|
804
|
+
- data
|
|
805
|
+
- mapping
|
|
806
|
+
responses:
|
|
807
|
+
'200':
|
|
808
|
+
description: Successful addition
|
|
809
|
+
content:
|
|
810
|
+
application/json:
|
|
811
|
+
schema:
|
|
812
|
+
type: object
|
|
813
|
+
properties:
|
|
814
|
+
inserted:
|
|
815
|
+
type: boolean
|
|
816
|
+
datapoint_ids:
|
|
817
|
+
type: array
|
|
818
|
+
items:
|
|
819
|
+
type: string
|
|
820
|
+
description: List of unique datapoint ids added to the dataset
|
|
821
|
+
/projects:
|
|
822
|
+
get:
|
|
823
|
+
tags:
|
|
824
|
+
- Projects
|
|
825
|
+
summary: Get a list of projects
|
|
826
|
+
operationId: getProjects
|
|
827
|
+
parameters:
|
|
828
|
+
- in: query
|
|
829
|
+
name: name
|
|
830
|
+
required: false
|
|
831
|
+
schema:
|
|
832
|
+
type: string
|
|
833
|
+
responses:
|
|
834
|
+
'200':
|
|
835
|
+
description: A list of projects
|
|
836
|
+
content:
|
|
837
|
+
application/json:
|
|
838
|
+
schema:
|
|
839
|
+
type: array
|
|
840
|
+
items:
|
|
841
|
+
$ref: '#/components/schemas/Project'
|
|
842
|
+
post:
|
|
843
|
+
tags:
|
|
844
|
+
- Projects
|
|
845
|
+
summary: Create a new project
|
|
846
|
+
operationId: createProject
|
|
847
|
+
requestBody:
|
|
848
|
+
required: true
|
|
849
|
+
content:
|
|
850
|
+
application/json:
|
|
851
|
+
schema:
|
|
852
|
+
$ref: '#/components/schemas/CreateProjectRequest'
|
|
853
|
+
responses:
|
|
854
|
+
'200':
|
|
855
|
+
description: The created project
|
|
856
|
+
content:
|
|
857
|
+
application/json:
|
|
858
|
+
schema:
|
|
859
|
+
$ref: '#/components/schemas/Project'
|
|
860
|
+
put:
|
|
861
|
+
tags:
|
|
862
|
+
- Projects
|
|
863
|
+
summary: Update an existing project
|
|
864
|
+
operationId: updateProject
|
|
865
|
+
requestBody:
|
|
866
|
+
required: true
|
|
867
|
+
content:
|
|
868
|
+
application/json:
|
|
869
|
+
schema:
|
|
870
|
+
$ref: '#/components/schemas/UpdateProjectRequest'
|
|
871
|
+
responses:
|
|
872
|
+
'200':
|
|
873
|
+
description: Successfully updated the project
|
|
874
|
+
delete:
|
|
875
|
+
tags:
|
|
876
|
+
- Projects
|
|
877
|
+
summary: Delete a project
|
|
878
|
+
operationId: deleteProject
|
|
879
|
+
parameters:
|
|
880
|
+
- in: query
|
|
881
|
+
name: name
|
|
882
|
+
required: true
|
|
883
|
+
schema:
|
|
884
|
+
type: string
|
|
885
|
+
responses:
|
|
886
|
+
'200':
|
|
887
|
+
description: Project deleted
|
|
888
|
+
/runs:
|
|
889
|
+
post:
|
|
890
|
+
summary: Create a new evaluation run
|
|
891
|
+
operationId: createRun
|
|
892
|
+
tags:
|
|
893
|
+
- Experiments
|
|
894
|
+
requestBody:
|
|
895
|
+
required: true
|
|
896
|
+
content:
|
|
897
|
+
application/json:
|
|
898
|
+
schema:
|
|
899
|
+
$ref: '#/components/schemas/CreateRunRequest'
|
|
900
|
+
responses:
|
|
901
|
+
'200':
|
|
902
|
+
description: Successful response
|
|
903
|
+
content:
|
|
904
|
+
application/json:
|
|
905
|
+
schema:
|
|
906
|
+
$ref: '#/components/schemas/CreateRunResponse'
|
|
907
|
+
'400':
|
|
908
|
+
description: Invalid input
|
|
909
|
+
get:
|
|
910
|
+
summary: Get a list of evaluation runs
|
|
911
|
+
operationId: getRuns
|
|
912
|
+
tags:
|
|
913
|
+
- Experiments
|
|
914
|
+
parameters:
|
|
915
|
+
- in: query
|
|
916
|
+
name: project
|
|
917
|
+
schema:
|
|
918
|
+
type: string
|
|
919
|
+
responses:
|
|
920
|
+
'200':
|
|
921
|
+
description: Successful response
|
|
922
|
+
content:
|
|
923
|
+
application/json:
|
|
924
|
+
schema:
|
|
925
|
+
$ref: '#/components/schemas/GetRunsResponse'
|
|
926
|
+
'400':
|
|
927
|
+
description: Error fetching evaluations
|
|
928
|
+
/runs/{run_id}:
|
|
929
|
+
get:
|
|
930
|
+
summary: Get details of an evaluation run
|
|
931
|
+
operationId: getRun
|
|
932
|
+
tags:
|
|
933
|
+
- Experiments
|
|
934
|
+
parameters:
|
|
935
|
+
- in: path
|
|
936
|
+
name: run_id
|
|
937
|
+
required: true
|
|
938
|
+
schema:
|
|
939
|
+
type: string
|
|
940
|
+
responses:
|
|
941
|
+
'200':
|
|
942
|
+
description: Successful response
|
|
943
|
+
content:
|
|
944
|
+
application/json:
|
|
945
|
+
schema:
|
|
946
|
+
$ref: '#/components/schemas/GetRunResponse'
|
|
947
|
+
'400':
|
|
948
|
+
description: Error fetching evaluation
|
|
949
|
+
put:
|
|
950
|
+
summary: Update an evaluation run
|
|
951
|
+
operationId: updateRun
|
|
952
|
+
tags:
|
|
953
|
+
- Experiments
|
|
954
|
+
parameters:
|
|
955
|
+
- in: path
|
|
956
|
+
name: run_id
|
|
957
|
+
required: true
|
|
958
|
+
schema:
|
|
959
|
+
type: string
|
|
960
|
+
requestBody:
|
|
961
|
+
required: true
|
|
962
|
+
content:
|
|
963
|
+
application/json:
|
|
964
|
+
schema:
|
|
965
|
+
$ref: '#/components/schemas/UpdateRunRequest'
|
|
966
|
+
responses:
|
|
967
|
+
'200':
|
|
968
|
+
description: Successful response
|
|
969
|
+
content:
|
|
970
|
+
application/json:
|
|
971
|
+
schema:
|
|
972
|
+
$ref: '#/components/schemas/UpdateRunResponse'
|
|
973
|
+
'400':
|
|
974
|
+
description: Invalid input
|
|
975
|
+
delete:
|
|
976
|
+
summary: Delete an evaluation run
|
|
977
|
+
operationId: deleteRun
|
|
978
|
+
tags:
|
|
979
|
+
- Experiments
|
|
980
|
+
parameters:
|
|
981
|
+
- in: path
|
|
982
|
+
name: run_id
|
|
983
|
+
required: true
|
|
984
|
+
schema:
|
|
985
|
+
type: string
|
|
986
|
+
responses:
|
|
987
|
+
'200':
|
|
988
|
+
description: Successful response
|
|
989
|
+
content:
|
|
990
|
+
application/json:
|
|
991
|
+
schema:
|
|
992
|
+
$ref: '#/components/schemas/DeleteRunResponse'
|
|
993
|
+
'400':
|
|
994
|
+
description: Error deleting evaluation
|
|
995
|
+
/runs/{run_id}/result:
|
|
996
|
+
get:
|
|
997
|
+
summary: Retrieve experiment result
|
|
998
|
+
operationId: getExperimentResult
|
|
999
|
+
tags:
|
|
1000
|
+
- Experiments
|
|
1001
|
+
parameters:
|
|
1002
|
+
- name: run_id
|
|
1003
|
+
in: path
|
|
1004
|
+
required: true
|
|
1005
|
+
schema:
|
|
1006
|
+
type: string
|
|
1007
|
+
- name: project_id
|
|
1008
|
+
in: query
|
|
1009
|
+
required: true
|
|
1010
|
+
schema:
|
|
1011
|
+
type: string
|
|
1012
|
+
- name: aggregate_function
|
|
1013
|
+
in: query
|
|
1014
|
+
required: false
|
|
1015
|
+
schema:
|
|
1016
|
+
type: string
|
|
1017
|
+
enum: [average, min, max, median, p95, p99, p90, sum, count]
|
|
1018
|
+
responses:
|
|
1019
|
+
'200':
|
|
1020
|
+
description: Experiment result retrieved successfully
|
|
1021
|
+
content:
|
|
1022
|
+
application/json:
|
|
1023
|
+
schema:
|
|
1024
|
+
$ref: '#/components/schemas/ExperimentResultResponse'
|
|
1025
|
+
'400':
|
|
1026
|
+
description: Error processing experiment result
|
|
1027
|
+
/runs/{run_id_1}/compare-with/{run_id_2}:
|
|
1028
|
+
get:
|
|
1029
|
+
summary: Retrieve experiment comparison
|
|
1030
|
+
operationId: getExperimentComparison
|
|
1031
|
+
tags:
|
|
1032
|
+
- Experiments
|
|
1033
|
+
parameters:
|
|
1034
|
+
- name: project_id
|
|
1035
|
+
in: query
|
|
1036
|
+
required: true
|
|
1037
|
+
schema:
|
|
1038
|
+
type: string
|
|
1039
|
+
- name: run_id_1
|
|
1040
|
+
in: path
|
|
1041
|
+
required: true
|
|
1042
|
+
schema:
|
|
1043
|
+
type: string
|
|
1044
|
+
- name: run_id_2
|
|
1045
|
+
in: path
|
|
1046
|
+
required: true
|
|
1047
|
+
schema:
|
|
1048
|
+
type: string
|
|
1049
|
+
- name: aggregate_function
|
|
1050
|
+
in: query
|
|
1051
|
+
required: false
|
|
1052
|
+
schema:
|
|
1053
|
+
type: string
|
|
1054
|
+
enum: [average, min, max, median, p95, p99, p90, sum, count]
|
|
1055
|
+
responses:
|
|
1056
|
+
'200':
|
|
1057
|
+
description: Experiment comparison retrieved successfully
|
|
1058
|
+
content:
|
|
1059
|
+
application/json:
|
|
1060
|
+
schema:
|
|
1061
|
+
$ref: '#/components/schemas/ExperimentComparisonResponse'
|
|
1062
|
+
'400':
|
|
1063
|
+
description: Error processing experiment comparison
|
|
1064
|
+
/configurations:
|
|
1065
|
+
get:
|
|
1066
|
+
summary: Retrieve a list of configurations
|
|
1067
|
+
operationId: getConfigurations
|
|
1068
|
+
tags:
|
|
1069
|
+
- Configurations
|
|
1070
|
+
parameters:
|
|
1071
|
+
- name: project
|
|
1072
|
+
in: query
|
|
1073
|
+
required: true
|
|
1074
|
+
schema:
|
|
1075
|
+
type: string
|
|
1076
|
+
description: Project name for configuration like `Example Project`
|
|
1077
|
+
- name: env
|
|
1078
|
+
in: query
|
|
1079
|
+
required: false
|
|
1080
|
+
schema:
|
|
1081
|
+
type: string
|
|
1082
|
+
enum:
|
|
1083
|
+
- dev
|
|
1084
|
+
- staging
|
|
1085
|
+
- prod
|
|
1086
|
+
description: Environment - "dev", "staging" or "prod"
|
|
1087
|
+
- name: name
|
|
1088
|
+
in: query
|
|
1089
|
+
required: false
|
|
1090
|
+
schema:
|
|
1091
|
+
type: string
|
|
1092
|
+
description: The name of the configuration like `v0`
|
|
1093
|
+
responses:
|
|
1094
|
+
'200':
|
|
1095
|
+
description: An array of configurations
|
|
1096
|
+
content:
|
|
1097
|
+
application/json:
|
|
1098
|
+
schema:
|
|
1099
|
+
type: array
|
|
1100
|
+
items:
|
|
1101
|
+
$ref: '#/components/schemas/Configuration'
|
|
1102
|
+
post:
|
|
1103
|
+
summary: Create a new configuration
|
|
1104
|
+
operationId: createConfiguration
|
|
1105
|
+
tags:
|
|
1106
|
+
- Configurations
|
|
1107
|
+
requestBody:
|
|
1108
|
+
required: true
|
|
1109
|
+
content:
|
|
1110
|
+
application/json:
|
|
1111
|
+
schema:
|
|
1112
|
+
$ref: '#/components/schemas/PostConfigurationRequest'
|
|
1113
|
+
responses:
|
|
1114
|
+
'200':
|
|
1115
|
+
description: Configuration created successfully
|
|
1116
|
+
/configurations/{id}:
|
|
1117
|
+
put:
|
|
1118
|
+
summary: Update an existing configuration
|
|
1119
|
+
operationId: updateConfiguration
|
|
1120
|
+
tags:
|
|
1121
|
+
- Configurations
|
|
1122
|
+
parameters:
|
|
1123
|
+
- name: id
|
|
1124
|
+
in: path
|
|
1125
|
+
required: true
|
|
1126
|
+
schema:
|
|
1127
|
+
type: string
|
|
1128
|
+
description: Configuration ID like `6638187d505c6812e4043f24`
|
|
1129
|
+
requestBody:
|
|
1130
|
+
required: true
|
|
1131
|
+
content:
|
|
1132
|
+
application/json:
|
|
1133
|
+
schema:
|
|
1134
|
+
$ref: '#/components/schemas/PutConfigurationRequest'
|
|
1135
|
+
responses:
|
|
1136
|
+
'200':
|
|
1137
|
+
description: Configuration updated successfully
|
|
1138
|
+
delete:
|
|
1139
|
+
summary: Delete a configuration
|
|
1140
|
+
operationId: deleteConfiguration
|
|
1141
|
+
tags:
|
|
1142
|
+
- Configurations
|
|
1143
|
+
parameters:
|
|
1144
|
+
- name: id
|
|
1145
|
+
in: path
|
|
1146
|
+
required: true
|
|
1147
|
+
schema:
|
|
1148
|
+
type: string
|
|
1149
|
+
description: Configuration ID like `6638187d505c6812e4043f24`
|
|
1150
|
+
responses:
|
|
1151
|
+
'200':
|
|
1152
|
+
description: Configuration deleted successfully
|
|
1153
|
+
components:
|
|
1154
|
+
securitySchemes:
|
|
1155
|
+
BearerAuth:
|
|
1156
|
+
type: http
|
|
1157
|
+
scheme: bearer
|
|
1158
|
+
schemas:
|
|
1159
|
+
SessionStartRequest:
|
|
1160
|
+
type: object
|
|
1161
|
+
properties:
|
|
1162
|
+
project:
|
|
1163
|
+
type: string
|
|
1164
|
+
description: Project name associated with the session
|
|
1165
|
+
session_name:
|
|
1166
|
+
type: string
|
|
1167
|
+
description: Name of the session
|
|
1168
|
+
source:
|
|
1169
|
+
type: string
|
|
1170
|
+
description: Source of the session - production, staging, etc
|
|
1171
|
+
session_id:
|
|
1172
|
+
type: string
|
|
1173
|
+
description: Unique id of the session, if not set, it will be auto-generated
|
|
1174
|
+
children_ids:
|
|
1175
|
+
type: array
|
|
1176
|
+
items:
|
|
1177
|
+
type: string
|
|
1178
|
+
description: Id of events that are nested within the session
|
|
1179
|
+
config:
|
|
1180
|
+
type: object
|
|
1181
|
+
additionalProperties: true
|
|
1182
|
+
description: Associated configuration for the session
|
|
1183
|
+
inputs:
|
|
1184
|
+
type: object
|
|
1185
|
+
additionalProperties: true
|
|
1186
|
+
description: Input object passed to the session - user query, text blob,
|
|
1187
|
+
etc
|
|
1188
|
+
outputs:
|
|
1189
|
+
type: object
|
|
1190
|
+
additionalProperties: true
|
|
1191
|
+
description: Final output of the session - completion, chunks, etc
|
|
1192
|
+
error:
|
|
1193
|
+
type: string
|
|
1194
|
+
description: Any error description if session failed
|
|
1195
|
+
duration:
|
|
1196
|
+
type: number
|
|
1197
|
+
description: How long the session took in milliseconds
|
|
1198
|
+
user_properties:
|
|
1199
|
+
type: object
|
|
1200
|
+
additionalProperties: true
|
|
1201
|
+
description: Any user properties associated with the session
|
|
1202
|
+
metrics:
|
|
1203
|
+
type: object
|
|
1204
|
+
additionalProperties: true
|
|
1205
|
+
description: Any values computed over the output of the session
|
|
1206
|
+
feedback:
|
|
1207
|
+
type: object
|
|
1208
|
+
additionalProperties: true
|
|
1209
|
+
description: Any user feedback provided for the session output
|
|
1210
|
+
metadata:
|
|
1211
|
+
type: object
|
|
1212
|
+
additionalProperties: true
|
|
1213
|
+
description: Any system or application metadata associated with the session
|
|
1214
|
+
start_time:
|
|
1215
|
+
type: number
|
|
1216
|
+
description: UTC timestamp (in milliseconds) for the session start
|
|
1217
|
+
end_time:
|
|
1218
|
+
type: integer
|
|
1219
|
+
description: UTC timestamp (in milliseconds) for the session end
|
|
1220
|
+
required:
|
|
1221
|
+
- project
|
|
1222
|
+
- session_name
|
|
1223
|
+
- source
|
|
1224
|
+
example:
|
|
1225
|
+
project: Simple RAG Project
|
|
1226
|
+
source: playground
|
|
1227
|
+
event_type: session
|
|
1228
|
+
session_name: Playground Session
|
|
1229
|
+
session_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1230
|
+
event_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1231
|
+
parent_id: null
|
|
1232
|
+
children_ids:
|
|
1233
|
+
- 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
1234
|
+
inputs:
|
|
1235
|
+
context: Hello world
|
|
1236
|
+
question: What is in the context?
|
|
1237
|
+
chat_history:
|
|
1238
|
+
- role: system
|
|
1239
|
+
content: 'Answer the user''s question only using provided context.
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
Context: Hello world'
|
|
1243
|
+
- role: user
|
|
1244
|
+
content: What is in the context?
|
|
1245
|
+
outputs:
|
|
1246
|
+
role: assistant
|
|
1247
|
+
content: Hello world
|
|
1248
|
+
error: null
|
|
1249
|
+
start_time: 1712025501605
|
|
1250
|
+
end_time: 1712025499832
|
|
1251
|
+
duration: 824.8056
|
|
1252
|
+
metrics: {}
|
|
1253
|
+
feedback: {}
|
|
1254
|
+
metadata: {}
|
|
1255
|
+
user_properties:
|
|
1256
|
+
user: google-oauth2|111840237613341303366
|
|
1257
|
+
SessionPropertiesBatch:
|
|
1258
|
+
type: object
|
|
1259
|
+
properties:
|
|
1260
|
+
session_name:
|
|
1261
|
+
type: string
|
|
1262
|
+
description: Name of the session
|
|
1263
|
+
source:
|
|
1264
|
+
type: string
|
|
1265
|
+
description: Source of the session - production, staging, etc
|
|
1266
|
+
session_id:
|
|
1267
|
+
type: string
|
|
1268
|
+
description: Unique id of the session, if not set, it will be auto-generated
|
|
1269
|
+
config:
|
|
1270
|
+
type: object
|
|
1271
|
+
additionalProperties: true
|
|
1272
|
+
description: Associated configuration for the session
|
|
1273
|
+
inputs:
|
|
1274
|
+
type: object
|
|
1275
|
+
additionalProperties: true
|
|
1276
|
+
description: Input object passed to the session - user query, text blob,
|
|
1277
|
+
etc
|
|
1278
|
+
outputs:
|
|
1279
|
+
type: object
|
|
1280
|
+
additionalProperties: true
|
|
1281
|
+
description: Final output of the session - completion, chunks, etc
|
|
1282
|
+
error:
|
|
1283
|
+
type: string
|
|
1284
|
+
description: Any error description if session failed
|
|
1285
|
+
user_properties:
|
|
1286
|
+
type: object
|
|
1287
|
+
additionalProperties: true
|
|
1288
|
+
description: Any user properties associated with the session
|
|
1289
|
+
metrics:
|
|
1290
|
+
type: object
|
|
1291
|
+
additionalProperties: true
|
|
1292
|
+
description: Any values computed over the output of the session
|
|
1293
|
+
feedback:
|
|
1294
|
+
type: object
|
|
1295
|
+
additionalProperties: true
|
|
1296
|
+
description: Any user feedback provided for the session output
|
|
1297
|
+
metadata:
|
|
1298
|
+
type: object
|
|
1299
|
+
additionalProperties: true
|
|
1300
|
+
description: Any system or application metadata associated with the session
|
|
1301
|
+
example:
|
|
1302
|
+
source: playground
|
|
1303
|
+
session_name: Playground Session
|
|
1304
|
+
session_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1305
|
+
inputs:
|
|
1306
|
+
context: Hello world
|
|
1307
|
+
question: What is in the context?
|
|
1308
|
+
chat_history:
|
|
1309
|
+
- role: system
|
|
1310
|
+
content: 'Answer the user''s question only using provided context.
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
Context: Hello world'
|
|
1314
|
+
- role: user
|
|
1315
|
+
content: What is in the context?
|
|
1316
|
+
outputs:
|
|
1317
|
+
role: assistant
|
|
1318
|
+
content: Hello world
|
|
1319
|
+
error: null
|
|
1320
|
+
metrics: {}
|
|
1321
|
+
feedback: {}
|
|
1322
|
+
metadata: {}
|
|
1323
|
+
user_properties:
|
|
1324
|
+
user: google-oauth2|111840237613341303366
|
|
1325
|
+
Event:
|
|
1326
|
+
type: object
|
|
1327
|
+
properties:
|
|
1328
|
+
project_id:
|
|
1329
|
+
type: string
|
|
1330
|
+
description: Name of project associated with the event
|
|
1331
|
+
source:
|
|
1332
|
+
type: string
|
|
1333
|
+
description: Source of the event - production, staging, etc
|
|
1334
|
+
event_name:
|
|
1335
|
+
type: string
|
|
1336
|
+
description: Name of the event
|
|
1337
|
+
event_type:
|
|
1338
|
+
type: string
|
|
1339
|
+
enum:
|
|
1340
|
+
- session
|
|
1341
|
+
- model
|
|
1342
|
+
- tool
|
|
1343
|
+
- chain
|
|
1344
|
+
description: Specify whether the event is of "session", "model", "tool"
|
|
1345
|
+
or "chain" type
|
|
1346
|
+
event_id:
|
|
1347
|
+
type: string
|
|
1348
|
+
description: Unique id of the event, if not set, it will be auto-generated
|
|
1349
|
+
session_id:
|
|
1350
|
+
type: string
|
|
1351
|
+
description: Unique id of the session associated with the event, if not
|
|
1352
|
+
set, it will be auto-generated
|
|
1353
|
+
parent_id:
|
|
1354
|
+
type: string
|
|
1355
|
+
description: Id of the parent event if nested
|
|
1356
|
+
nullable: true
|
|
1357
|
+
children_ids:
|
|
1358
|
+
type: array
|
|
1359
|
+
items:
|
|
1360
|
+
type: string
|
|
1361
|
+
description: Id of events that are nested within the event
|
|
1362
|
+
config:
|
|
1363
|
+
type: object
|
|
1364
|
+
additionalProperties: true
|
|
1365
|
+
description: Associated configuration JSON for the event - model name, vector
|
|
1366
|
+
index name, etc
|
|
1367
|
+
inputs:
|
|
1368
|
+
type: object
|
|
1369
|
+
additionalProperties: true
|
|
1370
|
+
description: Input JSON given to the event - prompt, chunks, etc
|
|
1371
|
+
outputs:
|
|
1372
|
+
type: object
|
|
1373
|
+
additionalProperties: true
|
|
1374
|
+
description: Final output JSON of the event
|
|
1375
|
+
error:
|
|
1376
|
+
type: string
|
|
1377
|
+
description: Any error description if event failed
|
|
1378
|
+
nullable: true
|
|
1379
|
+
start_time:
|
|
1380
|
+
type: number
|
|
1381
|
+
description: UTC timestamp (in milliseconds) for the event start
|
|
1382
|
+
end_time:
|
|
1383
|
+
type: integer
|
|
1384
|
+
description: UTC timestamp (in milliseconds) for the event end
|
|
1385
|
+
duration:
|
|
1386
|
+
type: number
|
|
1387
|
+
description: How long the event took in milliseconds
|
|
1388
|
+
metadata:
|
|
1389
|
+
type: object
|
|
1390
|
+
additionalProperties: true
|
|
1391
|
+
description: Any system or application metadata associated with the event
|
|
1392
|
+
feedback:
|
|
1393
|
+
type: object
|
|
1394
|
+
additionalProperties: true
|
|
1395
|
+
description: Any user feedback provided for the event output
|
|
1396
|
+
metrics:
|
|
1397
|
+
type: object
|
|
1398
|
+
additionalProperties: true
|
|
1399
|
+
description: Any values computed over the output of the event
|
|
1400
|
+
user_properties:
|
|
1401
|
+
type: object
|
|
1402
|
+
additionalProperties: true
|
|
1403
|
+
description: Any user properties associated with the event
|
|
1404
|
+
example:
|
|
1405
|
+
project_id: New Project
|
|
1406
|
+
source: playground
|
|
1407
|
+
session_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1408
|
+
event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
1409
|
+
parent_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1410
|
+
event_type: model
|
|
1411
|
+
event_name: Model Completion
|
|
1412
|
+
config:
|
|
1413
|
+
model: gpt-3.5-turbo
|
|
1414
|
+
version: v0.1 - Fork
|
|
1415
|
+
provider: openai
|
|
1416
|
+
hyperparameters:
|
|
1417
|
+
temperature: 0
|
|
1418
|
+
top_p: 1
|
|
1419
|
+
max_tokens: 1000
|
|
1420
|
+
presence_penalty: 0
|
|
1421
|
+
frequency_penalty: 0
|
|
1422
|
+
stop: []
|
|
1423
|
+
n: 1
|
|
1424
|
+
template:
|
|
1425
|
+
- role: system
|
|
1426
|
+
content: 'Answer the user''s question only using provided context.
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
Context: {{ context }}'
|
|
1430
|
+
- role: user
|
|
1431
|
+
content: '{{question}}'
|
|
1432
|
+
type: chat
|
|
1433
|
+
children_ids: []
|
|
1434
|
+
inputs:
|
|
1435
|
+
context: Hello world
|
|
1436
|
+
question: What is in the context?
|
|
1437
|
+
chat_history:
|
|
1438
|
+
- role: system
|
|
1439
|
+
content: 'Answer the user''s question only using provided context.
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
Context: Hello world'
|
|
1443
|
+
- role: user
|
|
1444
|
+
content: What is in the context?
|
|
1445
|
+
outputs:
|
|
1446
|
+
role: assistant
|
|
1447
|
+
content: Hello world
|
|
1448
|
+
error: null
|
|
1449
|
+
start_time: '2024-04-01 22:38:19'
|
|
1450
|
+
end_time: '2024-04-01 22:38:19'
|
|
1451
|
+
duration: 824.8056
|
|
1452
|
+
metadata:
|
|
1453
|
+
cost: 8.0e-05
|
|
1454
|
+
completion_tokens: 23
|
|
1455
|
+
prompt_tokens: 35
|
|
1456
|
+
total_tokens: 58
|
|
1457
|
+
feedback: {}
|
|
1458
|
+
metrics:
|
|
1459
|
+
Answer Faithfulness: 5
|
|
1460
|
+
Answer Faithfulness_explanation: The AI assistant's answer is a concise
|
|
1461
|
+
and accurate description of Ramp's API. It provides a clear explanation
|
|
1462
|
+
of what the API does and how developers can use it to integrate Ramp's
|
|
1463
|
+
financial services into their own applications. The answer is faithful
|
|
1464
|
+
to the provided context.
|
|
1465
|
+
Number of words: 18
|
|
1466
|
+
user_properties:
|
|
1467
|
+
user: google-oauth2|111840237613341303366
|
|
1468
|
+
EventFilter:
|
|
1469
|
+
type: object
|
|
1470
|
+
properties:
|
|
1471
|
+
field:
|
|
1472
|
+
type: string
|
|
1473
|
+
description: The field name that you are filtering by like `metadata.cost`,
|
|
1474
|
+
`inputs.chat_history.0.content`
|
|
1475
|
+
value:
|
|
1476
|
+
type: string
|
|
1477
|
+
description: The value that you are filtering the field for
|
|
1478
|
+
operator:
|
|
1479
|
+
type: string
|
|
1480
|
+
enum:
|
|
1481
|
+
- is
|
|
1482
|
+
- is not
|
|
1483
|
+
- contains
|
|
1484
|
+
- not contains
|
|
1485
|
+
- greater than
|
|
1486
|
+
description: The type of filter you are performing - "is", "is not", "contains",
|
|
1487
|
+
"not contains", "greater than"
|
|
1488
|
+
type:
|
|
1489
|
+
type: string
|
|
1490
|
+
enum:
|
|
1491
|
+
- string
|
|
1492
|
+
- number
|
|
1493
|
+
- boolean
|
|
1494
|
+
- id
|
|
1495
|
+
description: The data type you are using - "string", "number", "boolean",
|
|
1496
|
+
"id" (for object ids)
|
|
1497
|
+
example:
|
|
1498
|
+
field: event_type
|
|
1499
|
+
operator: is
|
|
1500
|
+
value: model
|
|
1501
|
+
type: string
|
|
1502
|
+
CreateEventRequest:
|
|
1503
|
+
type: object
|
|
1504
|
+
properties:
|
|
1505
|
+
project:
|
|
1506
|
+
type: string
|
|
1507
|
+
description: Project associated with the event
|
|
1508
|
+
source:
|
|
1509
|
+
type: string
|
|
1510
|
+
description: Source of the event - production, staging, etc
|
|
1511
|
+
event_name:
|
|
1512
|
+
type: string
|
|
1513
|
+
description: Name of the event
|
|
1514
|
+
event_type:
|
|
1515
|
+
type: string
|
|
1516
|
+
enum:
|
|
1517
|
+
- model
|
|
1518
|
+
- tool
|
|
1519
|
+
- chain
|
|
1520
|
+
description: Specify whether the event is of "model", "tool" or "chain"
|
|
1521
|
+
type
|
|
1522
|
+
event_id:
|
|
1523
|
+
type: string
|
|
1524
|
+
description: Unique id of the event, if not set, it will be auto-generated
|
|
1525
|
+
session_id:
|
|
1526
|
+
type: string
|
|
1527
|
+
description: Unique id of the session associated with the event, if not
|
|
1528
|
+
set, it will be auto-generated
|
|
1529
|
+
parent_id:
|
|
1530
|
+
type: string
|
|
1531
|
+
description: Id of the parent event if nested
|
|
1532
|
+
children_ids:
|
|
1533
|
+
type: array
|
|
1534
|
+
items:
|
|
1535
|
+
type: string
|
|
1536
|
+
description: Id of events that are nested within the event
|
|
1537
|
+
config:
|
|
1538
|
+
type: object
|
|
1539
|
+
additionalProperties: true
|
|
1540
|
+
description: Associated configuration JSON for the event - model name, vector
|
|
1541
|
+
index name, etc
|
|
1542
|
+
inputs:
|
|
1543
|
+
type: object
|
|
1544
|
+
additionalProperties: true
|
|
1545
|
+
description: Input JSON given to the event - prompt, chunks, etc
|
|
1546
|
+
outputs:
|
|
1547
|
+
type: object
|
|
1548
|
+
additionalProperties: true
|
|
1549
|
+
description: Final output JSON of the event
|
|
1550
|
+
error:
|
|
1551
|
+
type: string
|
|
1552
|
+
description: Any error description if event failed
|
|
1553
|
+
start_time:
|
|
1554
|
+
type: number
|
|
1555
|
+
description: UTC timestamp (in milliseconds) for the event start
|
|
1556
|
+
end_time:
|
|
1557
|
+
type: integer
|
|
1558
|
+
description: UTC timestamp (in milliseconds) for the event end
|
|
1559
|
+
duration:
|
|
1560
|
+
type: number
|
|
1561
|
+
description: How long the event took in milliseconds
|
|
1562
|
+
metadata:
|
|
1563
|
+
type: object
|
|
1564
|
+
additionalProperties: true
|
|
1565
|
+
description: Any system or application metadata associated with the event
|
|
1566
|
+
feedback:
|
|
1567
|
+
type: object
|
|
1568
|
+
additionalProperties: true
|
|
1569
|
+
description: Any user feedback provided for the event output
|
|
1570
|
+
metrics:
|
|
1571
|
+
type: object
|
|
1572
|
+
additionalProperties: true
|
|
1573
|
+
description: Any values computed over the output of the event
|
|
1574
|
+
user_properties:
|
|
1575
|
+
type: object
|
|
1576
|
+
additionalProperties: true
|
|
1577
|
+
description: Any user properties associated with the event
|
|
1578
|
+
required:
|
|
1579
|
+
- project
|
|
1580
|
+
- event_type
|
|
1581
|
+
- event_name
|
|
1582
|
+
- source
|
|
1583
|
+
- config
|
|
1584
|
+
- inputs
|
|
1585
|
+
- duration
|
|
1586
|
+
example:
|
|
1587
|
+
project: Simple RAG
|
|
1588
|
+
event_type: model
|
|
1589
|
+
event_name: Model Completion
|
|
1590
|
+
source: playground
|
|
1591
|
+
session_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1592
|
+
event_id: 7f22137a-6911-4ed3-bc36-110f1dde6b66
|
|
1593
|
+
parent_id: caf77ace-3417-4da4-944d-f4a0688f3c23
|
|
1594
|
+
children_ids: []
|
|
1595
|
+
config:
|
|
1596
|
+
model: gpt-3.5-turbo
|
|
1597
|
+
version: v0.1
|
|
1598
|
+
provider: openai
|
|
1599
|
+
hyperparameters:
|
|
1600
|
+
temperature: 0
|
|
1601
|
+
top_p: 1
|
|
1602
|
+
max_tokens: 1000
|
|
1603
|
+
presence_penalty: 0
|
|
1604
|
+
frequency_penalty: 0
|
|
1605
|
+
stop: []
|
|
1606
|
+
n: 1
|
|
1607
|
+
template:
|
|
1608
|
+
- role: system
|
|
1609
|
+
content: 'Answer the user''s question only using provided context.
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
Context: {{ context }}'
|
|
1613
|
+
- role: user
|
|
1614
|
+
content: '{{question}}'
|
|
1615
|
+
type: chat
|
|
1616
|
+
inputs:
|
|
1617
|
+
context: Hello world
|
|
1618
|
+
question: What is in the context?
|
|
1619
|
+
chat_history:
|
|
1620
|
+
- role: system
|
|
1621
|
+
content: 'Answer the user''s question only using provided context.
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
Context: Hello world'
|
|
1625
|
+
- role: user
|
|
1626
|
+
content: What is in the context?
|
|
1627
|
+
outputs:
|
|
1628
|
+
role: assistant
|
|
1629
|
+
content: Hello world
|
|
1630
|
+
error: null
|
|
1631
|
+
start_time: 1714978764301
|
|
1632
|
+
end_time: 1714978765301
|
|
1633
|
+
duration: 999.8056
|
|
1634
|
+
metadata:
|
|
1635
|
+
cost: 8.0e-05
|
|
1636
|
+
completion_tokens: 23
|
|
1637
|
+
prompt_tokens: 35
|
|
1638
|
+
total_tokens: 58
|
|
1639
|
+
feedback: {}
|
|
1640
|
+
metrics:
|
|
1641
|
+
Answer Faithfulness: 5
|
|
1642
|
+
Answer Faithfulness_explanation: The AI assistant's answer is a concise
|
|
1643
|
+
and accurate description of Ramp's API. It provides a clear explanation
|
|
1644
|
+
of what the API does and how developers can use it to integrate Ramp's
|
|
1645
|
+
financial services into their own applications. The answer is faithful
|
|
1646
|
+
to the provided context.
|
|
1647
|
+
Number of words: 18
|
|
1648
|
+
user_properties:
|
|
1649
|
+
user: google-oauth2|111840237613341303366
|
|
1650
|
+
CreateModelEvent:
|
|
1651
|
+
type: object
|
|
1652
|
+
properties:
|
|
1653
|
+
project:
|
|
1654
|
+
type: string
|
|
1655
|
+
description: Project associated with the event
|
|
1656
|
+
model:
|
|
1657
|
+
type: string
|
|
1658
|
+
description: Model name
|
|
1659
|
+
provider:
|
|
1660
|
+
type: string
|
|
1661
|
+
description: Model provider
|
|
1662
|
+
messages:
|
|
1663
|
+
type: array
|
|
1664
|
+
items:
|
|
1665
|
+
type: object
|
|
1666
|
+
additionalProperties: true
|
|
1667
|
+
description: Messages passed to the model
|
|
1668
|
+
response:
|
|
1669
|
+
type: object
|
|
1670
|
+
additionalProperties: true
|
|
1671
|
+
description: Final output JSON of the event
|
|
1672
|
+
duration:
|
|
1673
|
+
type: number
|
|
1674
|
+
description: How long the event took in milliseconds
|
|
1675
|
+
usage:
|
|
1676
|
+
type: object
|
|
1677
|
+
additionalProperties: true
|
|
1678
|
+
description: Usage statistics of the model
|
|
1679
|
+
cost:
|
|
1680
|
+
type: number
|
|
1681
|
+
description: Cost of the model completion
|
|
1682
|
+
error:
|
|
1683
|
+
type: string
|
|
1684
|
+
description: Any error description if event failed
|
|
1685
|
+
source:
|
|
1686
|
+
type: string
|
|
1687
|
+
description: Source of the event - production, staging, etc
|
|
1688
|
+
event_name:
|
|
1689
|
+
type: string
|
|
1690
|
+
description: Name of the event
|
|
1691
|
+
hyperparameters:
|
|
1692
|
+
type: object
|
|
1693
|
+
additionalProperties: true
|
|
1694
|
+
description: Hyperparameters used for the model
|
|
1695
|
+
template:
|
|
1696
|
+
type: array
|
|
1697
|
+
items:
|
|
1698
|
+
type: object
|
|
1699
|
+
additionalProperties: true
|
|
1700
|
+
description: Template used for the model
|
|
1701
|
+
template_inputs:
|
|
1702
|
+
type: object
|
|
1703
|
+
additionalProperties: true
|
|
1704
|
+
description: Inputs for the template
|
|
1705
|
+
tools:
|
|
1706
|
+
type: array
|
|
1707
|
+
items:
|
|
1708
|
+
type: object
|
|
1709
|
+
additionalProperties: true
|
|
1710
|
+
description: Tools used for the model
|
|
1711
|
+
tool_choice:
|
|
1712
|
+
type: string
|
|
1713
|
+
description: Tool choice for the model
|
|
1714
|
+
response_format:
|
|
1715
|
+
type: object
|
|
1716
|
+
additionalProperties: true
|
|
1717
|
+
description: Response format for the model
|
|
1718
|
+
required:
|
|
1719
|
+
- project
|
|
1720
|
+
- model
|
|
1721
|
+
- provider
|
|
1722
|
+
- messages
|
|
1723
|
+
- response
|
|
1724
|
+
- duration
|
|
1725
|
+
- usage
|
|
1726
|
+
example:
|
|
1727
|
+
project: New Project
|
|
1728
|
+
model: gpt-4o
|
|
1729
|
+
provider: openai
|
|
1730
|
+
messages:
|
|
1731
|
+
- role: system
|
|
1732
|
+
content: Hello, world!
|
|
1733
|
+
response:
|
|
1734
|
+
role: assistant
|
|
1735
|
+
content: Hello, world!
|
|
1736
|
+
duration: 42
|
|
1737
|
+
usage:
|
|
1738
|
+
prompt_tokens: 10
|
|
1739
|
+
completion_tokens: 10
|
|
1740
|
+
total_tokens: 20
|
|
1741
|
+
cost: 8.0e-05
|
|
1742
|
+
error: null
|
|
1743
|
+
source: playground
|
|
1744
|
+
event_name: Model Completion
|
|
1745
|
+
hyperparameters:
|
|
1746
|
+
temperature: 0
|
|
1747
|
+
top_p: 1
|
|
1748
|
+
max_tokens: 1000
|
|
1749
|
+
presence_penalty: 0
|
|
1750
|
+
frequency_penalty: 0
|
|
1751
|
+
stop: []
|
|
1752
|
+
n: 1
|
|
1753
|
+
template:
|
|
1754
|
+
- role: system
|
|
1755
|
+
content: Hello, {{ name }}!
|
|
1756
|
+
template_inputs:
|
|
1757
|
+
name: world
|
|
1758
|
+
tools:
|
|
1759
|
+
type: function
|
|
1760
|
+
function:
|
|
1761
|
+
name: get_current_weather
|
|
1762
|
+
description: Get the current weather
|
|
1763
|
+
parameters:
|
|
1764
|
+
type: object
|
|
1765
|
+
properties:
|
|
1766
|
+
location:
|
|
1767
|
+
type: string
|
|
1768
|
+
description: The city and state, e.g. San Francisco, CA
|
|
1769
|
+
format:
|
|
1770
|
+
type: string
|
|
1771
|
+
enum:
|
|
1772
|
+
- celsius
|
|
1773
|
+
- fahrenheit
|
|
1774
|
+
description: The temperature unit to use. Infer this from the users
|
|
1775
|
+
location.
|
|
1776
|
+
required:
|
|
1777
|
+
- location
|
|
1778
|
+
- format
|
|
1779
|
+
tool_choice: none
|
|
1780
|
+
response_format:
|
|
1781
|
+
type: text
|
|
1782
|
+
Metric:
|
|
1783
|
+
type: object
|
|
1784
|
+
properties:
|
|
1785
|
+
name:
|
|
1786
|
+
type: string
|
|
1787
|
+
description: Name of the metric
|
|
1788
|
+
criteria:
|
|
1789
|
+
type: string
|
|
1790
|
+
description: Criteria for human or composite metrics
|
|
1791
|
+
code_snippet:
|
|
1792
|
+
type: string
|
|
1793
|
+
description: Associated code block for the metric
|
|
1794
|
+
prompt:
|
|
1795
|
+
type: string
|
|
1796
|
+
description: Evaluator prompt for the metric
|
|
1797
|
+
task:
|
|
1798
|
+
type: string
|
|
1799
|
+
description: Name of the project associated with metric
|
|
1800
|
+
type:
|
|
1801
|
+
type: string
|
|
1802
|
+
enum:
|
|
1803
|
+
- custom
|
|
1804
|
+
- model
|
|
1805
|
+
- human
|
|
1806
|
+
- composite
|
|
1807
|
+
description: Type of the metric - "custom", "model", "human" or "composite"
|
|
1808
|
+
description:
|
|
1809
|
+
type: string
|
|
1810
|
+
description: Short description of what the metric does
|
|
1811
|
+
enabled_in_prod:
|
|
1812
|
+
type: boolean
|
|
1813
|
+
description: Whether to compute on all production events automatically
|
|
1814
|
+
needs_ground_truth:
|
|
1815
|
+
type: boolean
|
|
1816
|
+
description: Whether a ground truth (on metadata) is required to compute
|
|
1817
|
+
it
|
|
1818
|
+
return_type:
|
|
1819
|
+
type: string
|
|
1820
|
+
enum:
|
|
1821
|
+
- boolean
|
|
1822
|
+
- float
|
|
1823
|
+
- string
|
|
1824
|
+
description: The data type of the metric value - "boolean", "float", "string"
|
|
1825
|
+
threshold:
|
|
1826
|
+
type: object
|
|
1827
|
+
properties:
|
|
1828
|
+
min:
|
|
1829
|
+
type: number
|
|
1830
|
+
max:
|
|
1831
|
+
type: number
|
|
1832
|
+
description: Threshold for numeric metrics to decide passing or failing
|
|
1833
|
+
in tests
|
|
1834
|
+
pass_when:
|
|
1835
|
+
type: boolean
|
|
1836
|
+
description: Threshold for boolean metrics to decide passing or failing
|
|
1837
|
+
in tests
|
|
1838
|
+
_id:
|
|
1839
|
+
type: string
|
|
1840
|
+
description: Unique idenitifier
|
|
1841
|
+
event_name:
|
|
1842
|
+
type: string
|
|
1843
|
+
description: Name of event that the metric is set to be computed on
|
|
1844
|
+
event_type:
|
|
1845
|
+
type: string
|
|
1846
|
+
description: Type of event that the metric is set to be computed on
|
|
1847
|
+
model_provider:
|
|
1848
|
+
type: string
|
|
1849
|
+
description: Provider of the model, formatted as a LiteLLM provider prefix
|
|
1850
|
+
model_name:
|
|
1851
|
+
type: string
|
|
1852
|
+
description: Name of the model, formatted as a LiteLLM model name
|
|
1853
|
+
child_metrics:
|
|
1854
|
+
type: array
|
|
1855
|
+
items:
|
|
1856
|
+
type: object
|
|
1857
|
+
additionalProperties: true
|
|
1858
|
+
description: Child metrics added under composite events
|
|
1859
|
+
required:
|
|
1860
|
+
- name
|
|
1861
|
+
- task
|
|
1862
|
+
- type
|
|
1863
|
+
- description
|
|
1864
|
+
- return_type
|
|
1865
|
+
MetricEdit:
|
|
1866
|
+
type: object
|
|
1867
|
+
properties:
|
|
1868
|
+
metric_id:
|
|
1869
|
+
type: string
|
|
1870
|
+
description: Unique identifier of the metric
|
|
1871
|
+
criteria:
|
|
1872
|
+
type: string
|
|
1873
|
+
description: Criteria for human or composite metrics
|
|
1874
|
+
name:
|
|
1875
|
+
type: string
|
|
1876
|
+
description: Updated name of the metric
|
|
1877
|
+
description:
|
|
1878
|
+
type: string
|
|
1879
|
+
description: Short description of what the metric does
|
|
1880
|
+
code_snippet:
|
|
1881
|
+
type: string
|
|
1882
|
+
description: Updated code block for the metric
|
|
1883
|
+
prompt:
|
|
1884
|
+
type: string
|
|
1885
|
+
description: Updated Evaluator prompt for the metric
|
|
1886
|
+
type:
|
|
1887
|
+
type: string
|
|
1888
|
+
enum:
|
|
1889
|
+
- custom
|
|
1890
|
+
- model
|
|
1891
|
+
- human
|
|
1892
|
+
- composite
|
|
1893
|
+
description: Type of the metric - "custom", "model", "human" or "composite"
|
|
1894
|
+
enabled_in_prod:
|
|
1895
|
+
type: boolean
|
|
1896
|
+
description: Whether to compute on all production events automatically
|
|
1897
|
+
needs_ground_truth:
|
|
1898
|
+
type: boolean
|
|
1899
|
+
description: Whether a ground truth (on metadata) is required to compute
|
|
1900
|
+
it
|
|
1901
|
+
return_type:
|
|
1902
|
+
type: string
|
|
1903
|
+
enum:
|
|
1904
|
+
- boolean
|
|
1905
|
+
- float
|
|
1906
|
+
- string
|
|
1907
|
+
description: The data type of the metric value - "boolean", "float", "string"
|
|
1908
|
+
threshold:
|
|
1909
|
+
type: object
|
|
1910
|
+
properties:
|
|
1911
|
+
min:
|
|
1912
|
+
type: number
|
|
1913
|
+
max:
|
|
1914
|
+
type: number
|
|
1915
|
+
description: Threshold for numeric metrics to decide passing or failing
|
|
1916
|
+
in tests
|
|
1917
|
+
pass_when:
|
|
1918
|
+
type: boolean
|
|
1919
|
+
description: Threshold for boolean metrics to decide passing or failing
|
|
1920
|
+
in tests
|
|
1921
|
+
event_name:
|
|
1922
|
+
type: string
|
|
1923
|
+
description: Name of event that the metric is set to be computed on
|
|
1924
|
+
event_type:
|
|
1925
|
+
type: string
|
|
1926
|
+
enum:
|
|
1927
|
+
- model
|
|
1928
|
+
- tool
|
|
1929
|
+
- chain
|
|
1930
|
+
- session
|
|
1931
|
+
description: Type of event that the metric is set to be computed on
|
|
1932
|
+
model_provider:
|
|
1933
|
+
type: string
|
|
1934
|
+
description: Provider of the model, formatted as a LiteLLM provider prefix
|
|
1935
|
+
model_name:
|
|
1936
|
+
type: string
|
|
1937
|
+
description: Name of the model, formatted as a LiteLLM model name
|
|
1938
|
+
child_metrics:
|
|
1939
|
+
type: array
|
|
1940
|
+
items:
|
|
1941
|
+
type: object
|
|
1942
|
+
additionalProperties: true
|
|
1943
|
+
description: Child metrics added under composite events
|
|
1944
|
+
required:
|
|
1945
|
+
- metric_id
|
|
1946
|
+
Tool:
|
|
1947
|
+
type: object
|
|
1948
|
+
properties:
|
|
1949
|
+
_id:
|
|
1950
|
+
type: string
|
|
1951
|
+
task:
|
|
1952
|
+
type: string
|
|
1953
|
+
description: Name of the project associated with this tool
|
|
1954
|
+
name:
|
|
1955
|
+
type: string
|
|
1956
|
+
description:
|
|
1957
|
+
type: string
|
|
1958
|
+
parameters:
|
|
1959
|
+
type: object
|
|
1960
|
+
additionalProperties: true
|
|
1961
|
+
description: These can be function call params or plugin call params
|
|
1962
|
+
tool_type:
|
|
1963
|
+
type: string
|
|
1964
|
+
enum:
|
|
1965
|
+
- function
|
|
1966
|
+
- tool
|
|
1967
|
+
required:
|
|
1968
|
+
- task
|
|
1969
|
+
- name
|
|
1970
|
+
- parameters
|
|
1971
|
+
- tool_type
|
|
1972
|
+
CreateToolRequest:
|
|
1973
|
+
type: object
|
|
1974
|
+
properties:
|
|
1975
|
+
task:
|
|
1976
|
+
type: string
|
|
1977
|
+
description: Name of the project associated with this tool
|
|
1978
|
+
name:
|
|
1979
|
+
type: string
|
|
1980
|
+
description:
|
|
1981
|
+
type: string
|
|
1982
|
+
parameters:
|
|
1983
|
+
type: object
|
|
1984
|
+
additionalProperties: true
|
|
1985
|
+
description: These can be function call params or plugin call params
|
|
1986
|
+
type:
|
|
1987
|
+
type: string
|
|
1988
|
+
enum:
|
|
1989
|
+
- function
|
|
1990
|
+
- tool
|
|
1991
|
+
required:
|
|
1992
|
+
- task
|
|
1993
|
+
- name
|
|
1994
|
+
- parameters
|
|
1995
|
+
- type
|
|
1996
|
+
UpdateToolRequest:
|
|
1997
|
+
type: object
|
|
1998
|
+
properties:
|
|
1999
|
+
id:
|
|
2000
|
+
type: string
|
|
2001
|
+
name:
|
|
2002
|
+
type: string
|
|
2003
|
+
description:
|
|
2004
|
+
type: string
|
|
2005
|
+
parameters:
|
|
2006
|
+
type: object
|
|
2007
|
+
additionalProperties: true
|
|
2008
|
+
required:
|
|
2009
|
+
- id
|
|
2010
|
+
- parameters
|
|
2011
|
+
- name
|
|
2012
|
+
Datapoint:
|
|
2013
|
+
type: object
|
|
2014
|
+
properties:
|
|
2015
|
+
_id:
|
|
2016
|
+
type: string
|
|
2017
|
+
description: UUID for the datapoint
|
|
2018
|
+
tenant:
|
|
2019
|
+
type: string
|
|
2020
|
+
project_id:
|
|
2021
|
+
type: string
|
|
2022
|
+
description: UUID for the project where the datapoint is stored
|
|
2023
|
+
created_at:
|
|
2024
|
+
type: string
|
|
2025
|
+
updated_at:
|
|
2026
|
+
type: string
|
|
2027
|
+
inputs:
|
|
2028
|
+
type: object
|
|
2029
|
+
description: Arbitrary JSON object containing the inputs for the datapoint
|
|
2030
|
+
additionalProperties: true
|
|
2031
|
+
history:
|
|
2032
|
+
type: array
|
|
2033
|
+
items:
|
|
2034
|
+
type: object
|
|
2035
|
+
additionalProperties: true
|
|
2036
|
+
description: Conversation history associated with the datapoint
|
|
2037
|
+
ground_truth:
|
|
2038
|
+
type: object
|
|
2039
|
+
additionalProperties: true
|
|
2040
|
+
linked_event:
|
|
2041
|
+
type: string
|
|
2042
|
+
description: Event id for the event from which the datapoint was created
|
|
2043
|
+
linked_evals:
|
|
2044
|
+
type: array
|
|
2045
|
+
items:
|
|
2046
|
+
type: string
|
|
2047
|
+
description: Ids of evaluations where the datapoint is included
|
|
2048
|
+
linked_datasets:
|
|
2049
|
+
type: array
|
|
2050
|
+
items:
|
|
2051
|
+
type: string
|
|
2052
|
+
description: Ids of all datasets that include the datapoint
|
|
2053
|
+
saved:
|
|
2054
|
+
type: boolean
|
|
2055
|
+
type:
|
|
2056
|
+
type: string
|
|
2057
|
+
description: session or event - specify the type of data
|
|
2058
|
+
metadata:
|
|
2059
|
+
type: object
|
|
2060
|
+
additionalProperties: true
|
|
2061
|
+
example:
|
|
2062
|
+
_id: 65c13dbbd65fb876b7886cdb
|
|
2063
|
+
tenant: org_XiCNIMTZzUKiY2As
|
|
2064
|
+
project_id: 653454f3138a956964341c07
|
|
2065
|
+
created_at: 2024-02-05 19:57:47.050000
|
|
2066
|
+
updated_at: 2024-02-05 19:57:47.050000
|
|
2067
|
+
inputs:
|
|
2068
|
+
query: what's the temperature in Iceland?
|
|
2069
|
+
history:
|
|
2070
|
+
- role: system
|
|
2071
|
+
content: You are a helpful web assistant that helps users answer questions
|
|
2072
|
+
about the world based on the information provided to you by Google's search
|
|
2073
|
+
API. Answer the questions as truthfully as you can. In case you are unsure
|
|
2074
|
+
about the correct answer, please respond with "I apologize but I'm not
|
|
2075
|
+
sure."
|
|
2076
|
+
- role: user
|
|
2077
|
+
content: "what's the temperature in Iceland?\\n\\n\\n--Google search API\
|
|
2078
|
+
\ results below:---\\n\\n\"snippet\":\"2 Week Extended Forecast in Reykjavik,\
|
|
2079
|
+
\ Iceland ; Feb 4, 29 / 20 \xB0F \xB7 Snow showers early. Broken clouds.\
|
|
2080
|
+
\ ; Feb 5, 27 / 16 \xB0F \xB7 Light snow. Decreasing cloudiness.\",\"\
|
|
2081
|
+
snippet_highlighted_words\":[\"Feb 4, 29 / 20 \xB0F\"]"
|
|
2082
|
+
ground_truth:
|
|
2083
|
+
role: assistant
|
|
2084
|
+
content: The temperature in Reykjavik, Iceland is currently around 5F or
|
|
2085
|
+
-15C. Please note that weather conditions can change rapidly, so it's
|
|
2086
|
+
best to check a reliable source for the most up-to-date information.
|
|
2087
|
+
linked_event: 6bba5182-d4b1-4b29-a64a-f0a8bd964f76
|
|
2088
|
+
linked_evals: []
|
|
2089
|
+
linked_datasets: []
|
|
2090
|
+
saved: false
|
|
2091
|
+
type: event
|
|
2092
|
+
metadata:
|
|
2093
|
+
question_type: weather
|
|
2094
|
+
completion_tokens: 47
|
|
2095
|
+
prompt_tokens: 696
|
|
2096
|
+
total_tokens: 743
|
|
2097
|
+
CreateDatapointRequest:
|
|
2098
|
+
type: object
|
|
2099
|
+
properties:
|
|
2100
|
+
project:
|
|
2101
|
+
type: string
|
|
2102
|
+
description: Name for the project to which the datapoint belongs
|
|
2103
|
+
inputs:
|
|
2104
|
+
type: object
|
|
2105
|
+
additionalProperties: true
|
|
2106
|
+
description: Arbitrary JSON object containing the inputs for the datapoint
|
|
2107
|
+
history:
|
|
2108
|
+
type: array
|
|
2109
|
+
description: Conversation history associated with the datapoint
|
|
2110
|
+
items:
|
|
2111
|
+
type: object
|
|
2112
|
+
additionalProperties: true
|
|
2113
|
+
ground_truth:
|
|
2114
|
+
type: object
|
|
2115
|
+
additionalProperties: true
|
|
2116
|
+
description: Expected output JSON object for the datapoint
|
|
2117
|
+
linked_event:
|
|
2118
|
+
type: string
|
|
2119
|
+
description: Event id for the event from which the datapoint was created
|
|
2120
|
+
linked_datasets:
|
|
2121
|
+
type: array
|
|
2122
|
+
description: Ids of all datasets that include the datapoint
|
|
2123
|
+
items:
|
|
2124
|
+
type: string
|
|
2125
|
+
metadata:
|
|
2126
|
+
type: object
|
|
2127
|
+
additionalProperties: true
|
|
2128
|
+
description: Any additional metadata for the datapoint
|
|
2129
|
+
required:
|
|
2130
|
+
- project
|
|
2131
|
+
- inputs
|
|
2132
|
+
example:
|
|
2133
|
+
project: New Project
|
|
2134
|
+
inputs:
|
|
2135
|
+
query: what's the temperature in Iceland?
|
|
2136
|
+
history:
|
|
2137
|
+
- role: system
|
|
2138
|
+
content: You are a helpful web assistant that helps users answer questions
|
|
2139
|
+
about the world based on the information provided to you by Google's search
|
|
2140
|
+
API. Answer the questions as truthfully as you can. In case you are unsure
|
|
2141
|
+
about the correct answer, please respond with "I apologize but I'm not
|
|
2142
|
+
sure."
|
|
2143
|
+
- role: user
|
|
2144
|
+
content: "what's the temperature in Iceland?\\n\\n\\n--Google search API\
|
|
2145
|
+
\ results below:---\\n\\n\"snippet\":\"2 Week Extended Forecast in Reykjavik,\
|
|
2146
|
+
\ Iceland ; Feb 4, 29 / 20 \xB0F \xB7 Snow showers early. Broken clouds.\
|
|
2147
|
+
\ ; Feb 5, 27 / 16 \xB0F \xB7 Light snow. Decreasing cloudiness.\",\"\
|
|
2148
|
+
snippet_highlighted_words\":[\"Feb 4, 29 / 20 \xB0F\"]"
|
|
2149
|
+
ground_truth:
|
|
2150
|
+
role: assistant
|
|
2151
|
+
content: The temperature in Reykjavik, Iceland is currently around 5F or
|
|
2152
|
+
-15C. Please note that weather conditions can change rapidly, so it's
|
|
2153
|
+
best to check a reliable source for the most up-to-date information.
|
|
2154
|
+
linked_event: 6bba5182-d4b1-4b29-a64a-f0a8bd964f76
|
|
2155
|
+
linked_datasets: []
|
|
2156
|
+
metadata:
|
|
2157
|
+
question_type: weather
|
|
2158
|
+
completion_tokens: 47
|
|
2159
|
+
prompt_tokens: 696
|
|
2160
|
+
total_tokens: 743
|
|
2161
|
+
UpdateDatapointRequest:
|
|
2162
|
+
type: object
|
|
2163
|
+
properties:
|
|
2164
|
+
inputs:
|
|
2165
|
+
type: object
|
|
2166
|
+
additionalProperties: true
|
|
2167
|
+
description: Arbitrary JSON object containing the inputs for the datapoint
|
|
2168
|
+
history:
|
|
2169
|
+
type: array
|
|
2170
|
+
description: Conversation history associated with the datapoint
|
|
2171
|
+
items:
|
|
2172
|
+
type: object
|
|
2173
|
+
additionalProperties: true
|
|
2174
|
+
ground_truth:
|
|
2175
|
+
type: object
|
|
2176
|
+
description: Expected output JSON object for the datapoint
|
|
2177
|
+
additionalProperties: true
|
|
2178
|
+
linked_evals:
|
|
2179
|
+
type: array
|
|
2180
|
+
description: Ids of evaluations where the datapoint is included
|
|
2181
|
+
items:
|
|
2182
|
+
type: string
|
|
2183
|
+
linked_datasets:
|
|
2184
|
+
type: array
|
|
2185
|
+
description: Ids of all datasets that include the datapoint
|
|
2186
|
+
items:
|
|
2187
|
+
type: string
|
|
2188
|
+
metadata:
|
|
2189
|
+
type: object
|
|
2190
|
+
additionalProperties: true
|
|
2191
|
+
description: Any additional metadata for the datapoint
|
|
2192
|
+
example:
|
|
2193
|
+
inputs:
|
|
2194
|
+
query: what's the temperature in Reykjavik?
|
|
2195
|
+
history:
|
|
2196
|
+
- role: system
|
|
2197
|
+
content: You are a helpful web assistant that helps users answer questions
|
|
2198
|
+
about the world based on the information provided to you by Google's search
|
|
2199
|
+
API. Answer the questions as truthfully as you can. In case you are unsure
|
|
2200
|
+
about the correct answer, please respond with "I apologize but I'm not
|
|
2201
|
+
sure."
|
|
2202
|
+
- role: user
|
|
2203
|
+
content: "what's the temperature in Reykjavik?\\n\\n\\n--Google search API\
|
|
2204
|
+
\ results below:---\\n\\n\"snippet\":\"2 Week Extended Forecast in Reykjavik,\
|
|
2205
|
+
\ Iceland ; Feb 4, 29 / 20 \xB0F \xB7 Snow showers early. Broken clouds.\
|
|
2206
|
+
\ ; Feb 5, 27 / 16 \xB0F \xB7 Light snow. Decreasing cloudiness.\",\"\
|
|
2207
|
+
snippet_highlighted_words\":[\"Feb 4, 29 / 20 \xB0F\"]"
|
|
2208
|
+
ground_truth:
|
|
2209
|
+
role: assistant
|
|
2210
|
+
content: The temperature in Reykjavik, Iceland is currently around 5F or
|
|
2211
|
+
-15C. Please note that weather conditions can change rapidly, so it's
|
|
2212
|
+
best to check a reliable source for the most up-to-date information.
|
|
2213
|
+
linked_event: 6bba5182-d4b1-4b29-a64a-f0a8bd964f76
|
|
2214
|
+
linked_evals: []
|
|
2215
|
+
linked_datasets: []
|
|
2216
|
+
metadata:
|
|
2217
|
+
question_type: capital-weather
|
|
2218
|
+
random_field: 0
|
|
2219
|
+
CreateDatasetRequest:
|
|
2220
|
+
type: object
|
|
2221
|
+
properties:
|
|
2222
|
+
project:
|
|
2223
|
+
type: string
|
|
2224
|
+
description: Name of the project associated with this dataset like `New
|
|
2225
|
+
Project`
|
|
2226
|
+
name:
|
|
2227
|
+
type: string
|
|
2228
|
+
description: Name of the dataset
|
|
2229
|
+
description:
|
|
2230
|
+
type: string
|
|
2231
|
+
description: A description for the dataset
|
|
2232
|
+
type:
|
|
2233
|
+
type: string
|
|
2234
|
+
enum:
|
|
2235
|
+
- evaluation
|
|
2236
|
+
- fine-tuning
|
|
2237
|
+
description: What the dataset is to be used for - "evaluation" (default)
|
|
2238
|
+
or "fine-tuning"
|
|
2239
|
+
datapoints:
|
|
2240
|
+
type: array
|
|
2241
|
+
items:
|
|
2242
|
+
type: string
|
|
2243
|
+
description: List of unique datapoint ids to be included in this dataset
|
|
2244
|
+
linked_evals:
|
|
2245
|
+
type: array
|
|
2246
|
+
items:
|
|
2247
|
+
type: string
|
|
2248
|
+
description: List of unique evaluation run ids to be associated with this
|
|
2249
|
+
dataset
|
|
2250
|
+
saved:
|
|
2251
|
+
type: boolean
|
|
2252
|
+
pipeline_type:
|
|
2253
|
+
type: string
|
|
2254
|
+
enum:
|
|
2255
|
+
- event
|
|
2256
|
+
- session
|
|
2257
|
+
description: The type of data included in the dataset - "event" (default)
|
|
2258
|
+
or "session"
|
|
2259
|
+
metadata:
|
|
2260
|
+
type: object
|
|
2261
|
+
additionalProperties: true
|
|
2262
|
+
description: Any helpful metadata to track for the dataset
|
|
2263
|
+
required:
|
|
2264
|
+
- project
|
|
2265
|
+
- name
|
|
2266
|
+
example:
|
|
2267
|
+
project: New Project
|
|
2268
|
+
name: test-dataset
|
|
2269
|
+
description: A test dataset
|
|
2270
|
+
type: evaluation
|
|
2271
|
+
datapoints:
|
|
2272
|
+
- 66369748b5773befbdc661e2
|
|
2273
|
+
linked_evals: []
|
|
2274
|
+
saved: false
|
|
2275
|
+
pipeline_type: event
|
|
2276
|
+
metadata:
|
|
2277
|
+
source: dev
|
|
2278
|
+
Dataset:
|
|
2279
|
+
type: object
|
|
2280
|
+
properties:
|
|
2281
|
+
project:
|
|
2282
|
+
type: string
|
|
2283
|
+
description: UUID of the project associated with this dataset
|
|
2284
|
+
name:
|
|
2285
|
+
type: string
|
|
2286
|
+
description: Name of the dataset
|
|
2287
|
+
description:
|
|
2288
|
+
type: string
|
|
2289
|
+
description: A description for the dataset
|
|
2290
|
+
type:
|
|
2291
|
+
type: string
|
|
2292
|
+
enum:
|
|
2293
|
+
- evaluation
|
|
2294
|
+
- fine-tuning
|
|
2295
|
+
description: What the dataset is to be used for - "evaluation" or "fine-tuning"
|
|
2296
|
+
datapoints:
|
|
2297
|
+
type: array
|
|
2298
|
+
description: List of unique datapoint ids to be included in this dataset
|
|
2299
|
+
items:
|
|
2300
|
+
type: string
|
|
2301
|
+
num_points:
|
|
2302
|
+
type: integer
|
|
2303
|
+
description: Number of datapoints included in the dataset
|
|
2304
|
+
linked_evals:
|
|
2305
|
+
type: array
|
|
2306
|
+
items:
|
|
2307
|
+
type: string
|
|
2308
|
+
description: List of unique evaluation run ids associated with this dataset
|
|
2309
|
+
saved:
|
|
2310
|
+
type: boolean
|
|
2311
|
+
description: Whether the dataset has been saved or detected
|
|
2312
|
+
pipeline_type:
|
|
2313
|
+
type: string
|
|
2314
|
+
enum:
|
|
2315
|
+
- event
|
|
2316
|
+
- session
|
|
2317
|
+
description: The type of data included in the dataset - "event" (default)
|
|
2318
|
+
or "session"
|
|
2319
|
+
created_at:
|
|
2320
|
+
type: string
|
|
2321
|
+
description: Timestamp of when the dataset was created
|
|
2322
|
+
updated_at:
|
|
2323
|
+
type: string
|
|
2324
|
+
description: Timestamp of when the dataset was last updated
|
|
2325
|
+
example:
|
|
2326
|
+
project: New Project
|
|
2327
|
+
name: test-dataset
|
|
2328
|
+
description: A test dataset
|
|
2329
|
+
type: evaluation
|
|
2330
|
+
datapoints:
|
|
2331
|
+
- 66369748b5773befbdc661e2
|
|
2332
|
+
num_points: 1
|
|
2333
|
+
linked_evals: []
|
|
2334
|
+
saved: false
|
|
2335
|
+
pipeline_type: event
|
|
2336
|
+
created_at: 2024-05-04 20:15:04.124000
|
|
2337
|
+
updated_at: 2024-05-04 20:15:04.124000
|
|
2338
|
+
DatasetUpdate:
|
|
2339
|
+
type: object
|
|
2340
|
+
properties:
|
|
2341
|
+
dataset_id:
|
|
2342
|
+
type: string
|
|
2343
|
+
description: The unique identifier of the dataset being updated
|
|
2344
|
+
name:
|
|
2345
|
+
type: string
|
|
2346
|
+
description: Updated name for the dataset
|
|
2347
|
+
description:
|
|
2348
|
+
type: string
|
|
2349
|
+
description: Updated description for the dataset
|
|
2350
|
+
datapoints:
|
|
2351
|
+
type: array
|
|
2352
|
+
items:
|
|
2353
|
+
type: string
|
|
2354
|
+
description: Updated list of datapoint ids for the dataset - note the full
|
|
2355
|
+
list is needed
|
|
2356
|
+
linked_evals:
|
|
2357
|
+
type: array
|
|
2358
|
+
items:
|
|
2359
|
+
type: string
|
|
2360
|
+
description: Updated list of unique evaluation run ids to be associated
|
|
2361
|
+
with this dataset
|
|
2362
|
+
metadata:
|
|
2363
|
+
type: object
|
|
2364
|
+
additionalProperties: true
|
|
2365
|
+
description: Updated metadata to track for the dataset
|
|
2366
|
+
required:
|
|
2367
|
+
- dataset_id
|
|
2368
|
+
example:
|
|
2369
|
+
dataset_id: 663876ec4611c47f4970f0c3
|
|
2370
|
+
name: new-dataset-name
|
|
2371
|
+
description: An updated dataset description
|
|
2372
|
+
datapoints:
|
|
2373
|
+
- 66369748b5773befbdc661e
|
|
2374
|
+
linked_evals:
|
|
2375
|
+
- 66369748b5773befbdasdk1
|
|
2376
|
+
metadata:
|
|
2377
|
+
updated: true
|
|
2378
|
+
source: prod
|
|
2379
|
+
CreateProjectRequest:
|
|
2380
|
+
type: object
|
|
2381
|
+
properties:
|
|
2382
|
+
name:
|
|
2383
|
+
type: string
|
|
2384
|
+
description:
|
|
2385
|
+
type: string
|
|
2386
|
+
required:
|
|
2387
|
+
- name
|
|
2388
|
+
UpdateProjectRequest:
|
|
2389
|
+
type: object
|
|
2390
|
+
properties:
|
|
2391
|
+
project_id:
|
|
2392
|
+
type: string
|
|
2393
|
+
name:
|
|
2394
|
+
type: string
|
|
2395
|
+
description:
|
|
2396
|
+
type: string
|
|
2397
|
+
required:
|
|
2398
|
+
- project_id
|
|
2399
|
+
Project:
|
|
2400
|
+
type: object
|
|
2401
|
+
properties:
|
|
2402
|
+
id:
|
|
2403
|
+
type: string
|
|
2404
|
+
name:
|
|
2405
|
+
type: string
|
|
2406
|
+
description:
|
|
2407
|
+
type: string
|
|
2408
|
+
required:
|
|
2409
|
+
- name
|
|
2410
|
+
- description
|
|
2411
|
+
- type
|
|
2412
|
+
CreateRunRequest:
|
|
2413
|
+
type: object
|
|
2414
|
+
required:
|
|
2415
|
+
- project
|
|
2416
|
+
- name
|
|
2417
|
+
- event_ids
|
|
2418
|
+
properties:
|
|
2419
|
+
project:
|
|
2420
|
+
type: string
|
|
2421
|
+
description: The UUID of the project this run is associated with
|
|
2422
|
+
name:
|
|
2423
|
+
type: string
|
|
2424
|
+
description: The name of the run to be displayed
|
|
2425
|
+
event_ids:
|
|
2426
|
+
type: array
|
|
2427
|
+
description: The UUIDs of the sessions/events this run is associated with
|
|
2428
|
+
items:
|
|
2429
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2430
|
+
dataset_id:
|
|
2431
|
+
type: string
|
|
2432
|
+
description: The UUID of the dataset this run is associated with
|
|
2433
|
+
datapoint_ids:
|
|
2434
|
+
type: array
|
|
2435
|
+
description: The UUIDs of the datapoints from the original dataset this
|
|
2436
|
+
run is associated with
|
|
2437
|
+
items:
|
|
2438
|
+
type: string
|
|
2439
|
+
configuration:
|
|
2440
|
+
type: object
|
|
2441
|
+
description: The configuration being used for this run
|
|
2442
|
+
additionalProperties: true
|
|
2443
|
+
metadata:
|
|
2444
|
+
type: object
|
|
2445
|
+
description: Additional metadata for the run
|
|
2446
|
+
additionalProperties: true
|
|
2447
|
+
status:
|
|
2448
|
+
type: string
|
|
2449
|
+
enum:
|
|
2450
|
+
- pending
|
|
2451
|
+
- completed
|
|
2452
|
+
description: The status of the run
|
|
2453
|
+
CreateRunResponse:
|
|
2454
|
+
type: object
|
|
2455
|
+
properties:
|
|
2456
|
+
evaluation:
|
|
2457
|
+
$ref: '#/components/schemas/EvaluationRun'
|
|
2458
|
+
description: The evaluation run created
|
|
2459
|
+
run_id:
|
|
2460
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2461
|
+
description: The UUID of the run created
|
|
2462
|
+
GetRunsResponse:
|
|
2463
|
+
type: object
|
|
2464
|
+
properties:
|
|
2465
|
+
evaluations:
|
|
2466
|
+
type: array
|
|
2467
|
+
items:
|
|
2468
|
+
$ref: '#/components/schemas/EvaluationRun'
|
|
2469
|
+
GetRunResponse:
|
|
2470
|
+
type: object
|
|
2471
|
+
properties:
|
|
2472
|
+
evaluation:
|
|
2473
|
+
$ref: '#/components/schemas/EvaluationRun'
|
|
2474
|
+
UpdateRunRequest:
|
|
2475
|
+
type: object
|
|
2476
|
+
properties:
|
|
2477
|
+
event_ids:
|
|
2478
|
+
type: array
|
|
2479
|
+
description: Additional sessions/events to associate with this run
|
|
2480
|
+
items:
|
|
2481
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2482
|
+
dataset_id:
|
|
2483
|
+
type: string
|
|
2484
|
+
description: The UUID of the dataset this run is associated with
|
|
2485
|
+
datapoint_ids:
|
|
2486
|
+
type: array
|
|
2487
|
+
description: Additional datapoints to associate with this run
|
|
2488
|
+
items:
|
|
2489
|
+
type: string
|
|
2490
|
+
configuration:
|
|
2491
|
+
type: object
|
|
2492
|
+
description: The configuration being used for this run
|
|
2493
|
+
additionalProperties: true
|
|
2494
|
+
metadata:
|
|
2495
|
+
type: object
|
|
2496
|
+
description: Additional metadata for the run
|
|
2497
|
+
additionalProperties: true
|
|
2498
|
+
name:
|
|
2499
|
+
type: string
|
|
2500
|
+
description: The name of the run to be displayed
|
|
2501
|
+
status:
|
|
2502
|
+
type: string
|
|
2503
|
+
enum:
|
|
2504
|
+
- pending
|
|
2505
|
+
- completed
|
|
2506
|
+
UpdateRunResponse:
|
|
2507
|
+
type: object
|
|
2508
|
+
properties:
|
|
2509
|
+
evaluation:
|
|
2510
|
+
type: object
|
|
2511
|
+
description: Database update success message
|
|
2512
|
+
additionalProperties: true
|
|
2513
|
+
warning:
|
|
2514
|
+
type: string
|
|
2515
|
+
description: A warning message if the logged events don't have an associated
|
|
2516
|
+
datapoint id on the event metadata
|
|
2517
|
+
nullable: true
|
|
2518
|
+
DeleteRunResponse:
|
|
2519
|
+
type: object
|
|
2520
|
+
properties:
|
|
2521
|
+
id:
|
|
2522
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2523
|
+
deleted:
|
|
2524
|
+
type: boolean
|
|
2525
|
+
EvaluationRun:
|
|
2526
|
+
type: object
|
|
2527
|
+
properties:
|
|
2528
|
+
run_id:
|
|
2529
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2530
|
+
description: The UUID of the run
|
|
2531
|
+
project:
|
|
2532
|
+
type: string
|
|
2533
|
+
description: The UUID of the project this run is associated with
|
|
2534
|
+
created_at:
|
|
2535
|
+
type: string
|
|
2536
|
+
format: date-time
|
|
2537
|
+
description: The date and time the run was created
|
|
2538
|
+
event_ids:
|
|
2539
|
+
type: array
|
|
2540
|
+
description: The UUIDs of the sessions/events this run is associated with
|
|
2541
|
+
items:
|
|
2542
|
+
$ref: '#/components/schemas/UUIDType'
|
|
2543
|
+
dataset_id:
|
|
2544
|
+
type: string
|
|
2545
|
+
description: The UUID of the dataset this run is associated with
|
|
2546
|
+
nullable: true
|
|
2547
|
+
datapoint_ids:
|
|
2548
|
+
type: array
|
|
2549
|
+
description: The UUIDs of the datapoints from the original dataset this
|
|
2550
|
+
run is associated with
|
|
2551
|
+
items:
|
|
2552
|
+
type: string
|
|
2553
|
+
results:
|
|
2554
|
+
type: object
|
|
2555
|
+
description: The results of the evaluation (including pass/fails and metric
|
|
2556
|
+
aggregations)
|
|
2557
|
+
configuration:
|
|
2558
|
+
type: object
|
|
2559
|
+
description: The configuration being used for this run
|
|
2560
|
+
additionalProperties: true
|
|
2561
|
+
metadata:
|
|
2562
|
+
type: object
|
|
2563
|
+
description: Additional metadata for the run
|
|
2564
|
+
additionalProperties: true
|
|
2565
|
+
status:
|
|
2566
|
+
type: string
|
|
2567
|
+
enum:
|
|
2568
|
+
- pending
|
|
2569
|
+
- completed
|
|
2570
|
+
name:
|
|
2571
|
+
type: string
|
|
2572
|
+
description: The name of the run to be displayed
|
|
2573
|
+
ExperimentResultResponse:
|
|
2574
|
+
type: object
|
|
2575
|
+
properties:
|
|
2576
|
+
status:
|
|
2577
|
+
type: string
|
|
2578
|
+
success:
|
|
2579
|
+
type: boolean
|
|
2580
|
+
passed:
|
|
2581
|
+
type: array
|
|
2582
|
+
items:
|
|
2583
|
+
type: string
|
|
2584
|
+
failed:
|
|
2585
|
+
type: array
|
|
2586
|
+
items:
|
|
2587
|
+
type: string
|
|
2588
|
+
metrics:
|
|
2589
|
+
type: object
|
|
2590
|
+
properties:
|
|
2591
|
+
aggregation_function:
|
|
2592
|
+
type: string
|
|
2593
|
+
details:
|
|
2594
|
+
type: array
|
|
2595
|
+
items:
|
|
2596
|
+
type: object
|
|
2597
|
+
properties:
|
|
2598
|
+
metric_name:
|
|
2599
|
+
type: string
|
|
2600
|
+
metric_type:
|
|
2601
|
+
type: string
|
|
2602
|
+
event_name:
|
|
2603
|
+
type: string
|
|
2604
|
+
event_type:
|
|
2605
|
+
type: string
|
|
2606
|
+
aggregate:
|
|
2607
|
+
type: number
|
|
2608
|
+
values:
|
|
2609
|
+
type: array
|
|
2610
|
+
items:
|
|
2611
|
+
oneOf:
|
|
2612
|
+
- type: number
|
|
2613
|
+
- type: boolean
|
|
2614
|
+
datapoints:
|
|
2615
|
+
type: object
|
|
2616
|
+
properties:
|
|
2617
|
+
passed:
|
|
2618
|
+
type: array
|
|
2619
|
+
items:
|
|
2620
|
+
type: string
|
|
2621
|
+
failed:
|
|
2622
|
+
type: array
|
|
2623
|
+
items:
|
|
2624
|
+
type: string
|
|
2625
|
+
datapoints:
|
|
2626
|
+
type: array
|
|
2627
|
+
items:
|
|
2628
|
+
type: object
|
|
2629
|
+
properties:
|
|
2630
|
+
datapoint_id:
|
|
2631
|
+
type: string
|
|
2632
|
+
session_id:
|
|
2633
|
+
type: string
|
|
2634
|
+
passed:
|
|
2635
|
+
type: boolean
|
|
2636
|
+
metrics:
|
|
2637
|
+
type: array
|
|
2638
|
+
items:
|
|
2639
|
+
type: object
|
|
2640
|
+
properties:
|
|
2641
|
+
name:
|
|
2642
|
+
type: string
|
|
2643
|
+
event_name:
|
|
2644
|
+
type: string
|
|
2645
|
+
event_type:
|
|
2646
|
+
type: string
|
|
2647
|
+
value:
|
|
2648
|
+
oneOf:
|
|
2649
|
+
- type: number
|
|
2650
|
+
- type: boolean
|
|
2651
|
+
passed:
|
|
2652
|
+
type: boolean
|
|
2653
|
+
ExperimentComparisonResponse:
|
|
2654
|
+
type: object
|
|
2655
|
+
properties:
|
|
2656
|
+
metrics:
|
|
2657
|
+
type: array
|
|
2658
|
+
items:
|
|
2659
|
+
type: object
|
|
2660
|
+
properties:
|
|
2661
|
+
metric_name:
|
|
2662
|
+
type: string
|
|
2663
|
+
event_name:
|
|
2664
|
+
type: string
|
|
2665
|
+
metric_type:
|
|
2666
|
+
type: string
|
|
2667
|
+
event_type:
|
|
2668
|
+
type: string
|
|
2669
|
+
old_aggregate:
|
|
2670
|
+
type: number
|
|
2671
|
+
new_aggregate:
|
|
2672
|
+
type: number
|
|
2673
|
+
found_count:
|
|
2674
|
+
type: integer
|
|
2675
|
+
improved_count:
|
|
2676
|
+
type: integer
|
|
2677
|
+
degraded_count:
|
|
2678
|
+
type: integer
|
|
2679
|
+
same_count:
|
|
2680
|
+
type: integer
|
|
2681
|
+
improved:
|
|
2682
|
+
type: array
|
|
2683
|
+
items:
|
|
2684
|
+
type: string
|
|
2685
|
+
degraded:
|
|
2686
|
+
type: array
|
|
2687
|
+
items:
|
|
2688
|
+
type: string
|
|
2689
|
+
same:
|
|
2690
|
+
type: array
|
|
2691
|
+
items:
|
|
2692
|
+
type: string
|
|
2693
|
+
old_values:
|
|
2694
|
+
type: array
|
|
2695
|
+
items:
|
|
2696
|
+
oneOf:
|
|
2697
|
+
- type: number
|
|
2698
|
+
- type: boolean
|
|
2699
|
+
new_values:
|
|
2700
|
+
type: array
|
|
2701
|
+
items:
|
|
2702
|
+
oneOf:
|
|
2703
|
+
- type: number
|
|
2704
|
+
- type: boolean
|
|
2705
|
+
commonDatapoints:
|
|
2706
|
+
type: array
|
|
2707
|
+
items:
|
|
2708
|
+
type: string
|
|
2709
|
+
event_details:
|
|
2710
|
+
type: array
|
|
2711
|
+
items:
|
|
2712
|
+
type: object
|
|
2713
|
+
properties:
|
|
2714
|
+
event_name:
|
|
2715
|
+
type: string
|
|
2716
|
+
event_type:
|
|
2717
|
+
type: string
|
|
2718
|
+
presence:
|
|
2719
|
+
type: string
|
|
2720
|
+
old_run:
|
|
2721
|
+
type: object
|
|
2722
|
+
properties:
|
|
2723
|
+
_id:
|
|
2724
|
+
type: string
|
|
2725
|
+
run_id:
|
|
2726
|
+
type: string
|
|
2727
|
+
project:
|
|
2728
|
+
type: string
|
|
2729
|
+
tenant:
|
|
2730
|
+
type: string
|
|
2731
|
+
created_at:
|
|
2732
|
+
type: string
|
|
2733
|
+
format: date-time
|
|
2734
|
+
event_ids:
|
|
2735
|
+
type: array
|
|
2736
|
+
items:
|
|
2737
|
+
type: string
|
|
2738
|
+
session_ids:
|
|
2739
|
+
type: array
|
|
2740
|
+
items:
|
|
2741
|
+
type: string
|
|
2742
|
+
dataset_id:
|
|
2743
|
+
type: string
|
|
2744
|
+
datapoint_ids:
|
|
2745
|
+
type: array
|
|
2746
|
+
items:
|
|
2747
|
+
type: string
|
|
2748
|
+
evaluators:
|
|
2749
|
+
type: array
|
|
2750
|
+
items:
|
|
2751
|
+
type: object
|
|
2752
|
+
results:
|
|
2753
|
+
type: object
|
|
2754
|
+
configuration:
|
|
2755
|
+
type: object
|
|
2756
|
+
metadata:
|
|
2757
|
+
type: object
|
|
2758
|
+
passing_ranges:
|
|
2759
|
+
type: object
|
|
2760
|
+
status:
|
|
2761
|
+
type: string
|
|
2762
|
+
name:
|
|
2763
|
+
type: string
|
|
2764
|
+
new_run:
|
|
2765
|
+
type: object
|
|
2766
|
+
properties:
|
|
2767
|
+
_id:
|
|
2768
|
+
type: string
|
|
2769
|
+
run_id:
|
|
2770
|
+
type: string
|
|
2771
|
+
project:
|
|
2772
|
+
type: string
|
|
2773
|
+
tenant:
|
|
2774
|
+
type: string
|
|
2775
|
+
created_at:
|
|
2776
|
+
type: string
|
|
2777
|
+
format: date-time
|
|
2778
|
+
event_ids:
|
|
2779
|
+
type: array
|
|
2780
|
+
items:
|
|
2781
|
+
type: string
|
|
2782
|
+
session_ids:
|
|
2783
|
+
type: array
|
|
2784
|
+
items:
|
|
2785
|
+
type: string
|
|
2786
|
+
dataset_id:
|
|
2787
|
+
type: string
|
|
2788
|
+
datapoint_ids:
|
|
2789
|
+
type: array
|
|
2790
|
+
items:
|
|
2791
|
+
type: string
|
|
2792
|
+
evaluators:
|
|
2793
|
+
type: array
|
|
2794
|
+
items:
|
|
2795
|
+
type: object
|
|
2796
|
+
results:
|
|
2797
|
+
type: object
|
|
2798
|
+
configuration:
|
|
2799
|
+
type: object
|
|
2800
|
+
metadata:
|
|
2801
|
+
type: object
|
|
2802
|
+
passing_ranges:
|
|
2803
|
+
type: object
|
|
2804
|
+
status:
|
|
2805
|
+
type: string
|
|
2806
|
+
name:
|
|
2807
|
+
type: string
|
|
2808
|
+
UUIDType:
|
|
2809
|
+
type: string
|
|
2810
|
+
format: uuid
|
|
2811
|
+
Configuration:
|
|
2812
|
+
type: object
|
|
2813
|
+
properties:
|
|
2814
|
+
_id:
|
|
2815
|
+
type: string
|
|
2816
|
+
description: ID of the configuration
|
|
2817
|
+
project:
|
|
2818
|
+
type: string
|
|
2819
|
+
description: ID of the project to which this configuration belongs
|
|
2820
|
+
name:
|
|
2821
|
+
type: string
|
|
2822
|
+
description: Name of the configuration
|
|
2823
|
+
env:
|
|
2824
|
+
type: array
|
|
2825
|
+
description: List of environments where the configuration is active
|
|
2826
|
+
items:
|
|
2827
|
+
type: string
|
|
2828
|
+
enum:
|
|
2829
|
+
- dev
|
|
2830
|
+
- staging
|
|
2831
|
+
- prod
|
|
2832
|
+
provider:
|
|
2833
|
+
type: string
|
|
2834
|
+
description: Name of the provider - "openai", "anthropic", etc.
|
|
2835
|
+
parameters:
|
|
2836
|
+
type: object
|
|
2837
|
+
additionalProperties: true
|
|
2838
|
+
properties:
|
|
2839
|
+
call_type:
|
|
2840
|
+
type: string
|
|
2841
|
+
enum:
|
|
2842
|
+
- chat
|
|
2843
|
+
- completion
|
|
2844
|
+
description: Type of API calling - "chat" or "completion"
|
|
2845
|
+
model:
|
|
2846
|
+
type: string
|
|
2847
|
+
description: Model unique name
|
|
2848
|
+
hyperparameters:
|
|
2849
|
+
type: object
|
|
2850
|
+
description: Model-specific hyperparameters
|
|
2851
|
+
additionalProperties: true
|
|
2852
|
+
responseFormat:
|
|
2853
|
+
type: object
|
|
2854
|
+
description: Response format for the model with the key "type" and value
|
|
2855
|
+
"text" or "json_object"
|
|
2856
|
+
selectedFunctions:
|
|
2857
|
+
type: array
|
|
2858
|
+
description: List of functions to be called by the model, refer to OpenAI
|
|
2859
|
+
schema for more details
|
|
2860
|
+
items:
|
|
2861
|
+
type: object
|
|
2862
|
+
properties:
|
|
2863
|
+
id:
|
|
2864
|
+
type: string
|
|
2865
|
+
description: UUID of the function
|
|
2866
|
+
name:
|
|
2867
|
+
type: string
|
|
2868
|
+
description: Name of the function
|
|
2869
|
+
description:
|
|
2870
|
+
type: string
|
|
2871
|
+
description: Description of the function
|
|
2872
|
+
parameters:
|
|
2873
|
+
type: object
|
|
2874
|
+
additionalProperties: true
|
|
2875
|
+
description: Parameters for the function
|
|
2876
|
+
functionCallParams:
|
|
2877
|
+
type: string
|
|
2878
|
+
enum:
|
|
2879
|
+
- none
|
|
2880
|
+
- auto
|
|
2881
|
+
- force
|
|
2882
|
+
description: Function calling mode - "none", "auto" or "force"
|
|
2883
|
+
forceFunction:
|
|
2884
|
+
type: object
|
|
2885
|
+
additionalProperties: true
|
|
2886
|
+
description: Force function-specific parameters
|
|
2887
|
+
required:
|
|
2888
|
+
- call_type
|
|
2889
|
+
- model
|
|
2890
|
+
type:
|
|
2891
|
+
type: string
|
|
2892
|
+
enum:
|
|
2893
|
+
- LLM
|
|
2894
|
+
- pipeline
|
|
2895
|
+
description: Type of the configuration - "LLM" or "pipeline" - "LLM" by
|
|
2896
|
+
default
|
|
2897
|
+
user_properties:
|
|
2898
|
+
type: object
|
|
2899
|
+
additionalProperties: true
|
|
2900
|
+
description: Details of user who created the configuration
|
|
2901
|
+
required:
|
|
2902
|
+
- project
|
|
2903
|
+
- name
|
|
2904
|
+
- provider
|
|
2905
|
+
- parameters
|
|
2906
|
+
example:
|
|
2907
|
+
_id: 6638187d505c6812e4044f24
|
|
2908
|
+
project: New Project
|
|
2909
|
+
type:
|
|
2910
|
+
type: string
|
|
2911
|
+
enum:
|
|
2912
|
+
- LLM
|
|
2913
|
+
- pipeline
|
|
2914
|
+
description: Type of the configuration - "LLM" or "pipeline" - "LLM" by
|
|
2915
|
+
default
|
|
2916
|
+
name: function-v0
|
|
2917
|
+
provider: openai
|
|
2918
|
+
parameters:
|
|
2919
|
+
call_type: chat
|
|
2920
|
+
model: gpt-4-turbo-preview
|
|
2921
|
+
hyperparameters:
|
|
2922
|
+
temperature: 0
|
|
2923
|
+
max_tokens: 1000
|
|
2924
|
+
top_p: 1
|
|
2925
|
+
top_k: -1
|
|
2926
|
+
frequency_penalty: 0
|
|
2927
|
+
presence_penalty: 0
|
|
2928
|
+
stop_sequences: []
|
|
2929
|
+
responseFormat:
|
|
2930
|
+
type: text
|
|
2931
|
+
selectedFunctions:
|
|
2932
|
+
- id: 64e3ba90e81f9b3a3808c27f
|
|
2933
|
+
name: get_google_information
|
|
2934
|
+
description: Get information from Google when you do not have that information
|
|
2935
|
+
in your context
|
|
2936
|
+
parameters:
|
|
2937
|
+
type: object
|
|
2938
|
+
properties:
|
|
2939
|
+
query:
|
|
2940
|
+
type: string
|
|
2941
|
+
description: The query asked by the user
|
|
2942
|
+
required:
|
|
2943
|
+
- query
|
|
2944
|
+
functionCallParams: auto
|
|
2945
|
+
forceFunction: {}
|
|
2946
|
+
template:
|
|
2947
|
+
- role: system
|
|
2948
|
+
content: You are a web search assistant.
|
|
2949
|
+
- role: user
|
|
2950
|
+
content: '{{ query }}'
|
|
2951
|
+
env:
|
|
2952
|
+
- staging
|
|
2953
|
+
tags: []
|
|
2954
|
+
user_properties:
|
|
2955
|
+
user_id: google-oauth2|108897808434934946583
|
|
2956
|
+
user_name: Dhruv Singh
|
|
2957
|
+
user_picture: https://lh3.googleusercontent.com/a/ACg8ocLyQilNtK9RIv4M0p-0FBSbxljBP0p5JabnStku1AQKtFSK=s96-c
|
|
2958
|
+
user_email: dhruv@honeyhive.ai
|
|
2959
|
+
PutConfigurationRequest:
|
|
2960
|
+
type: object
|
|
2961
|
+
properties:
|
|
2962
|
+
project:
|
|
2963
|
+
type: string
|
|
2964
|
+
description: Name of the project to which this configuration belongs
|
|
2965
|
+
name:
|
|
2966
|
+
type: string
|
|
2967
|
+
description: Name of the configuration
|
|
2968
|
+
provider:
|
|
2969
|
+
type: string
|
|
2970
|
+
description: Name of the provider - "openai", "anthropic", etc.
|
|
2971
|
+
parameters:
|
|
2972
|
+
type: object
|
|
2973
|
+
additionalProperties: true
|
|
2974
|
+
properties:
|
|
2975
|
+
call_type:
|
|
2976
|
+
type: string
|
|
2977
|
+
enum:
|
|
2978
|
+
- chat
|
|
2979
|
+
- completion
|
|
2980
|
+
description: Type of API calling - "chat" or "completion"
|
|
2981
|
+
model:
|
|
2982
|
+
type: string
|
|
2983
|
+
description: Model unique name
|
|
2984
|
+
hyperparameters:
|
|
2985
|
+
type: object
|
|
2986
|
+
description: Model-specific hyperparameters
|
|
2987
|
+
additionalProperties: true
|
|
2988
|
+
responseFormat:
|
|
2989
|
+
type: object
|
|
2990
|
+
description: Response format for the model with the key "type" and value
|
|
2991
|
+
"text" or "json_object"
|
|
2992
|
+
selectedFunctions:
|
|
2993
|
+
type: array
|
|
2994
|
+
description: List of functions to be called by the model, refer to OpenAI
|
|
2995
|
+
schema for more details
|
|
2996
|
+
items:
|
|
2997
|
+
type: object
|
|
2998
|
+
properties:
|
|
2999
|
+
id:
|
|
3000
|
+
type: string
|
|
3001
|
+
description: UUID of the function
|
|
3002
|
+
name:
|
|
3003
|
+
type: string
|
|
3004
|
+
description: Name of the function
|
|
3005
|
+
description:
|
|
3006
|
+
type: string
|
|
3007
|
+
description: Description of the function
|
|
3008
|
+
parameters:
|
|
3009
|
+
type: object
|
|
3010
|
+
additionalProperties: true
|
|
3011
|
+
description: Parameters for the function
|
|
3012
|
+
functionCallParams:
|
|
3013
|
+
type: string
|
|
3014
|
+
enum:
|
|
3015
|
+
- none
|
|
3016
|
+
- auto
|
|
3017
|
+
- force
|
|
3018
|
+
description: Function calling mode - "none", "auto" or "force"
|
|
3019
|
+
forceFunction:
|
|
3020
|
+
type: object
|
|
3021
|
+
additionalProperties: true
|
|
3022
|
+
description: Force function-specific parameters
|
|
3023
|
+
required:
|
|
3024
|
+
- call_type
|
|
3025
|
+
- model
|
|
3026
|
+
env:
|
|
3027
|
+
type: array
|
|
3028
|
+
description: List of environments where the configuration is active
|
|
3029
|
+
items:
|
|
3030
|
+
type: string
|
|
3031
|
+
enum:
|
|
3032
|
+
- dev
|
|
3033
|
+
- staging
|
|
3034
|
+
- prod
|
|
3035
|
+
type:
|
|
3036
|
+
type: string
|
|
3037
|
+
enum:
|
|
3038
|
+
- LLM
|
|
3039
|
+
- pipeline
|
|
3040
|
+
description: Type of the configuration - "LLM" or "pipeline" - "LLM" by
|
|
3041
|
+
default
|
|
3042
|
+
user_properties:
|
|
3043
|
+
type: object
|
|
3044
|
+
additionalProperties: true
|
|
3045
|
+
description: Details of user who created the configuration
|
|
3046
|
+
required:
|
|
3047
|
+
- project
|
|
3048
|
+
- name
|
|
3049
|
+
- provider
|
|
3050
|
+
- parameters
|
|
3051
|
+
example:
|
|
3052
|
+
project: New Project
|
|
3053
|
+
name: function-v0
|
|
3054
|
+
provider: openai
|
|
3055
|
+
parameters:
|
|
3056
|
+
call_type: chat
|
|
3057
|
+
model: gpt-4-turbo-preview
|
|
3058
|
+
hyperparameters:
|
|
3059
|
+
temperature: 0
|
|
3060
|
+
max_tokens: 1000
|
|
3061
|
+
top_p: 1
|
|
3062
|
+
top_k: -1
|
|
3063
|
+
frequency_penalty: 0
|
|
3064
|
+
presence_penalty: 0
|
|
3065
|
+
stop_sequences: []
|
|
3066
|
+
responseFormat:
|
|
3067
|
+
type: text
|
|
3068
|
+
selectedFunctions:
|
|
3069
|
+
- id: 64e3ba90e81f9b3a3808c27f
|
|
3070
|
+
name: get_google_information
|
|
3071
|
+
description: Get information from Google when you do not have that information
|
|
3072
|
+
in your context
|
|
3073
|
+
parameters:
|
|
3074
|
+
type: object
|
|
3075
|
+
properties:
|
|
3076
|
+
query:
|
|
3077
|
+
type: string
|
|
3078
|
+
description: The query asked by the user
|
|
3079
|
+
required:
|
|
3080
|
+
- query
|
|
3081
|
+
functionCallParams: auto
|
|
3082
|
+
forceFunction: {}
|
|
3083
|
+
template:
|
|
3084
|
+
- role: system
|
|
3085
|
+
content: You are a web search assistant.
|
|
3086
|
+
- role: user
|
|
3087
|
+
content: '{{ query }}'
|
|
3088
|
+
env:
|
|
3089
|
+
- staging
|
|
3090
|
+
type: LLM
|
|
3091
|
+
tags: []
|
|
3092
|
+
user_properties:
|
|
3093
|
+
user_id: google-oauth2|108897808434934946583
|
|
3094
|
+
user_name: Dhruv Singh
|
|
3095
|
+
user_picture: https://lh3.googleusercontent.com/a/ACg8ocLyQilNtK9RIv4M0p-0FBSbxljBP0p5JabnStku1AQKtFSK=s96-c
|
|
3096
|
+
user_email: dhruv@honeyhive.ai
|
|
3097
|
+
PostConfigurationRequest:
|
|
3098
|
+
type: object
|
|
3099
|
+
properties:
|
|
3100
|
+
project:
|
|
3101
|
+
type: string
|
|
3102
|
+
description: Name of the project to which this configuration belongs
|
|
3103
|
+
name:
|
|
3104
|
+
type: string
|
|
3105
|
+
description: Name of the configuration
|
|
3106
|
+
provider:
|
|
3107
|
+
type: string
|
|
3108
|
+
description: Name of the provider - "openai", "anthropic", etc.
|
|
3109
|
+
parameters:
|
|
3110
|
+
type: object
|
|
3111
|
+
additionalProperties: true
|
|
3112
|
+
properties:
|
|
3113
|
+
call_type:
|
|
3114
|
+
type: string
|
|
3115
|
+
enum:
|
|
3116
|
+
- chat
|
|
3117
|
+
- completion
|
|
3118
|
+
description: Type of API calling - "chat" or "completion"
|
|
3119
|
+
model:
|
|
3120
|
+
type: string
|
|
3121
|
+
description: Model unique name
|
|
3122
|
+
hyperparameters:
|
|
3123
|
+
type: object
|
|
3124
|
+
description: Model-specific hyperparameters
|
|
3125
|
+
additionalProperties: true
|
|
3126
|
+
responseFormat:
|
|
3127
|
+
type: object
|
|
3128
|
+
description: Response format for the model with the key "type" and value
|
|
3129
|
+
"text" or "json_object"
|
|
3130
|
+
selectedFunctions:
|
|
3131
|
+
type: array
|
|
3132
|
+
description: List of functions to be called by the model, refer to OpenAI
|
|
3133
|
+
schema for more details
|
|
3134
|
+
items:
|
|
3135
|
+
type: object
|
|
3136
|
+
properties:
|
|
3137
|
+
id:
|
|
3138
|
+
type: string
|
|
3139
|
+
description: UUID of the function
|
|
3140
|
+
name:
|
|
3141
|
+
type: string
|
|
3142
|
+
description: Name of the function
|
|
3143
|
+
description:
|
|
3144
|
+
type: string
|
|
3145
|
+
description: Description of the function
|
|
3146
|
+
parameters:
|
|
3147
|
+
type: object
|
|
3148
|
+
additionalProperties: true
|
|
3149
|
+
description: Parameters for the function
|
|
3150
|
+
functionCallParams:
|
|
3151
|
+
type: string
|
|
3152
|
+
enum:
|
|
3153
|
+
- none
|
|
3154
|
+
- auto
|
|
3155
|
+
- force
|
|
3156
|
+
description: Function calling mode - "none", "auto" or "force"
|
|
3157
|
+
forceFunction:
|
|
3158
|
+
type: object
|
|
3159
|
+
additionalProperties: true
|
|
3160
|
+
description: Force function-specific parameters
|
|
3161
|
+
required:
|
|
3162
|
+
- call_type
|
|
3163
|
+
- model
|
|
3164
|
+
env:
|
|
3165
|
+
type: array
|
|
3166
|
+
description: List of environments where the configuration is active
|
|
3167
|
+
items:
|
|
3168
|
+
type: string
|
|
3169
|
+
enum:
|
|
3170
|
+
- dev
|
|
3171
|
+
- staging
|
|
3172
|
+
- prod
|
|
3173
|
+
user_properties:
|
|
3174
|
+
type: object
|
|
3175
|
+
additionalProperties: true
|
|
3176
|
+
description: Details of user who created the configuration
|
|
3177
|
+
required:
|
|
3178
|
+
- project
|
|
3179
|
+
- name
|
|
3180
|
+
- provider
|
|
3181
|
+
- parameters
|
|
3182
|
+
example:
|
|
3183
|
+
project: 660d7ba7995cacccce4d299e
|
|
3184
|
+
name: function-v0
|
|
3185
|
+
provider: openai
|
|
3186
|
+
parameters:
|
|
3187
|
+
call_type: chat
|
|
3188
|
+
model: gpt-4-turbo-preview
|
|
3189
|
+
hyperparameters:
|
|
3190
|
+
temperature: 0
|
|
3191
|
+
max_tokens: 1000
|
|
3192
|
+
top_p: 1
|
|
3193
|
+
top_k: -1
|
|
3194
|
+
frequency_penalty: 0
|
|
3195
|
+
presence_penalty: 0
|
|
3196
|
+
stop_sequences: []
|
|
3197
|
+
selectedFunctions:
|
|
3198
|
+
- id: 64e3ba90e81f9b3a3808c27f
|
|
3199
|
+
name: get_google_information
|
|
3200
|
+
description: Get information from Google when you do not have that information
|
|
3201
|
+
in your context
|
|
3202
|
+
parameters:
|
|
3203
|
+
type: object
|
|
3204
|
+
properties:
|
|
3205
|
+
query:
|
|
3206
|
+
type: string
|
|
3207
|
+
description: The query asked by the user
|
|
3208
|
+
required:
|
|
3209
|
+
- query
|
|
3210
|
+
functionCallParams: auto
|
|
3211
|
+
forceFunction: {}
|
|
3212
|
+
template:
|
|
3213
|
+
- role: system
|
|
3214
|
+
content: You are a web search assistant.
|
|
3215
|
+
- role: user
|
|
3216
|
+
content: '{{ query }}'
|
|
3217
|
+
tags: []
|
|
3218
|
+
env:
|
|
3219
|
+
- staging
|
|
3220
|
+
user_properties:
|
|
3221
|
+
user_id: google-oauth2|108897808434934946583
|
|
3222
|
+
user_name: Dhruv Singh
|
|
3223
|
+
user_picture: https://lh3.googleusercontent.com/a/ACg8ocLyQilNtK9RIv4M0p-0FBSbxljBP0p5JabnStku1AQKtFSK=s96-c
|
|
3224
|
+
user_email: dhruv@honeyhive.ai
|
|
3225
|
+
security:
|
|
3226
|
+
- BearerAuth: []
|