when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: text/event-stream
  - name: content-type
    value: application/json
  body: '{"input":[{"content":"You are a helpful assistant that can read files using different methods.","role":"system","type":"message"},{"content":"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.","role":"user","type":"message"}],"model":"grok-4-0709","stream":true,"tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"type":"function"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: text/event-stream
  body: |+
    event: response.created
    data: {"response":{"background":false,"completed_at":null,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_1","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"in_progress","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":null,"user":null},"sequence_number":0,"type":"response.created"}

    event: response.in_progress
    data: {"response":{"background":false,"completed_at":null,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_1","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"in_progress","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":null,"user":null},"sequence_number":1,"type":"response.in_progress"}

    event: response.output_item.added
    data: {"item":{"id":"rs_REDACTED_1","status":"in_progress","summary":[],"type":"reasoning"},"output_index":0,"sequence_number":2,"type":"response.output_item.added"}

    event: response.reasoning_summary_part.added
    data: {"item_id":"rs_REDACTED_1","output_index":0,"part":{"text":"","type":"summary_text"},"sequence_number":3,"summary_index":0,"type":"response.reasoning_summary_part.added"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"The","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":4,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" user","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":5,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" says","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":6,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":":","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":7,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" \"","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":8,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"Use","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":9,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" the","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":10,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" available","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":11,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" tools","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":12,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" to","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":13,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" read","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":14,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" test","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":15,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":".txt","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":16,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" now","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":17,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":".","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":18,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" Do","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":19,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" not","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":20,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" ask","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":21,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" any","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":22,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" follow","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":23,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"-up","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":24,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" questions","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":25,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":";","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":26,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" just","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":27,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" read","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":28,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" the","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":29,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" file","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":30,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" and","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":31,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" report","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":32,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" its","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":33,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" content","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":34,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":".\"\n","item_id":"rs_REDACTED_1","output_index":0,"sequence_number":35,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.done
    data: {"item_id":"rs_REDACTED_1","output_index":0,"sequence_number":36,"summary_index":0,"text":"The user says: \"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.\"\n","type":"response.reasoning_summary_text.done"}

    event: response.reasoning_summary_part.done
    data: {"item_id":"rs_REDACTED_1","output_index":0,"part":{"text":"The user says: \"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.\"\n","type":"summary_text"},"sequence_number":37,"summary_index":0,"type":"response.reasoning_summary_part.done"}

    event: response.output_item.done
    data: {"item":{"id":"rs_REDACTED_1","status":"completed","summary":[{"text":"The user says: \"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.\"\n","type":"summary_text"}],"type":"reasoning"},"output_index":0,"sequence_number":38,"type":"response.output_item.done"}

    event: response.output_item.added
    data: {"item":{"arguments":"","call_id":"call_REDACTED_1","id":"fc_REDACTED_1","name":"read_file_head","status":"in_progress","type":"function_call"},"output_index":1,"sequence_number":39,"type":"response.output_item.added"}

    event: response.function_call_arguments.delta
    data: {"delta":"{}","item_id":"fc_REDACTED_1","output_index":1,"sequence_number":40,"type":"response.function_call_arguments.delta"}

    event: response.function_call_arguments.done
    data: {"arguments":"{}","item_id":"fc_REDACTED_1","output_index":1,"sequence_number":41,"type":"response.function_call_arguments.done"}

    event: response.output_item.done
    data: {"item":{"arguments":"{}","call_id":"call_REDACTED_1","id":"fc_REDACTED_1","name":"read_file_head","status":"completed","type":"function_call"},"output_index":1,"sequence_number":42,"type":"response.output_item.done"}

    event: response.output_item.added
    data: {"item":{"arguments":"","call_id":"call_REDACTED_2","id":"fc_REDACTED_2","name":"read_file_tail","status":"in_progress","type":"function_call"},"output_index":2,"sequence_number":43,"type":"response.output_item.added"}

    event: response.function_call_arguments.delta
    data: {"delta":"{}","item_id":"fc_REDACTED_2","output_index":2,"sequence_number":44,"type":"response.function_call_arguments.delta"}

    event: response.function_call_arguments.done
    data: {"arguments":"{}","item_id":"fc_REDACTED_2","output_index":2,"sequence_number":45,"type":"response.function_call_arguments.done"}

    event: response.output_item.done
    data: {"item":{"arguments":"{}","call_id":"call_REDACTED_2","id":"fc_REDACTED_2","name":"read_file_tail","status":"completed","type":"function_call"},"output_index":2,"sequence_number":46,"type":"response.output_item.done"}

    event: response.completed
    data: {"response":{"background":false,"completed_at":0,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_1","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[{"id":"rs_REDACTED_1","status":"completed","summary":[{"text":"The user says: \"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.\"\n","type":"summary_text"}],"type":"reasoning"},{"arguments":"{}","call_id":"call_REDACTED_1","id":"fc_REDACTED_1","name":"read_file_head","status":"completed","type":"function_call"},{"arguments":"{}","call_id":"call_REDACTED_2","id":"fc_REDACTED_2","name":"read_file_tail","status":"completed","type":"function_call"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":{"context_details":{"input_tokens":296,"output_tokens":364},"cost_in_usd_ticks":10112000,"input_tokens":296,"input_tokens_details":{"cached_tokens":256},"num_server_side_tools_used":0,"num_sources_used":0,"output_tokens":364,"output_tokens_details":{"reasoning_tokens":352},"total_tokens":660},"user":null},"sequence_number":47,"type":"response.completed"}

---
when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: text/event-stream
  - name: content-type
    value: application/json
  body: '{"input":[{"content":"You are a helpful assistant that can read files using different methods.","role":"system","type":"message"},{"content":"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.","role":"user","type":"message"},{"id":"rs_REDACTED_1","summary":[{"text":"The user says: \"Use the available tools to read test.txt now. Do not ask any follow-up questions; just read the file and report its content.\"\n","type":"summary_text"}],"type":"reasoning"},{"arguments":"{}","call_id":"call_REDACTED_1","name":"read_file_head","type":"function_call"},{"arguments":"{}","call_id":"call_REDACTED_2","name":"read_file_tail","type":"function_call"},{"call_id":"call_REDACTED_1","output":"Tool ''read_file_head'' is currently unavailable. Please use ''read_file_tail'' instead to read the file.","type":"function_call_output"},{"call_id":"call_REDACTED_2","output":"hello world","type":"function_call_output"}],"model":"grok-4-0709","stream":true,"tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"type":"function"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: text/event-stream
  body: |+
    event: response.created
    data: {"response":{"background":false,"completed_at":null,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_2","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"in_progress","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":null,"user":null},"sequence_number":0,"type":"response.created"}

    event: response.in_progress
    data: {"response":{"background":false,"completed_at":null,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_2","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"in_progress","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":null,"user":null},"sequence_number":1,"type":"response.in_progress"}

    event: response.output_item.added
    data: {"item":{"id":"rs_REDACTED_2","status":"in_progress","summary":[],"type":"reasoning"},"output_index":0,"sequence_number":2,"type":"response.output_item.added"}

    event: response.reasoning_summary_part.added
    data: {"item_id":"rs_REDACTED_2","output_index":0,"part":{"text":"","type":"summary_text"},"sequence_number":3,"summary_index":0,"type":"response.reasoning_summary_part.added"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"The","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":4,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" head","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":5,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" tool","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":6,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" is","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":7,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" unavailable","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":8,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":",","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":9,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" tail","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":10,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" gave","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":11,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" \"","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":12,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"hello","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":13,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":" world","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":14,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.delta
    data: {"delta":"\".\n","item_id":"rs_REDACTED_2","output_index":0,"sequence_number":15,"summary_index":0,"type":"response.reasoning_summary_text.delta"}

    event: response.reasoning_summary_text.done
    data: {"item_id":"rs_REDACTED_2","output_index":0,"sequence_number":16,"summary_index":0,"text":"The head tool is unavailable, tail gave \"hello world\".\n","type":"response.reasoning_summary_text.done"}

    event: response.reasoning_summary_part.done
    data: {"item_id":"rs_REDACTED_2","output_index":0,"part":{"text":"The head tool is unavailable, tail gave \"hello world\".\n","type":"summary_text"},"sequence_number":17,"summary_index":0,"type":"response.reasoning_summary_part.done"}

    event: response.output_item.done
    data: {"item":{"id":"rs_REDACTED_2","status":"completed","summary":[{"text":"The head tool is unavailable, tail gave \"hello world\".\n","type":"summary_text"}],"type":"reasoning"},"output_index":0,"sequence_number":18,"type":"response.output_item.done"}

    event: response.output_item.added
    data: {"item":{"content":[],"id":"msg_REDACTED_1","role":"assistant","status":"in_progress","type":"message"},"output_index":1,"sequence_number":19,"type":"response.output_item.added"}

    event: response.content_part.added
    data: {"content_index":0,"item_id":"msg_REDACTED_1","output_index":1,"part":{"annotations":[],"logprobs":[],"text":"","type":"output_text"},"sequence_number":20,"type":"response.content_part.added"}

    event: response.output_text.delta
    data: {"content_index":0,"delta":"hello","item_id":"msg_REDACTED_1","logprobs":[],"output_index":1,"sequence_number":21,"type":"response.output_text.delta"}

    event: response.output_text.delta
    data: {"content_index":0,"delta":" world","item_id":"msg_REDACTED_1","logprobs":[],"output_index":1,"sequence_number":22,"type":"response.output_text.delta"}

    event: response.output_text.done
    data: {"content_index":0,"item_id":"msg_REDACTED_1","logprobs":[],"output_index":1,"sequence_number":23,"text":"hello world","type":"response.output_text.done"}

    event: response.content_part.done
    data: {"content_index":0,"item_id":"msg_REDACTED_1","output_index":1,"part":{"annotations":[],"logprobs":[],"text":"hello world","type":"output_text"},"sequence_number":24,"type":"response.content_part.done"}

    event: response.output_item.done
    data: {"item":{"content":[{"annotations":[],"logprobs":[],"text":"hello world","type":"output_text"}],"id":"msg_REDACTED_1","role":"assistant","status":"completed","type":"message"},"output_index":1,"sequence_number":25,"type":"response.output_item.done"}

    event: response.completed
    data: {"response":{"background":false,"completed_at":0,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_2","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{"system_fingerprint":"fp_REDACTED_1"},"model":"grok-4.3","object":"response","output":[{"id":"rs_REDACTED_2","status":"completed","summary":[{"text":"The head tool is unavailable, tail gave \"hello world\".\n","type":"summary_text"}],"type":"reasoning"},{"content":[{"annotations":[],"logprobs":[],"text":"hello world","type":"output_text"}],"id":"msg_REDACTED_1","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":0.699999988079071,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[{"description":"Read the first line of test.txt using the head command","name":"read_file_head","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"},{"description":"Read the last line of test.txt using the tail command","name":"read_file_tail","parameters":{"properties":{},"type":"object"},"strict":null,"type":"function"}],"top_logprobs":0,"top_p":0.949999988079071,"truncation":"disabled","usage":{"context_details":{"input_tokens":698,"output_tokens":29},"cost_in_usd_ticks":6762000,"input_tokens":698,"input_tokens_details":{"cached_tokens":256},"num_server_side_tools_used":0,"num_sources_used":0,"output_tokens":29,"output_tokens_details":{"reasoning_tokens":27},"total_tokens":727},"user":null},"sequence_number":26,"type":"response.completed"}

