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

_prepare_options() — anthropic-sdk-python Function Reference

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

Function python AnthropicClient SyncAPI calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  4aaf191e_6810_17fb_b7df_2b112a04a128["_prepare_options()"]
  4b46ed95_ff71_ea5d_7534_6929dc929bdb["SyncAPIClient"]
  4aaf191e_6810_17fb_b7df_2b112a04a128 -->|defined in| 4b46ed95_ff71_ea5d_7534_6929dc929bdb
  2cb1e2bf_1a02_d5ea_42a9_c0def162363a["request()"]
  2cb1e2bf_1a02_d5ea_42a9_c0def162363a -->|calls| 4aaf191e_6810_17fb_b7df_2b112a04a128
  5bb40160_f1b8_a3f3_32ba_9dbf41afa634["_prepare_options()"]
  5bb40160_f1b8_a3f3_32ba_9dbf41afa634 -->|calls| 4aaf191e_6810_17fb_b7df_2b112a04a128
  5bb40160_f1b8_a3f3_32ba_9dbf41afa634["_prepare_options()"]
  4aaf191e_6810_17fb_b7df_2b112a04a128 -->|calls| 5bb40160_f1b8_a3f3_32ba_9dbf41afa634
  style 4aaf191e_6810_17fb_b7df_2b112a04a128 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_base_client.py lines 984–989

    def _prepare_options(
        self,
        options: FinalRequestOptions,  # noqa: ARG002
    ) -> FinalRequestOptions:
        """Hook for mutating the given options"""
        return options

Subdomains

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 984.
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