Skip to content

Commit 496aca3

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse fa2979b (#1403)
Co-authored-by: langfuse-bot <[email protected]>
1 parent fa290c4 commit 496aca3

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BaseScore(pydantic_v1.BaseModel):
3737

3838
queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
3939
"""
40-
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
40+
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
4141
"""
4242

4343
environment: typing.Optional[str] = pydantic_v1.Field(default=None)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class BaseScoreV1(pydantic_v1.BaseModel):
3131

3232
queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
3333
"""
34-
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
34+
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
3535
"""
3636

3737
environment: typing.Optional[str] = pydantic_v1.Field(default=None)

langfuse/api/resources/ingestion/types/score_body.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class ScoreBody(pydantic_v1.BaseModel):
3535
)
3636
name: str
3737
environment: typing.Optional[str] = None
38+
queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
39+
"""
40+
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
41+
"""
42+
3843
value: CreateScoreValue = pydantic_v1.Field()
3944
"""
4045
The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ class CreateScoreRequest(pydantic_v1.BaseModel):
4646
The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
4747
"""
4848

49+
queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
50+
"""
51+
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
52+
"""
53+
4954
data_type: typing.Optional[ScoreDataType] = pydantic_v1.Field(
5055
alias="dataType", default=None
5156
)

0 commit comments

Comments
 (0)