Changes to Change a thread agent's model

patch/threads/{id}/engine