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

test_method_create_with_all_params_overload_2() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  802ea0a5_f7d9_afc0_ffe6_35062f1d67b7["test_method_create_with_all_params_overload_2()"]
  8298da58_cf54_f234_c9e6_f284f44aa796["TestAsyncMessages"]
  802ea0a5_f7d9_afc0_ffe6_35062f1d67b7 -->|defined in| 8298da58_cf54_f234_c9e6_f284f44aa796
  4e0af647_df10_4f3a_caa6_e4f24a4c7acc["test_method_create_with_all_params_overload_2()"]
  4e0af647_df10_4f3a_caa6_e4f24a4c7acc -->|calls| 802ea0a5_f7d9_afc0_ffe6_35062f1d67b7
  4e0af647_df10_4f3a_caa6_e4f24a4c7acc["test_method_create_with_all_params_overload_2()"]
  802ea0a5_f7d9_afc0_ffe6_35062f1d67b7 -->|calls| 4e0af647_df10_4f3a_caa6_e4f24a4c7acc
  style 802ea0a5_f7d9_afc0_ffe6_35062f1d67b7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/api_resources/beta/test_messages.py lines 789–916

    async def test_method_create_with_all_params_overload_2(self, async_client: AsyncAnthropic) -> None:
        message_stream = await async_client.beta.messages.create(
            max_tokens=1024,
            messages=[
                {
                    "content": "Hello, world",
                    "role": "user",
                }
            ],
            model="claude-opus-4-6",
            stream=True,
            container={
                "id": "id",
                "skills": [
                    {
                        "skill_id": "x",
                        "type": "anthropic",
                        "version": "x",
                    }
                ],
            },
            context_management={
                "edits": [
                    {
                        "type": "clear_tool_uses_20250919",
                        "clear_at_least": {
                            "type": "input_tokens",
                            "value": 0,
                        },
                        "clear_tool_inputs": True,
                        "exclude_tools": ["string"],
                        "keep": {
                            "type": "tool_uses",
                            "value": 0,
                        },
                        "trigger": {
                            "type": "input_tokens",
                            "value": 1,
                        },
                    }
                ]
            },
            inference_geo="inference_geo",
            mcp_servers=[
                {
                    "name": "name",
                    "type": "url",
                    "url": "url",
                    "authorization_token": "authorization_token",
                    "tool_configuration": {
                        "allowed_tools": ["string"],
                        "enabled": True,
                    },
                }
            ],
            metadata={"user_id": "13803d75-b4b5-4c3e-b2a2-6f21399b021b"},
            output_config={
                "effort": "low",
                "format": {
                    "schema": {"foo": "bar"},
                    "type": "json_schema",
                },
            },
            output_format={
                "schema": {"foo": "bar"},
                "type": "json_schema",
            },
            service_tier="auto",
            speed="standard",
            stop_sequences=["string"],
            system=[
                {
                    "text": "Today's date is 2024-06-01.",
                    "type": "text",
                    "cache_control": {
                        "type": "ephemeral",
                        "ttl": "5m",
                    },
                    "citations": [
                        {
                            "cited_text": "cited_text",

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free