Skip to contents

Updates an existing assistant's instructions and/or metadata.

Usage

update_assistant(assistant_name, instructions = NULL, metadata = NULL)

Arguments

assistant_name

Name of the assistant to update

instructions

New instructions for the assistant (optional). These will be applied to all future chat interactions.

metadata

New metadata dictionary (optional). If provided, completely replaces existing metadata.

Value

List with http response, content (updated assistant details), and status_code

Examples

if (FALSE) { # \dontrun{
# Update instructions only
update_assistant(
  assistant_name = "my-assistant",
  instructions = "Use Australian English spelling and vocabulary."
)

# Update metadata only
update_assistant(
  assistant_name = "my-assistant",
  metadata = list(version = "2.0", updated = "2024-01-01")
)

# Update both
update_assistant(
  assistant_name = "my-assistant",
  instructions = "Be concise in responses.",
  metadata = list(team = "support")
)
} # }