agentscore-py 2.4.1__tar.gz → 2.4.2__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.
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/PKG-INFO +1 -1
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/client.py +3 -1
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/pyproject.toml +1 -1
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_client.py +1 -1
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/uv.lock +1 -1
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.claude/CLAUDE.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/dependabot.yml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/ci.yml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/publish.yml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/security.yml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.gitignore +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/CODE_OF_CONDUCT.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/CONTRIBUTING.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/LICENSE +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/README.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/SECURITY.md +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/__init__.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/errors.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/py.typed +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/test_mode.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/types.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/lefthook.yml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/ruff.toml +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/__init__.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/conftest.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_errors.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_integration.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_test_mode.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_types.py +0 -0
- {agentscore_py-2.4.1 → agentscore_py-2.4.2}/vulture_whitelist.py +0 -0
|
@@ -93,7 +93,9 @@ def _build_error_from_response(response: httpx.Response) -> AgentScoreError:
|
|
|
93
93
|
dedicated subclass for.
|
|
94
94
|
"""
|
|
95
95
|
code = "unknown_error"
|
|
96
|
-
message
|
|
96
|
+
# Concise default, overridden by ``error.message`` when the body carries one. The raw
|
|
97
|
+
# body, when it is JSON, is preserved in ``details`` below.
|
|
98
|
+
message = f"Request failed with status {response.status_code}"
|
|
97
99
|
details: dict[str, Any] = {}
|
|
98
100
|
|
|
99
101
|
try:
|
|
@@ -2219,7 +2219,7 @@ async def test_aassess_connect_error_wraps_to_network_error():
|
|
|
2219
2219
|
@respx.mock
|
|
2220
2220
|
def test_error_body_non_dict_json_falls_through_to_defaults():
|
|
2221
2221
|
"""When the error body parses to JSON that is NOT a dict (e.g. a list), the SDK keeps
|
|
2222
|
-
code='unknown_error' and message
|
|
2222
|
+
code='unknown_error' and a status-based default message rather than crashing."""
|
|
2223
2223
|
respx.post(f"{BASE_URL}/v1/assess").mock(
|
|
2224
2224
|
return_value=httpx.Response(500, json=["oops", "not", "a", "dict"]),
|
|
2225
2225
|
)
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|