block() — anthropic-sdk-python Function Reference
Architecture documentation for the block() function in thinking.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 2210291c_ca44_874e_e500_cac8c09166a3["block()"] 554be118_ca4b_036c_b79f_e5cd37710335["thinking.py"] 2210291c_ca44_874e_e500_cac8c09166a3 -->|defined in| 554be118_ca4b_036c_b79f_e5cd37710335 style 2210291c_ca44_874e_e500_cac8c09166a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
examples/thinking.py lines 13–16
if block.type == "thinking":
print(f"Thinking: {block.thinking}")
elif block.type == "text":
print(f"Text: {block.text}")
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does block() do?
block() is a function in the anthropic-sdk-python codebase, defined in examples/thinking.py.
Where is block() defined?
block() is defined in examples/thinking.py at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free