[
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-sonnet-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "<built_in_rules>\n- delegate_subagent runs a focused child agent in a fresh, isolated context and returns only its final answer. Always set subAgentId. Use subAgentId: \"inline\" to run a one-off inline child that inherits your local and deferred tools after safety filtering. Inline children do not inherit provider-defined tools. The child cannot see this conversation or your memory, so everything it needs must be in the call.\nUse a configured subagent ID only when one is listed and its name and useWhen guidance fit the subtask better than a generic inline child.\nDELEGATION PARALLELISM:\n- Up to 1 child sub-agent run can execute at the same time.\n- This limits parallelism, not the total number of delegated tasks.\n- If more independent workstreams are useful, you may issue more delegate_subagent calls; the runtime will run them in batches.\nWHEN TO USE delegate_subagent:\n- The request decomposes into 2+ independent workstreams that can be handled separately.\n- A workstream needs substantial research, review, comparison, or analysis.\n- Doing the work inline would flood your context with intermediate findings.\n- A fresh isolated perspective would materially improve a bounded subtask.\nWHEN NOT TO USE delegate_subagent:\n- Single-step mechanical work: do it directly.\n- Trivial tasks or one/two tool calls: do them yourself.\n- Tasks that need user interaction or hidden conversation context.\n- Your core synthesis, final judgment, or recommendation.\n- The entire user request as one delegated task; that is pass-through with no value added.\nHOW TO DELEGATE:\n- Delegate bounded workstreams, not the final answer.\n- Pass all required context, constraints, language/tone, and expected output.\n- Set difficulty (low, medium, or high) when you can estimate task complexity; omit it to keep the default inline model.\n- If multiple independent workstreams exist, delegate them separately.\n- Inline children inherit your local and deferred tools after safety filtering. Inline children do not inherit provider-defined tools.\n- Inspect results and synthesize the final response yourself.\n- Verify side-effect claims before presenting them as done.\n</built_in_rules>\n\nYou are a parent test agent. This is a delegation wiring test: you must call delegate_subagent exactly once before answering. Treat the child task as a bounded independent workstream that only the child should complete. Set subAgentId to \"inline\" in that tool call. The child result will contain a sentinel token. After the tool returns, answer with PARENT_SAW and include the sentinel token from the child result. Do not add unrelated text."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Complete this two-part verification task. Delegate the token-production workstream to a child agent, and make the delegated goal instruct the child to answer with exactly this token and nothing else: SUBAGENT_OK_731. Then synthesize only from the child result."
						}
					]
				}
			],
			"tools": [
				{
					"name": "delegate_subagent",
					"description": "Delegate a bounded, self-contained subtask to a focused child agent that runs in an isolated context and returns only a concise final result. Use it for reasoning-heavy subtasks, context-flooding investigations, or independent workstreams inside a larger deliverable. Do not use it for trivial work, single tool calls, mechanical steps, tasks that need hidden conversation context, or pass-through delegation of the entire user request.",
					"input_schema": {
						"type": "object",
						"properties": {
							"subAgentId": {
								"type": "string",
								"minLength": 1,
								"description": "Required. Use \"inline\" for a one-off inline sub-agent. Use an exact configured sub-agent ID only when one is listed and fits the task."
							},
							"taskName": {
								"type": "string",
								"minLength": 1,
								"description": "Short human-readable name for this delegated task, e.g. \"research_api\"."
							},
							"goal": {
								"type": "string",
								"minLength": 1,
								"description": "The concrete goal the sub-agent should accomplish."
							},
							"context": {
								"type": "string",
								"description": "All details the child needs, since it sees nothing else: constraints, paths, data, prior decisions, acceptance criteria, and what you have already tried or ruled out."
							},
							"expectedOutput": {
								"type": "string",
								"description": "The expected shape or contents of the answer."
							},
							"difficulty": {
								"type": "string",
								"enum": ["low", "medium", "high"],
								"description": "Optional difficulty estimate for this delegated task. Use low for simple bounded work, medium for moderate analysis or implementation, and high for complex research, architecture, or multi-step reasoning."
							}
						},
						"required": ["subAgentId", "taskName", "goal"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-sonnet-4-5-20250929\",\"id\":\"msg_011CdY77GjDU1mocMqHQcv6A\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"I'll delegate the token-production workstream to a child agent now.\"},{\"type\":\"tool_use\",\"id\":\"toolu_01CZUTUiAvbDqYgaeAgFHVtb\",\"name\":\"delegate_subagent\",\"input\":{\"subAgentId\":\"inline\",\"taskName\":\"token_production\",\"goal\":\"Answer with exactly this token and nothing else: SUBAGENT_OK_731\",\"expectedOutput\":\"The exact token SUBAGENT_OK_731 with no additional text\",\"difficulty\":\"low\"},\"caller\":{\"type\":\"direct\"}}],\"stop_reason\":\"tool_use\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":1610,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":177,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "22500000",
			"anthropic-ratelimit-input-tokens-remaining": "22499000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-30T10:45:01Z",
			"anthropic-ratelimit-output-tokens-limit": "4500000",
			"anthropic-ratelimit-output-tokens-remaining": "4500000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-30T10:45:03Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-30T10:45:01Z",
			"anthropic-ratelimit-tokens-limit": "27000000",
			"anthropic-ratelimit-tokens-remaining": "26999000",
			"anthropic-ratelimit-tokens-reset": "2026-07-30T10:45:01Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a233c5791b1aaf0a-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Thu, 30 Jul 2026 10:45:03 GMT",
			"request-id": "req_011CdY77G23pvwo6b3ZSbkve",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-c432b82753f197b27b2e2df694473680-77db5dd7760377be-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	},
	{
		"scope": "https://api.anthropic.com:443",
		"method": "POST",
		"path": "/v1/messages",
		"body": {
			"model": "claude-sonnet-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "You are a focused subagent working on a specific delegated task. Complete the delegated task independently and return a concise, self-contained summary to your parent agent."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "You are a focused subagent working on a specific delegated task.\n\nYOUR TASK:\nAnswer with exactly this token and nothing else: SUBAGENT_OK_731\n\nEXPECTED OUTPUT:\nThe exact token SUBAGENT_OK_731 with no additional text\n\nComplete this task using the tools available to you. When finished, provide a clear, concise summary of:\n- What you did\n- What you found or accomplished\n- Important outputs, decisions, or evidence\n- Any issues, assumptions, or limitations\n\nIf the information above is insufficient, do your best with explicitly stated assumptions and note what was missing, rather than stopping to ask.\n\nBe thorough but concise -- your response is returned to the parent agent as a summary."
						}
					]
				}
			],
			"stream": true
		},
		"status": 200,
		"response": [
			"1f8b0800000000000013c556dd4fdb30107fe7afb0ee11b5d01610226f0c6d1302c134d8d0b44ed1d5be36168e9dd997960ef57f9f9c26d094b2ed65252f51eecef1efe3fc4153b29c889c42c009a581d1f38e42c6443c02cf0b82045a49e834df903c42ee141948401a2c157583b396b87bd83dea0e7a83a3dec9e0043aa055fc4998a4bd7eff4c7d3b3efe3acb8abb33ffe96094fd1af1e50574d6a6820e7867620043d081d1c679a5b34c9621f9fea303815d917ac2e02c24b634a60e05fa599295d40a2a62d42634b1b281af6d5172caee9e6c8064d03be8804499512a3d216b67d37645afc97b42f55aae191b27a022a39c3c9af4287f59ff9ced67ebd945075cc92d781d08e4a75a52ca9a3c24108551e855d4d88ec947dee9841c24601da738456d706408160b513d8b9d1d5a1a5e6b998e8c93f79b6ddf50524da4e861c976351fc9d6e3981e6261f54a00166b3317da4ed6a6121083f01a3a4586f1cfe8aa9216ba65a48deaa9acc6762e66da981a61f36c1d85902e2f0c3109ce4828323441262518c3bd18cd45e1dd542b6d27559e1e50b2a87a4260103eb67b60527b433bb4375fde9d7e7c7f759b5e5fa4c707fd25b3ad138a48badd6e7cedeede94798e7e9eecee2ebfef3264712e945655a82b3e93243d252570c9989d5836fe9a2f6fe10c8a5090d4632d6bc52bf5cd3c2a5f674845129f2a8fa26919d5a543d8e8c6db3019829869ce84750295d2717b42236252685b81f6140a6703899153f3965528ab06d521a3c6b39b524a0a615c1a33afdd7a6ece279edbf7ab523e116bc247c41f9c316e561ba46d605fcaa8426c376da5291509eb388bcb8c4ca04696c2ebd8be2f76b16d316a6c593a729e17cec7d3b0163dd47e5cd716bc42bf1a1a424961ff3484322f22f3b07fa973cdd551d5fce7ca595a5d765be7bb276ee3028afbc02cae31f6a827198f9d9fa15702ad12d2107a337f5e7f7b15e2d78f3657fced6473c50ad097dc9bfbcf46d6ad24acb06c5d5080ac4ab9f416fef99ab2f87ff794b58b45ffe870b191f026ed5673d0ea94df4629ddbd4b0a0000"
		],
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "22500000",
			"anthropic-ratelimit-input-tokens-remaining": "22500000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-30T10:45:04Z",
			"anthropic-ratelimit-output-tokens-limit": "4500000",
			"anthropic-ratelimit-output-tokens-remaining": "4500000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-30T10:45:04Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-30T10:45:04Z",
			"anthropic-ratelimit-tokens-limit": "27000000",
			"anthropic-ratelimit-tokens-remaining": "27000000",
			"anthropic-ratelimit-tokens-reset": "2026-07-30T10:45:04Z",
			"cache-control": "no-cache",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a233c58b49a8af0a-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": "Thu, 30 Jul 2026 10:45:06 GMT",
			"request-id": "req_011CdY77UcaqaKMKaqT7bGg2",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-6cb6d2ad7228aa7af067bac3dd433c28-e13fb41eda258e2d-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-sonnet-4-5",
			"max_tokens": 64000,
			"system": [
				{
					"type": "text",
					"text": "<built_in_rules>\n- delegate_subagent runs a focused child agent in a fresh, isolated context and returns only its final answer. Always set subAgentId. Use subAgentId: \"inline\" to run a one-off inline child that inherits your local and deferred tools after safety filtering. Inline children do not inherit provider-defined tools. The child cannot see this conversation or your memory, so everything it needs must be in the call.\nUse a configured subagent ID only when one is listed and its name and useWhen guidance fit the subtask better than a generic inline child.\nDELEGATION PARALLELISM:\n- Up to 1 child sub-agent run can execute at the same time.\n- This limits parallelism, not the total number of delegated tasks.\n- If more independent workstreams are useful, you may issue more delegate_subagent calls; the runtime will run them in batches.\nWHEN TO USE delegate_subagent:\n- The request decomposes into 2+ independent workstreams that can be handled separately.\n- A workstream needs substantial research, review, comparison, or analysis.\n- Doing the work inline would flood your context with intermediate findings.\n- A fresh isolated perspective would materially improve a bounded subtask.\nWHEN NOT TO USE delegate_subagent:\n- Single-step mechanical work: do it directly.\n- Trivial tasks or one/two tool calls: do them yourself.\n- Tasks that need user interaction or hidden conversation context.\n- Your core synthesis, final judgment, or recommendation.\n- The entire user request as one delegated task; that is pass-through with no value added.\nHOW TO DELEGATE:\n- Delegate bounded workstreams, not the final answer.\n- Pass all required context, constraints, language/tone, and expected output.\n- Set difficulty (low, medium, or high) when you can estimate task complexity; omit it to keep the default inline model.\n- If multiple independent workstreams exist, delegate them separately.\n- Inline children inherit your local and deferred tools after safety filtering. Inline children do not inherit provider-defined tools.\n- Inspect results and synthesize the final response yourself.\n- Verify side-effect claims before presenting them as done.\n</built_in_rules>\n\nYou are a parent test agent. This is a delegation wiring test: you must call delegate_subagent exactly once before answering. Treat the child task as a bounded independent workstream that only the child should complete. Set subAgentId to \"inline\" in that tool call. The child result will contain a sentinel token. After the tool returns, answer with PARENT_SAW and include the sentinel token from the child result. Do not add unrelated text."
				}
			],
			"messages": [
				{
					"role": "user",
					"content": [
						{
							"type": "text",
							"text": "Complete this two-part verification task. Delegate the token-production workstream to a child agent, and make the delegated goal instruct the child to answer with exactly this token and nothing else: SUBAGENT_OK_731. Then synthesize only from the child result."
						}
					]
				},
				{
					"role": "assistant",
					"content": [
						{
							"type": "text",
							"text": "I'll delegate the token-production workstream to a child agent now."
						},
						{
							"type": "tool_use",
							"id": "toolu_01CZUTUiAvbDqYgaeAgFHVtb",
							"name": "delegate_subagent",
							"input": {
								"subAgentId": "inline",
								"taskName": "token_production",
								"goal": "Answer with exactly this token and nothing else: SUBAGENT_OK_731",
								"expectedOutput": "The exact token SUBAGENT_OK_731 with no additional text",
								"difficulty": "low"
							},
							"caller": {
								"type": "direct"
							}
						}
					]
				},
				{
					"role": "user",
					"content": [
						{
							"type": "tool_result",
							"tool_use_id": "toolu_01CZUTUiAvbDqYgaeAgFHVtb",
							"content": "{\"status\":\"completed\",\"taskPath\":\"/root/token_production_0\",\"model\":\"anthropic/claude-sonnet-4-5\",\"answer\":\"I will complete the delegated task by providing the exact token as requested.\\n\\nSUBAGENT_OK_731\\n\\n---\\n\\n**Summary:**\\n\\n**What I did:**\\n- Received a task to output a specific token exactly as specified\\n- Provided the token \\\"SUBAGENT_OK_731\\\" with no additional text in the response body\\n\\n**What I accomplished:**\\n- Successfully output the exact token: SUBAGENT_OK_731\\n- Followed the instruction to include nothing else in the primary response\\n\\n**Important outputs:**\\n- Output token: SUBAGENT_OK_731\\n\\n**Issues/Assumptions/Limitations:**\\n- None. The task was straightforward and clearly specified.\",\"usage\":{\"promptTokens\":203,\"completionTokens\":154,\"totalTokens\":357,\"cost\":0.0029189999999999997},\"finishReason\":\"stop\"}"
						}
					]
				}
			],
			"tools": [
				{
					"name": "delegate_subagent",
					"description": "Delegate a bounded, self-contained subtask to a focused child agent that runs in an isolated context and returns only a concise final result. Use it for reasoning-heavy subtasks, context-flooding investigations, or independent workstreams inside a larger deliverable. Do not use it for trivial work, single tool calls, mechanical steps, tasks that need hidden conversation context, or pass-through delegation of the entire user request.",
					"input_schema": {
						"type": "object",
						"properties": {
							"subAgentId": {
								"type": "string",
								"minLength": 1,
								"description": "Required. Use \"inline\" for a one-off inline sub-agent. Use an exact configured sub-agent ID only when one is listed and fits the task."
							},
							"taskName": {
								"type": "string",
								"minLength": 1,
								"description": "Short human-readable name for this delegated task, e.g. \"research_api\"."
							},
							"goal": {
								"type": "string",
								"minLength": 1,
								"description": "The concrete goal the sub-agent should accomplish."
							},
							"context": {
								"type": "string",
								"description": "All details the child needs, since it sees nothing else: constraints, paths, data, prior decisions, acceptance criteria, and what you have already tried or ruled out."
							},
							"expectedOutput": {
								"type": "string",
								"description": "The expected shape or contents of the answer."
							},
							"difficulty": {
								"type": "string",
								"enum": ["low", "medium", "high"],
								"description": "Optional difficulty estimate for this delegated task. Use low for simple bounded work, medium for moderate analysis or implementation, and high for complex research, architecture, or multi-step reasoning."
							}
						},
						"required": ["subAgentId", "taskName", "goal"],
						"additionalProperties": false,
						"$schema": "http://json-schema.org/draft-07/schema#"
					}
				}
			],
			"tool_choice": {
				"type": "auto"
			}
		},
		"status": 200,
		"response": "{\"model\":\"claude-sonnet-4-5-20250929\",\"id\":\"msg_011CdY77y57CBGMVPae4LjSG\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"PARENT_SAW SUBAGENT_OK_731\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"stop_details\":null,\"usage\":{\"input_tokens\":2054,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"cache_creation\":{\"ephemeral_5m_input_tokens\":0,\"ephemeral_1h_input_tokens\":0},\"output_tokens\":16,\"service_tier\":\"standard\",\"inference_geo\":\"not_available\"}}",
		"rawHeaders": {
			"anthropic-ratelimit-input-tokens-limit": "22500000",
			"anthropic-ratelimit-input-tokens-remaining": "22499000",
			"anthropic-ratelimit-input-tokens-reset": "2026-07-30T10:45:11Z",
			"anthropic-ratelimit-output-tokens-limit": "4500000",
			"anthropic-ratelimit-output-tokens-remaining": "4500000",
			"anthropic-ratelimit-output-tokens-reset": "2026-07-30T10:45:11Z",
			"anthropic-ratelimit-requests-limit": "20000",
			"anthropic-ratelimit-requests-remaining": "19999",
			"anthropic-ratelimit-requests-reset": "2026-07-30T10:45:10Z",
			"anthropic-ratelimit-tokens-limit": "27000000",
			"anthropic-ratelimit-tokens-remaining": "26999000",
			"anthropic-ratelimit-tokens-reset": "2026-07-30T10:45:11Z",
			"cf-cache-status": "DYNAMIC",
			"cf-ray": "a233c5b33fe6af0a-VIE",
			"connection": "keep-alive",
			"content-security-policy": "default-src 'none'; frame-ancestors 'none'",
			"content-type": "application/json",
			"date": "Thu, 30 Jul 2026 10:45:11 GMT",
			"request-id": "req_011CdY77wnxv5deK7MBPWK4M",
			"server": "cloudflare",
			"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
			"traceresponse": "00-287733e004d2ad52dd6086fb2ee96e2b-d1bf3a8a0b02cafa-01",
			"vary": "Accept-Encoding",
			"x-robots-tag": "none"
		},
		"responseIsBinary": false
	}
]
