Home / Function/ until_done() — anthropic-sdk-python Function Reference

until_done() — anthropic-sdk-python Function Reference

Architecture documentation for the until_done() function in _messages.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  adb888ca_b9bd_2363_ade2_ad24ef72c39d["until_done()"]
  4f4cec09_94d5_eeb6_5c17_29d2af98f435["AsyncMessageStream"]
  adb888ca_b9bd_2363_ade2_ad24ef72c39d -->|defined in| 4f4cec09_94d5_eeb6_5c17_29d2af98f435
  a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5["until_done()"]
  a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 -->|calls| adb888ca_b9bd_2363_ade2_ad24ef72c39d
  f4a46199_2749_e343_7f26_2f26657ae526["get_final_message()"]
  f4a46199_2749_e343_7f26_2f26657ae526 -->|calls| adb888ca_b9bd_2363_ade2_ad24ef72c39d
  a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5["until_done()"]
  adb888ca_b9bd_2363_ade2_ad24ef72c39d -->|calls| a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5
  style adb888ca_b9bd_2363_ade2_ad24ef72c39d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/lib/streaming/_messages.py lines 266–268

    async def until_done(self) -> None:
        """Waits until the stream has been consumed"""
        await consume_async_iterator(self)

Subdomains

Calls

Frequently Asked Questions

What does until_done() do?
until_done() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/streaming/_messages.py.
Where is until_done() defined?
until_done() is defined in src/anthropic/lib/streaming/_messages.py at line 266.
What does until_done() call?
until_done() calls 1 function(s): until_done.
What calls until_done()?
until_done() is called by 2 function(s): get_final_message, until_done.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free