Turns are distinct breaks between messages in a Thread. Turns contain a user message and any LLM response(s) to that user message.

Annotations at the Turn level apply to group of Messages in that turn. For example, the annotation for message preference is at the turn level.

id
string
required

A unique identifier for the turn.

messages
object[]
required

A list of messages associated with this turn.

annotations
object[]
required

Annotations applied to the entire turn.

Represents a generic annotation.