共用方式為


ItemCodeInterpreterToolCall interface

執行程式代碼的工具呼叫。

Extends

屬性

code

程式碼解譯器要執行的程式碼。

container_id

用來執行程式代碼之容器的標識碼。

id

程式代碼解釋器工具呼叫的唯一標識符。

outputs

程式碼直譯器的輸出。

status

程式代碼解釋器工具呼叫的狀態。 有效值為 in_progresscompletedincompleteinterpretingfailed

type

程式代碼解釋器工具呼叫的類型。 一律為 code_interpreter_call

屬性詳細資料

code

程式碼解譯器要執行的程式碼。

code?: string

屬性值

string

container_id

用來執行程式代碼之容器的標識碼。

container_id: string

屬性值

string

id

程式代碼解釋器工具呼叫的唯一標識符。

id: string

屬性值

string

outputs

程式碼直譯器的輸出。

outputs?: (CodeInterpreterOutputLogs | CodeInterpreterOutputImage)[]

屬性值

status

程式代碼解釋器工具呼叫的狀態。 有效值為 in_progresscompletedincompleteinterpretingfailed

status: "in_progress" | "completed" | "incomplete" | "failed" | "interpreting"

屬性值

"in_progress" | "completed" | "incomplete" | "failed" | "interpreting"

type

程式代碼解釋器工具呼叫的類型。 一律為 code_interpreter_call

type: "code_interpreter_call"

屬性值

"code_interpreter_call"