Skip to content

Commit 07b17b9

Browse files
committed
push
1 parent e2d08ae commit 07b17b9

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

langfuse/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@
3737
"LangfuseRetriever",
3838
"LangfuseGuardrail",
3939
"experiment",
40+
"api",
4041
]

langfuse/experiment.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
Union,
2020
)
2121

22+
from langfuse.api import ScoreDataType
23+
2224
if TYPE_CHECKING:
2325
from langfuse._client.datasets import DatasetItemClient
2426

@@ -113,6 +115,8 @@ class Evaluation(TypedDict, total=False):
113115
metadata: Optional structured metadata about the evaluation process.
114116
Can include confidence scores, intermediate calculations, model versions,
115117
or any other relevant technical details.
118+
data_type: Optional score data type; one of NUMERIC,CATEGORICAL, or BOOLEAN; default: NUMERIC
119+
config_id: Optional Langfuse score config id
116120
117121
Examples:
118122
Quantitative accuracy evaluation:
@@ -159,6 +163,8 @@ class Evaluation(TypedDict, total=False):
159163
value: Union[int, float, str, bool, None]
160164
comment: Optional[str]
161165
metadata: Optional[Dict[str, Any]]
166+
data_type: Optional[ScoreDataType]
167+
config_id: Optional[str]
162168

163169

164170
class ExperimentItemResult(TypedDict):

0 commit comments

Comments
 (0)