Skip to content

Type Alias: TurnJSON

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / TurnJSON

TurnJSON = Omit<Turn, "messages" | "response"> & object

Defined in: src/types/turn.ts:126

Turn serialized to JSON format. Messages are converted to MessageJSON, response is omitted (computed from messages).

messages: MessageJSON[]

This type is derived from Turn and should stay in sync with it.