ThreadRequestBuilder

A thread request builder.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The list of messages to be included in the thread. Each message is represented by a ThreadMessage.

Link copied to clipboard

Set of 16 key-value pairs that can be attached to the thread. This can be useful for storing additional information about the thread in a structured format. Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long.

Link copied to clipboard

A set of resources that are made available to the assistant's tools in this thread.

Functions

Link copied to clipboard

Builds and returns a ThreadRequest instance.

Link copied to clipboard

Sets a list of messages to the request.