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

test_raw_response_create_overload_2() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a416a694_8210_2103_bf67_84e76e6c7543["test_raw_response_create_overload_2()"]
  2636caa4_a35b_502e_80af_e3973f39b3bf["TestMessages"]
  a416a694_8210_2103_bf67_84e76e6c7543 -->|defined in| 2636caa4_a35b_502e_80af_e3973f39b3bf
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a["test_raw_response_create_overload_2()"]
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a -->|calls| a416a694_8210_2103_bf67_84e76e6c7543
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a["test_raw_response_create_overload_2()"]
  a416a694_8210_2103_bf67_84e76e6c7543 -->|calls| 6ae1d4cb_591b_8cd2_9053_988bf245cd8a
  style a416a694_8210_2103_bf67_84e76e6c7543 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/api_resources/test_messages.py lines 246–261

    def test_raw_response_create_overload_2(self, client: Anthropic) -> None:
        response = client.messages.with_raw_response.create(
            max_tokens=1024,
            messages=[
                {
                    "content": "Hello, world",
                    "role": "user",
                }
            ],
            model="claude-opus-4-6",
            stream=True,
        )

        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        stream = response.parse()
        stream.close()

Subdomains

Frequently Asked Questions

What does test_raw_response_create_overload_2() do?
test_raw_response_create_overload_2() is a function in the anthropic-sdk-python codebase, defined in tests/api_resources/test_messages.py.
Where is test_raw_response_create_overload_2() defined?
test_raw_response_create_overload_2() is defined in tests/api_resources/test_messages.py at line 246.
What does test_raw_response_create_overload_2() call?
test_raw_response_create_overload_2() calls 1 function(s): test_raw_response_create_overload_2.
What calls test_raw_response_create_overload_2()?
test_raw_response_create_overload_2() is called by 1 function(s): test_raw_response_create_overload_2.

Analyze Your Own Codebase

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

Try Supermodel Free