Skip to content
AgenticAIWiki
  1. Glossary
  2. Prefilling

Glossary term

Prefilling

Writing the first part of the assistant’s reply yourself so the model continues from there.

Also called prefill.

Open lesson 13.3

Prefilling the assistant turn · Chapter 13, and 1 more lesson below

In plain words

Once used to force formats such as starting with "{". Support varies by model; prefer structured outputs where available.

Taught in

  1. 13.3Prefilling the assistant turnChapter 13, Chain of thought and output steering · main lesson
  2. 6.3Stop sequences and max_tokensChapter 6, Sampling

Also in these lessons

max_tokensOutput tokensStop reasonTool use