chatinstance shared_ptr