pub struct Options {
pub limit: Option<usize>,
pub html: HtmlOptions,
}Expand description
Conversion options — the part limit and the browser channel’s policy.
There is no input-syntax choice. Accepting LLM output even when it strays from the standard is the job of the default reader.
Fields may be added, so build it as Options { limit, ..Default::default() }.
Fields§
§limit: Option<usize>The limit for one part (characters of rendered output). None means Channel::limit.
The sender decides the limit. Sometimes the channel cannot — plain is a fallback with
no known destination, so sending it to Telegram needs 4096 (a 7,153-character part split at
12,000 got a 400), and a sender that prepends a title must use that much less.
Streaming (Streamer) does not split, so it ignores this value — except for Notion
tables. A table over the limit comes out as several tables that repeat the header row; that
is the table’s shape, so streaming emits it the same way. The browser channel
(Channel::Html) does not split either — the splitter does not close and reopen block
tags, so it would cut through the middle of a tag. Values below MIN_LIMIT are raised
to it.
html: HtmlOptionsThe browser channel’s (Channel::Html) policy. Other channels ignore it.