Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions langfuse/api/dataset_run_items/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import datetime as dt
import typing

import typing_extensions
from ..commons.types.dataset_run_item import DatasetRunItem
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from ..core.request_options import RequestOptions
Expand All @@ -28,6 +29,10 @@ def with_raw_response(self) -> RawDatasetRunItemsClient:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, create experiment data via the SDK experiment runner or the OpenTelemetry endpoint at POST /api/public/otel/v1/traces. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def create(
self,
*,
Expand Down Expand Up @@ -107,6 +112,10 @@ def create(
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset run items are replaced by experiment items; use `GET /api/public/experiment-items?fromStartTime=<from>&toStartTime=<to>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def list(
self,
*,
Expand Down Expand Up @@ -180,6 +189,10 @@ def with_raw_response(self) -> AsyncRawDatasetRunItemsClient:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, create experiment data via the SDK experiment runner or the OpenTelemetry endpoint at POST /api/public/otel/v1/traces. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def create(
self,
*,
Expand Down Expand Up @@ -267,6 +280,10 @@ async def main() -> None:
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset run items are replaced by experiment items; use `GET /api/public/experiment-items?fromStartTime=<from>&toStartTime=<to>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def list(
self,
*,
Expand Down
17 changes: 17 additions & 0 deletions langfuse/api/dataset_run_items/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import datetime as dt
import typing
import typing_extensions
from json.decoder import JSONDecodeError

from ..commons.errors.access_denied_error import AccessDeniedError
Expand All @@ -25,6 +26,10 @@ class RawDatasetRunItemsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, create experiment data via the SDK experiment runner or the OpenTelemetry endpoint at POST /api/public/otel/v1/traces. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def create(
self,
*,
Expand Down Expand Up @@ -168,6 +173,10 @@ def create(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset run items are replaced by experiment items; use `GET /api/public/experiment-items?fromStartTime=<from>&toStartTime=<to>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def list(
self,
*,
Expand Down Expand Up @@ -293,6 +302,10 @@ class AsyncRawDatasetRunItemsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, create experiment data via the SDK experiment runner or the OpenTelemetry endpoint at POST /api/public/otel/v1/traces. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def create(
self,
*,
Expand Down Expand Up @@ -436,6 +449,10 @@ async def create(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset run items are replaced by experiment items; use `GET /api/public/experiment-items?fromStartTime=<from>&toStartTime=<to>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def list(
self,
*,
Expand Down
25 changes: 25 additions & 0 deletions langfuse/api/datasets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import typing

import typing_extensions
from ..commons.types.dataset import Dataset
from ..commons.types.dataset_run_with_items import DatasetRunWithItems
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
Expand Down Expand Up @@ -173,6 +174,10 @@ def create(
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def get_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -218,6 +223,10 @@ def get_run(
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def delete_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -263,6 +272,10 @@ def delete_run(
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def get_runs(
self,
dataset_name: str,
Expand Down Expand Up @@ -497,6 +510,10 @@ async def main() -> None:
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def get_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -550,6 +567,10 @@ async def main() -> None:
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def delete_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -603,6 +624,10 @@ async def main() -> None:
)
return _response.data

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def get_runs(
self,
dataset_name: str,
Expand Down
25 changes: 25 additions & 0 deletions langfuse/api/datasets/raw_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing
import typing_extensions
from json.decoder import JSONDecodeError

from ..commons.errors.access_denied_error import AccessDeniedError
Expand Down Expand Up @@ -368,6 +369,10 @@ def create(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def get_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -474,6 +479,10 @@ def get_run(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def delete_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -580,6 +589,10 @@ def delete_run(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def get_runs(
self,
dataset_name: str,
Expand Down Expand Up @@ -1040,6 +1053,10 @@ async def create(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def get_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -1146,6 +1163,10 @@ async def get_run(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def delete_run(
self,
dataset_name: str,
Expand Down Expand Up @@ -1252,6 +1273,10 @@ async def delete_run(
body=_response_json,
)

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. In Langfuse v4, dataset runs are replaced by experiments; use GET /api/public/experiments instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def get_runs(
self,
dataset_name: str,
Expand Down
9 changes: 9 additions & 0 deletions langfuse/api/ingestion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import typing

import typing_extensions
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from ..core.request_options import RequestOptions
from .raw_client import AsyncRawIngestionClient, RawIngestionClient
Expand All @@ -27,6 +28,10 @@ def with_raw_response(self) -> RawIngestionClient:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Send data via the OpenTelemetry endpoint at `POST /api/public/otel/v1/traces` instead, see the [OpenTelemetry integration docs](https://langfuse.com/integrations/native/opentelemetry). Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def batch(
self,
*,
Expand Down Expand Up @@ -128,6 +133,10 @@ def with_raw_response(self) -> AsyncRawIngestionClient:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Send data via the OpenTelemetry endpoint at `POST /api/public/otel/v1/traces` instead, see the [OpenTelemetry integration docs](https://langfuse.com/integrations/native/opentelemetry). Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def batch(
self,
*,
Expand Down
9 changes: 9 additions & 0 deletions langfuse/api/ingestion/raw_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing
import typing_extensions
from json.decoder import JSONDecodeError

from ..commons.errors.access_denied_error import AccessDeniedError
Expand All @@ -25,6 +26,10 @@ class RawIngestionClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Send data via the OpenTelemetry endpoint at `POST /api/public/otel/v1/traces` instead, see the [OpenTelemetry integration docs](https://langfuse.com/integrations/native/opentelemetry). Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def batch(
self,
*,
Expand Down Expand Up @@ -161,6 +166,10 @@ class AsyncRawIngestionClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Send data via the OpenTelemetry endpoint at `POST /api/public/otel/v1/traces` instead, see the [OpenTelemetry integration docs](https://langfuse.com/integrations/native/opentelemetry). Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def batch(
self,
*,
Expand Down
9 changes: 9 additions & 0 deletions langfuse/api/legacy/metrics_v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import typing

import typing_extensions
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from ...core.request_options import RequestOptions
from .raw_client import AsyncRawMetricsV1Client, RawMetricsV1Client
Expand All @@ -23,6 +24,10 @@ def with_raw_response(self) -> RawMetricsV1Client:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Use `GET /api/public/v2/metrics?query=<urlencoded json query>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def metrics(
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
) -> MetricsResponse:
Expand Down Expand Up @@ -122,6 +127,10 @@ def with_raw_response(self) -> AsyncRawMetricsV1Client:
"""
return self._raw_client

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Use `GET /api/public/v2/metrics?query=<urlencoded json query>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def metrics(
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
) -> MetricsResponse:
Expand Down
9 changes: 9 additions & 0 deletions langfuse/api/legacy/metrics_v1/raw_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing
import typing_extensions
from json.decoder import JSONDecodeError

from ...commons.errors.access_denied_error import AccessDeniedError
Expand All @@ -20,6 +21,10 @@ class RawMetricsV1Client:
def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Use `GET /api/public/v2/metrics?query=<urlencoded json query>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
def metrics(
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
) -> HttpResponse[MetricsResponse]:
Expand Down Expand Up @@ -173,6 +178,10 @@ class AsyncRawMetricsV1Client:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper

@typing_extensions.deprecated(
"On Langfuse Cloud, Langfuse v3 is deprecated and this endpoint will be removed on November 16, 2026. Use `GET /api/public/v2/metrics?query=<urlencoded json query>` instead. Self-hosted deployments are unaffected by this date; the endpoint becomes unavailable when they upgrade to Langfuse v4.",
category=None,
)
async def metrics(
self, *, query: str, request_options: typing.Optional[RequestOptions] = None
) -> AsyncHttpResponse[MetricsResponse]:
Expand Down
Loading
Loading