scorecard-ai 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +9 -0
- package/Client.js +15 -0
- package/api/errors/ForbiddenError.d.ts +2 -2
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/NotFoundError.d.ts +2 -2
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -2
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +6 -1
- package/api/resources/prompt/client/Client.d.ts +151 -0
- package/api/resources/prompt/client/Client.js +699 -0
- package/api/resources/prompt/client/index.d.ts +1 -0
- package/api/resources/prompt/client/index.js +17 -0
- package/api/resources/prompt/client/requests/PromptCreateParams.d.ts +40 -0
- package/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/api/resources/prompt/client/requests/index.d.ts +2 -0
- package/api/resources/prompt/client/requests/index.js +2 -0
- package/api/resources/prompt/index.d.ts +2 -0
- package/api/resources/prompt/index.js +18 -0
- package/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +4 -0
- package/api/resources/prompt/types/index.d.ts +1 -0
- package/api/resources/prompt/types/index.js +17 -0
- package/api/resources/run/client/Client.d.ts +19 -3
- package/api/resources/run/client/Client.js +30 -25
- package/api/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/api/resources/run/client/requests/UpdateStatusParams.d.ts +1 -1
- package/api/resources/run/client/requests/index.d.ts +2 -2
- package/api/resources/runMetric/client/Client.d.ts +38 -0
- package/api/resources/runMetric/client/Client.js +150 -0
- package/api/resources/runMetric/client/index.d.ts +1 -0
- package/api/resources/runMetric/client/index.js +2 -0
- package/api/resources/runMetric/index.d.ts +1 -0
- package/api/resources/runMetric/index.js +17 -0
- package/api/resources/score/client/Client.d.ts +18 -2
- package/api/resources/score/client/Client.js +28 -18
- package/api/resources/score/client/requests/index.d.ts +2 -2
- package/api/resources/testcase/client/Client.d.ts +19 -1
- package/api/resources/testcase/client/Client.js +31 -24
- package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +1 -1
- package/api/resources/testcase/client/requests/index.d.ts +1 -1
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/client/Client.d.ts +15 -2
- package/api/resources/testrecord/client/Client.js +25 -18
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +1 -1
- package/api/resources/testrecord/client/requests/index.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/api/resources/testset/client/Client.d.ts +26 -2
- package/api/resources/testset/client/Client.js +41 -38
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -1
- package/api/resources/testset/client/requests/index.d.ts +2 -2
- package/api/resources/traces/client/Client.d.ts +38 -0
- package/api/resources/traces/client/Client.js +150 -0
- package/api/resources/traces/client/index.d.ts +1 -0
- package/api/resources/traces/client/index.js +2 -0
- package/api/resources/traces/index.d.ts +1 -0
- package/api/resources/traces/index.js +17 -0
- package/api/types/CustomSchema.d.ts +1 -1
- package/api/types/CustomVariable.d.ts +1 -1
- package/api/types/Grade.d.ts +4 -2
- package/api/types/HttpValidationError.d.ts +1 -1
- package/api/types/JsonObject.d.ts +1 -1
- package/api/types/JsonObjectInputValue.d.ts +1 -1
- package/api/types/JsonObjectOutputValue.d.ts +1 -1
- package/api/types/PaginatedTestcaseResponse.d.ts +1 -1
- package/api/types/Prompt.d.ts +18 -0
- package/api/types/{AppCreateRunParams.d.ts → PromptModelParamsValue.d.ts} +1 -1
- package/api/types/RunMetric.d.ts +9 -0
- package/api/types/Span.d.ts +29 -0
- package/api/types/TestCase.d.ts +1 -1
- package/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/api/types/Testrecord.d.ts +1 -1
- package/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/api/types/Testset.d.ts +1 -1
- package/api/types/Trace.d.ts +8 -0
- package/api/types/ValidationError.d.ts +1 -1
- package/api/types/index.d.ts +5 -8
- package/api/types/index.js +5 -8
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +78 -23
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +9 -0
- package/dist/Client.js +15 -0
- package/dist/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -2
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/resources/index.d.ts +5 -0
- package/dist/api/resources/index.js +6 -1
- package/dist/api/resources/prompt/client/Client.d.ts +151 -0
- package/dist/api/resources/prompt/client/Client.js +699 -0
- package/dist/api/resources/prompt/client/index.d.ts +1 -0
- package/dist/api/resources/prompt/client/index.js +17 -0
- package/dist/api/resources/prompt/client/requests/PromptCreateParams.d.ts +40 -0
- package/dist/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/dist/api/resources/prompt/client/requests/index.d.ts +2 -0
- package/dist/api/resources/prompt/client/requests/index.js +2 -0
- package/dist/api/resources/prompt/index.d.ts +2 -0
- package/dist/api/resources/prompt/index.js +18 -0
- package/dist/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +4 -0
- package/dist/api/resources/prompt/types/index.d.ts +1 -0
- package/dist/api/resources/prompt/types/index.js +17 -0
- package/dist/api/resources/run/client/Client.d.ts +19 -3
- package/dist/api/resources/run/client/Client.js +30 -25
- package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/dist/api/resources/run/client/requests/UpdateStatusParams.d.ts +1 -1
- package/dist/api/resources/run/client/requests/index.d.ts +2 -2
- package/dist/api/resources/runMetric/client/Client.d.ts +38 -0
- package/dist/api/resources/runMetric/client/Client.js +150 -0
- package/dist/api/resources/runMetric/client/index.d.ts +1 -0
- package/dist/api/resources/runMetric/client/index.js +2 -0
- package/dist/api/resources/runMetric/index.d.ts +1 -0
- package/dist/api/resources/runMetric/index.js +17 -0
- package/dist/api/resources/score/client/Client.d.ts +18 -2
- package/dist/api/resources/score/client/Client.js +28 -18
- package/dist/api/resources/score/client/requests/index.d.ts +2 -2
- package/dist/api/resources/testcase/client/Client.d.ts +19 -1
- package/dist/api/resources/testcase/client/Client.js +31 -24
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +1 -1
- package/dist/api/resources/testcase/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/client/Client.d.ts +15 -2
- package/dist/api/resources/testrecord/client/Client.js +25 -18
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +1 -1
- package/dist/api/resources/testrecord/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/dist/api/resources/testset/client/Client.d.ts +26 -2
- package/dist/api/resources/testset/client/Client.js +41 -38
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -1
- package/dist/api/resources/testset/client/requests/index.d.ts +2 -2
- package/dist/api/resources/traces/client/Client.d.ts +38 -0
- package/dist/api/resources/traces/client/Client.js +150 -0
- package/dist/api/resources/traces/client/index.d.ts +1 -0
- package/dist/api/resources/traces/client/index.js +2 -0
- package/dist/api/resources/traces/index.d.ts +1 -0
- package/dist/api/resources/traces/index.js +17 -0
- package/dist/api/types/CustomSchema.d.ts +1 -1
- package/dist/api/types/CustomVariable.d.ts +1 -1
- package/dist/api/types/Grade.d.ts +4 -2
- package/dist/api/types/HttpValidationError.d.ts +1 -1
- package/dist/api/types/JsonObject.d.ts +1 -1
- package/dist/api/types/JsonObjectInputValue.d.ts +1 -1
- package/dist/api/types/JsonObjectOutputValue.d.ts +1 -1
- package/dist/api/types/PaginatedTestcaseResponse.d.ts +1 -1
- package/dist/api/types/Prompt.d.ts +18 -0
- package/{api/types/AppTestSetCreate.d.ts → dist/api/types/PromptModelParamsValue.d.ts} +1 -1
- package/dist/api/types/RunMetric.d.ts +9 -0
- package/dist/api/types/Span.d.ts +29 -0
- package/dist/api/types/TestCase.d.ts +1 -1
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/Testrecord.d.ts +1 -1
- package/dist/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/dist/api/types/Testset.d.ts +1 -1
- package/dist/api/types/Trace.d.ts +8 -0
- package/dist/api/types/ValidationError.d.ts +1 -1
- package/dist/api/types/index.d.ts +5 -8
- package/dist/api/types/index.js +5 -8
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +78 -23
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/index.d.ts +5 -0
- package/dist/serialization/resources/index.js +6 -1
- package/dist/serialization/resources/prompt/client/getGraph.d.ts +11 -0
- package/dist/serialization/{types/AppCreateRunParams.js → resources/prompt/client/getGraph.js} +4 -3
- package/dist/serialization/resources/prompt/client/getProds.d.ts +11 -0
- package/dist/serialization/{types/AppTestRecordCreate.js → resources/prompt/client/getProds.js} +4 -3
- package/dist/serialization/resources/prompt/client/getRoots.d.ts +11 -0
- package/dist/serialization/{types/AppTestSetCreate.js → resources/prompt/client/getRoots.js} +4 -3
- package/dist/serialization/resources/prompt/client/index.d.ts +4 -0
- package/dist/serialization/resources/prompt/client/index.js +33 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +18 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.js +39 -0
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.js +34 -0
- package/dist/serialization/resources/prompt/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/prompt/client/requests/index.js +7 -0
- package/dist/serialization/resources/prompt/index.d.ts +2 -0
- package/dist/serialization/resources/prompt/index.js +18 -0
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +10 -0
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +36 -0
- package/dist/serialization/resources/prompt/types/index.d.ts +1 -0
- package/dist/serialization/resources/prompt/types/index.js +17 -0
- package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/dist/serialization/resources/run/client/requests/RunCreateParams.js +1 -0
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +4 -3
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.js +2 -10
- package/dist/serialization/resources/runMetric/client/get.d.ts +11 -0
- package/dist/serialization/resources/runMetric/client/get.js +32 -0
- package/dist/serialization/resources/runMetric/client/index.d.ts +1 -0
- package/dist/serialization/{types/ModelParams.js → resources/runMetric/client/index.js} +2 -6
- package/dist/serialization/resources/runMetric/index.d.ts +1 -0
- package/dist/serialization/resources/runMetric/index.js +17 -0
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +2 -2
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +2 -2
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -4
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +4 -15
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +4 -3
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +12 -7
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +10 -24
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +2 -2
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +2 -2
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +4 -3
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -10
- package/dist/serialization/resources/traces/client/get.d.ts +10 -0
- package/dist/serialization/resources/traces/client/get.js +40 -0
- package/dist/serialization/resources/traces/client/index.d.ts +1 -0
- package/{serialization/types/ModelParams.js → dist/serialization/resources/traces/client/index.js} +2 -6
- package/dist/serialization/resources/traces/index.d.ts +1 -0
- package/dist/serialization/resources/traces/index.js +17 -0
- package/dist/serialization/types/CreateGithubWorkflowParams.d.ts +2 -2
- package/dist/serialization/types/CreateRunParams.d.ts +2 -2
- package/dist/serialization/types/CustomSchema.d.ts +4 -3
- package/dist/serialization/types/CustomSchema.js +2 -12
- package/dist/serialization/types/CustomVariable.d.ts +6 -4
- package/dist/serialization/types/CustomVariable.js +4 -11
- package/dist/serialization/types/DataTypeEnum.d.ts +2 -2
- package/dist/serialization/types/FileUrl.d.ts +2 -2
- package/dist/serialization/types/Grade.d.ts +7 -4
- package/dist/serialization/types/Grade.js +5 -11
- package/dist/serialization/types/HttpValidationError.d.ts +4 -3
- package/dist/serialization/types/HttpValidationError.js +2 -12
- package/dist/serialization/types/JsonObject.d.ts +2 -2
- package/dist/serialization/types/JsonObjectInputValue.d.ts +2 -2
- package/dist/serialization/types/JsonObjectOutputValue.d.ts +2 -2
- package/dist/serialization/types/NotFoundErrorBody.d.ts +2 -2
- package/dist/serialization/types/PaginatedTestcaseResponse.d.ts +4 -3
- package/dist/serialization/types/PaginatedTestcaseResponse.js +2 -10
- package/dist/serialization/types/Prompt.d.ts +24 -0
- package/dist/serialization/types/Prompt.js +45 -0
- package/dist/serialization/types/PromptModelParamsValue.d.ts +10 -0
- package/dist/serialization/types/PromptModelParamsValue.js +35 -0
- package/dist/serialization/types/RoleEnum.d.ts +2 -2
- package/dist/serialization/types/Run.d.ts +2 -2
- package/dist/serialization/types/RunMetric.d.ts +15 -0
- package/dist/serialization/types/RunMetric.js +36 -0
- package/dist/serialization/types/RunStatus.d.ts +2 -2
- package/dist/serialization/types/ScoreStatus.d.ts +2 -2
- package/dist/serialization/types/Span.d.ts +34 -0
- package/dist/serialization/types/Span.js +64 -0
- package/dist/serialization/types/TestCase.d.ts +6 -4
- package/dist/serialization/types/TestCase.js +4 -15
- package/dist/serialization/types/TestCaseCreate.d.ts +2 -2
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +4 -3
- package/dist/serialization/types/TestCaseCustomInputsValue.js +2 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +2 -1
- package/dist/serialization/types/TestRecordCreate.d.ts +2 -2
- package/dist/serialization/types/TestSetCreate.d.ts +2 -2
- package/dist/serialization/types/Testrecord.d.ts +12 -7
- package/dist/serialization/types/Testrecord.js +10 -24
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomInputsValue.js +2 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +2 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +2 -1
- package/dist/serialization/types/TestrecordModelDebugInfoValue.d.ts +2 -2
- package/dist/serialization/types/TestrecordModelParamsValue.d.ts +2 -2
- package/dist/serialization/types/Testset.d.ts +4 -3
- package/dist/serialization/types/Testset.js +2 -10
- package/dist/serialization/types/Trace.d.ts +14 -0
- package/dist/serialization/types/Trace.js +35 -0
- package/dist/serialization/types/UnauthenticatedError.d.ts +2 -2
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +2 -2
- package/dist/serialization/types/ValidationError.d.ts +4 -3
- package/dist/serialization/types/ValidationError.js +2 -10
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/dist/serialization/types/index.d.ts +5 -8
- package/dist/serialization/types/index.js +5 -8
- package/jest.config.js +5 -0
- package/package.json +10 -4
- package/reference.md +2145 -0
- package/serialization/resources/index.d.ts +5 -0
- package/serialization/resources/index.js +6 -1
- package/serialization/resources/prompt/client/getGraph.d.ts +11 -0
- package/{dist/serialization/types/ExecutionParams.js → serialization/resources/prompt/client/getGraph.js} +4 -3
- package/serialization/resources/prompt/client/getProds.d.ts +11 -0
- package/serialization/resources/prompt/client/getProds.js +32 -0
- package/serialization/resources/prompt/client/getRoots.d.ts +11 -0
- package/serialization/resources/prompt/client/getRoots.js +32 -0
- package/serialization/resources/prompt/client/index.d.ts +4 -0
- package/serialization/resources/prompt/client/index.js +33 -0
- package/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +18 -0
- package/serialization/resources/prompt/client/requests/PromptCreateParams.js +39 -0
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.js +34 -0
- package/serialization/resources/prompt/client/requests/index.d.ts +2 -0
- package/serialization/resources/prompt/client/requests/index.js +7 -0
- package/serialization/resources/prompt/index.d.ts +2 -0
- package/serialization/resources/prompt/index.js +18 -0
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +10 -0
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +36 -0
- package/serialization/resources/prompt/types/index.d.ts +1 -0
- package/serialization/resources/prompt/types/index.js +17 -0
- package/serialization/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/serialization/resources/run/client/requests/RunCreateParams.js +1 -0
- package/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +4 -3
- package/serialization/resources/run/client/requests/UpdateStatusParams.js +2 -10
- package/serialization/resources/runMetric/client/get.d.ts +11 -0
- package/serialization/resources/runMetric/client/get.js +32 -0
- package/serialization/resources/runMetric/client/index.d.ts +1 -0
- package/{dist/serialization/types/ScoringParams.js → serialization/resources/runMetric/client/index.js} +2 -6
- package/serialization/resources/runMetric/index.d.ts +1 -0
- package/serialization/resources/runMetric/index.js +17 -0
- package/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +2 -2
- package/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +2 -2
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -4
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +4 -15
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +4 -3
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +4 -3
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +12 -7
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +10 -24
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +2 -2
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +2 -2
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +4 -3
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -10
- package/serialization/resources/traces/client/get.d.ts +10 -0
- package/serialization/resources/traces/client/get.js +40 -0
- package/serialization/resources/traces/client/index.d.ts +1 -0
- package/serialization/{types/ScoringParams.js → resources/traces/client/index.js} +2 -6
- package/serialization/resources/traces/index.d.ts +1 -0
- package/serialization/resources/traces/index.js +17 -0
- package/serialization/types/CreateGithubWorkflowParams.d.ts +2 -2
- package/serialization/types/CreateRunParams.d.ts +2 -2
- package/serialization/types/CustomSchema.d.ts +4 -3
- package/serialization/types/CustomSchema.js +2 -12
- package/serialization/types/CustomVariable.d.ts +6 -4
- package/serialization/types/CustomVariable.js +4 -11
- package/serialization/types/DataTypeEnum.d.ts +2 -2
- package/serialization/types/FileUrl.d.ts +2 -2
- package/serialization/types/Grade.d.ts +7 -4
- package/serialization/types/Grade.js +5 -11
- package/serialization/types/HttpValidationError.d.ts +4 -3
- package/serialization/types/HttpValidationError.js +2 -12
- package/serialization/types/JsonObject.d.ts +2 -2
- package/serialization/types/JsonObjectInputValue.d.ts +2 -2
- package/serialization/types/JsonObjectOutputValue.d.ts +2 -2
- package/serialization/types/NotFoundErrorBody.d.ts +2 -2
- package/serialization/types/PaginatedTestcaseResponse.d.ts +4 -3
- package/serialization/types/PaginatedTestcaseResponse.js +2 -10
- package/serialization/types/Prompt.d.ts +24 -0
- package/serialization/types/Prompt.js +45 -0
- package/serialization/types/PromptModelParamsValue.d.ts +10 -0
- package/serialization/types/PromptModelParamsValue.js +35 -0
- package/serialization/types/RoleEnum.d.ts +2 -2
- package/serialization/types/Run.d.ts +2 -2
- package/serialization/types/RunMetric.d.ts +15 -0
- package/serialization/types/RunMetric.js +36 -0
- package/serialization/types/RunStatus.d.ts +2 -2
- package/serialization/types/ScoreStatus.d.ts +2 -2
- package/serialization/types/Span.d.ts +34 -0
- package/serialization/types/Span.js +64 -0
- package/serialization/types/TestCase.d.ts +6 -4
- package/serialization/types/TestCase.js +4 -15
- package/serialization/types/TestCaseCreate.d.ts +2 -2
- package/serialization/types/TestCaseCustomInputsValue.d.ts +4 -3
- package/serialization/types/TestCaseCustomInputsValue.js +2 -1
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +4 -3
- package/serialization/types/TestCaseCustomLabelsValue.js +2 -1
- package/serialization/types/TestRecordCreate.d.ts +2 -2
- package/serialization/types/TestSetCreate.d.ts +2 -2
- package/serialization/types/Testrecord.d.ts +12 -7
- package/serialization/types/Testrecord.js +10 -24
- package/serialization/types/TestrecordCustomInputsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomInputsValue.js +2 -1
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomLabelsValue.js +2 -1
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomOutputsValue.js +2 -1
- package/serialization/types/TestrecordModelDebugInfoValue.d.ts +2 -2
- package/serialization/types/TestrecordModelParamsValue.d.ts +2 -2
- package/serialization/types/Testset.d.ts +4 -3
- package/serialization/types/Testset.js +2 -10
- package/serialization/types/Trace.d.ts +14 -0
- package/serialization/types/Trace.js +35 -0
- package/serialization/types/UnauthenticatedError.d.ts +2 -2
- package/serialization/types/UnauthorizedErrorBody.d.ts +2 -2
- package/serialization/types/ValidationError.d.ts +4 -3
- package/serialization/types/ValidationError.js +2 -10
- package/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/serialization/types/index.d.ts +5 -8
- package/serialization/types/index.js +5 -8
- package/api/types/AppTestRecordCreate.d.ts +0 -4
- package/api/types/ExecutionParams.d.ts +0 -4
- package/api/types/ModelParams.d.ts +0 -4
- package/api/types/ScoreExecutionParams.d.ts +0 -4
- package/api/types/ScoringParams.d.ts +0 -4
- package/api/types/TestCaseCreateInput.d.ts +0 -4
- package/dist/api/types/AppCreateRunParams.d.ts +0 -4
- package/dist/api/types/AppTestRecordCreate.d.ts +0 -4
- package/dist/api/types/AppTestSetCreate.d.ts +0 -4
- package/dist/api/types/ExecutionParams.d.ts +0 -4
- package/dist/api/types/ModelParams.d.ts +0 -4
- package/dist/api/types/ScoreExecutionParams.d.ts +0 -4
- package/dist/api/types/ScoringParams.d.ts +0 -4
- package/dist/api/types/TestCaseCreateInput.d.ts +0 -4
- package/dist/serialization/types/AppCreateRunParams.d.ts +0 -10
- package/dist/serialization/types/AppTestRecordCreate.d.ts +0 -10
- package/dist/serialization/types/AppTestSetCreate.d.ts +0 -10
- package/dist/serialization/types/ExecutionParams.d.ts +0 -10
- package/dist/serialization/types/ModelParams.d.ts +0 -10
- package/dist/serialization/types/ScoreExecutionParams.d.ts +0 -10
- package/dist/serialization/types/ScoreExecutionParams.js +0 -31
- package/dist/serialization/types/ScoringParams.d.ts +0 -10
- package/dist/serialization/types/TestCaseCreateInput.d.ts +0 -10
- package/dist/serialization/types/TestCaseCreateInput.js +0 -31
- package/serialization/types/AppCreateRunParams.d.ts +0 -10
- package/serialization/types/AppCreateRunParams.js +0 -31
- package/serialization/types/AppTestRecordCreate.d.ts +0 -10
- package/serialization/types/AppTestRecordCreate.js +0 -31
- package/serialization/types/AppTestSetCreate.d.ts +0 -10
- package/serialization/types/AppTestSetCreate.js +0 -31
- package/serialization/types/ExecutionParams.d.ts +0 -10
- package/serialization/types/ExecutionParams.js +0 -31
- package/serialization/types/ModelParams.d.ts +0 -10
- package/serialization/types/ScoreExecutionParams.d.ts +0 -10
- package/serialization/types/ScoreExecutionParams.js +0 -31
- package/serialization/types/ScoringParams.d.ts +0 -10
- package/serialization/types/TestCaseCreateInput.d.ts +0 -10
- package/serialization/types/TestCaseCreateInput.js +0 -31
- /package/api/{types/AppCreateRunParams.js → resources/prompt/client/requests/PromptCreateParams.js} +0 -0
- /package/api/{types/AppTestRecordCreate.js → resources/prompt/client/requests/PromptUpdateParams.js} +0 -0
- /package/api/{types/AppTestSetCreate.js → resources/prompt/types/PromptCreateParamsModelParamsValue.js} +0 -0
- /package/api/types/{ExecutionParams.js → Prompt.js} +0 -0
- /package/api/types/{ModelParams.js → PromptModelParamsValue.js} +0 -0
- /package/api/types/{ScoreExecutionParams.js → RunMetric.js} +0 -0
- /package/api/types/{ScoringParams.js → Span.js} +0 -0
- /package/api/types/{TestCaseCreateInput.js → Trace.js} +0 -0
- /package/dist/api/{types/AppCreateRunParams.js → resources/prompt/client/requests/PromptCreateParams.js} +0 -0
- /package/dist/api/{types/AppTestRecordCreate.js → resources/prompt/client/requests/PromptUpdateParams.js} +0 -0
- /package/dist/api/{types/AppTestSetCreate.js → resources/prompt/types/PromptCreateParamsModelParamsValue.js} +0 -0
- /package/dist/api/types/{ExecutionParams.js → Prompt.js} +0 -0
- /package/dist/api/types/{ModelParams.js → PromptModelParamsValue.js} +0 -0
- /package/dist/api/types/{ScoreExecutionParams.js → RunMetric.js} +0 -0
- /package/dist/api/types/{ScoringParams.js → Span.js} +0 -0
- /package/dist/api/types/{TestCaseCreateInput.js → Trace.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { Testcase } from "./api/resources/testcase/client/Client";
|
|
|
8
8
|
import { Testrecord } from "./api/resources/testrecord/client/Client";
|
|
9
9
|
import { Run } from "./api/resources/run/client/Client";
|
|
10
10
|
import { Score } from "./api/resources/score/client/Client";
|
|
11
|
+
import { RunMetric } from "./api/resources/runMetric/client/Client";
|
|
12
|
+
import { Traces } from "./api/resources/traces/client/Client";
|
|
13
|
+
import { Prompt } from "./api/resources/prompt/client/Client";
|
|
11
14
|
export declare namespace ScorecardClient {
|
|
12
15
|
interface Options {
|
|
13
16
|
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
@@ -31,4 +34,10 @@ export declare class ScorecardClient {
|
|
|
31
34
|
get run(): Run;
|
|
32
35
|
protected _score: Score | undefined;
|
|
33
36
|
get score(): Score;
|
|
37
|
+
protected _runMetric: RunMetric | undefined;
|
|
38
|
+
get runMetric(): RunMetric;
|
|
39
|
+
protected _traces: Traces | undefined;
|
|
40
|
+
get traces(): Traces;
|
|
41
|
+
protected _prompt: Prompt | undefined;
|
|
42
|
+
get prompt(): Prompt;
|
|
34
43
|
}
|
package/Client.js
CHANGED
|
@@ -9,6 +9,9 @@ const Client_2 = require("./api/resources/testcase/client/Client");
|
|
|
9
9
|
const Client_3 = require("./api/resources/testrecord/client/Client");
|
|
10
10
|
const Client_4 = require("./api/resources/run/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/score/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/runMetric/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/traces/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/prompt/client/Client");
|
|
12
15
|
class ScorecardClient {
|
|
13
16
|
constructor(_options) {
|
|
14
17
|
this._options = _options;
|
|
@@ -33,5 +36,17 @@ class ScorecardClient {
|
|
|
33
36
|
var _a;
|
|
34
37
|
return ((_a = this._score) !== null && _a !== void 0 ? _a : (this._score = new Client_5.Score(this._options)));
|
|
35
38
|
}
|
|
39
|
+
get runMetric() {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = this._runMetric) !== null && _a !== void 0 ? _a : (this._runMetric = new Client_6.RunMetric(this._options)));
|
|
42
|
+
}
|
|
43
|
+
get traces() {
|
|
44
|
+
var _a;
|
|
45
|
+
return ((_a = this._traces) !== null && _a !== void 0 ? _a : (this._traces = new Client_7.Traces(this._options)));
|
|
46
|
+
}
|
|
47
|
+
get prompt() {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = this._prompt) !== null && _a !== void 0 ? _a : (this._prompt = new Client_8.Prompt(this._options)));
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
52
|
exports.ScorecardClient = ScorecardClient;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Scorecard from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Scorecard from "../index";
|
|
6
6
|
export declare class ForbiddenError extends errors.ScorecardError {
|
|
7
7
|
constructor(body: Scorecard.UnauthorizedErrorBody);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ForbiddenError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class ForbiddenError extends errors.ScorecardError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Scorecard from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Scorecard from "../index";
|
|
6
6
|
export declare class NotFoundError extends errors.ScorecardError {
|
|
7
7
|
constructor(body: Scorecard.NotFoundErrorBody);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.NotFoundError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class NotFoundError extends errors.ScorecardError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Scorecard from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Scorecard from "../index";
|
|
6
6
|
export declare class UnauthorizedError extends errors.ScorecardError {
|
|
7
7
|
constructor(body: Scorecard.UnauthenticatedError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UnauthorizedError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class UnauthorizedError extends errors.ScorecardError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Scorecard from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Scorecard from "../index";
|
|
6
6
|
export declare class UnprocessableEntityError extends errors.ScorecardError {
|
|
7
7
|
constructor(body: Scorecard.HttpValidationError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UnprocessableEntityError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class UnprocessableEntityError extends errors.ScorecardError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
package/api/resources/index.d.ts
CHANGED
|
@@ -2,11 +2,16 @@ export * as testcase from "./testcase";
|
|
|
2
2
|
export * from "./testcase/types";
|
|
3
3
|
export * as testrecord from "./testrecord";
|
|
4
4
|
export * from "./testrecord/types";
|
|
5
|
+
export * as prompt from "./prompt";
|
|
6
|
+
export * from "./prompt/types";
|
|
5
7
|
export * as testset from "./testset";
|
|
6
8
|
export * as run from "./run";
|
|
7
9
|
export * as score from "./score";
|
|
10
|
+
export * as runMetric from "./runMetric";
|
|
11
|
+
export * as traces from "./traces";
|
|
8
12
|
export * from "./testset/client/requests";
|
|
9
13
|
export * from "./testcase/client/requests";
|
|
10
14
|
export * from "./testrecord/client/requests";
|
|
11
15
|
export * from "./run/client/requests";
|
|
12
16
|
export * from "./score/client/requests";
|
|
17
|
+
export * from "./prompt/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,16 +26,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.score = exports.run = exports.testset = exports.testrecord = exports.testcase = void 0;
|
|
29
|
+
exports.traces = exports.runMetric = exports.score = exports.run = exports.testset = exports.prompt = exports.testrecord = exports.testcase = void 0;
|
|
30
30
|
exports.testcase = __importStar(require("./testcase"));
|
|
31
31
|
__exportStar(require("./testcase/types"), exports);
|
|
32
32
|
exports.testrecord = __importStar(require("./testrecord"));
|
|
33
33
|
__exportStar(require("./testrecord/types"), exports);
|
|
34
|
+
exports.prompt = __importStar(require("./prompt"));
|
|
35
|
+
__exportStar(require("./prompt/types"), exports);
|
|
34
36
|
exports.testset = __importStar(require("./testset"));
|
|
35
37
|
exports.run = __importStar(require("./run"));
|
|
36
38
|
exports.score = __importStar(require("./score"));
|
|
39
|
+
exports.runMetric = __importStar(require("./runMetric"));
|
|
40
|
+
exports.traces = __importStar(require("./traces"));
|
|
37
41
|
__exportStar(require("./testset/client/requests"), exports);
|
|
38
42
|
__exportStar(require("./testcase/client/requests"), exports);
|
|
39
43
|
__exportStar(require("./testrecord/client/requests"), exports);
|
|
40
44
|
__exportStar(require("./run/client/requests"), exports);
|
|
41
45
|
__exportStar(require("./score/client/requests"), exports);
|
|
46
|
+
__exportStar(require("./prompt/client/requests"), exports);
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Scorecard from "../../../index";
|
|
7
|
+
export declare namespace Prompt {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
timeoutInSeconds?: number;
|
|
14
|
+
maxRetries?: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare class Prompt {
|
|
18
|
+
protected readonly _options: Prompt.Options;
|
|
19
|
+
constructor(_options: Prompt.Options);
|
|
20
|
+
/**
|
|
21
|
+
* Create a new prompt
|
|
22
|
+
*
|
|
23
|
+
* @param {Scorecard.PromptCreateParams} request
|
|
24
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
27
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
28
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
29
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await scorecard.prompt.create({
|
|
33
|
+
* promptTemplate: "You are a virtual assistant",
|
|
34
|
+
* name: "Prompt Name",
|
|
35
|
+
* description: "Description of the prompt",
|
|
36
|
+
* modelParams: {
|
|
37
|
+
* "param1": "value1",
|
|
38
|
+
* "param2": 0.1,
|
|
39
|
+
* "param3": 100,
|
|
40
|
+
* "param4": true
|
|
41
|
+
* }
|
|
42
|
+
* })
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await scorecard.prompt.create({
|
|
46
|
+
* promptTemplate: "You are a virtual assistant",
|
|
47
|
+
* parentId: "7ac3cbd5-3b99-4e72-97f3-9cd2e749cace",
|
|
48
|
+
* description: "Description of the prompt",
|
|
49
|
+
* modelParams: {
|
|
50
|
+
* "param1": "value1",
|
|
51
|
+
* "param2": 0.1,
|
|
52
|
+
* "param3": 100,
|
|
53
|
+
* "param4": true
|
|
54
|
+
* },
|
|
55
|
+
* isProd: true
|
|
56
|
+
* })
|
|
57
|
+
*/
|
|
58
|
+
create(request: Scorecard.PromptCreateParams, requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt>;
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve active root prompts for the org
|
|
61
|
+
*
|
|
62
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
65
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
66
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await scorecard.prompt.getRoots()
|
|
70
|
+
*/
|
|
71
|
+
getRoots(requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieve prod prompts for the org
|
|
74
|
+
*
|
|
75
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
78
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
79
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await scorecard.prompt.getProds()
|
|
83
|
+
*/
|
|
84
|
+
getProds(requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve a prompt by id
|
|
87
|
+
*
|
|
88
|
+
* @param {string} id - The id of the prompt to get.
|
|
89
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
92
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
93
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
94
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await scorecard.prompt.get("id")
|
|
98
|
+
*/
|
|
99
|
+
get(id: string, requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt>;
|
|
100
|
+
/**
|
|
101
|
+
* Update a prompt
|
|
102
|
+
*
|
|
103
|
+
* @param {string} id - The id of the prompt to update.
|
|
104
|
+
* @param {Scorecard.PromptUpdateParams} request
|
|
105
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
108
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
109
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
110
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await scorecard.prompt.update("id", {
|
|
114
|
+
* isArchived: true
|
|
115
|
+
* })
|
|
116
|
+
*/
|
|
117
|
+
update(id: string, request?: Scorecard.PromptUpdateParams, requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt>;
|
|
118
|
+
/**
|
|
119
|
+
* Retrieve a prod prompt by name
|
|
120
|
+
*
|
|
121
|
+
* @param {string} name - Name of the prompt.
|
|
122
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
125
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
126
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
127
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await scorecard.prompt.getByName("name")
|
|
131
|
+
*/
|
|
132
|
+
getByName(name: string, requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt>;
|
|
133
|
+
/**
|
|
134
|
+
* Retrieve all nodes within the same graph as the prompt, sorted by created_at desc
|
|
135
|
+
*
|
|
136
|
+
* @param {string} id - The id of the prompt.
|
|
137
|
+
* @param {Prompt.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
140
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
141
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
142
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await scorecard.prompt.getGraph("id")
|
|
146
|
+
*/
|
|
147
|
+
getGraph(id: string, requestOptions?: Prompt.RequestOptions): Promise<Scorecard.Prompt[]>;
|
|
148
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
149
|
+
"X-API-Key": string;
|
|
150
|
+
}>;
|
|
151
|
+
}
|