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

is_given() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  134c332e_654b_985e_839c_e13698f1b9e7["is_given()"]
  875202ec_3744_577d_9ec4_ed9fbc6aaf41["_utils.py"]
  134c332e_654b_985e_839c_e13698f1b9e7 -->|defined in| 875202ec_3744_577d_9ec4_ed9fbc6aaf41
  73674319_0076_f928_202c_b195fd052f6b["_transform_typeddict()"]
  73674319_0076_f928_202c_b195fd052f6b -->|calls| 134c332e_654b_985e_839c_e13698f1b9e7
  15bcb228_a48d_a6a6_e8ae_a9233b3a1bae["_async_transform_typeddict()"]
  15bcb228_a48d_a6a6_e8ae_a9233b3a1bae -->|calls| 134c332e_654b_985e_839c_e13698f1b9e7
  3cc9768b_7fb8_a4f4_5e9d_bdc7bcb1b1a4["_extract_items()"]
  3cc9768b_7fb8_a4f4_5e9d_bdc7bcb1b1a4 -->|calls| 134c332e_654b_985e_839c_e13698f1b9e7
  style 134c332e_654b_985e_839c_e13698f1b9e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_utils/_utils.py lines 129–130

def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
    return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)

Subdomains

Frequently Asked Questions

What does is_given() do?
is_given() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_utils.py.
Where is is_given() defined?
is_given() is defined in src/anthropic/_utils/_utils.py at line 129.
What calls is_given()?
is_given() is called by 3 function(s): _async_transform_typeddict, _extract_items, _transform_typeddict.

Analyze Your Own Codebase

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

Try Supermodel Free