arthur-common 2.4.0__tar.gz → 2.4.1__tar.gz

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.

Files changed (49) hide show
  1. {arthur_common-2.4.0 → arthur_common-2.4.1}/PKG-INFO +1 -1
  2. {arthur_common-2.4.0 → arthur_common-2.4.1}/pyproject.toml +1 -1
  3. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/request_schemas.py +8 -0
  4. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/response_schemas.py +20 -0
  5. {arthur_common-2.4.0 → arthur_common-2.4.1}/README.md +0 -0
  6. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/__init__.py +0 -0
  7. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/__init__.py +0 -0
  8. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/aggregator.py +0 -0
  9. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/README.md +0 -0
  10. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/__init__.py +0 -0
  11. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/agentic_aggregations.py +0 -0
  12. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/categorical_count.py +0 -0
  13. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/confusion_matrix.py +0 -0
  14. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/inference_count.py +0 -0
  15. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/inference_count_by_class.py +0 -0
  16. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/inference_null_count.py +0 -0
  17. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/mean_absolute_error.py +0 -0
  18. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/mean_squared_error.py +0 -0
  19. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/multiclass_confusion_matrix.py +0 -0
  20. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/multiclass_inference_count_by_class.py +0 -0
  21. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/numeric_stats.py +0 -0
  22. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/numeric_sum.py +0 -0
  23. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/py.typed +0 -0
  24. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/functions/shield_aggregations.py +0 -0
  25. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/aggregations/py.typed +0 -0
  26. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/config/__init__.py +0 -0
  27. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/config/config.py +0 -0
  28. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/config/settings.yaml +0 -0
  29. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/__init__.py +0 -0
  30. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/common_schemas.py +0 -0
  31. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/connectors.py +0 -0
  32. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/constants.py +0 -0
  33. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/datasets.py +0 -0
  34. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/enums.py +0 -0
  35. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/metric_schemas.py +0 -0
  36. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/metrics.py +0 -0
  37. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/py.typed +0 -0
  38. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/schema_definitions.py +0 -0
  39. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/models/task_job_specs.py +0 -0
  40. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/py.typed +0 -0
  41. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/__init__.py +0 -0
  42. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/aggregation_analyzer.py +0 -0
  43. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/aggregation_loader.py +0 -0
  44. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/duckdb_data_loader.py +0 -0
  45. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/duckdb_utils.py +0 -0
  46. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/functions.py +0 -0
  47. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/py.typed +0 -0
  48. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/schema_inferer.py +0 -0
  49. {arthur_common-2.4.0 → arthur_common-2.4.1}/src/arthur_common/tools/time_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Utility code common to Arthur platform components.
5
5
  License: MIT
6
6
  Author: Arthur
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "arthur-common"
3
- version = "2.4.0"
3
+ version = "2.4.1"
4
4
  description = "Utility code common to Arthur platform components."
5
5
  authors = ["Arthur <engineering@arthur.ai>"]
6
6
  license = "MIT"
@@ -346,6 +346,10 @@ 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
+ )
349
353
 
350
354
 
351
355
  class ResponseValidationRequest(BaseModel):
@@ -354,6 +358,10 @@ class ResponseValidationRequest(BaseModel):
354
358
  description="Optional data provided as context for the validation.",
355
359
  default=None,
356
360
  )
361
+ model_name: Optional[str] = Field(
362
+ description="The model name and version being used for this response (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
363
+ default=None,
364
+ )
357
365
  # tokens: Optional[List[str]] = Field(description="optional, not used currently")
358
366
  # token_likelihoods: Optional[List[str]] = Field(
359
367
  # description="optional, not used currently"
@@ -185,6 +185,10 @@ class ValidationResult(BaseModel):
185
185
  description="The user ID this prompt belongs to",
186
186
  default=None,
187
187
  )
188
+ model_name: Optional[str] = Field(
189
+ description="The model name and version used for this validation (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
190
+ default=None,
191
+ )
188
192
  model_config = ConfigDict(
189
193
  json_schema_extra={
190
194
  "example": {
@@ -215,6 +219,10 @@ class ExternalInferencePrompt(BaseModel):
215
219
  message: str
216
220
  prompt_rule_results: List[ExternalRuleResult]
217
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
+ )
218
226
 
219
227
 
220
228
  class ExternalInferenceResponse(BaseModel):
@@ -227,6 +235,10 @@ class ExternalInferenceResponse(BaseModel):
227
235
  context: Optional[str] = None
228
236
  response_rule_results: List[ExternalRuleResult]
229
237
  tokens: int | None = None
238
+ model_name: Optional[str] = Field(
239
+ description="The model name and version used for this response (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
240
+ default=None,
241
+ )
230
242
 
231
243
 
232
244
  class InferenceFeedbackResponse(BaseModel):
@@ -297,6 +309,10 @@ class ExternalInference(BaseModel):
297
309
  inference_response: Optional[ExternalInferenceResponse] = None
298
310
  inference_feedback: List[InferenceFeedbackResponse]
299
311
  user_id: str | None = None
312
+ model_name: Optional[str] = Field(
313
+ description="The model name and version used for this inference (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
314
+ default=None,
315
+ )
300
316
 
301
317
 
302
318
  class QueryInferencesResponse(BaseModel):
@@ -499,6 +515,10 @@ class ChatResponse(BaseModel):
499
515
  response_results: List[ExternalRuleResult] = Field(
500
516
  description="list of rule results for the llm response",
501
517
  )
518
+ model_name: Optional[str] = Field(
519
+ description="The model name and version used for this chat response (e.g., 'gpt-4', 'gpt-3.5-turbo', 'claude-3-opus', 'gemini-pro').",
520
+ default=None,
521
+ )
502
522
 
503
523
 
504
524
  class TokenUsageCount(BaseModel):
File without changes