arthur-common 2.1.54__tar.gz → 2.1.56__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.
- {arthur_common-2.1.54 → arthur_common-2.1.56}/PKG-INFO +1 -1
- {arthur_common-2.1.54 → arthur_common-2.1.56}/pyproject.toml +1 -1
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/shield.py +11 -13
- {arthur_common-2.1.54 → arthur_common-2.1.56}/README.md +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/aggregator.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/README.md +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/agentic_aggregations.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/categorical_count.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/confusion_matrix.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/inference_count.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/inference_count_by_class.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/inference_null_count.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/mean_absolute_error.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/mean_squared_error.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/multiclass_confusion_matrix.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/multiclass_inference_count_by_class.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/numeric_stats.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/numeric_sum.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/py.typed +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/shield_aggregations.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/py.typed +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/config/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/config/config.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/config/settings.yaml +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/connectors.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/datasets.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/metrics.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/py.typed +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/schema_definitions.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/task_job_specs.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/py.typed +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/__init__.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/aggregation_analyzer.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/aggregation_loader.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/duckdb_data_loader.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/duckdb_utils.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/functions.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/py.typed +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/schema_inferer.py +0 -0
- {arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/time_utils.py +0 -0
|
@@ -280,7 +280,10 @@ class TaskResponse(BaseModel):
|
|
|
280
280
|
updated_at: int = Field(
|
|
281
281
|
description="Time the task was created in unix milliseconds",
|
|
282
282
|
)
|
|
283
|
-
is_agentic: bool = Field(
|
|
283
|
+
is_agentic: Optional[bool] = Field(
|
|
284
|
+
description="Whether the task is agentic or not",
|
|
285
|
+
default=None,
|
|
286
|
+
)
|
|
284
287
|
rules: List[RuleResponse] = Field(description="List of all the rules for the task.")
|
|
285
288
|
metrics: Optional[List[MetricResponse]] = Field(
|
|
286
289
|
description="List of all the metrics for the task.",
|
|
@@ -602,12 +605,11 @@ class NewMetricRequest(BaseModel):
|
|
|
602
605
|
# Default config when none is provided
|
|
603
606
|
config_values = {"use_llm_judge": True}
|
|
604
607
|
elif isinstance(config_values, dict):
|
|
608
|
+
relevance_threshold = config_values.get("relevance_threshold")
|
|
609
|
+
use_llm_judge = config_values.get("use_llm_judge")
|
|
610
|
+
|
|
605
611
|
# Handle mutually exclusive parameters
|
|
606
|
-
if
|
|
607
|
-
"relevance_threshold" in config_values
|
|
608
|
-
and "use_llm_judge" in config_values
|
|
609
|
-
and config_values["use_llm_judge"]
|
|
610
|
-
):
|
|
612
|
+
if relevance_threshold is not None and use_llm_judge:
|
|
611
613
|
raise HTTPException(
|
|
612
614
|
status_code=400,
|
|
613
615
|
detail="relevance_threshold and use_llm_judge=true are mutually exclusive. Set use_llm_judge=false when using relevance_threshold.",
|
|
@@ -615,16 +617,12 @@ class NewMetricRequest(BaseModel):
|
|
|
615
617
|
)
|
|
616
618
|
|
|
617
619
|
# If relevance_threshold is set but use_llm_judge isn't, set use_llm_judge to false
|
|
618
|
-
if
|
|
619
|
-
"relevance_threshold" in config_values
|
|
620
|
-
and "use_llm_judge" not in config_values
|
|
621
|
-
):
|
|
620
|
+
if relevance_threshold is not None and use_llm_judge is None:
|
|
622
621
|
config_values["use_llm_judge"] = False
|
|
623
622
|
|
|
624
623
|
# If neither is set, default to use_llm_judge=True
|
|
625
|
-
if (
|
|
626
|
-
|
|
627
|
-
and "use_llm_judge" not in config_values
|
|
624
|
+
if relevance_threshold is None and (
|
|
625
|
+
use_llm_judge is None or use_llm_judge == False
|
|
628
626
|
):
|
|
629
627
|
config_values["use_llm_judge"] = True
|
|
630
628
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/README.md
RENAMED
|
File without changes
|
{arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/aggregations/functions/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/models/schema_definitions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arthur_common-2.1.54 → arthur_common-2.1.56}/src/arthur_common/tools/aggregation_analyzer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|