Skip to contents

Create an assistant

Usage

assistant_create(
  name,
  instructions,
  model = "gpt-4-turbo-preview",
  tool_retrieval = FALSE,
  tool_code_interpreter = FALSE,
  file_ids = NULL
)

Arguments

name

The name of the assistant

instructions

The instructions for the assistant

model

The model to use for the assistant (default: "gpt-4-turbo-preview")

tool_retrieval

Should the assistant have a retrieval tool? (default: FALSE)

tool_code_interpreter

Should the assistant have a code interpreter tool? (default: FALSE)

file_ids

A list of file IDs to add to the assistant (default: NULL)

Value

an assistant object