thinking.py — anthropic-sdk-python Source File
Architecture documentation for thinking.py, a python file in the anthropic-sdk-python codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 554be118_ca4b_036c_b79f_e5cd37710335["thinking.py"] d10c5377_2939_0f0b_cc44_8759393f2853["anthropic"] 554be118_ca4b_036c_b79f_e5cd37710335 --> d10c5377_2939_0f0b_cc44_8759393f2853 style 554be118_ca4b_036c_b79f_e5cd37710335 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-sonnet-4-5-20250929",
max_tokens=3200,
thinking={"type": "enabled", "budget_tokens": 1600},
messages=[{"role": "user", "content": "Create a haiku about Anthropic."}],
)
for block in response.content:
if block.type == "thinking":
print(f"Thinking: {block.thinking}")
elif block.type == "text":
print(f"Text: {block.text}")
Domain
Subdomains
Functions
Dependencies
- anthropic
Source
Frequently Asked Questions
What does thinking.py do?
thinking.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain, SyncAPI subdomain.
What functions are defined in thinking.py?
thinking.py defines 1 function(s): block.
What does thinking.py depend on?
thinking.py imports 1 module(s): anthropic.
Where is thinking.py in the architecture?
thinking.py is located at examples/thinking.py (domain: AnthropicClient, subdomain: SyncAPI, directory: examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free