Skip to content

Commit f0619ca

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse 62d2959 (#1416)
Co-authored-by: langfuse-bot <[email protected]>
1 parent 8723870 commit f0619ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

langfuse/api/resources/annotation_queues/types/annotation_queue_object_type.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
class AnnotationQueueObjectType(str, enum.Enum):
1010
TRACE = "TRACE"
1111
OBSERVATION = "OBSERVATION"
12+
SESSION = "SESSION"
1213

1314
def visit(
1415
self,
1516
trace: typing.Callable[[], T_Result],
1617
observation: typing.Callable[[], T_Result],
18+
session: typing.Callable[[], T_Result],
1719
) -> T_Result:
1820
if self is AnnotationQueueObjectType.TRACE:
1921
return trace()
2022
if self is AnnotationQueueObjectType.OBSERVATION:
2123
return observation()
24+
if self is AnnotationQueueObjectType.SESSION:
25+
return session()

0 commit comments

Comments
 (0)