Skip to slide
Chapter 10 · Document and File Processing Pipelines
93 / 191

CHAPTER 10 · Document and File Processing Pipelines · 4 / 8

Generation: structured input → deterministic output

For producing documents, the pattern from Chapter 3 applies: have the agent emit structured content (sections, headings, tables) and let your code render it into the target format deterministically, applying house style, numbering, fonts, and layout. This keeps formatting reliable and consistent, and confines the model to deciding content. Use a mature document-generation library and encode your domain's formatting conventions once, in code.

← → arrow keys work too