A Thread can be thought of as a conversation. Each Thread is broken down into a series of Turns, where each Turn contains a user Message and any LLM response message(s).

Annotations at the Thread level apply to the entire thread as a whole, across all Turns.

Represents a thread of messages in a task.

id
string
required

Unique identifier for the thread.

turns
object[]
required

Turns within the thread.

annotations
object[]
required

Annotations for the entire thread.

Represents a generic annotation.