aiq.tool.code_execution.register#
Attributes#
Classes#
Tool for executing python code in a remotely hosted sandbox environment. |
Functions#
|
Module Contents#
- logger#
- class CodeExecutionToolConfig(/, **data: Any)#
Bases:
aiq.data_models.function.FunctionBaseConfig
Tool for executing python code in a remotely hosted sandbox environment.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- uri: pydantic.HttpUrl = None#
- sandbox_type: Literal['local', 'piston'] = None#
- async code_execution_tool(
- config: CodeExecutionToolConfig,
- builder: aiq.builder.builder.Builder,