Skip to main content

portia.open_source_tools.local_file_writer_tool

Local file writer tool.

FileWriterToolSchema Objects

class FileWriterToolSchema(BaseModel)

Schema defining the inputs for the FileWriterTool.

FileWriterTool Objects

class FileWriterTool(Tool[str])

Writes content to a file.

run

def run(_: ToolRunContext, filename: str, content: str) -> str

Run the FileWriterTool.