BetaAsyncStreamingToolRunner Class — anthropic-sdk-python Architecture
Architecture documentation for the BetaAsyncStreamingToolRunner class in _beta_runner.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 1aa84ec7_54ce_08b4_621c_34250f960973["BetaAsyncStreamingToolRunner"] 34260b96_4096_ba59_bee2_0b2a94476dcc["_beta_runner.py"] 1aa84ec7_54ce_08b4_621c_34250f960973 -->|defined in| 34260b96_4096_ba59_bee2_0b2a94476dcc 712d331d_ba35_e8d6_7cf7_eeb56a57420d["_handle_request()"] 1aa84ec7_54ce_08b4_621c_34250f960973 -->|method| 712d331d_ba35_e8d6_7cf7_eeb56a57420d
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_runner.py lines 610–616
class BetaAsyncStreamingToolRunner(BaseAsyncToolRunner[BetaAsyncMessageStream[ResponseFormatT], ResponseFormatT]):
@override
@asynccontextmanager
async def _handle_request(self) -> AsyncIterator[BetaAsyncMessageStream[ResponseFormatT]]:
async with self._client.beta.messages.stream(**self._params, **self._options) as stream:
self._last_message = stream.get_final_message
yield stream
Domain
Defined In
Source
Frequently Asked Questions
What is the BetaAsyncStreamingToolRunner class?
BetaAsyncStreamingToolRunner is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_runner.py.
Where is BetaAsyncStreamingToolRunner defined?
BetaAsyncStreamingToolRunner is defined in src/anthropic/lib/tools/_beta_runner.py at line 610.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free