data_juicer_agents.tools.files.insert_text_file#

insert_text_file tool package.

class data_juicer_agents.tools.files.insert_text_file.GenericOutput(*, ok: bool = True)[source]#

Bases: BaseModel

ok: bool#
model_config = {}#

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

class data_juicer_agents.tools.files.insert_text_file.InsertTextFileInput(*, file_path: str, content: str = '', line_number: Annotated[int, Ge(ge=1)])[source]#

Bases: BaseModel

file_path: str#
content: str#
line_number: int#
model_config = {}#

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

data_juicer_agents.tools.files.insert_text_file.insert_text_file(*, file_path: str, content: str = '', line_number: int = 1) Dict[str, object][source]#