Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
125
def
image_block(data: object) -> Any:
126
return
{
"type"
:
"image"
,
"source"
: b64_obj(data)}
127
128
129
def
_no_retry_delay(*_args: Any, **_kwargs: Any) -> float:
Callers
3
test_siblings_are_prepared_in_document_order
Function · 0.70
test_objects_with_a_read_method_are_not_files
Function · 0.70
test_other_path_likes_are_not_read
Function · 0.70
Calls
1
b64_obj
Function · 0.85
Tested by
no test coverage detected