CodeInterpreterTool interface
一個能執行 Python 程式碼以協助生成回應提示的工具。
- Extends
屬性
| allowed_callers | |
| container | 程式碼解譯器容器。 可以是容器 ID 或指定上傳檔案 ID 以供程式碼使用的物件,並附帶可選 |
| description | Deprecated. 此屬性已廢止,未來版本將被移除。 |
| name | Deprecated. 此屬性已廢止,未來版本將被移除。 |
| tool_configs | Deprecated. 此屬性已廢止,未來版本將被移除。 |
| type | 程式代碼解釋器工具的類型。 一律為 |
屬性詳細資料
allowed_callers
container
程式碼解譯器容器。 可以是容器 ID 或指定上傳檔案 ID 以供程式碼使用的物件,並附帶可選 memory_limit 設定。
如果沒有提供,服務就會自動處理。
container?: string | AutoCodeInterpreterToolParam
屬性值
string | AutoCodeInterpreterToolParam
description
Deprecated. 此屬性已廢止,未來版本將被移除。
description?: string
屬性值
string
name
Deprecated. 此屬性已廢止,未來版本將被移除。
name?: string
屬性值
string
tool_configs
Deprecated. 此屬性已廢止,未來版本將被移除。
tool_configs?: Record<string, ToolConfig>
屬性值
Record<string, ToolConfig>
type
程式代碼解釋器工具的類型。 一律為 code_interpreter。
type: "code_interpreter"
屬性值
"code_interpreter"