The whole hunk
from line 75, old and new numbered
/
lines
from line 75
7575 -H "anthropic-version: 2023-06-01" \
7676 -H "content-type: application/json" \
7777 -d '{
78 "model": "claude-opus-5",
78 "model": "claude-opus-5-5",
7979 "max_tokens": 4096,
8080 "messages": [
8181 {
from line 92
9292
9393 ```bash CLI
9494 ant messages create <<'YAML'
95 model: claude-opus-5
95 model: claude-opus-5-5
9696 max_tokens: 4096
9797 messages:
9898 - role: user
from line 109
109109 client = anthropic.Anthropic()
110110
111111 response = client.messages.create(
112 model="claude-opus-5",
112 model="claude-opus-5-5",
113113 max_tokens=4096,
114114 messages=[
115115 {
from line 126
126126 const client = new Anthropic();
127127
128128 const response = await client.messages.create({
129 model: "claude-opus-5",
129 model: "claude-opus-5-5",
130130 max_tokens: 4096,
131131 messages: [
132132 {
from line 146
146146
147147 var parameters = new MessageCreateParams
148148 {
149 Model = Model.ClaudeOpus5,
149 Model = Model.ClaudeOpus5_5,
150150 MaxTokens = 4096,
151151 Messages = [new() { Role = Role.User, Content = "Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio." }],
152152 Tools = [new ToolUnion(new WebSearchTool20260318())]
from line 160
160160 client := anthropic.NewClient()
161161
162162 response, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{
163 Model: anthropic.ModelClaudeOpus5,
163 Model: anthropic.ModelClaudeOpus5_5,
164164 MaxTokens: 4096,
165165 Messages: []anthropic.MessageParam{
166166 anthropic.NewUserMessage(anthropic.NewTextBlock("Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio.")),
from line 182
182182 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
183183
184184 MessageCreateParams params = MessageCreateParams.builder()
185 .model(Model.CLAUDE_OPUS_5)
185 .model(Model.CLAUDE_OPUS_5_5)
186186 .maxTokens(4096L)
187187 .addUserMessage("Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio.")
188188 .addTool(WebSearchTool20260318.builder().build())
from line 201
201201 messages: [
202202 ['role' => 'user', 'content' => 'Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio.'],
203203 ],
204 model: 'claude-opus-5',
204 model: 'claude-opus-5-5',
205205 tools: [
206206 [
207207 'type' => 'web_search_20260318',
from line 217
217217 client = Anthropic::Client.new
218218
219219 message = client.messages.create(
220 model: "claude-opus-5",
220 model: "claude-opus-5-5",
221221 max_tokens: 4096,
222222 messages: [
223223 { role: "user", content: "Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio." }
from line 248
248248 -H "anthropic-version: 2023-06-01" \
249249 -H "content-type: application/json" \
250250 -d '{
251 "model": "claude-opus-5",
251 "model": "claude-opus-5-5",
252252 "max_tokens": 1024,
253253 "messages": [
254254 {
from line 266
266266
267267 ```bash CLI
268268 ant messages create \
269 --model claude-opus-5 \
269 --model claude-opus-5-5 \
270270 --max-tokens 1024 \
271271 --message '{role: user, content: What is the weather in NYC?}' \
272272 --tool '{type: web_search_20250305, name: web_search, max_uses: 5}'
from line 276
276276 client = anthropic.Anthropic()
277277
278278 response = client.messages.create(
279 model="claude-opus-5",
279 model="claude-opus-5-5",
280280 max_tokens=1024,
281281 messages=[{"role": "user", "content": "What's the weather in NYC?"}],
282282 tools=[{"type": "web_search_20250305", "name": "web_search", "max_uses": 5}],
from line 288
288288 const client = new Anthropic();
289289
290290 const response = await client.messages.create({
291 model: "claude-opus-5",
291 model: "claude-opus-5-5",
292292 max_tokens: 1024,
293293 messages: [
294294 {
from line 313
313313
314314 var parameters = new MessageCreateParams
315315 {
316 Model = Model.ClaudeOpus5,
316 Model = Model.ClaudeOpus5_5,
317317 MaxTokens = 1024,
318318 Messages = [new() { Role = Role.User, Content = "What's the weather in NYC?" }],
319319 Tools = [new ToolUnion(new WebSearchTool20250305() { MaxUses = 5 })]
from line 327
327327 client := anthropic.NewClient()
328328
329329 response, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{
330 Model: anthropic.ModelClaudeOpus5,
330 Model: anthropic.ModelClaudeOpus5_5,
331331 MaxTokens: 1024,
332332 Messages: []anthropic.MessageParam{
333333 anthropic.NewUserMessage(anthropic.NewTextBlock("What's the weather in NYC?")),
from line 351
351351 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
352352
353353 MessageCreateParams params = MessageCreateParams.builder()
354 .model(Model.CLAUDE_OPUS_5)
354 .model(Model.CLAUDE_OPUS_5_5)
355355 .maxTokens(1024L)
356356 .addUserMessage("What's the weather in NYC?")
357357 .addTool(WebSearchTool20250305.builder()
from line 372
372372 messages: [
373373 ['role' => 'user', 'content' => "What's the weather in NYC?"],
374374 ],
375 model: 'claude-opus-5',
375 model: 'claude-opus-5-5',
376376 tools: [
377377 [
378378 'type' => 'web_search_20250305',
from line 389
389389 client = Anthropic::Client.new
390390
391391 message = client.messages.create(
392 model: "claude-opus-5",
392 model: "claude-opus-5-5",
393393 max_tokens: 1024,
394394 messages: [
395395 { role: "user", content: "What's the weather in NYC?" }