提示詞物件
提示詞(Prompt)物件是「新增提示詞」、「取得單一提示詞資訊」、「提示詞自動優化」、「提示詞手動優化」的回應格式。「取得所有提示詞列表」的 data[] 也使用此物件,但不含 value。
{
"id": "dae76e24-ca4b-414f-92be-21abe36a70f7",
"value": "Explain the above in one sentence:",
"name": "Antibiotics Explanation",
"metadata": {
"tag": ["medication", "antibiotics"]
},
"created_at": "2025-01-01T00:15:00.000Z"
}
| Field | Type | Detail |
|---|---|---|
| id | string (uuid) | 提示詞的唯一鍵 |
| name | string | 提示詞的名稱;建立時未指定則由系統自動命名 |
| value | string | 提示詞的內容(列表 API 不回傳此欄位) |
| metadata | object | 提示詞相關的額外資訊。由優化 API 產生的提示詞會帶有 derived_from(來源 prompt_id) |
| created_at | string (ISO 8601) | 提示詞的建立時間 |