| 272 | |
| 273 | def _fake_boto3(monkeypatch, captured): |
| 274 | class _Client: |
| 275 | def converse(self, **kw): |
| 276 | captured.update(kw) |
| 277 | return { |
| 278 | "output": {"message": {"content": [{"text": _NODE_JSON}]}}, |
| 279 | "usage": {"inputTokens": 1, "outputTokens": 2}, |
| 280 | "stopReason": "end_turn", |
| 281 | } |
| 282 | |
| 283 | def _make_client(svc, **kw): |
| 284 | # Record the client-construction kwargs (notably config=) separately so |
no outgoing calls