Skip to main content

Crate plato_tile_prompt

Crate plato_tile_prompt 

Source
Expand description

plato-tile-prompt — Tile Context → LLM Prompt Assembly

Takes scored tiles and assembles them into a prompt for LLM inference. Handles budget management, deadband injection, and format selection.

§Why

A model doesn’t receive raw tiles. It receives a prompt assembled from relevant tiles, formatted for its context window, with deadband warnings injected when approaching negative space.

§API

let config = PromptConfig::default();
let (prompt, stats) = PromptAssembler::build(&scored_tiles, query, &config);

Structs§

BuildStats
Build statistics.
PromptAssembler
The prompt assembler.
PromptConfig
Prompt assembly configuration.
ScoredTile
A scored tile ready for prompt assembly.

Enums§

Priority
TileFormat