pub fn truncation_marker(
output: &FetchOutput,
applied_limit: Option<usize>,
suggestion: Option<String>,
) -> Option<TruncationInfo>Expand description
Build the TruncationInfo marker for output, or None when nothing was actually
cut.
The marker is emitted only when item content was truncated (or, in future, items
were omitted) — i.e. when the agent is genuinely not seeing the full data. A bare item
cap that dropped nothing is not reported here: the MCP fetch_feed default of 25 is
documented in the tool description, so a non-null truncation on an untruncated
response would only mislead. applied_limit is recorded for context when the marker
is emitted (the MCP server passes its effective limit; the CLI passes None).