Skip to content

Commit f5836c3

Browse files
vvillait88claude
andcommitted
docs: drop "mirrors node-sdk" framing in client.py comments
Three comments referenced "mirrors node-sdk's behavior" / "mirrors node-sdk's AgentScoreError.details". Rephrased to describe the behavior on its own — python-sdk stands alone as the Python flavor. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4416bea commit f5836c3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎agentscore/client.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _handle_response(self, response: httpx.Response) -> Any:
116116
error = body.get("error", {}) if isinstance(body, dict) else {}
117117
# Preserve everything except the parsed `error` block so consumers
118118
# can read verify_url, linked_wallets, reasons, etc. for granular
119-
# denial recovery — mirrors node-sdk's AgentScoreError.details.
119+
# denial recovery — exposed via AgentScoreError.details.
120120
details = {k: v for k, v in body.items() if k != "error"} if isinstance(body, dict) else {}
121121
raise AgentScoreError(
122122
code=error.get("code", "unknown_error"),
@@ -253,8 +253,8 @@ def associate_wallet(
253253
"wallet_address": wallet_address,
254254
"network": network,
255255
}
256-
# Truthy check (not `is not None`) so empty strings don't ship a useless key — mirrors
257-
# node-sdk's behavior of only forwarding when the key actually has content.
256+
# Truthy check (not `is not None`) so empty strings don't ship a useless key —
257+
# only forward when the key actually has content.
258258
if idempotency_key:
259259
if len(idempotency_key) > _IDEMPOTENCY_KEY_MAX:
260260
logger.warning(
@@ -370,8 +370,8 @@ async def aassociate_wallet(
370370
"wallet_address": wallet_address,
371371
"network": network,
372372
}
373-
# Truthy check (not `is not None`) so empty strings don't ship a useless key — mirrors
374-
# node-sdk's behavior of only forwarding when the key actually has content.
373+
# Truthy check (not `is not None`) so empty strings don't ship a useless key —
374+
# only forward when the key actually has content.
375375
if idempotency_key:
376376
if len(idempotency_key) > _IDEMPOTENCY_KEY_MAX:
377377
logger.warning(

0 commit comments

Comments
 (0)