You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk): preserve response-body fields on AgentScoreError + accept identity hints on create_session
Python parity with the same node-sdk additions (commit 75ba394 in node-sdk).
Two non-breaking surface extensions:
1. AgentScoreError grows a ``details: dict[str, Any]`` field populated from
non-``error`` keys of the response body. Consumers can branch on
``verify_url``, ``linked_wallets``, ``claimed_operator``, ``actual_signer``,
``reasons``, etc. for granular denial recovery — previously the SDK
dropped them and only surfaced ``code`` + ``message``. Defaults to ``{}``
so existing constructor calls keep working.
2. ``create_session`` / ``acreate_session`` accept optional ``address`` +
``operator_token`` so a session can be pre-associated with a known wallet
or be a KYC refresh for an existing ``opc_...``. The ``/v1/sessions`` API
has accepted these all along; the SDK was just not forwarding them.
Coverage stays at 97.41% (Tier A bar 95%). 146 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments