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.
Files changed (33) hide show
  1. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/PKG-INFO +1 -1
  2. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/client.py +3 -1
  3. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/pyproject.toml +1 -1
  4. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_client.py +1 -1
  5. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/uv.lock +1 -1
  6. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.claude/CLAUDE.md +0 -0
  7. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  8. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  9. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  10. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/dependabot.yml +0 -0
  11. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/ci.yml +0 -0
  12. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/publish.yml +0 -0
  13. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.github/workflows/security.yml +0 -0
  14. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/.gitignore +0 -0
  15. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/CODE_OF_CONDUCT.md +0 -0
  16. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/CONTRIBUTING.md +0 -0
  17. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/LICENSE +0 -0
  18. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/README.md +0 -0
  19. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/SECURITY.md +0 -0
  20. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/__init__.py +0 -0
  21. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/errors.py +0 -0
  22. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/py.typed +0 -0
  23. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/test_mode.py +0 -0
  24. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/agentscore/types.py +0 -0
  25. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/lefthook.yml +0 -0
  26. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/ruff.toml +0 -0
  27. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/__init__.py +0 -0
  28. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/conftest.py +0 -0
  29. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_errors.py +0 -0
  30. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_integration.py +0 -0
  31. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_test_mode.py +0 -0
  32. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/tests/test_types.py +0 -0
  33. {agentscore_py-2.4.1 → agentscore_py-2.4.2}/vulture_whitelist.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentscore-py
3
- Version: 2.4.1
3
+ Version: 2.4.2
4
4
  Summary: Python client for the AgentScore APIs
5
5
  Project-URL: Homepage, https://agentscore.sh
6
6
  Project-URL: Repository, https://github.com/agentscore/python-sdk
@@ -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 = response.text
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:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agentscore-py"
7
- version = "2.4.1"
7
+ version = "2.4.2"
8
8
  description = "Python client for the AgentScore APIs"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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=response.text rather than crashing."""
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
  )
@@ -4,7 +4,7 @@ requires-python = ">=3.11"
4
4
 
5
5
  [[package]]
6
6
  name = "agentscore-py"
7
- version = "2.4.1"
7
+ version = "2.4.2"
8
8
  source = { editable = "." }
9
9
  dependencies = [
10
10
  { name = "httpx" },
File without changes
File without changes
File without changes
File without changes
File without changes