@@ -1747,7 +1747,7 @@ def create_score(
17471747 trace_id : Optional [str ] = None ,
17481748 score_id : Optional [str ] = None ,
17491749 observation_id : Optional [str ] = None ,
1750- data_type : Optional [Literal ["CATEGORICAL" ]] = "CATEGORICAL" ,
1750+ data_type : Optional [Literal ["CATEGORICAL" , "TEXT" ]] = "CATEGORICAL" ,
17511751 comment : Optional [str ] = None ,
17521752 config_id : Optional [str ] = None ,
17531753 metadata : Optional [Any ] = None ,
@@ -1777,13 +1777,13 @@ def create_score(
17771777
17781778 Args:
17791779 name: Name of the score (e.g., "relevance", "accuracy")
1780- value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL)
1780+ value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL/TEXT )
17811781 session_id: ID of the Langfuse session to associate the score with
17821782 dataset_run_id: ID of the Langfuse dataset run to associate the score with
17831783 trace_id: ID of the Langfuse trace to associate the score with
17841784 observation_id: Optional ID of the specific observation to score. Trace ID must be provided too.
17851785 score_id: Optional custom ID for the score (auto-generated if not provided)
1786- data_type: Type of score (NUMERIC, BOOLEAN, or CATEGORICAL )
1786+ data_type: Type of score (NUMERIC, BOOLEAN, CATEGORICAL, or TEXT )
17871787 comment: Optional comment or explanation for the score
17881788 config_id: Optional ID of a score config defined in Langfuse
17891789 metadata: Optional metadata to be attached to the score
@@ -1907,7 +1907,7 @@ def score_current_span(
19071907 name : str ,
19081908 value : str ,
19091909 score_id : Optional [str ] = None ,
1910- data_type : Optional [Literal ["CATEGORICAL" ]] = "CATEGORICAL" ,
1910+ data_type : Optional [Literal ["CATEGORICAL" , "TEXT" ]] = "CATEGORICAL" ,
19111911 comment : Optional [str ] = None ,
19121912 config_id : Optional [str ] = None ,
19131913 metadata : Optional [Any ] = None ,
@@ -1931,9 +1931,9 @@ def score_current_span(
19311931
19321932 Args:
19331933 name: Name of the score (e.g., "relevance", "accuracy")
1934- value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL)
1934+ value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL/TEXT )
19351935 score_id: Optional custom ID for the score (auto-generated if not provided)
1936- data_type: Type of score (NUMERIC, BOOLEAN, or CATEGORICAL )
1936+ data_type: Type of score (NUMERIC, BOOLEAN, CATEGORICAL, or TEXT )
19371937 comment: Optional comment or explanation for the score
19381938 config_id: Optional ID of a score config defined in Langfuse
19391939 metadata: Optional metadata to be attached to the score
@@ -1997,7 +1997,7 @@ def score_current_trace(
19971997 name : str ,
19981998 value : str ,
19991999 score_id : Optional [str ] = None ,
2000- data_type : Optional [Literal ["CATEGORICAL" ]] = "CATEGORICAL" ,
2000+ data_type : Optional [Literal ["CATEGORICAL" , "TEXT" ]] = "CATEGORICAL" ,
20012001 comment : Optional [str ] = None ,
20022002 config_id : Optional [str ] = None ,
20032003 metadata : Optional [Any ] = None ,
@@ -2022,9 +2022,9 @@ def score_current_trace(
20222022
20232023 Args:
20242024 name: Name of the score (e.g., "user_satisfaction", "overall_quality")
2025- value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL)
2025+ value: Score value (can be numeric for NUMERIC/BOOLEAN types or string for CATEGORICAL/TEXT )
20262026 score_id: Optional custom ID for the score (auto-generated if not provided)
2027- data_type: Type of score (NUMERIC, BOOLEAN, or CATEGORICAL )
2027+ data_type: Type of score (NUMERIC, BOOLEAN, CATEGORICAL, or TEXT )
20282028 comment: Optional comment or explanation for the score
20292029 config_id: Optional ID of a score config defined in Langfuse
20302030 metadata: Optional metadata to be attached to the score
0 commit comments