Skip to content

Glossary: Building with LLMs Basics

Roles

Also written: role, user, assistant, Assistant (role), assistant message

The label on each message saying who wrote it: `user` (the person or your program) or `assistant` (the model's earlier replies, which your program appends so the next request carries the history). Messages start with a user turn and alternate.

Where the book teaches it

Related terms

System promptPrefillConversation history