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
Copy file name to clipboardExpand all lines: langfuse/api/reference.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3191,6 +3191,8 @@ JSON string containing the query parameters with the following structure:
3191
3191
3192
3192
Get metrics from the Langfuse project using a query object.
3193
3193
3194
+
Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
3195
+
3194
3196
For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
3195
3197
</dd>
3196
3198
</dl>
@@ -4007,7 +4009,9 @@ client.observations.get(
4007
4009
<dl>
4008
4010
<dd>
4009
4011
4010
-
Get a list of observations
4012
+
Get a list of observations.
4013
+
4014
+
Consider using the [v2 observations endpoint](/api-reference#tag/observationsv2/GET/api/public/v2/observations) for cursor-based pagination and field selection.
4011
4015
</dd>
4012
4016
</dl>
4013
4017
</dd>
@@ -6666,7 +6670,7 @@ Create a score configuration (config). Score configs are used to define the stru
6666
6670
<dd>
6667
6671
6668
6672
```python
6669
-
from langfuse import CreateScoreConfigRequest, ScoreDataType
6673
+
from langfuse import CreateScoreConfigRequest, ScoreConfigDataType
6670
6674
from langfuse.client import FernLangfuse
6671
6675
6672
6676
client = FernLangfuse(
@@ -6680,7 +6684,7 @@ client = FernLangfuse(
6680
6684
client.score_configs.create(
6681
6685
request=CreateScoreConfigRequest(
6682
6686
name="name",
6683
-
data_type=ScoreDataType.NUMERIC,
6687
+
data_type=ScoreConfigDataType.NUMERIC,
6684
6688
),
6685
6689
)
6686
6690
@@ -7157,6 +7161,14 @@ client.score_v_2.get()
7157
7161
<dl>
7158
7162
<dd>
7159
7163
7164
+
**fields:**`typing.Optional[str]` — Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned.
0 commit comments