CodeInterpreterToolboxTool interface
一个存储在工具箱中的代码解释器工具。
- 扩展
属性
| allowed_callers | 调用者可能会调用该代码解释器工具箱工具,无论是直接调用还是程序化。 |
| container | 代码解释器容器。 可以是容器 ID 或指定上传文件 ID 以供代码使用的对象,同时还可选择一个可选 |
| type | 代码解释器工具箱工具的类型。 始终为 |
继承属性
| description | 可选的用户自定义描述,用于该工具或配置。 |
| name | 该工具或配置可选择用户自定义名称。 |
| tool_configs | 每个工具的配置图。 键是工具名称或 |
属性详细信息
allowed_callers
调用者可能会调用该代码解释器工具箱工具,无论是直接调用还是程序化。
allowed_callers?: CallableToolAllowedCaller[]
属性值
container
代码解释器容器。 可以是容器 ID 或指定上传文件 ID 以供代码使用的对象,同时还可选择一个可选 memory_limit 设置。
如果未提供,该服务将假定为自动。
container?: string | AutoCodeInterpreterToolParam
属性值
string | AutoCodeInterpreterToolParam
type
代码解释器工具箱工具的类型。 始终为 code_interpreter。
type: "code_interpreter"
属性值
"code_interpreter"
继承属性详细信息
description
name
tool_configs
每个工具的配置图。 键是工具名称或 * (通用默认)。
分辨率排序:精确的刀具名称匹配优先于 *。
未知的工具名称在运行时会被无声地忽略。
tool_configs?: Record<string, ToolConfig>
属性值
Record<string, ToolConfig>