Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ b64_obj
Function
b64_obj
tests/test_prepare.py:121–122 ·
view source on GitHub ↗
(data: object)
Source
from the content-addressed store, hash-verified
119
120
121
def
b64_obj(data: object) -> Any:
122
return
{
"type"
:
"base64"
,
"media_type"
:
"image/png"
,
"data"
: data}
123
124
125
def
image_block(data: object) -> Any:
Callers
7
image_block
Function · 0.85
test_siblings_are_prepared_in_document_order
Function · 0.85
test_base64_file_input
Function · 0.85
test_get_does_not_prepare_a_body
Function · 0.85
test_query_params_are_never_read
Function · 0.85
test_other_path_likes_are_not_read
Function · 0.85
test_file_objects_must_read_as_bytes
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected