# record_display_caveat

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/file_ops/record_display_caveat)

Return `display_caveat` for a successful completed record.

An untrusted pre-image describes what a successful operation could not
verify. It is not a property of a failed tool call: showing its success
wording after the tool error would contradict the actual result. `status`
cannot make that distinction because a successful write or edit whose
post-image cannot be read is also recorded as an error.

## Signature

```python
record_display_caveat(
    record: FileOperationRecord | None,
) -> str
```

## Returns

`str`

The caveat for a successful record's outcome, or empty otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/file_ops.py#L131)