Dream 對象、輸入輸出和狀態的複用結構。
Dream 對象
建立、查詢、列表、取消和歸檔介面都會返回 Dream 對象。
|
欄位 |
類型 |
說明 |
|
|
string |
Dream 唯一標識,首碼為 |
|
|
string |
固定值 |
|
|
string |
Dream 目前狀態,見 Dream status |
|
|
array |
Dream input 數組,見 Dream input |
|
|
array | null |
Dream output 數組;未完成時為 null。見 Dream output |
|
|
string |
執行 Dream 使用的模型 ID |
|
|
string | null |
自訂指令,用於引導 Dream 的整合方向 |
|
|
string | null |
關聯的 Session ID;無關聯時為 null |
|
|
object | null |
Token 用量統計;未完成時為 null。見 Dream usage |
|
|
object | null |
錯誤資訊;未失敗時為 null。見 Dream error |
|
|
string |
建立時間(ISO 8601) |
|
|
string | null |
結束時間(ISO 8601);仍在運行時為 null |
|
|
string | null |
歸檔時間(ISO 8601);未歸檔時為 null |
Dream status
|
值 |
說明 |
|
|
Dream 已建立,等待執行 |
|
|
Dream 正在處理輸入並產生輸出 |
|
|
Dream 已成功完成 |
|
|
Dream 執行失敗,詳見 error 欄位 |
|
|
Dream 被使用者取消 |
Dream input
inputs 數組中的每個元素:
|
type 值 |
必要欄位 |
說明 |
|
|
|
將指定 Memory Store 作為 Dream 的輸入資料來源 |
|
|
|
將指定 Session 的對話歷史作為輸入 |
Dream output
Dream 完成後,outputs 數組中的元素:
|
欄位 |
類型 |
說明 |
|
|
string |
固定值 |
|
|
string |
輸出寫入的 Memory Store ID |
|
|
integer |
Dream 過程中建立或修改的檔案數量 |
Dream usage
|
欄位 |
類型 |
說明 |
|
|
integer |
輸入 token 總數 |
|
|
integer |
輸出 token 總數 |
|
|
integer |
用於建立緩衝的輸入 token 數 |
|
|
integer |
從緩衝讀取的輸入 token 數 |
Dream error
失敗時返回的錯誤對象:
|
欄位 |
類型 |
說明 |
|
|
string |
錯誤類型標識 |
|
|
string |
可讀的錯誤描述資訊 |