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

Function image_block

tests/test_prepare.py:125–126  ·  view source on GitHub ↗
(data: object)

Source from the content-addressed store, hash-verified

123
124
125def image_block(data: object) -> Any:
126 return {"type": "image", "source": b64_obj(data)}
127
128
129def _no_retry_delay(*_args: Any, **_kwargs: Any) -> float:

Calls 1

b64_objFunction · 0.85

Tested by

no test coverage detected