Debian Codegraph @

tests/lib/_parse/__inline_snapshot__/test_messages/TestSyncParse/bd7029d5-d8d4-4e06-be3a-2ac9c60803a6.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": "749"
26 },
27 "body": {
28 "max_tokens": 1024,
29 "messages": [
30 {
31 "role": "user",
32 "content": "Extract order: 2 Green Tea at $5.50 and 1 Coffee at $3.00. Total $14."
33 }
34 ],
35 "model": "claude-sonnet-4-5",
36 "output_config": {
37 "format": {
38 "schema": {
39 "$defs": {
40 "OrderItem": {
41 "type": "object",
42 "title": "OrderItem",
43 "properties": {
44 "product_name": {
45 "type": "string",
46 "title": "Product Name"
47 },
48 "price": {
49 "type": "number",
50 "title": "Price"
51 },
52 "quantity": {
53 "type": "integer",
54 "title": "Quantity"
55 }
56 },
57 "additionalProperties": false,
58 "required": [
59 "product_name",
60 "price",
61 "quantity"
62 ]
63 }
64 },
65 "type": "object",
66 "title": "OrderDetails",
67 "properties": {
68 "items": {
69 "type": "array",
70 "title": "Items",
71 "items": {
72 "$ref": "#/$defs/OrderItem"
73 }
74 },
75 "total": {
76 "type": "number",
77 "title": "Total"
78 }
79 },
80 "additionalProperties": false,
81 "required": [
82 "items",
83 "total"
84 ]
85 },
86 "type": "json_schema"
87 }
88 }
89 }
90 },
91 "response": {
92 "status_code": 200,
93 "headers": {
94 "content-type": "application/json",
95 "connection": "keep-alive",
96 "x-robots-tag": "none",
97 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
98 "server": "cloudflare",
99 "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
100 "cf-cache-status": "DYNAMIC"
101 },
102 "body": {
103 "model": "claude-sonnet-4-5-20250929",
104 "id": "msg_01T4jd6NyD9xGGtTPDC4ogy5",
105 "type": "message",
106 "role": "assistant",
107 "content": [
108 {
109 "type": "text",
110 "text": "{\"items\":[{\"product_name\":\"Green Tea\",\"price\":5.50,\"quantity\":2},{\"product_name\":\"Coffee\",\"price\":3.00,\"quantity\":1}],\"total\":14.0}"
111 }
112 ],
113 "stop_reason": "end_turn",
114 "stop_sequence": null,
115 "usage": {
116 "input_tokens": 406,
117 "cache_creation_input_tokens": 0,
118 "cache_read_input_tokens": 0,
119 "cache_creation": {
120 "ephemeral_5m_input_tokens": 0,
121 "ephemeral_1h_input_tokens": 0
122 },
123 "output_tokens": 50,
124 "service_tier": "standard",
125 "inference_geo": "not_available"
126 }
127 }
128 }
129 }
130 ]