--- spec: openflange.org/pipe/v0.1 id: llm-summarise version: 0.1.0 title: LLM summarise (mock provider) description: Summarises feedback records as streamed plain text. Ships with a deterministic mock provider. license: Apache-2.0 keywords: [llm, ai, summarisation, text, streaming, mock, example] maturity: experimental scope: dataset inputs: feedback: description: 'Feedback records: {"id", "text"}; `text` must be a string.' outputs: summary: kind: text description: The summary as UTF-8 text, streamed as it is generated. implementation: type: script language: python path: summarise.py permissions: subprocess: true --- # LLM summarise (mock provider) Implements the [OpenFlange](https://openflange.org/) specification. Generative AI as an ordinary pipe: records in, **text out** (`kind: text`, `text/plain; charset=utf-8`), written piece by piece as it is generated. See [../README.md](../README.md). - The provider in [`summarise.py`](summarise.py) is a **mock**: deterministic, offline, free. It counts words; it is not a language model. Because it is deterministic its tests can compare text exactly — a real model's cannot. - Dataset scope: a summary needs every record before the first word. - A record without a string `text` fails the run (`E_RUNTIME`). - **Usage** is one `usage {...}` line on stderr (counts only; texts are never logged). - Real providers with this same contract: `../llm-summarise-anthropic` (opt-in, costs money, sends data) and `../llm-summarise-ollama` (local). Permissions: `subprocess` (it starts `python3`). No network, no secrets.