data_juicer_agents.tools.process.execute_python_code#

execute_python_code tool package.

class data_juicer_agents.tools.process.execute_python_code.ExecutePythonCodeInput(*, code: str, timeout: Annotated[int, Ge(ge=1)] = 120)[源代码]#

基类:BaseModel

code: str#
timeout: int#
model_config = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class data_juicer_agents.tools.process.execute_python_code.GenericOutput(*, ok: bool = True)[源代码]#

基类:BaseModel

ok: bool#
model_config = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

data_juicer_agents.tools.process.execute_python_code.execute_python_code(*, code: str, timeout: int = 120) Dict[str, Any][源代码]#