@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 +5 -4
- package/dist/gateway/bin.js +876 -861
- package/dist/index.d.ts +4 -7
- package/dist/index.js +55 -54
- package/package.json +2 -1
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
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
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
|
|