You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87f47ab
Browse filesBrowse the repository at this point in the historyBrowse files
Create a score (supports both trace and session scores)
53
-
54
-
Parameters
55
-
----------
56
-
name : str
57
-
58
-
value : CreateScoreValue
59
-
The value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false). Text score values must be between 1 and 500 characters.
The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
77
-
78
-
queue_id : typing.Optional[str]
79
-
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
80
-
81
-
data_type : typing.Optional[ScoreDataType]
82
-
The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric.
83
-
84
-
config_id : typing.Optional[str]
85
-
Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated.
86
-
87
-
source : typing.Optional[CreateScoreSource]
88
-
The source of the score. Defaults to API. Set to ANNOTATION to prefill scores (e.g. from an LLM) for a human reviewer to verify in an annotation queue. When source is ANNOTATION, a configId is required unless dataType is CORRECTION. EVAL is reserved for internal evaluator outputs and is not accepted on this endpoint.
Create a score (supports both trace and session scores)
207
-
208
-
Parameters
209
-
----------
210
-
name : str
211
-
212
-
value : CreateScoreValue
213
-
The value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false). Text score values must be between 1 and 500 characters.
The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
231
-
232
-
queue_id : typing.Optional[str]
233
-
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
234
-
235
-
data_type : typing.Optional[ScoreDataType]
236
-
The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric.
237
-
238
-
config_id : typing.Optional[str]
239
-
Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated.
240
-
241
-
source : typing.Optional[CreateScoreSource]
242
-
The source of the score. Defaults to API. Set to ANNOTATION to prefill scores (e.g. from an LLM) for a human reviewer to verify in an annotation queue. When source is ANNOTATION, a configId is required unless dataType is CORRECTION. EVAL is reserved for internal evaluator outputs and is not accepted on this endpoint.
0 commit comments