Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion langfuse/api/resources/commons/types/base_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BaseScore(pydantic_v1.BaseModel):

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

environment: typing.Optional[str] = pydantic_v1.Field(default=None)
Expand Down
2 changes: 1 addition & 1 deletion langfuse/api/resources/commons/types/base_score_v_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BaseScoreV1(pydantic_v1.BaseModel):

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

environment: typing.Optional[str] = pydantic_v1.Field(default=None)
Expand Down
5 changes: 5 additions & 0 deletions langfuse/api/resources/ingestion/types/score_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class ScoreBody(pydantic_v1.BaseModel):
)
name: str
environment: typing.Optional[str] = None
queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
"""
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
"""

value: CreateScoreValue = pydantic_v1.Field()
"""
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)
Expand Down
5 changes: 5 additions & 0 deletions langfuse/api/resources/score/types/create_score_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class CreateScoreRequest(pydantic_v1.BaseModel):
The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
"""

queue_id: typing.Optional[str] = pydantic_v1.Field(alias="queueId", default=None)
"""
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
"""

data_type: typing.Optional[ScoreDataType] = pydantic_v1.Field(
alias="dataType", default=None
)
Expand Down