Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agentscore_commerce/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
``agentscore-py`` here. Don't add ``agentscore-py`` as a separate dep; the two can
drift versions and cause subtle type mismatches.

Use this for: programmatic API calls (sessions, credentials, reputation) and the
Use this for: programmatic API calls (sessions, credentials) and the
test-mode address fixtures for integration tests.
"""

Expand Down
2 changes: 1 addition & 1 deletion agentscore_commerce/identity/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_gate_quota_info(request: HttpRequest) -> GateQuotaInfo | None:


class AgentScoreMiddleware:
"""Django middleware that gates requests based on AgentScore wallet reputation.
"""Django middleware that gates requests on the AgentScore assess decision.

Usage in settings.py::

Expand Down
2 changes: 1 addition & 1 deletion agentscore_commerce/identity/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def _default_aip_on_denied(_request: Request, body: AipErrorBody) -> JSONR


class AgentScoreGate:
"""ASGI middleware that gates requests based on AgentScore wallet reputation.
"""ASGI middleware that gates requests on the AgentScore assess decision.

Usage with Starlette / FastAPI::

Expand Down
5 changes: 0 additions & 5 deletions agentscore_commerce/identity/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
# doesn't re-shape them into local dataclasses, same as policy_result / account_verification.
from agentscore.types import AipProvenance, AipSignatureMaterial

# Reputation-API types (Activity, Classification, Identity, Reputation, ScoreDetail,
# Grade, ScoreStatus) live in agentscore-py — not re-exported here. Commerce SDK is
# scoped to gate + payment + 402 + discovery; reputation lookups belong to the
# AgentScore SDK. Import via `from agentscore import Activity, Classification, ...`.

DenialCode = Literal[
"wallet_not_trusted",
"missing_identity",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Agentic commerce SDK for Python: identity middleware (FastAPI, Fl
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
keywords = ["agentscore", "agent-commerce", "agentic-payments", "402", "x402", "mpp", "machine-payments-protocol", "fastapi", "starlette", "flask", "django", "aiohttp", "sanic", "middleware", "trust", "reputation", "kyc", "identity", "stripe", "tempo", "solana", "base", "ai-agent"]
keywords = ["agentscore", "agent-commerce", "agentic-payments", "402", "x402", "mpp", "machine-payments-protocol", "fastapi", "starlette", "flask", "django", "aiohttp", "sanic", "middleware", "trust", "kyc", "identity", "stripe", "tempo", "solana", "base", "ai-agent"]
dependencies = [
"httpx>=0.25.0,<1.0.0",
"agentscore-py>=2.6.11",
Expand Down
Loading