__stream_text__() — anthropic-sdk-python Function Reference
Architecture documentation for the __stream_text__() function in _beta_messages.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 678f63ed_36a7_c58f_191f_cc399387362c["__stream_text__()"] 8e652b46_6f9a_daae_5db8_1aa0b9386626["BetaAsyncMessageStream"] 678f63ed_36a7_c58f_191f_cc399387362c -->|defined in| 8e652b46_6f9a_daae_5db8_1aa0b9386626 style 678f63ed_36a7_c58f_191f_cc399387362c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/streaming/_beta_messages.py lines 293–296
async def __stream_text__(self) -> AsyncIterator[str]:
async for chunk in self:
if chunk.type == "content_block_delta" and chunk.delta.type == "text_delta":
yield chunk.delta.text
Domain
Subdomains
Source
Frequently Asked Questions
What does __stream_text__() do?
__stream_text__() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/streaming/_beta_messages.py.
Where is __stream_text__() defined?
__stream_text__() is defined in src/anthropic/lib/streaming/_beta_messages.py at line 293.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free