Skip to content

Commit 9ec9f4a

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse db01ff9 (#1435)
Co-authored-by: langfuse-bot <[email protected]>
1 parent aa7819f commit 9ec9f4a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

langfuse/api/resources/commons/types/categorical_score.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010

1111
class CategoricalScore(BaseScore):
12-
value: typing.Optional[float] = pydantic_v1.Field(default=None)
12+
value: float = pydantic_v1.Field()
1313
"""
14-
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
14+
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
1515
"""
1616

1717
string_value: str = pydantic_v1.Field(alias="stringValue")

langfuse/api/resources/commons/types/categorical_score_v_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010

1111
class CategoricalScoreV1(BaseScoreV1):
12-
value: typing.Optional[float] = pydantic_v1.Field(default=None)
12+
value: float = pydantic_v1.Field()
1313
"""
14-
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
14+
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
1515
"""
1616

1717
string_value: str = pydantic_v1.Field(alias="stringValue")

langfuse/api/resources/commons/types/score.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Config:
7575

7676

7777
class Score_Categorical(pydantic_v1.BaseModel):
78-
value: typing.Optional[float] = None
78+
value: float
7979
string_value: str = pydantic_v1.Field(alias="stringValue")
8080
id: str
8181
trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None)

langfuse/api/resources/commons/types/score_v_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Config:
6969

7070

7171
class ScoreV1_Categorical(pydantic_v1.BaseModel):
72-
value: typing.Optional[float] = None
72+
value: float
7373
string_value: str = pydantic_v1.Field(alias="stringValue")
7474
id: str
7575
trace_id: str = pydantic_v1.Field(alias="traceId")

langfuse/api/resources/score_v_2/types/get_scores_response_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Config:
7878

7979
class GetScoresResponseData_Categorical(pydantic_v1.BaseModel):
8080
trace: typing.Optional[GetScoresResponseTraceData] = None
81-
value: typing.Optional[float] = None
81+
value: float
8282
string_value: str = pydantic_v1.Field(alias="stringValue")
8383
id: str
8484
trace_id: typing.Optional[str] = pydantic_v1.Field(alias="traceId", default=None)

0 commit comments

Comments
 (0)