Asked about Making a call

What are the roles in a chat request and what is each for?

An answer that works

system carries your instructions and is not shown to the user. user is what the person said. assistant, called model by some providers, is what the model said on previous turns. The list is the whole conversation.

Reading an answer is not being able to give one. The section that teaches this is Making a call, 2 hours of The Messages API.

Learn this properly