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 23b7c873_c1c4_b706_8f42_9b124837ff95["test_method_create_with_all_params_overload_2()"] e20ec084_064b_c6a0_bacb_3c3c1c22bd7d["TestAsyncMessages"] 23b7c873_c1c4_b706_8f42_9b124837ff95 -->|defined in| e20ec084_064b_c6a0_bacb_3c3c1c22bd7d 19ab12ae_622e_cd5f_5f21_585257ed0cd8["test_method_create_with_all_params_overload_2()"] 19ab12ae_622e_cd5f_5f21_585257ed0cd8 -->|calls| 23b7c873_c1c4_b706_8f42_9b124837ff95 19ab12ae_622e_cd5f_5f21_585257ed0cd8["test_method_create_with_all_params_overload_2()"] 23b7c873_c1c4_b706_8f42_9b124837ff95 -->|calls| 19ab12ae_622e_cd5f_5f21_585257ed0cd8 style 23b7c873_c1c4_b706_8f42_9b124837ff95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/api_resources/test_messages.py lines 562–636
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncAnthropic) -> None:
message_stream = await async_client.messages.create(
max_tokens=1024,
messages=[
{
"content": "Hello, world",
"role": "user",
}
],
model="claude-opus-4-6",
stream=True,
inference_geo="inference_geo",
metadata={"user_id": "13803d75-b4b5-4c3e-b2a2-6f21399b021b"},
output_config={
"effort": "low",
"format": {
"schema": {"foo": "bar"},
"type": "json_schema",
},
},
service_tier="auto",
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",
"document_index": 0,
"document_title": "x",
"end_char_index": 0,
"start_char_index": 0,
"type": "char_location",
}
],
}
],
temperature=1,
thinking={
"type": "adaptive",
},
tool_choice={
"type": "auto",
"disable_parallel_tool_use": True,
},
tools=[
{
"input_schema": {
"type": "object",
"properties": {
"location": "bar",
"unit": "bar",
},
"required": ["location"],
},
"name": "name",
"cache_control": {
"type": "ephemeral",
"ttl": "5m",
},
"description": "Get the current weather in a given location",
"eager_input_streaming": True,
"strict": True,
"type": "custom",
}
],
top_k=5,
top_p=0.7,
)
await message_stream.response.aclose()
Domain
Subdomains
Defined In
Source
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/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/test_messages.py at line 562.
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