Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ utf8_size
Function
utf8_size
tests/test_open_telemetry.py:275–276 ·
view source on GitHub ↗
(text: str)
Source
from the content-addressed store, hash-verified
273
274
275
def
utf8_size(text: str) -> int:
276
return
len(text.encode())
277
278
279
def
content_size(span: ReadableSpan) -> int:
Callers
8
content_size
Function · 0.70
test_size_bound_cuts_text_between_two_characters
Method · 0.70
size
Method · 0.70
test_tool_result_content_loses_its_last_blocks_over_the_content_limit
Method · 0.50
test_tool_result_content_is_within_the_clients_max_content_bytes
Method · 0.50
test_size_bound_cases_of_a_tool_span
Method · 0.50
test_tool_arguments_alone_over_the_bound_are_removed_whole
Method · 0.50
test_async_tool_arguments_alone_over_the_bound_are_removed_whole
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected