Skip to content

Commit 37468a1

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse a7d59d7b (#1371)
Co-authored-by: langfuse-bot <[email protected]>
1 parent 33d9086 commit 37468a1

26 files changed

+1813
-91
lines changed

langfuse/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Langfuse%2FPython)
44
[![pypi](https://img.shields.io/pypi/v/langfuse)](https://pypi.python.org/pypi/langfuse)
55

6-
The Langfuse Python library provides convenient access to the Langfuse API from Python.
6+
The Langfuse Python library provides convenient access to the Langfuse APIs from Python.
77

88
## Installation
99

langfuse/api/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
BasePrompt,
1717
BaseScore,
1818
BaseScoreV1,
19+
BlobStorageExportFrequency,
20+
BlobStorageExportMode,
21+
BlobStorageIntegrationDeletionResponse,
22+
BlobStorageIntegrationFileType,
23+
BlobStorageIntegrationResponse,
24+
BlobStorageIntegrationType,
25+
BlobStorageIntegrationsResponse,
1926
BooleanScore,
2027
BooleanScoreV1,
2128
BulkConfig,
@@ -32,6 +39,7 @@
3239
CreateAnnotationQueueAssignmentResponse,
3340
CreateAnnotationQueueItemRequest,
3441
CreateAnnotationQueueRequest,
42+
CreateBlobStorageIntegrationRequest,
3543
CreateChatPromptRequest,
3644
CreateCommentRequest,
3745
CreateCommentResponse,
@@ -64,6 +72,7 @@
6472
DeleteAnnotationQueueItemResponse,
6573
DeleteDatasetItemResponse,
6674
DeleteDatasetRunResponse,
75+
DeleteMembershipRequest,
6776
DeleteTraceResponse,
6877
EmptyResponse,
6978
Error,
@@ -101,6 +110,7 @@
101110
LlmConnection,
102111
MapValue,
103112
MediaContentType,
113+
MembershipDeletionResponse,
104114
MembershipRequest,
105115
MembershipResponse,
106116
MembershipRole,
@@ -197,6 +207,7 @@
197207
UsageDetails,
198208
UserMeta,
199209
annotation_queues,
210+
blob_storage_integrations,
200211
comments,
201212
commons,
202213
dataset_items,
@@ -238,6 +249,13 @@
238249
"BasePrompt",
239250
"BaseScore",
240251
"BaseScoreV1",
252+
"BlobStorageExportFrequency",
253+
"BlobStorageExportMode",
254+
"BlobStorageIntegrationDeletionResponse",
255+
"BlobStorageIntegrationFileType",
256+
"BlobStorageIntegrationResponse",
257+
"BlobStorageIntegrationType",
258+
"BlobStorageIntegrationsResponse",
241259
"BooleanScore",
242260
"BooleanScoreV1",
243261
"BulkConfig",
@@ -254,6 +272,7 @@
254272
"CreateAnnotationQueueAssignmentResponse",
255273
"CreateAnnotationQueueItemRequest",
256274
"CreateAnnotationQueueRequest",
275+
"CreateBlobStorageIntegrationRequest",
257276
"CreateChatPromptRequest",
258277
"CreateCommentRequest",
259278
"CreateCommentResponse",
@@ -286,6 +305,7 @@
286305
"DeleteAnnotationQueueItemResponse",
287306
"DeleteDatasetItemResponse",
288307
"DeleteDatasetRunResponse",
308+
"DeleteMembershipRequest",
289309
"DeleteTraceResponse",
290310
"EmptyResponse",
291311
"Error",
@@ -323,6 +343,7 @@
323343
"LlmConnection",
324344
"MapValue",
325345
"MediaContentType",
346+
"MembershipDeletionResponse",
326347
"MembershipRequest",
327348
"MembershipResponse",
328349
"MembershipRole",
@@ -419,6 +440,7 @@
419440
"UsageDetails",
420441
"UserMeta",
421442
"annotation_queues",
443+
"blob_storage_integrations",
422444
"comments",
423445
"commons",
424446
"dataset_items",

langfuse/api/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
AnnotationQueuesClient,
1010
AsyncAnnotationQueuesClient,
1111
)
12+
from .resources.blob_storage_integrations.client import (
13+
AsyncBlobStorageIntegrationsClient,
14+
BlobStorageIntegrationsClient,
15+
)
1216
from .resources.comments.client import AsyncCommentsClient, CommentsClient
1317
from .resources.dataset_items.client import AsyncDatasetItemsClient, DatasetItemsClient
1418
from .resources.dataset_run_items.client import (
@@ -116,6 +120,9 @@ def __init__(
116120
self.annotation_queues = AnnotationQueuesClient(
117121
client_wrapper=self._client_wrapper
118122
)
123+
self.blob_storage_integrations = BlobStorageIntegrationsClient(
124+
client_wrapper=self._client_wrapper
125+
)
119126
self.comments = CommentsClient(client_wrapper=self._client_wrapper)
120127
self.dataset_items = DatasetItemsClient(client_wrapper=self._client_wrapper)
121128
self.dataset_run_items = DatasetRunItemsClient(
@@ -213,6 +220,9 @@ def __init__(
213220
self.annotation_queues = AsyncAnnotationQueuesClient(
214221
client_wrapper=self._client_wrapper
215222
)
223+
self.blob_storage_integrations = AsyncBlobStorageIntegrationsClient(
224+
client_wrapper=self._client_wrapper
225+
)
216226
self.comments = AsyncCommentsClient(client_wrapper=self._client_wrapper)
217227
self.dataset_items = AsyncDatasetItemsClient(
218228
client_wrapper=self._client_wrapper

0 commit comments

Comments
 (0)