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

Function test_api_exclude

tests/test_prepare.py:458–464  ·  view source on GitHub ↗
(send: Send)

Source from the content-addressed store, hash-verified

456
457
458async def test_api_exclude(send: Send) -> None:
459 class Parsed(BaseModel):
460 __api_exclude__ = {"parsed"}
461 text: str
462 parsed: object = None
463
464 assert await send({"c": [Parsed.construct(text="x", parsed={"a": 1})]}) == {"c": [{"text": "x"}]}
465
466
467class LateBoundBlock(BaseModel):

Callers

nothing calls this directly

Calls 2

sendFunction · 0.85
constructMethod · 0.45

Tested by

no test coverage detected