nat.tool.code_execution.register#

Attributes#

Classes#

CodeExecutionToolConfig

Tool for executing python code in a remotely hosted sandbox environment.

Functions#

code_execution_tool(config, builder)

Module Contents#

logger#
class CodeExecutionToolConfig#

Bases: nat.data_models.function.FunctionBaseConfig

Tool for executing python code in a remotely hosted sandbox environment.

uri: pydantic.HttpUrl = None#
sandbox_type: Literal['local', 'piston'] = None#
timeout: float = None#
max_output_characters: int = None#
async code_execution_tool(
config: CodeExecutionToolConfig,
builder: nat.builder.builder.Builder,
)#