CodeInterpreterTool interface
A tool that runs Python code to help generate a response to a prompt.
- Extends
Properties
| container | The code interpreter container. Can be a container ID or an object that
specifies uploaded file IDs to make available to your code, along with an
optional |
| description | Deprecated. This property is deprecated and will be removed in a future version. |
| name | Deprecated. This property is deprecated and will be removed in a future version. |
| tool_configs | Deprecated. This property is deprecated and will be removed in a future version. |
| type | The type of the code interpreter tool. Always |
Property Details
container
The code interpreter container. Can be a container ID or an object that
specifies uploaded file IDs to make available to your code, along with an
optional memory_limit setting.
If not provided, the service assumes auto.
container?: string | AutoCodeInterpreterToolParam
Property Value
string | AutoCodeInterpreterToolParam
description
Deprecated. This property is deprecated and will be removed in a future version.
description?: string
Property Value
string
name
Deprecated. This property is deprecated and will be removed in a future version.
name?: string
Property Value
string
tool_configs
Deprecated. This property is deprecated and will be removed in a future version.
tool_configs?: Record<string, ToolConfig>
Property Value
Record<string, ToolConfig>
type
The type of the code interpreter tool. Always code_interpreter.
type: "code_interpreter"
Property Value
"code_interpreter"