AttributeError: ‘RequiredAction’ object has no attribute ‘submit_tool_output’

Keeps getting this error for this block of code AttributeError: ‘RequiredAction’ object has no attribute ‘submit_tool_output’

run = client.beta.threads.runs.retrieve(
thread_id=thread.id,
run_id=run.id
)

print(run.required_action.submit_tool_output.tool_calls)

Everything working fine the next day. Not sure what happened