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
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a["test_raw_response_create_overload_2()"]
  e20ec084_064b_c6a0_bacb_3c3c1c22bd7d["TestAsyncMessages"]
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a -->|defined in| e20ec084_064b_c6a0_bacb_3c3c1c22bd7d
  a416a694_8210_2103_bf67_84e76e6c7543["test_raw_response_create_overload_2()"]
  a416a694_8210_2103_bf67_84e76e6c7543 -->|calls| 6ae1d4cb_591b_8cd2_9053_988bf245cd8a
  a416a694_8210_2103_bf67_84e76e6c7543["test_raw_response_create_overload_2()"]
  6ae1d4cb_591b_8cd2_9053_988bf245cd8a -->|calls| a416a694_8210_2103_bf67_84e76e6c7543
  style 6ae1d4cb_591b_8cd2_9053_988bf245cd8a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/api_resources/test_messages.py lines 639–654

    async def test_raw_response_create_overload_2(self, async_client: AsyncAnthropic) -> None:
        response = await async_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()
        await 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 639.
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