Open Agent Loops
API Reference

FileEditResult

@open-agent-loops/core


Defined in: tools/builtin/builtin.types.ts:312

The outcome of an edit.

Properties

PropertyTypeDescriptionDefined in
pathstringPath that was edited.tools/builtin/builtin.types.ts:314
replacedbooleanWhether the target string was found and replaced. false is a normal, model-recoverable outcome (the string was simply absent) — NOT an error; the tool surfaces it in the result so the model can retry, the same way a non-zero shell exit is surfaced rather than thrown. A genuinely missing file should make the backend throw, which the loop turns into an error result.tools/builtin/builtin.types.ts:322

On this page