Debian Codegraph @

tests/lib/_parse/__inline_snapshot__/test_messages/TestSyncParse/c11eefc7-fff0-4466-8453-42eef73b8876.json

raw
1 [
2 {
3 "request": {
4 "method": "POST",
5 "url": "https://api.anthropic.com/v1/messages",
6 "headers": {
7 "host": "api.anthropic.com",
8 "accept-encoding": "gzip, deflate",
9 "connection": "keep-alive",
10 "x-stainless-timeout": "600",
11 "accept": "application/json",
12 "content-type": "application/json",
13 "user-agent": "Anthropic/Python 0.82.0",
14 "x-stainless-lang": "python",
15 "x-stainless-package-version": "0.82.0",
16 "x-stainless-os": "MacOS",
17 "x-stainless-arch": "arm64",
18 "x-stainless-runtime": "CPython",
19 "x-stainless-runtime-version": "3.9.18",
20 "x-stainless-async": "false",
21 "anthropic-version": "2023-06-01",
22 "x-stainless-helper": "messages.parse",
23 "x-stainless-retry-count": "0",
24 "x-stainless-read-timeout": "600",
25 "content-length": "474"
26 },
27 "body": {
28 "max_tokens": 1024,
29 "messages": [
30 {
31 "role": "user",
32 "content": "Extract: I want to order 2 Green Tea at $5.50 each"
33 }
34 ],
35 "model": "claude-sonnet-4-5",
36 "output_config": {
37 "format": {
38 "schema": {
39 "type": "object",
40 "title": "OrderItem",
41 "properties": {
42 "product_name": {
43 "type": "string",
44 "title": "Product Name"
45 },
46 "price": {
47 "type": "number",
48 "title": "Price"
49 },
50 "quantity": {
51 "type": "integer",
52 "title": "Quantity"
53 }
54 },
55 "additionalProperties": false,
56 "required": [
57 "product_name",
58 "price",
59 "quantity"
60 ]
61 },
62 "type": "json_schema"
63 }
64 }
65 }
66 },
67 "response": {
68 "status_code": 200,
69 "headers": {
70 "content-type": "application/json",
71 "connection": "keep-alive",
72 "x-robots-tag": "none",
73 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
74 "server": "cloudflare",
75 "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
76 "cf-cache-status": "DYNAMIC"
77 },
78 "body": {
79 "model": "claude-sonnet-4-5-20250929",
80 "id": "msg_01Egs18hRzhru3uGon3qesbA",
81 "type": "message",
82 "role": "assistant",
83 "content": [
84 {
85 "type": "text",
86 "text": "{\"product_name\": \"Green Tea\", \"price\": 5.50, \"quantity\": 2}"
87 }
88 ],
89 "stop_reason": "end_turn",
90 "stop_sequence": null,
91 "usage": {
92 "input_tokens": 249,
93 "cache_creation_input_tokens": 0,
94 "cache_read_input_tokens": 0,
95 "cache_creation": {
96 "ephemeral_5m_input_tokens": 0,
97 "ephemeral_1h_input_tokens": 0
98 },
99 "output_tokens": 26,
100 "service_tier": "standard",
101 "inference_geo": "not_available"
102 }
103 }
104 }
105 }
106 ]