--- spec: openflange.org/pipe/v0.1 id: classify-feedback-llm version: 0.1.0 title: Classify feedback (LLM) description: Routes feedback to positive, negative or uncertain using a language model. Same contract as classify-feedback-rules. Ships with a deterministic mock provider. license: Apache-2.0 keywords: [llm, ai, classification, sentiment, routing, composite, mock, example] maturity: experimental scope: record inputs: feedback: description: 'Feedback records: {"id", "text"}. Other members are passed through.' schema: format: json-schema definition: type: object required: [text] outputs: positive: description: Feedback classified as positive. schema: format: json-schema definition: type: object required: [text, label, confidence, reason] properties: label: {const: positive} confidence: {type: number, minimum: 0, maximum: 1} reason: {type: string} negative: description: Feedback classified as negative. schema: format: json-schema definition: type: object required: [text, label, confidence, reason] properties: label: {const: negative} confidence: {type: number, minimum: 0, maximum: 1} reason: {type: string} uncertain: description: Feedback the classifier could not decide. Explicit data for a human or another pipe; never dropped, never guessed. schema: format: json-schema definition: type: object required: [text, label, confidence, reason] properties: label: {const: uncertain} confidence: {type: number, minimum: 0, maximum: 1} reason: {type: string} parameters: minConfidence: type: number default: 0.7 minimum: 0 maximum: 1 description: A positive or negative label below this confidence is routed to uncertain. implementation: type: pipeline path: pipeline.yaml permissions: subprocess: true --- # Classify feedback (LLM) Implements the [OpenFlange](https://openflange.org/) specification. **The same contract** as `../classify-feedback-rules` — the same input, the same three outputs, the same record shape — implemented with a language model. See [../README.md](../README.md). ``` feedback ─▶ label (model call per record) ─▶ route (deterministic) ─┬▶ positive ├▶ negative └▶ uncertain ``` The model only *proposes* a label. A deterministic Starlark node routes the record, and sends it to `uncertain` when the model said so, when its confidence is below `minConfidence`, or when its reply was unusable. **An uncertain result is explicit, routed data — never a silent failure**, and `uncertain` is a required output. The provider is a **mock** (deterministic, offline, free; not a real model). Not declared `deterministic`, because a real provider would not be: test it with schema assertions, not exact text. Permissions: `subprocess`, for the model node only.