Expand description
Deterministic answer synthesis — render a bitmap-program result (the structured JSON the analytics programs return) into a grounded natural-language answer via a fixed template, with NO model in the loop. This is the default path for small tool-caller drivers (Needle): the model selects the program and arguments, the engine computes the numbers, and we phrase them here — so the answer can never hallucinate figures the corpus doesn’t support. When a synthesis-capable provider (Bedrock / a large OpenAI-compatible model) is configured, the loop uses the model’s prose instead.
Functions§
- render_
program - Render a program result into a template answer, or
Noneif it isn’t a recognised program payload.