langchain_community.tools.bearly.tool.BearlyInterpreterTool¶

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

Tool for evaluating python code in a sandbox environment.

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]