Skip to content

AssistantTablePart

AssistantTablePart = object

Defined in: packages/schema/src/assistant/protocol.ts:56

Rows of values; null stays visible, objects show as JSON. truncated says the rows stop at a limit.

optional caption?: string

Defined in: packages/schema/src/assistant/protocol.ts:66

A line under the table, such as the query it came from.


columns: string[]

Defined in: packages/schema/src/assistant/protocol.ts:62

The column headings.


id: string

Defined in: packages/schema/src/assistant/protocol.ts:60

The part’s id, unique in its message; a part with the same id replaces it.


rows: unknown[][]

Defined in: packages/schema/src/assistant/protocol.ts:64

One array per row, a value per column.


optional truncated?: boolean

Defined in: packages/schema/src/assistant/protocol.ts:68

The rows stop at a limit, so there are more than shown.


type: "table"

Defined in: packages/schema/src/assistant/protocol.ts:58

Marks a table part.