Type Alias: ThreadJSON
@providerprotocol/ai / @providerprotocol/ai / ThreadJSON
Type Alias: ThreadJSON
Section titled “Type Alias: 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.
Type Declaration
Section titled “Type Declaration”createdAt
Section titled “createdAt”createdAt:
string
messages
Section titled “messages”messages:
MessageJSON[]
updatedAt
Section titled “updatedAt”updatedAt:
string