OpenAI · Arazzo Workflow
OpenAI Assistant Run
Version 1.0.0
Create an assistant, open a thread, add a message, run it, poll the run, and read the reply.
Provider
Workflows
assistant-run
Create an assistant and run a thread to completion, returning the reply.
Creates an assistant, opens a thread with a user message, starts a run, polls the run status to a terminal state, and lists the resulting messages.
1
createAssistant
createAssistant
Create an assistant with the supplied model and instructions.
2
createThread
createThread
Open a new conversation thread.
3
addMessage
createMessage
Add the user message to the thread.
4
createRun
createRun
Start a run of the assistant on the thread.
5
pollRun
getRun
Poll the run until it reaches a terminal status, branching to read the messages when completed and looping while it is still in progress.
6
listMessages
listMessages
List the thread messages and return the most recent assistant reply.