Appearance
数据模型: ClaudeResponse
ClaudeResponse
| 字段 | 类型 | 必选 | 描述 |
|---|---|---|---|
| id | string | 否 | |
| type | string | 否 | |
| role | string | 否 | |
| content | array of object | 否 | |
| content[].type | string | 否 | |
| content[].text | string | 否 | |
| model | string | 否 | |
| stop_reason | string | 否 | |
| usage | object | 否 | |
| usage.input_tokens | integer | 否 | |
| usage.output_tokens | integer | 否 | |
| usage.cache_creation_input_tokens | integer | 否 | |
| usage.cache_read_input_tokens | integer | 否 |
数据模型示例
json
{
"id": "string",
"type": "message",
"role": "assistant",
"content": [
{
"type": "string",
"text": "string"
}
],
"model": "string",
"stop_reason": "string",
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
}
}