Skip to contents

Function that runs an assistant with a thread

Usage

assistant_run(assistant, thread)

Arguments

assistant

The assistant to run

thread

The thread to run the assistant with

Value

A run object

Examples

if (FALSE) {
assistant <- create_assistant()
thread <- create_thread()
run <- run_assistant(assistant, thread)
if(run$status != "completed"){
 print("The assistant is still running")
}
}