Skip to content



All async methods that have an _async suffix have sync equivalents that can be called with out the suffix e.g. run() and await run_async().


The Assistant class represents an AI assistant that can be created, deleted, loaded, and interacted with.


Name Type Description
id str

The unique identifier of the assistant. None if the assistant hasn't been created yet.

name str

The name of the assistant.

model str

The model used by the assistant.

metadata dict

Additional data about the assistant.

file_ids list

List of file IDs associated with the assistant.

tools list

List of tools used by the assistant.

instructions list

List of instructions for the assistant.

say_async async

A convenience method for adding a user message to the assistant's default thread, running the assistant, and returning the assistant's messages.