Hi and welcome to the forum! I am glad that I can help you.
You want to know whether you might be at risk of being infected with HIV.
HIV (human immune deficiency virus) affects the immune system and leads to a condition known as AIDS which is characterized with opportunistic infections and certain types of cancers. Infection with this virus appears with direct contact with blood, semen, vaginal fluid, pre-ejaculate, or breast milk. The four major routes of transmission are unsafe sex, contaminated needles, breast milk, and transmission from an infected mother to her baby at birth (vertical transmission).
Given the data that you described, it is not likely that you might be at risk of being infected. However, to be completely sure you may consider having a diagnostic test for diagnosis of possible HIV infections such as ELISA, Western blot and IFA(immunefluorescence assay) 12 weeks after the suspicious event.
Please keep in mind that I provide medical information only. I am not able to diagnose medical conditions online. Please contact your doctor for further advice and information about diagnosis and treatment options.