MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _compacted_response

Function _compacted_response

tests/lib/tools/test_runners.py:2470–2483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2468
2469
2470def _compacted_response() -> httpx2.Response:
2471 return httpx2.Response(
2472 200,
2473 json={
2474 "id": "msg_compacted",
2475 "type": "message",
2476 "role": "assistant",
2477 "model": "claude-haiku-4-5",
2478 "content": [{"type": "compaction", "content": "Summary so far.", "signature": "sig_01"}],
2479 "stop_reason": "compaction",
2480 "stop_sequence": None,
2481 "usage": {"input_tokens": 1, "output_tokens": 1},
2482 },
2483 )
2484
2485
2486def _compaction_block_alone() -> List[Any]:

Calls

no outgoing calls

Tested by

no test coverage detected