Skip to content

marvin.beta.assistants.runs

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

Run

The Run class represents a single execution of an assistant.

Attributes:

Name Type Description
thread Thread

The thread in which the run is executed.

assistant Assistant

The assistant that is being run.

model str

The model used by the assistant.

instructions str

Replacement instructions for the run.

additional_instructions str

Additional instructions to append to the assistant's instructions.

tools list[Union[AssistantTool, Callable]]

Replacement tools for the run.

additional_tools list[AssistantTool]

Additional tools to append to the assistant's tools.

run Run

The OpenAI run object.

data Any

Any additional data associated with the run.

cancel_async async

Cancels the run.

refresh_async async

Refreshes the run.