when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"input":[{"content":"You are a concise assistant. Answer directly.","role":"system","type":"message"},{"content":"In one or two sentences, explain what Rust programming language is and why memory safety matters.","role":"user","type":"message"}],"model":"grok-3-mini"}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"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 question is: \"In one or two sentences, explain what Rust programming language is and why memory safety matters.\"\n","type":"summary_text"}],"type":"reasoning"},{"content":[{"annotations":[],"logprobs":[],"text":"Rust is a systems programming language focused on performance, concurrency, and safety, using an ownership model to enforce memory safety at compile time without a garbage collector. Memory safety matters because it prevents common bugs like buffer overflows, use-after-free errors, and data races that cause crashes and security exploits in languages like C/C++.","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":"low","summary":"detailed"},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":0.7,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":0.95,"truncation":"disabled","usage":{"context_details":{"input_tokens":160,"output_tokens":249},"cost_in_usd_ticks":6881000,"input_tokens":160,"input_tokens_details":{"cached_tokens":128},"num_server_side_tools_used":0,"num_sources_used":0,"output_tokens":249,"output_tokens_details":{"reasoning_tokens":186},"total_tokens":409},"user":null}'
