Home / Class/ Options Class — anthropic-sdk-python Architecture

Options Class — anthropic-sdk-python Architecture

Architecture documentation for the Options class in _qs.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  23a218f8_fa7a_6522_7a83_411669c1a9f3["Options"]
  f30eca5a_2fa0_68c1_64aa_b52331a2dcc8["NotGiven"]
  23a218f8_fa7a_6522_7a83_411669c1a9f3 -->|extends| f30eca5a_2fa0_68c1_64aa_b52331a2dcc8
  738dc346_a11e_4dc7_f7df_dced9f1a2476["_qs.py"]
  23a218f8_fa7a_6522_7a83_411669c1a9f3 -->|defined in| 738dc346_a11e_4dc7_f7df_dced9f1a2476
  d6207d52_0867_cd6d_b184_ddd36bee3e63["__init__()"]
  23a218f8_fa7a_6522_7a83_411669c1a9f3 -->|method| d6207d52_0867_cd6d_b184_ddd36bee3e63

Relationship Graph

Source Code

src/anthropic/_qs.py lines 138–150

class Options:
    array_format: ArrayFormat
    nested_format: NestedFormat

    def __init__(
        self,
        qs: Querystring = _qs,
        *,
        array_format: ArrayFormat | NotGiven = not_given,
        nested_format: NestedFormat | NotGiven = not_given,
    ) -> None:
        self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format
        self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format

Extends

Frequently Asked Questions

What is the Options class?
Options is a class in the anthropic-sdk-python codebase, defined in src/anthropic/_qs.py.
Where is Options defined?
Options is defined in src/anthropic/_qs.py at line 138.
What does Options extend?
Options extends NotGiven.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free