__stream_text__() — anthropic-sdk-python Function Reference
Architecture documentation for the __stream_text__() function in _messages.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD b3ece8b5_7fb2_fd68_808b_bbd99ba05405["__stream_text__()"] 4f4cec09_94d5_eeb6_5c17_29d2af98f435["AsyncMessageStream"] b3ece8b5_7fb2_fd68_808b_bbd99ba05405 -->|defined in| 4f4cec09_94d5_eeb6_5c17_29d2af98f435 style b3ece8b5_7fb2_fd68_808b_bbd99ba05405 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/streaming/_messages.py lines 288–291
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
Defined In
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/_messages.py.
Where is __stream_text__() defined?
__stream_text__() is defined in src/anthropic/lib/streaming/_messages.py at line 288.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free