Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs: ensure `CreateScoreValue` is consistent with pydantic type expectation (#2582)

marliessophiec32e0dbeca75
diff --git a/fern/apis/client/definition/score.yml b/fern/apis/client/definition/score.yml
index e269551770..269bd716d4 100644
--- a/fern/apis/client/definition/score.yml
+++ b/fern/apis/client/definition/score.yml
@@ -129,6 +129,6 @@ types:
CreateScoreValue:
discriminated: false
union:
- - string
- double
+ - string
docs: The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.yml
index d281590167..5220e57f7d 100644
--- a/fern/apis/server/definition/commons.yml
+++ b/fern/apis/server/definition/commons.yml
@@ -192,8 +192,8 @@ types:
CreateScoreValue:
discriminated: false
union:
- - string
- double
+ - string
docs: The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
Dataset:
properties:
diff --git a/web/public/generated/api-client/openapi.yml b/web/public/generated/api-client/openapi.yml
index 117bed2594..defdb8f487 100644
--- a/web/public/generated/api-client/openapi.yml
+++ b/web/public/generated/api-client/openapi.yml
@@ -231,9 +231,9 @@ components:
CreateScoreValue:
title: CreateScoreValue
oneOf:
- - type: string
- type: number
format: double
+ - type: string
description: >-
The value of the score. Must be passed as string for categorical scores,
and numeric for boolean and numeric scores
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index 17b81648dc..2ce21c2dfd 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -2312,9 +2312,9 @@ components:
CreateScoreValue:
title: CreateScoreValue
oneOf:
- - type: string
- type: number
format: double
+ - type: string
description: >-
The value of the score. Must be passed as string for categorical scores,
and numeric for boolean and numeric scores