_prepare_options() — anthropic-sdk-python Function Reference
Architecture documentation for the _prepare_options() function in _base_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 5bb40160_f1b8_a3f3_32ba_9dbf41afa634["_prepare_options()"] 3224f719_8046_78c8_59e1_47301a46ddd4["AsyncAPIClient"] 5bb40160_f1b8_a3f3_32ba_9dbf41afa634 -->|defined in| 3224f719_8046_78c8_59e1_47301a46ddd4 4aaf191e_6810_17fb_b7df_2b112a04a128["_prepare_options()"] 4aaf191e_6810_17fb_b7df_2b112a04a128 -->|calls| 5bb40160_f1b8_a3f3_32ba_9dbf41afa634 c21c2971_d83f_0afc_9811_0642b34cfcd3["request()"] c21c2971_d83f_0afc_9811_0642b34cfcd3 -->|calls| 5bb40160_f1b8_a3f3_32ba_9dbf41afa634 4aaf191e_6810_17fb_b7df_2b112a04a128["_prepare_options()"] 5bb40160_f1b8_a3f3_32ba_9dbf41afa634 -->|calls| 4aaf191e_6810_17fb_b7df_2b112a04a128 style 5bb40160_f1b8_a3f3_32ba_9dbf41afa634 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_base_client.py lines 1619–1624
async def _prepare_options(
self,
options: FinalRequestOptions, # noqa: ARG002
) -> FinalRequestOptions:
"""Hook for mutating the given options"""
return options
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does _prepare_options() do?
_prepare_options() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_base_client.py.
Where is _prepare_options() defined?
_prepare_options() is defined in src/anthropic/_base_client.py at line 1619.
What does _prepare_options() call?
_prepare_options() calls 1 function(s): _prepare_options.
What calls _prepare_options()?
_prepare_options() is called by 2 function(s): _prepare_options, request.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free