When I graduated from my school, a company hired me as an intern. They had potential to hire as a full-time, but they wanted to see how I perform before hiring for full-time. I had several interviews for intern position, and then they offered me a 3 months internship. After 3 weeks suddenly human resource person gave me a check of 5 weeks pay and told that my skills are different and I should another position. 3 weeks is a pretty short time and no one can judge the engineers' performance in that time. I had to perform for 3 months and then they had to make a decision and that was the standard way. I am sure it's unfair with me, and I should contact department of labor to know if an employer can treat interns like that. Internship is a program for skill enhancement, and if employer is not going to hire the intern as a full-time, that doesn't mean they would end the internship. I wanted that employer to pay my rest of the contract period pay because it was a 3 months internship, but they told that I didn't perform well. Engineers can't be judged in 3 weeks and that's why I was given 3 months. Is there any govt agency that can help me with this matter? I understand that it's against corporate ethics. That employer is based in bay area.
Most likely, you were hired as an at-will employee. That means, you can be dismissed with reason (in this case, underperformance would be a valid reason) from your employer. Now unless your employers openly discriminated you as a member of a protected class, there is no other means left for you. Consider filing for unemployment if you qualify.