diff --git a/langfuse/api/resources/commons/types/categorical_score.py b/langfuse/api/resources/commons/types/categorical_score.py index 847caf47b..363ed03ff 100644 --- a/langfuse/api/resources/commons/types/categorical_score.py +++ b/langfuse/api/resources/commons/types/categorical_score.py @@ -9,9 +9,9 @@ class CategoricalScore(BaseScore): - value: typing.Optional[float] = pydantic_v1.Field(default=None) + value: float = pydantic_v1.Field() """ - Only defined if a config is linked. Represents the numeric category mapping of the stringValue + Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0. """ string_value: str = pydantic_v1.Field(alias="stringValue") diff --git a/langfuse/api/resources/commons/types/categorical_score_v_1.py b/langfuse/api/resources/commons/types/categorical_score_v_1.py index 2cc84fc25..2aa42d586 100644 --- a/langfuse/api/resources/commons/types/categorical_score_v_1.py +++ b/langfuse/api/resources/commons/types/categorical_score_v_1.py @@ -9,9 +9,9 @@ class CategoricalScoreV1(BaseScoreV1): - value: typing.Optional[float] = pydantic_v1.Field(default=None) + value: float = pydantic_v1.Field() """ - Only defined if a config is linked. Represents the numeric category mapping of the stringValue + Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0. """ string_value: str = pydantic_v1.Field(alias="stringValue") diff --git a/langfuse/api/resources/commons/types/score.py b/langfuse/api/resources/commons/types/score.py index 789854afc..f0b866067 100644 --- a/langfuse/api/resources/commons/types/score.py +++ b/langfuse/api/resources/commons/types/score.py @@ -75,7 +75,7 @@ class Config: class Score_Categorical(pydantic_v1.BaseModel): - value: typing.Optional[float] = None + value: float string_value: str = pydantic_v1.Field(alias="stringValue") id: str trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None) diff --git a/langfuse/api/resources/commons/types/score_v_1.py b/langfuse/api/resources/commons/types/score_v_1.py index 788f6f39c..191e0d96f 100644 --- a/langfuse/api/resources/commons/types/score_v_1.py +++ b/langfuse/api/resources/commons/types/score_v_1.py @@ -69,7 +69,7 @@ class Config: class ScoreV1_Categorical(pydantic_v1.BaseModel): - value: typing.Optional[float] = None + value: float string_value: str = pydantic_v1.Field(alias="stringValue") id: str trace_id: str = pydantic_v1.Field(alias="traceId") diff --git a/langfuse/api/resources/score_v_2/types/get_scores_response_data.py b/langfuse/api/resources/score_v_2/types/get_scores_response_data.py index 63f41f4c4..e09f31cb9 100644 --- a/langfuse/api/resources/score_v_2/types/get_scores_response_data.py +++ b/langfuse/api/resources/score_v_2/types/get_scores_response_data.py @@ -78,7 +78,7 @@ class Config: class GetScoresResponseData_Categorical(pydantic_v1.BaseModel): trace: typing.Optional[GetScoresResponseTraceData] = None - value: typing.Optional[float] = None + value: float string_value: str = pydantic_v1.Field(alias="stringValue") id: str trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None)