Skip to content

Type Alias: ThreadJSON

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / ThreadJSON

ThreadJSON = Pick<Thread, "id"> & object

Defined in: src/types/thread.ts:26

Thread serialized to JSON format. Picks id from Thread, converts dates to strings.

createdAt: string

messages: MessageJSON[]

updatedAt: string