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.
id
string
required

Unique identifier for the thread.

Example:

"thread_abc123"

turns
object[]
required

Turns within the thread.

annotations
(Integer · object | Boolean · object | Text · object | Category · object | Category-Multiple · object | File · object | Workspace Container · object | Ranked Choices · object | Ranked Groups · object)[]
required

Annotations for the entire thread.