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

_warn_output_format_deprecated() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b3ae1af8_b549_4aef_c8c4_9309fd981a1a["_warn_output_format_deprecated()"]
  16f9761f_052b_9813_1b8d_d40d64684eff["messages.py"]
  b3ae1af8_b549_4aef_c8c4_9309fd981a1a -->|defined in| 16f9761f_052b_9813_1b8d_d40d64684eff
  34d38135_c378_e9a4_ba05_661bc9121152["create()"]
  34d38135_c378_e9a4_ba05_661bc9121152 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  1f77730a_8062_4443_ad97_1696c0294a47["parse()"]
  1f77730a_8062_4443_ad97_1696c0294a47 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  22f51a8f_1741_b57a_a8ad_306e7f9091ae["tool_runner()"]
  22f51a8f_1741_b57a_a8ad_306e7f9091ae -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  11f0e821_29f9_1b06_ca3c_9f9f9b07b9c7["stream()"]
  11f0e821_29f9_1b06_ca3c_9f9f9b07b9c7 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  c307d27a_5711_a0a0_93ca_406e62eb1e1d["count_tokens()"]
  c307d27a_5711_a0a0_93ca_406e62eb1e1d -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  4f341f73_cc7e_3e56_290e_28f6534e2a72["create()"]
  4f341f73_cc7e_3e56_290e_28f6534e2a72 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  875f19aa_d89c_b439_dca0_bf289f16dce2["parse()"]
  875f19aa_d89c_b439_dca0_bf289f16dce2 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  451c7d68_d5dc_be88_3b0d_c8e239fe9aae["tool_runner()"]
  451c7d68_d5dc_be88_3b0d_c8e239fe9aae -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  e626c920_4ef0_f218_ed25_ad7210b4668b["stream()"]
  e626c920_4ef0_f218_ed25_ad7210b4668b -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  03c0ff6f_1277_a16b_a3c8_419f98e2dec3["count_tokens()"]
  03c0ff6f_1277_a16b_a3c8_419f98e2dec3 -->|calls| b3ae1af8_b549_4aef_c8c4_9309fd981a1a
  style b3ae1af8_b549_4aef_c8c4_9309fd981a1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/resources/beta/messages/messages.py lines 3738–3745

def _warn_output_format_deprecated(output_format: object) -> None:
    """Emit deprecation warning if output_format is provided."""
    if is_given(output_format) and output_format is not None:
        warnings.warn(
            "The 'output_format' parameter is deprecated. Please use 'output_config.format' instead.",
            DeprecationWarning,
            stacklevel=4,
        )

Subdomains

Frequently Asked Questions

What does _warn_output_format_deprecated() do?
_warn_output_format_deprecated() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/resources/beta/messages/messages.py.
Where is _warn_output_format_deprecated() defined?
_warn_output_format_deprecated() is defined in src/anthropic/resources/beta/messages/messages.py at line 3738.
What calls _warn_output_format_deprecated()?
_warn_output_format_deprecated() is called by 10 function(s): count_tokens, count_tokens, create, create, parse, parse, stream, stream, and 2 more.

Analyze Your Own Codebase

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

Try Supermodel Free