Skip to content

ThreadSectionModel

ThreadSectionModel = object

Defined in: packages/schema/src/model.ts:1176

The conversation of a record: the latest limit records of the message resource resource whose relation field holds the record’s key, oldest first, each text under its sender and time, with earlier ones on request. The text shows as markdown when the message resource’s view marks it .markdown(). See Conversations.

optional calls?: ToolCallFields & object

Defined in: packages/schema/src/model.ts:1201

The tool calls drawn between the messages in time order: the records of calls.resource whose filterable relation calls.field holds this record’s key, read by the fields it names.

field: string

The filterable relation of resource that holds this record’s key.

resource: string

The tool call resource.


optional empty?: string

Defined in: packages/schema/src/model.ts:1210

What it says while there are no messages.


field: string

Defined in: packages/schema/src/model.ts:1186

The filterable relation of resource that holds this record’s key.


optional help?: string

Defined in: packages/schema/src/model.ts:1182

A line under the title.


kind: "thread"

Defined in: packages/schema/src/model.ts:1178

A record’s conversation.


optional limit?: number

Defined in: packages/schema/src/model.ts:1208

How many of the latest messages it shows at first; 50 when omitted.


resource: string

Defined in: packages/schema/src/model.ts:1184

The message resource.


optional sender?: string

Defined in: packages/schema/src/model.ts:1188

Who wrote each message: a relation, named as the record it points at, or a text field. Without it, the messages are one author’s and show under no name.


optional status?: string

Defined in: packages/schema/src/model.ts:1194

A short line under each message, such as whether it was delivered: a text or enum field, its enum labels shown.


text: string

Defined in: packages/schema/src/model.ts:1192

The message itself: a text field.


time: string

Defined in: packages/schema/src/model.ts:1190

When each message was sent: a date or timestamp field the API can sort by.


title: string

Defined in: packages/schema/src/model.ts:1180

The section’s title.


optional when?: ShowWhen

Defined in: packages/schema/src/model.ts:1212

Whether it shows on the form, the read view or both.


optional working?: string

Defined in: packages/schema/src/model.ts:1196

An AIP-160 condition over the saved record, such as state = 'working': while it holds, the thread ends in a working indicator.