Skip to main content

Interface: ReadCsvOptions

Defined in: packages/agentos/src/cognition/library/readers/csv.ts:16

How readCsv reads a text.

Properties​

maxColumns?​

optional maxColumns: number

Defined in: packages/agentos/src/cognition/library/readers/csv.ts:34

The most columns the table keeps; the cells past it are left out and cut is true. Bounded as maxRows is.

Default​

30

maxRows?​

optional maxRows: number

Defined in: packages/agentos/src/cognition/library/readers/csv.ts:29

The most rows the table keeps, its header row among them; the rows past it are left out and cut is true. 0, any positive number or Infinity; a bound below 0, NaN or no number at all is refused with a RangeError.

Default​

500

separator?​

optional separator: CsvSeparator

Defined in: packages/agentos/src/cognition/library/readers/csv.ts:23

The separator. Left out, Excel's line naming a sheet's separator, sep= and a comma, a semicolon or a tab alone on the text's first line, names it; with no such line, the text's first line that holds more than white space names it: a tab, else a semicolon with no comma, else a comma. The sep= line is no row of the table, also when this names the separator, which wins over it.