BetaStreamingToolRunner Class — anthropic-sdk-python Architecture
Architecture documentation for the BetaStreamingToolRunner class in _beta_runner.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 9011b04b_5924_8fe3_a45f_ff5613213f13["BetaStreamingToolRunner"] 34260b96_4096_ba59_bee2_0b2a94476dcc["_beta_runner.py"] 9011b04b_5924_8fe3_a45f_ff5613213f13 -->|defined in| 34260b96_4096_ba59_bee2_0b2a94476dcc 5458a066_13b4_b825_65a6_467eb0fe9832["_handle_request()"] 9011b04b_5924_8fe3_a45f_ff5613213f13 -->|method| 5458a066_13b4_b825_65a6_467eb0fe9832
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_runner.py lines 358–364
class BetaStreamingToolRunner(BaseSyncToolRunner[BetaMessageStream[ResponseFormatT], ResponseFormatT]):
@override
@contextmanager
def _handle_request(self) -> Iterator[BetaMessageStream[ResponseFormatT]]:
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 BetaStreamingToolRunner class?
BetaStreamingToolRunner is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_runner.py.
Where is BetaStreamingToolRunner defined?
BetaStreamingToolRunner is defined in src/anthropic/lib/tools/_beta_runner.py at line 358.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free