message role

The label on each message in a conversation, usually user or assistant, that tells the model who said it.

In more detail

A chat request is a list of alternating user and assistant turns, with the system prompt alongside. Each call is stateless, so the whole list is sent every time, and earlier assistant turns can be written by your code to steer the next reply.

Related terms

Taught in

References

Certification courses