Open Agent Loops
API Reference

formatWriteResult

@open-agent-loops/core


function formatWriteResult(result): string;

Defined in: tools/builtin/file-write.ts:102

Render a write outcome into the single text block handed to the model.

Parameters

ParameterTypeDescription
resultFileWriteResultThe path and byte count captured by a FileWriteBackend.

Returns

string

A confirmation line, e.g. "Wrote 12 bytes to out.txt".

See

writeTool

On this page