你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CodeInterpreterTool interface

一个运行Python代码以帮助生成对提示回复的工具。

扩展

属性

container

代码解释器容器。 可以是容器 ID 或指定上传文件 ID 以供代码使用的对象,同时还可选择一个可选 memory_limit 设置。 如果未提供,该服务将假定为自动。

description

Deprecated. 该属性已被弃用,未来版本中将被移除。

name

Deprecated. 该属性已被弃用,未来版本中将被移除。

tool_configs

Deprecated. 该属性已被弃用,未来版本中将被移除。

type

代码解释器工具的类型。 始终为 code_interpreter

属性详细信息

container

代码解释器容器。 可以是容器 ID 或指定上传文件 ID 以供代码使用的对象,同时还可选择一个可选 memory_limit 设置。 如果未提供,该服务将假定为自动。

container?: 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"