Skip to content

Commit bd0fafc

Browse files
langfuse-botlangfuse-botsumerman
authored
feat(api): update API spec from langfuse/langfuse 270f036 (#1521)
Co-authored-by: langfuse-bot <langfuse-bot@langfuse.com> Co-authored-by: Valery Meleshkin <valeriy@meleshk.in>
1 parent c984097 commit bd0fafc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

langfuse/api/reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7167,6 +7167,14 @@ client.score_v_2.get()
71677167
<dl>
71687168
<dd>
71697169

7170+
**observation_id:** `typing.Optional[str]` — Comma-separated list of observation IDs to filter scores by.
7171+
7172+
</dd>
7173+
</dl>
7174+
7175+
<dl>
7176+
<dd>
7177+
71707178
**queue_id:** `typing.Optional[str]` — Retrieve only scores with a specific annotation queueId.
71717179

71727180
</dd>

langfuse/api/resources/score_v_2/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def get(
4343
session_id: typing.Optional[str] = None,
4444
dataset_run_id: typing.Optional[str] = None,
4545
trace_id: typing.Optional[str] = None,
46+
observation_id: typing.Optional[str] = None,
4647
queue_id: typing.Optional[str] = None,
4748
data_type: typing.Optional[ScoreDataType] = None,
4849
trace_tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
@@ -99,6 +100,9 @@ def get(
99100
trace_id : typing.Optional[str]
100101
Retrieve only scores with a specific traceId.
101102
103+
observation_id : typing.Optional[str]
104+
Comma-separated list of observation IDs to filter scores by.
105+
102106
queue_id : typing.Optional[str]
103107
Retrieve only scores with a specific annotation queueId.
104108
@@ -155,6 +159,7 @@ def get(
155159
"sessionId": session_id,
156160
"datasetRunId": dataset_run_id,
157161
"traceId": trace_id,
162+
"observationId": observation_id,
158163
"queueId": queue_id,
159164
"dataType": data_type,
160165
"traceTags": trace_tags,
@@ -276,6 +281,7 @@ async def get(
276281
session_id: typing.Optional[str] = None,
277282
dataset_run_id: typing.Optional[str] = None,
278283
trace_id: typing.Optional[str] = None,
284+
observation_id: typing.Optional[str] = None,
279285
queue_id: typing.Optional[str] = None,
280286
data_type: typing.Optional[ScoreDataType] = None,
281287
trace_tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
@@ -332,6 +338,9 @@ async def get(
332338
trace_id : typing.Optional[str]
333339
Retrieve only scores with a specific traceId.
334340
341+
observation_id : typing.Optional[str]
342+
Comma-separated list of observation IDs to filter scores by.
343+
335344
queue_id : typing.Optional[str]
336345
Retrieve only scores with a specific annotation queueId.
337346
@@ -396,6 +405,7 @@ async def main() -> None:
396405
"sessionId": session_id,
397406
"datasetRunId": dataset_run_id,
398407
"traceId": trace_id,
408+
"observationId": observation_id,
399409
"queueId": queue_id,
400410
"dataType": data_type,
401411
"traceTags": trace_tags,

0 commit comments

Comments
 (0)