__init__() — anthropic-sdk-python Function Reference
Architecture documentation for the __init__() function in _beta_runner.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD dd434c66_6da1_43c9_3951_9997ee2b51e1["__init__()"] 9149fa46_e498_7ba3_1b94_e0095e473ff9["BaseSyncToolRunner"] dd434c66_6da1_43c9_3951_9997ee2b51e1 -->|defined in| 9149fa46_e498_7ba3_1b94_e0095e473ff9 style dd434c66_6da1_43c9_3951_9997ee2b51e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_runner.py lines 121–143
def __init__(
self,
*,
params: ParseMessageCreateParamsBase[ResponseFormatT],
options: RequestOptions,
tools: Iterable[BetaRunnableTool],
client: Anthropic,
max_iterations: int | None = None,
compaction_control: CompactionControl | None = None,
) -> None:
super().__init__(
params=params,
options=options,
tools=tools,
max_iterations=max_iterations,
compaction_control=compaction_control,
)
self._client = client
self._iterator = self.__run__()
self._last_message: (
Callable[[], ParsedBetaMessage[ResponseFormatT]] | ParsedBetaMessage[ResponseFormatT] | None
) = None
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does __init__() do?
__init__() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_runner.py.
Where is __init__() defined?
__init__() is defined in src/anthropic/lib/tools/_beta_runner.py at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free