Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ text_part
Function
text_part
tests/test_open_telemetry.py:291–292 ·
view source on GitHub ↗
(content: str)
Source
from the content-addressed store, hash-verified
289
290
291
def
text_part(content: str) -> dict[str, Any]:
292
return
{
"type"
:
"text"
,
"content"
: content}
293
294
295
def
chat_message(role: str, *parts: dict[str, Any]) -> dict[str, Any]:
Callers
6
test_open_telemetry.py
File · 0.85
test_max_content_bytes_is_the_size_bound
Method · 0.85
test_max_content_bytes_bounds_a_streamed_message_too
Method · 0.85
test_size_bound_counts_bytes_not_characters
Method · 0.85
test_stop_sequences_are_measured_in_bytes
Method · 0.85
test_parts_and_the_cut_of_the_last_text_part_are_measured_in_bytes
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected