Skip to main content
Demonstrates regular, built-in, and DeepSeek-backed reasoning for 9.11 vs 9.9.
Anthropic retired claude-3-5-sonnet-20241022 on October 28, 2025. Replace it with claude-sonnet-4-6 before running. See Claude model deprecations.
is_9_11_bigger_than_9_9.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Update the Claude model

Replace claude-3-5-sonnet-20241022 with claude-sonnet-4-6 in the saved file.
5

Run the example

Save the code above as is_9_11_bigger_than_9_9.py, then run:
Full source: cookbook/10_reasoning/agents/is_9_11_bigger_than_9_9.py