共用方式為


ItemCustomToolCallOutput interface

你程式碼中自訂工具呼叫的輸出,會回傳給模型。

Extends

屬性

call_id

呼叫 ID,用來將這個自訂工具呼叫輸出對應到自訂工具呼叫。

id

OpenAI 平台中自訂工具呼叫輸出的唯一 ID。

output

你的程式碼產生的自訂工具呼叫輸出。 可以是字串或輸出內容的清單。

type

自訂工具呼叫輸出的類型。 一律為 custom_tool_call_output

屬性詳細資料

call_id

呼叫 ID,用來將這個自訂工具呼叫輸出對應到自訂工具呼叫。

call_id: string

屬性值

string

id

OpenAI 平台中自訂工具呼叫輸出的唯一 ID。

id?: string

屬性值

string

output

你的程式碼產生的自訂工具呼叫輸出。 可以是字串或輸出內容的清單。

output: string | FunctionAndCustomToolCallOutputUnion[]

屬性值

type

自訂工具呼叫輸出的類型。 一律為 custom_tool_call_output

type: "custom_tool_call_output"

屬性值

"custom_tool_call_output"