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

until_done() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1b280af0_fc5d_c3ea_3f9e_afe795826544["until_done()"]
  8e652b46_6f9a_daae_5db8_1aa0b9386626["BetaAsyncMessageStream"]
  1b280af0_fc5d_c3ea_3f9e_afe795826544 -->|defined in| 8e652b46_6f9a_daae_5db8_1aa0b9386626
  9137206e_3937_7fd5_2948_649e0b33112b["until_done()"]
  9137206e_3937_7fd5_2948_649e0b33112b -->|calls| 1b280af0_fc5d_c3ea_3f9e_afe795826544
  55b6abea_0990_ff98_54bd_a0fa130e0892["get_final_message()"]
  55b6abea_0990_ff98_54bd_a0fa130e0892 -->|calls| 1b280af0_fc5d_c3ea_3f9e_afe795826544
  9137206e_3937_7fd5_2948_649e0b33112b["until_done()"]
  1b280af0_fc5d_c3ea_3f9e_afe795826544 -->|calls| 9137206e_3937_7fd5_2948_649e0b33112b
  style 1b280af0_fc5d_c3ea_3f9e_afe795826544 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/lib/streaming/_beta_messages.py lines 270–272

    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/_beta_messages.py.
Where is until_done() defined?
until_done() is defined in src/anthropic/lib/streaming/_beta_messages.py at line 270.
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