Skip to content

marvin.beta.assistants.assistants

Tip

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().

Assistant

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

Attributes:

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 str

Instructions for the assistant.

chat

Start a chat session with the assistant.

chat_async async

Async method to start a chat session with the assistant.