[
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "When asked to write code, call the set_code tool with the code. Write at least 10 lines."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Write a TypeScript function that implements bubble sort. Use the set_code tool."
						}
					]
				}
			],
			"tools": [
				{
					"name": "set_code",
					"description": "Set code in the editor",
					"input_schema": {
						"type": "object",
						"properties": {
							"code": {
								"type": "string",
								"description": "The complete source code"
							}
						},
						"required": ["code"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					},
					"eager_input_streaming": true
				}
			],
			"tool_choice": {
				"type": "auto"
			},
			"stream": true
		},
		"status": 200,
		"response": [
			"1f8b0800000000000013cd57db6ee336107dcf574cf9948b1c5b5e3bd8959ba217b468b3db5b92bed43284b134b6e950a496a4b2c906faf782946ccb8ed35d14685d3d18d6dc38e7cc90d4d03d491b414ec6e09c126351dba30c2d46f0c4ec63412c625b4a16acde59f4c472959160114b0596197516c8efcacea033ecf47bfd61d8eb852c603c7331cc3ce985577a965de1f5c5f59b8b77536eaf3ecedf5ecb6b16ecacc402a695700234861b8bd22d9b2a69495a168d27013356158926344ab2489642342243ef4b92296d0933b2c88559c9ca55f65c16a54dacba23695874f16a10b014d30525a926b45cc964dba2b7d26bc2ec25ddcad72d40c58272d2289261fedc7ea30d17bbda2a60aab46dd1b01f3043fa9ea794584e9a45cc3193a1ce1cc97246da014fe6a458c4a4b209de23173815c4aa0ada4f75744475dd1b4e93a950e9ddfeeaef31f1eb65f450a36eeb1de8c6cf2a2592d2d0aa03dc7b99f4c2dbf0f7f73fa6f3b799cc978369ff8f3f5f5fff72f7330b98c4dcf919b249aa32efe73861d153e5b815c2615e87cfb8a6d4ee226b632bb89cef8001e684ec25fc19098b7f8fdf9b6ce1af259bc4ea422e8d926be302b5e528bc90458c559facc47f94c953cc1cd5318b2066dd2e7c5b4ea782e046690b3c2f04e524adef66e0126e1f0bba49352f6c1ccb3896ddd3d33896700abf919e299d1b98d6fec6f92b092801b5c6475033561d1a2bc8329f923675ca5f17a83177e941076e17d4246a154cebfc296b0c35d9524be38d6a456debd5dd3896b352a69ea21abd23ef18b58e9a05c79393cd5f78726e8e0063d9cbad7b2082e0d2413b1724e77631f299fa9f6e176e35de93360476a155395f000ad17046759b786261a6341c0bb2c0e1127a23e0f02548e84038027e7676d2e0f7217f10387784abc2f29c7fa408f80ca402f3010b032a4d4bdd5074606282062837adce000007d3255b50069730436168d4a83628dfa17164ac4802d40428dc05f2e8f6542130a5c67acdddb2e66ed970c76bfe966dfe7cecef545ef878d912539276bb14eee13370bd38feff1c39cb097ce5f81c2fe10cc2491b91c774f3010b97b65d10a4a5d62d58ae007377bb9206bb40e96d243dd85684b10f3d095a4b4ce0b211fbd74635998c5a6eeb32d6441d7a275a5dd226bdaaf9573d6bae9f76378ca62cf0b4ac3b76d56b5b9debdae28b0673bb02534d7837da5aaeda1c03f549b86ea54393845abb54abe632eac2f70fe8ee2cf0df778032034bc6428a86dc8ef087ae177de3c9b984f1c52080578300fac300c27e00fd7e006118c09b9eef0ee7a1049d0b353f8ee398fdaaf99c4b6c0ebec88982ad53fcd094acc19dec4bffa6757bd5c9b7afacf1f9f9f9da7f72e223ac5943a9ec82f4ade3f312c6438ffae0c7723f80d701b87aed2d571cc7b1dc57b3369c7fc8542b42c395a3e4c08cc4acfaac767443d1a73ef355d14a666fccd558b817dc9692b5c06c0d6eed21e133c7b7eadf9bdf7606aec130dc4fe6661e7e4e635bc79ccf5fb942f5a6610f0000"
		],
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "10000000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:44Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:44Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:44Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "12000000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:44Z",
			"cache-control": "no-cache",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f8736c5a5d3b-VIE",
			"connection": "keep-alive",
			"content-encoding": "gzip",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "text/event-stream; charset=utf-8",
			"date": "Fri, 03 Jul 2026 09:47:45 GMT",
			"request-id": "req_011CceuuDtFYJ5G1xs34udeA",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-fd546386578487c636970ba9700ef2d8-aa0df9a4d758b3a4-01",
			"transfer-encoding": "chunked",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	},
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-haiku-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "When asked to write code, call the set_code tool with the code. Write at least 10 lines."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Write a TypeScript function that implements bubble sort. Use the set_code tool."
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "tool_use",
							"id": "toolu_01T1QqHcgKdnmj4b2UZ8RNkM",
							"name": "set_code",
							"input": {
								"code": "// Bubble Sort implementation in TypeScript\n\n/**\n * Performs bubble sort on an array of numbers\n * @param arr - The array to be sorted\n * @returns The sorted array\n */\nfunction bubbleSort(arr: number[]): number[] {\n  const n = arr.length;\n  \n  // Traverse through all array elements\n  for (let i = 0; i < n - 1; i++) {\n    // Flag to optimize: if no swaps occur, array is sorted\n    let swapped = false;\n    \n    // Last i elements are already in place\n    for (let j = 0; j < n - i - 1; j++) {\n      // Compare adjacent elements\n      if (arr[j] > arr[j + 1]) {\n        // Swap if the current element is greater than the next\n        [arr[j], arr[j + 1]] = [arr[j + 1], arr[j]];\n        swapped = true;\n      }\n    }\n    \n    // If no swaps occurred, the array is already sorted\n    if (!swapped) {\n      break;\n    }\n  }\n  \n  return arr;\n}\n\n// Example usage and test cases\nconst testArray = [64, 34, 25, 12, 22, 11, 90];\nconsole.log(\"Original array:\", testArray);\nconsole.log(\"Sorted array:\", bubbleSort([...testArray]));\n\nconst anotherTest = [5, 2, 8, 1, 9];\nconsole.log(\"\\nOriginal array:\", anotherTest);\nconsole.log(\"Sorted array:\", bubbleSort([...anotherTest]));\n"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01T1QqHcgKdnmj4b2UZ8RNkM",
							"content": "{\"ok\":true,\"length\":1169}"
						}
					]
				}
			],
			"tools": [
				{
					"name": "set_code",
					"description": "Set code in the editor",
					"input_schema": {
						"type": "object",
						"properties": {
							"code": {
								"type": "string",
								"description": "The complete source code"
							}
						},
						"required": ["code"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					},
					"eager_input_streaming": true
				}
			],
			"tool_choice": {
				"type": "auto"
			},
			"stream": true
		},
		"status": 200,
		"response": [
			"1f8b0800000000000013c556cd7223450cbee729445f9275d95b763659606e5b042ac0d6ee2181a2c0d4449e96673ae9e91ed49ad866cb2fc523f06454cf8f93c93a2c9735b9b822a9d5fa3e49df34dd9393044a0a01734a8320cb9146c1043e28d954a4123570aa71ffbf4a3ea8d26bb22a5199c55ad3a44073574fce26e793d3e9e9f96c3a9da9b1323ae608793a9dbd39fbd5bc32b7cb77ebfb9f317cf5cbe5ed9b2f39c60c6f5263c5de4603866082a08bd766de093951c96fbf8f55105fa54c18bc5389abaded4c81fea8c96534306a123436f4b6baafdeb8aa9654fc1db9a092d96cfa7aac32cc0a4a332614e35d3a0c99f67e26d4cff9fab3f106aa0a2a89d1a6e7e5c7f10fde59f1d4bb1d2b5fcba0beb10ac4f726a3540cb14a54644623eb48b25b1247e0694e5e25ca7949f11e8dc58525b5dd42fbb73d3aa2b6e31d9be9c2faec6e7fdff7843437695ab7701ffb23daee9cd03a06363f8952fddd1f955019973fb9135434aae7cad46405ffbdcc266450666b1996b70beb8afc5e6d0f7ee7f13dc18a8d083940b8de547495b1a9044c59592ac9493346e097b0a8170b4b103ccb1770494cc70156050a484190794d605c666b4d2199bbb91b8d7ea40d7c472835534846a3b99bbd84d1e8a6ebc5c1a1b6f55f7996931737b0ac5d16918d4630816bbca300e800997113c1baba5c10479b0626a9d905c0063be9366aee4e239cf79598d2fcd9b2b4b49837097f0a311fdc3c99bb83630e2bac2ad237b0f0de123a100f9a843201b36c1ad7223601d0463dd97418c780d6fa95713910b2dd801097c63530e7ee5544fe8d2564b03e375983f91d0521ad3eb5e59f0d2b58efab00992f2b6402d4b7989113a0768edb5e464222ee32e277449af4dc9d453871f621e09264f3d0c28785380edd4c748cc542009df3d271721e935cf8acde2d4d93e687ab969183d371e1b3c845d950b0ae2c1a17bb197bdecffe7180aae6ca076ab8a990b124210e73f73aa2f9768d5105a0f95635682ea8f42e08a35018a48295910264e5412808641828b42a70e9576004569eefa20a3cafc407e265ee26705d10f85a889b9901ae5d44c3bece8b474b61c9e552f4f1c6b93ebe1bb1008459f13068151ade0d59d84d9914b439e698a0c9bd62ef72f0ac89e76ed2d371f86d798b9c133f6cc7bc1348a8abb98a3a21051986cc3347b9a87c30b1d1a1e7036deed9485146f1f0ad0a928e07e373a7538d81c82c28f325855e4517b4f44c9180c383476ba1c2d0a83453d3504b427162233631656f5c1b69e4f1fd89fbfbaf17bb267aeea67c0c8b5aa277e75bf40b0027434ded686837a5a0ff7d13faae3d7cbb5ebc6c8a7afe81e6ab4fbdcf7cf5a88e7de0fa87fc5e5803a77a0463f0d456e4741abfc9ea3f3fb8b79ff1c5fde4897c7af6f5760fde7de43df6a978e61f5ee324ed0a0d0000"
		],
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "10000000",
			"anthropic-ratelimit-input-tokens-remaining": "9999000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-03T09:47:51Z",
			"anthropic-ratelimit-output-tokens-limit": "2000000",
			"anthropic-ratelimit-output-tokens-remaining": "2000000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-03T09:47:51Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-03T09:47:51Z",
			"anthropic-ratelimit-tokens-limit": "12000000",
			"anthropic-ratelimit-tokens-remaining": "11999000",
			"anthropic-ratelimit-tokens-reset": "2026-07-03T09:47:51Z",
			"cache-control": "no-cache",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a154f89c08995d3b-VIE",
			"connection": "keep-alive",
			"content-encoding": "gzip",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "text/event-stream; charset=utf-8",
			"date": "Fri, 03 Jul 2026 09:47:51 GMT",
			"request-id": "req_011CceuuheMhL8LefpTWy4H5",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-627ed2d3aeeec4fe798014ff8c5c3be9-8e31081407760db1-01",
			"transfer-encoding": "chunked",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	}
]
