Interface: ReadHtmlOptions
Defined in: packages/agentos/src/cognition/library/readers/html.ts:23
How readHtml reads a page.
Properties
maxCharacters?
optionalmaxCharacters:number
Defined in: packages/agentos/src/cognition/library/readers/html.ts:32
The most characters of Markdown. The text is cut at the last whole block that fits; past it, a paragraph keeps
its words up to a space that fits, a code block the lines that fit with its closing fence, a list the lines that
fit, a table its header and the rows that fit, and a quote the blocks that fit with the next one cut by its own
rule, however deep the quote sits, each line's quote marks counted. 0, any positive number or Infinity; a bound
below 0, NaN or no number at all is refused with a RangeError.
Default
Infinity
maxTableColumns?
optionalmaxTableColumns:number
Defined in: packages/agentos/src/cognition/library/readers/html.ts:40
The most columns a table keeps, a table laid out for the page among them. Bounded as maxCharacters is.
Default
30
maxTableRows?
optionalmaxTableRows:number
Defined in: packages/agentos/src/cognition/library/readers/html.ts:38
The most rows a table keeps, its header row among them, and the most rows of cells a table laid out for the page
keeps; a row that writes nothing is not counted. Bounded as maxCharacters is.
Default
500