arize-phoenix 11.24.0__py3-none-any.whl → 11.24.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arize-phoenix
3
- Version: 11.24.0
3
+ Version: 11.24.1
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://arize.com/docs/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
@@ -6,7 +6,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
6
6
  phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
7
  phoenix/services.py,sha256=ngkyKGVatX3cO2WJdo2hKdaVKP-xJCMvqthvga6kJss,5196
8
8
  phoenix/settings.py,sha256=2kHfT3BNOVd4dAO1bq-syEQbHSG8oX2-7NhOwK2QREk,896
9
- phoenix/version.py,sha256=mc0aktnMLzkzI_lGsZ_JOBs1pow4MfkH-Im0fjePoEA,24
9
+ phoenix/version.py,sha256=mGBiZ5kWDRIkrK_DfzDbLzuv6RJUqP094nDynBZ7N_A,24
10
10
  phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
12
12
  phoenix/core/model.py,sha256=qBFraOtmwCCnWJltKNP18DDG0mULXigytlFsa6YOz6k,4837
@@ -259,7 +259,7 @@ phoenix/server/api/routers/v1/annotation_configs.py,sha256=xp5lJmKYlRsINCUrRD9-l
259
259
  phoenix/server/api/routers/v1/annotations.py,sha256=fVl2qeh_ZbWXGvFBTZgeL7aGkkINIScdjuyxnOoSzNM,6817
260
260
  phoenix/server/api/routers/v1/datasets.py,sha256=9iPORLmbOrPKgUUcRDMs6ZczSIz7hvc6bngJy3IbdR0,38331
261
261
  phoenix/server/api/routers/v1/evaluations.py,sha256=_I0X01J8EZmTlfAGkvMkZ05IB3x691xzUmHV05ov26Y,12914
262
- phoenix/server/api/routers/v1/experiment_evaluations.py,sha256=_xnVqFCwZoOUPravdPixZLSQiU1H3sB5EzMknB7E1CI,4837
262
+ phoenix/server/api/routers/v1/experiment_evaluations.py,sha256=DZ3UK9OoYKElpRcEER7559-KiAqWr-1IXpZ27FbfP3k,5249
263
263
  phoenix/server/api/routers/v1/experiment_runs.py,sha256=LZeCQWQIEOZ9jK5Gp_C4JbiYY6AmnnWe85cVcvdkCLE,7107
264
264
  phoenix/server/api/routers/v1/experiments.py,sha256=hIBecGACzGZEgl93ap_JV52pUv-Ij03QJMRxQhBlktI,20611
265
265
  phoenix/server/api/routers/v1/models.py,sha256=p3gJN-9SWiUYTUTft4bZMsZVCBNTb4nN1Foy68eRZzQ,1997
@@ -441,9 +441,9 @@ phoenix/utilities/project.py,sha256=auVpARXkDb-JgeX5f2aStyFIkeKvGwN9l7qrFeJMVxI,
441
441
  phoenix/utilities/re.py,sha256=6YyUWIkv0zc2SigsxfOWIHzdpjKA_TZo2iqKq7zJKvw,2081
442
442
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
443
443
  phoenix/utilities/template_formatters.py,sha256=gh9PJD6WEGw7TEYXfSst1UR4pWWwmjxMLrDVQ_CkpkQ,2779
444
- arize_phoenix-11.24.0.dist-info/METADATA,sha256=Zx9R_MlxVXNmnNtINSTC3CASVGGDAsLHX3OlV79tMP4,31634
445
- arize_phoenix-11.24.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
446
- arize_phoenix-11.24.0.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
447
- arize_phoenix-11.24.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
448
- arize_phoenix-11.24.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
449
- arize_phoenix-11.24.0.dist-info/RECORD,,
444
+ arize_phoenix-11.24.1.dist-info/METADATA,sha256=sg6jiy2Vnkd2nO5lEK54ihTvuyvIVjLBN2dpYzJUlEQ,31634
445
+ arize_phoenix-11.24.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
446
+ arize_phoenix-11.24.1.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
447
+ arize_phoenix-11.24.1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
448
+ arize_phoenix-11.24.1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
449
+ arize_phoenix-11.24.1.dist-info/RECORD,,
@@ -3,10 +3,11 @@ from typing import Any, Literal, Optional
3
3
 
4
4
  from dateutil.parser import isoparse
5
5
  from fastapi import APIRouter, HTTPException
6
- from pydantic import Field
6
+ from pydantic import Field, model_validator
7
7
  from starlette.requests import Request
8
8
  from starlette.status import HTTP_404_NOT_FOUND
9
9
  from strawberry.relay import GlobalID
10
+ from typing_extensions import Self
10
11
 
11
12
  from phoenix.db import models
12
13
  from phoenix.db.helpers import SupportedSQLDialect
@@ -36,15 +37,25 @@ class UpsertExperimentEvaluationRequestBody(V1RoutesBaseModel):
36
37
  )
37
38
  start_time: datetime = Field(description="The start time of the evaluation in ISO format")
38
39
  end_time: datetime = Field(description="The end time of the evaluation in ISO format")
39
- result: ExperimentEvaluationResult = Field(description="The result of the evaluation")
40
+ result: Optional[ExperimentEvaluationResult] = Field(
41
+ None, description="The result of the evaluation. Either result or error must be provided."
42
+ )
40
43
  error: Optional[str] = Field(
41
- None, description="Optional error message if the evaluation encountered an error"
44
+ None,
45
+ description="Error message if the evaluation encountered an error. "
46
+ "Either result or error must be provided.",
42
47
  )
43
48
  metadata: Optional[dict[str, Any]] = Field(
44
49
  default=None, description="Metadata for the evaluation"
45
50
  )
46
51
  trace_id: Optional[str] = Field(default=None, description="Optional trace ID for tracking")
47
52
 
53
+ @model_validator(mode="after")
54
+ def validate_result_or_error(self) -> Self:
55
+ if self.result is None and self.error is None:
56
+ raise ValueError("Either 'result' or 'error' must be provided")
57
+ return self
58
+
48
59
 
49
60
  class UpsertExperimentEvaluationResponseBodyData(V1RoutesBaseModel):
50
61
  id: str = Field(description="The ID of the upserted experiment evaluation")
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "11.24.0"
1
+ __version__ = "11.24.1"