AI.Tools.File.Edit (fnord v0.8.27)

View Source

Currently, this module is not used as a tool_call directly. Instead, it is used by AI.Tools.Coder, the tool directly called by the AI agent. This tool is instead used to perform the file edits themselves, after the AI-backed tool does the work of identifying the lines to edit and the replacement text.

Summary

Functions

This tool relies on line numbers within the file to identify ranges. If those numbers change between the time the range is identified and the time the changes are applied, the tool will fail to apply the changes correctly.

Functions

async?()

This tool relies on line numbers within the file to identify ranges. If those numbers change between the time the range is identified and the time the changes are applied, the tool will fail to apply the changes correctly.