Claude モデル入門
Nikhil Rangarajan
Data Scientist
thinkingパラメーターで有効化
$$

![]()
user_prompt = "Think through this business decision:
Should we launch our new product in Q1 or Q2?"
response = client.messages.create(
model="claude-2",
messages=[{"role": "user",
"content": user_prompt}],
thinking={"type": "enabled",
"budget_tokens": 1024},
max_tokens=1300)
thinking パラメータで段階的推論を有効化budget_tokens は最小 1024、max_tokens はそれ以上"""
Based on the above analysis, I recommend
a phased global expansion strategy.
Start by launching in one or two
high-potential markets first (perhaps
as pilot programs in Q1). Learn and
adapt from those initial launches, then
gradually expand to additional regions
over the year once strategies are
refined. This approach balances rapid
growth with risk management, allowing
adjustments for cultural fit and ...
"""
2 つに分けて応答:
最終回答は内部の思考ロジックに基づく
Claude モデル入門