{"type":"object","contentType":"application/json","title":"Chat Completion Response","properties":{"id":{"type":"string","description":"Unique identifier for the completion"},"object":{"type":"string","enum":["chat.completion"],"description":"Object type identifier"},"created":{"type":"number","description":"Unix timestamp of when the completion was created"},"model":{"type":"string","description":"Model used for the completion"},"choices":{"type":"array","description":"List of completion choices","items":{"type":"object","properties":{"index":{"type":"number","description":"Index of the choice in the list"},"message":{"type":"object","description":"The message generated by the model","properties":{"role":{"type":"string","description":"Role of the message author"},"content":{"type":"string","description":"The content of the message"},"reasoning_content":{"type":"string","description":"Internal reasoning content (if available)"},"tool_calls":{"type":"array","description":"Tool calls made by the assistant","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the tool call"},"type":{"type":"string","enum":["function"],"description":"Type of tool call"},"function":{"type":"object","properties":{"name":{"type":"string","description":"Name of the function to call"},"arguments":{"type":"string","description":"JSON string of arguments for the function"}},"required":["name","arguments"]}},"required":["id","type","function"]}}},"required":["role","content"]},"finish_reason":{"type":"string","description":"Reason why the model stopped generating"},"stop_reason":{"type":["string","null"],"description":"Stop reason (may be null)"},"logprobs":{"type":["object","null"],"description":"Log probabilities (if requested)"}}}},"usage":{"type":"object","description":"Usage statistics for the inference request","properties":{"prompt_tokens":{"type":"number","description":"Total number of tokens in input","default":0},"completion_tokens":{"type":"number","description":"Total number of tokens in output","default":0},"total_tokens":{"type":"number","description":"Total number of input and output tokens","default":0}}},"prompt_logprobs":{"type":["object","null"],"description":"Log probabilities for the prompt (if requested)"}}}