from ai21 import AI21Clientclient = AI21Client()# Replace with your actual run IDrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)# Print the retrieved run objectprint(retrieved_run)
AI21 Maestro [Beta]
Retrieve run status
Retrieves the status of the run execution based on its ID. The status can be completed, failed, or in_progress.
GET
/
studio
/
v1
/
maestro
/
runs
/
{run_id}
Copy
Ask AI
from ai21 import AI21Clientclient = AI21Client()# Replace with your actual run IDrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)# Print the retrieved run objectprint(retrieved_run)
from ai21 import AI21Clientclient = AI21Client()# Replace with your actual run IDrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)# Print the retrieved run objectprint(retrieved_run)