@bivelio/savings-layer 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -933,10 +933,11 @@ const { data, text } = await layer.generate<{ answer: number }>({
933
933
  console.log(data.answer); // 8
934
934
  ```
935
935
 
936
- A question the layer answers on its own (the arithmetic of the first example)
937
- never reaches the model, so its `data` is the resolver's `{ value: 8 }`, not
938
- your schema's shape: `report.qualityLedger` says the contract was not met.
939
- Ask the model for anything you want in your contract's shape.
936
+ A question the layer can answer on its own (the arithmetic of the first
937
+ example) is only served without the model when that answer meets your schema.
938
+ The arithmetic resolver returns `{ value: 8 }`: with a `{ answer: number }`
939
+ contract it steps aside and the request goes to the model, which answers in
940
+ your contract's shape.
940
941
 
941
942
  </details>
942
943