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

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