arthur-common 2.4.3__py3-none-any.whl → 2.4.5__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 arthur-common might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import math
3
4
  from typing import Any, Dict, List, Optional
4
5
 
5
6
  from pydantic import BaseModel, ConfigDict, Field, field_validator
@@ -98,7 +99,7 @@ class PaginationParameters(BaseModel):
98
99
  page: int = 0
99
100
 
100
101
  def calculate_total_pages(self, total_items_count: int) -> int:
101
- return total_items_count // self.page_size + 1
102
+ return math.ceil(total_items_count / self.page_size)
102
103
 
103
104
 
104
105
  class PIIConfig(BaseModel):
@@ -346,10 +346,6 @@ class PromptValidationRequest(BaseModel):
346
346
  description="The user ID this prompt belongs to",
347
347
  default=None,
348
348
  )
349
- model_name: Optional[str] = Field(
350
- description="The model name and version being used for this prompt (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
351
- default=None,
352
- )
353
349
 
354
350
 
355
351
  class ResponseValidationRequest(BaseModel):
@@ -219,10 +219,6 @@ class ExternalInferencePrompt(BaseModel):
219
219
  message: str
220
220
  prompt_rule_results: List[ExternalRuleResult]
221
221
  tokens: int | None = None
222
- model_name: Optional[str] = Field(
223
- description="The model name and version used for this prompt (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
224
- default=None,
225
- )
226
222
 
227
223
 
228
224
  class ExternalInferenceResponse(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.4.3
3
+ Version: 2.4.5
4
4
  Summary: Utility code common to Arthur platform components.
5
5
  License: MIT
6
6
  Author: Arthur
@@ -22,7 +22,7 @@ arthur_common/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
22
22
  arthur_common/config/config.py,sha256=fcpjOYjPKu4Duk63CuTHrOWKQKAlAhVUR60kF_2_Xog,1247
23
23
  arthur_common/config/settings.yaml,sha256=0CrygUwJzC5mGcO5Xnvv2ttp-P7LIsx682jllYA96NQ,161
24
24
  arthur_common/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- arthur_common/models/common_schemas.py,sha256=31Br7DbIgrwHwzgiyMXrgPYrANhqSqle7kmismcy4TY,6770
25
+ arthur_common/models/common_schemas.py,sha256=IvzKpdQENidIWREKo6-vGUVV-Gsw3PyoIeZLg2PzC-M,6788
26
26
  arthur_common/models/connectors.py,sha256=gRdX4lNz0ObU64FqMmoffHVBwEgO3JfOf3wjn3tKv0Q,2264
27
27
  arthur_common/models/constants.py,sha256=munkU0LrLsDs9BtAfozzw30FCguIowmAUKg_9vqwX24,1049
28
28
  arthur_common/models/datasets.py,sha256=7p1tyJEPwXjBs2ZRoai8hTzNl6MK9jU1DluzASApE_4,254
@@ -30,8 +30,8 @@ arthur_common/models/enums.py,sha256=J2beHEMjLfOGgc-vh1aDpE7KmBGKzLoOUGYLtuciJro
30
30
  arthur_common/models/metric_schemas.py,sha256=Xf-1RTzg7iYtnBMLkUUUuMPzAujzzNvQx_pe-CksEdU,2484
31
31
  arthur_common/models/metrics.py,sha256=mCa0aN-nuNHYcqGfkyKFeriI0krz0-ScgmXWXHlKoEI,11109
32
32
  arthur_common/models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- arthur_common/models/request_schemas.py,sha256=LEybzPoOzaaTyua48mr9sAVzrBK6dIeYhR158kMp0o8,29749
34
- arthur_common/models/response_schemas.py,sha256=kY3NZceFaBRkxGDF5-W1CYDjtwFdf3xyLxdzrwHlmJI,25643
33
+ arthur_common/models/request_schemas.py,sha256=hipamuhsV9kw2zk_1hOwGrwWSVdib04hxeeGJBxNlsQ,29540
34
+ arthur_common/models/response_schemas.py,sha256=4Adej0-q1QX0zvyHgk8UikvGFw-KEDCqjK52BpRUSCc,25440
35
35
  arthur_common/models/schema_definitions.py,sha256=dcUSLjBmvyloStcBFmT_rHdXbKdvA8Yxi_avYUbps3E,16876
36
36
  arthur_common/models/task_job_specs.py,sha256=p7jsSb97ylHYNkwoHXNOJvx2zcnh2kxLeh3m0pddo4M,3442
37
37
  arthur_common/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -44,6 +44,6 @@ arthur_common/tools/functions.py,sha256=FWL4eWO5-vLp86WudT-MGUKvf2B8f02IdoXQFKd6
44
44
  arthur_common/tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  arthur_common/tools/schema_inferer.py,sha256=8ehIqAxuGlgM08RtwPB43a7TfenZyEIf1R0p1RYrkng,4920
46
46
  arthur_common/tools/time_utils.py,sha256=4gfiu9NXfvPZltiVNLSIQGylX6h2W0viNi9Kv4bKyfw,1410
47
- arthur_common-2.4.3.dist-info/METADATA,sha256=IwWpahpZ5U0mEeZ1YdeR-nBn0tOeYM938q8wIn8Vb-0,2146
48
- arthur_common-2.4.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
- arthur_common-2.4.3.dist-info/RECORD,,
47
+ arthur_common-2.4.5.dist-info/METADATA,sha256=NhxZ9l_YoURPkEC18DmeB4xru5razQe5M0Yx2fVWWyI,2146
48
+ arthur_common-2.4.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
+ arthur_common-2.4.5.dist-info/RECORD,,