langchain_community.tools.bearly.tool.BearlyInterpreterTool

class langchain_community.tools.bearly.tool.BearlyInterpreterTool(api_key: str)[source]

用于在沙盒环境中评估Python代码的工具。

Attributes

description

endpoint

file_description

files

name

api_key

Methods

__init__(api_key)

add_file(source_path, target_path, description)

as_tool()

clear_files()

make_input_files()

Parameters

api_key (str) –

__init__(api_key: str)[source]
Parameters

api_key (str) –

add_file(source_path: str, target_path: str, description: str) None[source]
Parameters
  • source_path (str) –

  • target_path (str) –

  • description (str) –

Return type

None

as_tool() Tool[source]
Return type

Tool

clear_files() None[source]
Return type

None

make_input_files() List[dict][source]
Return type

List[dict]

Examples using BearlyInterpreterTool