arthur-common 2.4.0__py3-none-any.whl → 2.4.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 arthur-common might be problematic. Click here for more details.
- arthur_common/models/request_schemas.py +8 -0
- arthur_common/models/response_schemas.py +20 -0
- {arthur_common-2.4.0.dist-info → arthur_common-2.4.1.dist-info}/METADATA +1 -1
- {arthur_common-2.4.0.dist-info → arthur_common-2.4.1.dist-info}/RECORD +5 -5
- {arthur_common-2.4.0.dist-info → arthur_common-2.4.1.dist-info}/WHEEL +0 -0
|
@@ -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):
|
|
@@ -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=
|
|
34
|
-
arthur_common/models/response_schemas.py,sha256=
|
|
33
|
+
arthur_common/models/request_schemas.py,sha256=LEybzPoOzaaTyua48mr9sAVzrBK6dIeYhR158kMp0o8,29749
|
|
34
|
+
arthur_common/models/response_schemas.py,sha256=qc6DDfY4GxtXtUiBllsQglvPnZzhe2Vw8D-S76B_r_0,25393
|
|
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=9teI67umlGn0izp6pZ5UBuWxJthaWEmw3wRj2KPIbf4,5207
|
|
46
46
|
arthur_common/tools/time_utils.py,sha256=4gfiu9NXfvPZltiVNLSIQGylX6h2W0viNi9Kv4bKyfw,1410
|
|
47
|
-
arthur_common-2.4.
|
|
48
|
-
arthur_common-2.4.
|
|
49
|
-
arthur_common-2.4.
|
|
47
|
+
arthur_common-2.4.1.dist-info/METADATA,sha256=LA7R2B8LGE78eJrwpQTHP0nFRPzLTnntZvHQUNtcVm4,2146
|
|
48
|
+
arthur_common-2.4.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
49
|
+
arthur_common-2.4.1.dist-info/RECORD,,
|
|
File without changes
|