Explain it in 60 seconds
System, user and assistant messages
Machine Learning · LLM Fundamentals · Beginner
What are system, user and assistant messages in chat-based LLM APIs?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- System message: sets behavior, role, rules and context.
- User messages: requests from the person.
- Assistant messages: model's previous responses.
- Conversation history is resent each turn (stateless API).
- Tool messages carry results of function calls.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.